| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507 |
- <Window x:Class="Muchinfo.MTPClient.Delivery.Views.TakaDeliveryGoodsApplyView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
- xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
- xmlns:ignore="http://www.galasoft.ch/ignore"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="TakaDeliveryGoodsApplyWindow"
- Title="{Binding Title}"
- Width="820"
- MouseLeftButtonDown="drag_MouseLeftButtonDown"
- ShowInTaskbar="False"
- SizeToContent="Height"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner"
- mc:Ignorable="d ignore">
- <Window.Resources>
- <converters:WRStatusToIsEnabledConvert x:Key="wrStatusToIsEnabledConvert" />
- <converters:BuyOrSellConvert x:Key="EnumBooleanConvert" />
- <DataTemplate x:Key="WarehouseComboBoxItemTemplate">
- <TextBlock>
- <Run Text="{Binding WareHouseName}" />
- </TextBlock>
- </DataTemplate>
- </Window.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="10" />
- <RowDefinition Height="40" />
- <RowDefinition MaxHeight="150" />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="50" />
- <RowDefinition Height="10" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20" />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition Width="20" />
- </Grid.ColumnDefinitions>
- <!-- 存储仓库 -->
- <StackPanel Grid.Row="1"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Orientation="Horizontal">
- <TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Text="{x:Static resource:Client_Resource.Content_Storage}" />
- <ComboBox Width="165"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- DisplayMemberPath="WareHouseName"
- ItemsSource="{Binding WarehouseList}"
- SelectedItem="{Binding CurrentWarehouse,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding WarehouseSelectionChangedCommand}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
-
- <!--<TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center">
- <Run Text=" " />
- <Run Foreground="{StaticResource TextBrush_Common}" Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyView_OnlyCanTakeSameDeliveryGoods}" />
- </TextBlock>-->
- </StackPanel>
- <dataGrid:MuchinfoDataGrid Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="3"
- ItemsSource="{Binding AllTakaDeliveryGoodsOrderList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- 选择CheckBox -->
- <DataGridTemplateColumn Width="Auto"
- MinWidth="50"
- Header="{x:Static resource:Client_Resource.Delivery_Choice}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <CheckBox x:Name="cbXh"
- VerticalAlignment="Center"
- IsEnabled="{Binding IsEnabled,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- IsChecked="{Binding IsSelected,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- Style="{DynamicResource mtpCheckBoxStyle}"
- Visibility="{Binding CanTakeGoods}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh}" />
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding DataContext.UnSelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding IsChecked, ElementName=cbXh}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- <!-- <Label Content="{Binding Xh}" FontSize="14"/> -->
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <!-- 仓单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding WRCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}" />
- <!--
- 仓单类型
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding WRTypeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_WRType}" />
- -->
- <!-- 仓单商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}">
- <DataGridTextColumn.Binding>
- <MultiBinding StringFormat="{}{0}/{1}">
- <Binding Path="DeliveryGoodsCode" />
- <Binding Path="DeliveryGoodsName" />
- </MultiBinding>
- </DataGridTextColumn.Binding>
- </DataGridTextColumn>
- <!-- 存储仓库NEW -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding WareHouseName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouseId}" />
- <!-- 品质 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding Rank}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Level}" />
- <!-- 品牌 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding Brand}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Brand}" />
- <!-- 单位 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding GoodsUnitIdDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Unit}" />
- <!-- 规格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding Spec}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Spec}" />
- <!-- 可用数量 GAI -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding AvlQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Quantifiable}" />
- <!--
- 冻结数量
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding FreezeQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_FreezingNumber}" />
- -->
- <!--
- 兑付数量
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding PayQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PayNumber}" />
- -->
- <!--
- 库位
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StorePlace}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_StorePlace}" />
- -->
- <!--
- 货值金额
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding StoreAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreAmount}" />
- -->
- <!--
- 仓储费
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding StoreCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreCharge}" />
- -->
- <!--
- 仓储起始时间
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding StoreStartDisplay,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreStart}" />
- -->
- <!--
- 仓储结束时间
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding StoreEndDisplay,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreEnd}" />
- -->
- <!-- 状态 ZHENGCANG -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding StatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_State}" />
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <StackPanel Grid.Row="4"
- Grid.Column="1"
- Grid.ColumnSpan="3"
- Margin="0,15">
- <!-- N模式交割收货信息填写 -->
- <StackPanel Grid.Row="10"
- Grid.ColumnSpan="5"
- Margin="0,20,0,10"
- Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Text="{x:Static resource:Client_Resource.NDeliveryOrderView_BelowIsGetGoodsPersonInfoTips}" />
- <RadioButton Margin="20,0"
- VerticalAlignment="Center"
- Content="{x:Static resource:Client_Resource.Delivery_TakeGoods_Self}"
- IsChecked="{Binding TakeGoodsWay,
- ConverterParameter=1,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="6" />
- <RadioButton x:Name="expressRadio"
- Margin="20,0"
- VerticalAlignment="Center"
- Content="{x:Static resource:Client_Resource.Delivery_TakeGoods_Express}"
- IsChecked="{Binding TakeGoodsWay,
- ConverterParameter=2,
- Converter={StaticResource EnumBooleanConvert}}"
- Style="{DynamicResource RadioButtonStyle}"
- TabIndex="5" />
- </StackPanel>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="110" />
- <ColumnDefinition Width="49" />
- <ColumnDefinition Width="61" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Border Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1" />
- <Border Margin="10,0,0,2"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="0,0,1,0">
- <!-- 收货人 title -->
- <TextBlock Width="100"
- Style="{DynamicResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.Content_Consignee}" />
- </Border>
- <Border Grid.Column="1"
- Grid.ColumnSpan="2"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="0,0,1,0">
- <!-- 联系电话 title -->
- <TextBlock Width="100"
- Style="{DynamicResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyViewModel_PhoneNum}" />
- </Border>
- <Border Grid.Column="3"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="0,0,1,0">
- <!-- 身份证号 title -->
- <TextBlock Width="145"
- Style="{DynamicResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.Content_IDCardNum}" />
- </Border>
- <!-- 收货地址 title -->
- <TextBlock Grid.Column="4"
- Style="{DynamicResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyViewModel_RecieveAddress}"
- Visibility="{Binding IsChecked,
- ElementName=expressRadio,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- <Border Grid.Row="1"
- Grid.ColumnSpan="5"
- Margin="0,0,0,0.687"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1" />
- <!-- 收货人-content -->
- <TextBox Grid.Row="1"
- Width="100"
- Margin="0,1,0,1.687"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Left"
- IsEnabled="True"
- MaxLength="20"
- Style="{DynamicResource RectangleTextBox}"
- TabIndex="3"
- Text="{Binding RecievePerson}"
- TextAlignment="Left" />
- <!-- 联系电话 content -->
- <TextBox Grid.Row="1"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Width="100"
- Margin="5,1,5,1.687"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Left"
- IsEnabled="True"
- MaxLength="11"
- Style="{DynamicResource RectangleTextBox}"
- TabIndex="4"
- Text="{Binding PhoneNum}"
- TextAlignment="Left" />
- <TextBox Grid.Row="1"
- Grid.Column="3"
- Width="145"
- Margin="0,0,10,2.687"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Left"
- IsEnabled="True"
- Style="{DynamicResource RectangleTextBox}"
- TabIndex="4"
- Text="{Binding IdCardNum}"
- TextAlignment="Left" />
- <!-- 收货地址 content -->
- <TextBox Grid.Row="1"
- Grid.Column="4"
- MinWidth="240"
- Margin="0,2,0,0.687"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Left"
- IsEnabled="True"
- MaxLength="128"
- Style="{DynamicResource RectangleTextBox}"
- TabIndex="5"
- Text="{Binding RecieveAddress}"
- TextAlignment="Left"
- Visibility="{Binding IsChecked,
- ElementName=expressRadio,
- Converter={StaticResource BooleanToVisibilityConverter}}" />
- </Grid>
- <!--
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="80" />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0"
- Grid.Column="0"
- Margin="0,20,0,5"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.Text_Consignee}" />
- <TextBox Grid.Row="0"
- MaxLength="20"
- Grid.Column="1"
- Margin="0,20,0,5"
- Text="{Binding RecievePerson}" />
- <TextBlock Grid.Row="0"
- Grid.Column="2"
- Grid.ColumnSpan="1"
- Margin="5,10,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="{StaticResource TextBrush_Common}"
- Text="*" />
- <TextBlock Grid.Row="1"
- Grid.Column="0"
- Margin="0,10,0,5"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.MessageBoxSend_ContactInformation}" />
- <TextBox Grid.Row="1"
- MaxLength="11"
- Grid.Column="1"
- Margin="0,10,0,5"
- Text="{Binding PhoneNum}" />
- <TextBlock Grid.Row="1"
- Grid.Column="2"
- Grid.ColumnSpan="1"
- Margin="5,5,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="{StaticResource TextBrush_Common}"
- Text="*" />
- <TextBlock Grid.Row="2"
- Grid.Column="0"
- Margin="0,10,0,5"
- HorizontalAlignment="Right"
- Text="{x:Static resource:Client_Resource.Text_Address}" />
- <TextBox Grid.Row="2"
- Grid.Column="1"
- MaxLength="128"
- Grid.ColumnSpan="3"
- Margin="0,10,0,5"
- Text="{Binding RecieveAddress}" />
- <TextBlock Grid.Row="2"
- Grid.Column="4"
- Grid.ColumnSpan="1"
- Margin="5,5,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="{StaticResource TextBrush_Common}"
- Text="*" />
- </Grid>
- -->
- </StackPanel>
- <!-- 提交按钮 -->
- <StackPanel Grid.Row="5"
- Grid.ColumnSpan="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=TakaDeliveryGoodsApplyWindow}"
- Content="{x:Static resource:Client_Resource.Button_Submit}"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=TakaDeliveryGoodsApplyWindow}"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- </Window>
|