| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- <Window x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryMatchView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- 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:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WPF4"
- 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:tool="clr-namespace:Muchinfo.MTPClient.Infrastructure.Helpers;assembly=Client.Infrastructure"
- xmlns:view="clr-namespace:Muchinfo.MTPClient.Delivery.Views;assembly=Client.Delivery"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- x:Name="DeliveryMatchViewWindow"
- Title="{Binding Title}"
- Width="820"
- MouseLeftButtonDown="drag_MouseLeftButtonDown"
- ShowInTaskbar="False"
- SizeToContent="Height"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner"
- mc:Ignorable="d ignore">
- <Window.Resources>
- <DataTemplate x:Key="RankDataTemplate">
- <TextBlock>
- <Run Text="{Binding Rank}" />
- </TextBlock>
- </DataTemplate>
- <DataTemplate x:Key="BrandDataTemplate">
- <TextBlock>
- <Run Text="{Binding Brand}" />
- </TextBlock>
- </DataTemplate>
- <DataTemplate x:Key="WarehouseDataTemplate">
- <TextBlock>
- <Run Text="{Binding StorePlace}" />
- </TextBlock>
- </DataTemplate>
- <SolidColorBrush x:Key="TextBrush_DeliveryMatchView" Color="#ff3553" />
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!-- 点选仓单 -->
- <xctk:BusyIndicator Grid.RowSpan="1"
- BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}"
- IsBusy="{Binding IsBusy,
- Mode=TwoWay}"
- Visibility="{Binding IsVisibility_Main}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition Height="10" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20" />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition Width="20" />
- </Grid.ColumnDefinitions>
- <StackPanel Grid.Row="0"
- Grid.Column="1"
- Grid.ColumnSpan="4"
- Height="25"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <TextBlock Width="770"
- VerticalAlignment="Center"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- TextAlignment="Center">
- <Run Text="{x:Static resource:Client_Resource.Delivery_OrderNumber}" />
- <Run Text="{Binding OrderNumber}" />
- <Run Text=" " />
- <Run Text="{x:Static resource:Client_Resource.NDeliveryOrderView_WarehouseGoods}" />
- <Run Text="{Binding GoodsName}" />
- <Run Text=" " />
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryMatchView_DeliveryCount}" />
- <Run Text="{Binding DeliveryCount}" />
- <Run Text=" " />
- -->
- <Run Text="{x:Static resource:Client_Resource.Delivery_holderQty}" />
- <Run Text="{Binding DiscountNum}" />
- <Run Text="{Binding AgreeUnitString}" />
- <Run Text=" " />
- <Run Text="{x:Static resource:Client_Resource.DeliveryMatchView_AlreadyMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding AlreadyMatchQty}" />
- <Run Text=" " />
- <Run Text="{x:Static resource:Client_Resource.DeliveryMatchView_OtherCanMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding OtherCanMatchQty}" />
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="1"
- Grid.Column="1"
- Grid.ColumnSpan="4"
- Height="25"
- Margin="0,10"
- Orientation="Horizontal">
- <!-- 全部仓库 -->
- <ComboBox Grid.Row="1"
- Grid.Column="1"
- Width="165"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryWarehouseList}"
- SelectedItem="{Binding CurrentWarehouse,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding WarehouseSelectionChanged}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <!-- 全部品牌 -->
- <ComboBox Grid.Row="1"
- Grid.Column="2"
- Width="165"
- Margin="10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryBrandList}"
- SelectedItem="{Binding CurrentBrand,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding BrandSelectionChanged}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <!-- 全部等级 -->
- <ComboBox Grid.Row="1"
- Grid.Column="3"
- Width="165"
- Margin="0,0,10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryLevelList}"
- SelectedItem="{Binding CurrentLevel,
- Mode=TwoWay}"
- Style="{DynamicResource SimpleComboBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding RankSelectionChanged}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <Button Width="82"
- Height="26"
- Command="{Binding SearchCommand}"
- Content="{x:Static resource:Client_Resource.Content_Query}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <dataGrid:MuchinfoDataGrid
- Grid.Row="2"
- Grid.RowSpan="3"
- Grid.Column="1"
- Grid.ColumnSpan="4"
- Margin="0,10,0,0"
- EnableRowVirtualization="False"
- ItemsSource="{Binding SearchMatchOrderList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentSelectedItem,
- UpdateSourceTrigger=PropertyChanged}"
- 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"
- IsChecked="{Binding IsSelected,
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- IsEnabled="{Binding IsEnabled}"
- Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding WrCode}" />
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding DataContext.UnSelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding WrCode}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <!-- 仓单号 -->
- <DataGridTemplateColumn Width="Auto"
- MinWidth="110"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock Cursor="Hand" Text="{Binding WrCode}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="{DynamicResource NameDefaultBrush}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseLeftButtonDown">
- <i:InvokeCommandAction Command="{Binding DataContext.WrCode_MouseLeftButtonDownCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding WrCode}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBlock>
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <!-- 交割商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryGoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.QuoteDataGrid_DeliveryGoods}"
- SortMemberPath="DeliveryGoodsName" />
- <!-- 存储仓库 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StorePlace}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouseId}"
- SortMemberPath="StorePlace" />
- <!-- 品牌 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="70"
- Binding="{Binding Brand}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Brand}"
- SortMemberPath="Brand" />
- <!-- 等级-品质 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding Rank}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Level}"
- SortMemberPath="Rank" />
- <!-- 升贴水 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding DeliveryPriceMoveDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_PriceMove}"
- SortMemberPath="DeliveryPriceMoveDisplay" />
- <!-- 数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding EnableQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_LotNum}"
- SortMemberPath="EnableQty" />
- <!--
- 单位
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding GoodsUnitIdDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Unit}"
- SortMemberPath="GoodsUnitIdDisplay" />
- -->
- <!--
- 手续费
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding DeliveryCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_CounterFee}" />
- -->
- <!-- 选择数量 -->
- <DataGridTemplateColumn Width="Auto"
- MinWidth="50"
- Header="{x:Static resource:Client_Resource.Delivery_ChoiceNum}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Border Margin="2"
- BorderBrush="Red"
- BorderThickness="{Binding IsError}">
- <controls:DecimalNumBox x:Name="SelectQty"
- Width="80"
- DecimalCount="2"
- IsEnabled="{Binding IsEnabled}"
- KeyDown="SelectQty_KeyDown"
- Minimum="0"
- Text="{Binding SelectQty,
- UpdateSourceTrigger=PropertyChanged}"
- Watermark="请输入">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="ValueChanged">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectQtyTextChangedCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </controls:DecimalNumBox>
- <!--
- <TextBox IsEnabled="{Binding IsEnabled}" KeyDown="SelectQty_KeyDown" MaxLength="8" Text="{Binding SelectQty,UpdateSourceTrigger=PropertyChanged}" x:Name="SelectQty" Width="60">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="TextChanged">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectQtyTextChangedCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding SelectQty}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <TextBox.Resources>
- <VisualBrush x:Key="HelpBrush" TileMode="None" Opacity="0.7" Stretch="None" AlignmentX="Left">
- <VisualBrush.Visual>
- <Grid Background="#333333" MinWidth="60">
- <TextBlock Foreground="#666666" FontStyle="Italic" Text="请输入"/>
- </Grid>
- </VisualBrush.Visual>
- </VisualBrush>
- </TextBox.Resources>
- <TextBox.Style>
- <Style TargetType="TextBox">
- <Setter Property="Foreground" Value="#e26c41"/>
- <Style.Triggers>
- <Trigger Property="Text" Value="{x:Null}">
- <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
- </Trigger>
- <Trigger Property="Text" Value="">
- <Setter Property="Background" Value="{StaticResource HelpBrush}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBox.Style>
- </TextBox>
- -->
- </Border>
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <!--
- <StackPanel Grid.Row="5"
- Margin="0,10"
- Grid.ColumnSpan="6"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock>
- <Run Text="{x:Static resource:Client_Resource.DeliveryMatchView_AlreadyMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding AlreadyMatchQty}" />
- <Run Text=" " />
- <Run Text="{x:Static resource:Client_Resource.DeliveryMatchView_OtherCanMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding OtherCanMatchQty}" />
- <Run Text=" " />
- <Run Text="{x:Static resource:Client_Resource.Moduel_TextPriceMove}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding TotalDeliveryPriceMove}" />
- </TextBlock>
- </StackPanel>
- -->
- <StackPanel Grid.Row="6"
- Grid.ColumnSpan="6"
- Margin="0,15"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal"
- Visibility="{Binding IsVisibility_NeedMatchQty}">
- <TextBlock Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding ErrorMessage}">
- <!--
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{x:Static resource:Client_Resource.DeliveryMatchView_NeedMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding OtherCanMatchQty}" />
- <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{x:Static resource:Client_Resource.DeliveryMatchView_MustMatchAllQtyAtOnce}" />
- -->
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="7"
- Grid.ColumnSpan="6"
- Margin="0,15,0,10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding PreViewCommand}"
- CommandParameter="{Binding ElementName=DeliveryMatchViewWindow}"
- 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=DeliveryMatchViewWindow}"
- Content="{x:Static resource:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- <xctk:BusyIndicator Grid.RowSpan="1"
- BusyContent="{x:Static resource:Client_Resource.Content_Busy}"
- IsBusy="{Binding IsBusy,
- Mode=TwoWay}"
- Visibility="{Binding IsVisibility_PreView}">
- <!-- 确认点选仓单 -->
- <StackPanel Grid.Row="1" Margin="20,10">
- <dataGrid:MuchinfoDataGrid Margin="0,10,0,0"
- EnableRowVirtualization="False"
- ItemsSource="{Binding ChooseMatchOrderList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- 仓单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="110"
- Binding="{Binding WrCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}"
- SortMemberPath="WrCode" />
- <!-- 交割商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryGoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.QuoteDataGrid_DeliveryGoods}"
- SortMemberPath="DeliveryGoodsName" />
- <!-- 存储仓库 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StorePlace}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouseId}"
- SortMemberPath="StorePlace" />
- <!-- 品牌 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="70"
- Binding="{Binding Brand}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Brand}"
- SortMemberPath="Brand" />
- <!-- 等级-品质 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Rank}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Level}"
- SortMemberPath="Rank" />
- <!-- 升贴水 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryPriceMoveDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_PriceMove}"
- SortMemberPath="DeliveryPriceMoveDisplay" />
- <!-- 选择数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding SelectQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_ChoiceNum}"
- SortMemberPath="SelectQty" />
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- <StackPanel Margin="0,20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=DeliveryMatchViewWindow}"
- Content="{x:Static resource:Client_Resource.Delivery_Confirm}"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Command="{Binding ReturnCommand}"
- Content="{x:Static resource:Client_Resource.Notice_Black}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </StackPanel>
- </xctk:BusyIndicator>
- <!-- 仓单详细 -->
- <StackPanel Grid.Row="2"
- Margin="20,10"
- Orientation="Vertical"
- Visibility="{Binding IsVisibility_Warehouse}">
- <StackPanel.Resources>
- <Style TargetType="{x:Type Run}">
- <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text}" />
- </Style>
- </StackPanel.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20" />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition Width="20" />
- </Grid.ColumnDefinitions>
- <WrapPanel Grid.Row="1"
- Grid.RowSpan="5"
- Grid.Column="1"
- Grid.ColumnSpan="3"
- Margin="0,11,0,0">
- <!-- 仓单号 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WRCode, Mode=OneWay}" />
- </TextBlock>
- <!-- 仓单类型 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.Content_StorageTypeName}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WRTypeDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 存储物名 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreGoodsName}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StoreGoodsName, Mode=OneWay}" />
- </TextBlock>
- <!-- 存储仓库 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouse}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WareHouseName, Mode=OneWay}" />
- </TextBlock>
- <!-- 仓库地址 -->
- <!--
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.Delivery_WareHouseAddress}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WareHouseAddress, Mode=OneWay}" />
- </TextBlock>
- -->
- <!-- 品牌 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.Moduel_Brand}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Brand, Mode=OneWay}" />
- </TextBlock>
- <!-- 品质 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Quality}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Rank, Mode=OneWay}" />
- </TextBlock>
- <!-- 规格 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Spec}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Spec, Mode=OneWay}" />
- </TextBlock>
- <!-- 单位 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.Moduel_Unit}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.GoodsunitName, Mode=OneWay}" />
- </TextBlock>
- <!-- 注册数量 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryRegisterNumber}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.QtyDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 冻结数量 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_FreezeQty}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.FreezeQtyDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 兑付数量 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_PayQty}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.PayQtyDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 货值金额-仓单保价 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreAmount}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StoreAmountDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 物料编号 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreGoodsCode}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StoreGoodsCode, Mode=OneWay}" />
- </TextBlock>
- <!-- 合同号 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_ContractNo}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.ContractNo, Mode=OneWay}" />
- </TextBlock>
- <!-- 仓管人 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHousePerson}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WareHousePerson, Mode=OneWay}" />
- </TextBlock>
- <!-- 库位 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StorePlace}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StorePlace, Mode=OneWay}" />
- </TextBlock>
- <!-- 包装 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Package}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Package, Mode=OneWay}" />
- </TextBlock>
- <!-- 件数 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Pcs}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Pcs, Mode=OneWay}" />
- </TextBlock>
- <!-- 性质 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Nature}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Nature, Mode=OneWay}" />
- </TextBlock>
- <!-- 标记 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Mark}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Mark, Mode=OneWay}" />
- </TextBlock>
- <!-- 是否办理保险 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_HasPolicy}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.HasPolicyDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 保险期限 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_PolicyPeriod}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.PolicyPeriodDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 保险人 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_Insurer}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.Insurer, Mode=OneWay}" />
- </TextBlock>
- <!-- 关联保单 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_InsurancePolicy}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.InsurancePolicy, Mode=OneWay}" />
- </TextBlock>
- <!-- 存货人 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_WRSaver}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.WRSAVER, Mode=OneWay}" />
- </TextBlock>
- <!-- 仓储起始时间 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreStart}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StoreStartDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 仓储结束时间 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreEnd}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StoreEndDisplay, Mode=OneWay}" />
- </TextBlock>
- <!-- 状态 -->
- <TextBlock Width="180"
- Height="35"
- VerticalAlignment="Center"
- TextTrimming="CharacterEllipsis">
- <Run Text="{x:Static resource:Client_Resource.Moduel_Status}" />
- <Run Text=":" />
- <Run Text="{Binding CurrentWarehouseDetail.StatusDisplay, Mode=OneWay}" />
- </TextBlock>
- <!--
- 处理状态
- <TextBlock TextTrimming="CharacterEllipsis" Width="180" Height="35" VerticalAlignment="Center">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_ProcStatus}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.ProcStatus,Mode=OneWay}"></Run>
- </TextBlock>
- -->
- <!--
- 仓储费
- <TextBlock TextTrimming="CharacterEllipsis" Width="180" Height="35" VerticalAlignment="Center">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_StoreCharge}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.StoreCharge,Mode=OneWay}"></Run>
- </TextBlock>
- -->
- <!--
- 创建时间
- <TextBlock TextTrimming="CharacterEllipsis" Width="180" Height="35" VerticalAlignment="Center">
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouses_CreateTime}"></Run>
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.CreateTime,Mode=OneWay}"></Run>
- </TextBlock>
- -->
- </WrapPanel>
- <!--
- <StackPanel Grid.Row="7"
- Grid.Column="1"
- Grid.ColumnSpan="3"
- Height="40"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <TextBlock Width="730" TextTrimming="CharacterEllipsis"
- VerticalAlignment="Center"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- TextAlignment="Center">
- -->
- <!-- 质检时间 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_QCTime}" />
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.DeliveryOrderId,Mode=OneWay}" />
- <Run Text=" " />
- -->
- <!-- 质检费 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_QCCharge}" />
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.OrderTimeDisplay,Mode=OneWay}" />
- <Run Text=" " />
- -->
- <!-- 质检机构 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_QCOrg}" />
- <Run Text=":"></Run>
- <Run Foreground="{StaticResource TextBrush_Common}" Text="{Binding CurrentWarehouseDetail.OrderStatusDisplay,Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="8"
- Grid.Column="1"
- Grid.ColumnSpan="3"
- Height="40"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <TextBlock Width="730" TextTrimming="CharacterEllipsis"
- VerticalAlignment="Center"
- Foreground="{DynamicResource AcountGridHeadForeground}"
- TextAlignment="Center">
- -->
- <!-- 背书时间 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_BackMarkTime}" />
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.DeliveryOrderId,Mode=OneWay}" />
- <Run Text=" " />
- -->
- <!-- 背书人 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_BackMark}" />
- <Run Text=":"></Run>
- <Run Text="{Binding CurrentWarehouseDetail.OrderTimeDisplay,Mode=OneWay}" />
- <Run Text=" " />
- -->
- <!-- 背书原因 -->
- <!--
- <Run Text="{x:Static resource:Client_Resource.DeliveryWarehouse_BackRemark}" />
- <Run Text=":"></Run>
- <Run Foreground="{StaticResource TextBrush_Common}" Text="{Binding CurrentWarehouseDetail.OrderStatusDisplay,Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- -->
- <!--
- <xctk:BusyIndicator Grid.Row="8"
- Grid.Column="1" Grid.ColumnSpan="3" BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <dataGrid:MuchinfoDataGrid
- Margin="0,10,0,0"
- EnableRowVirtualization="False"
- ItemsSource="{Binding WarehouseChangeFlowList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- -->
- <!-- 变更项 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding ChangeItem}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_ChangeItem}"
- SortMemberPath="DeliveryGoodsName" />
- -->
- <!-- 变更前值 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding ChangePrev}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_ChangePrev}"
- SortMemberPath="StorePlace" />
- -->
- <!-- 变更后值 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="70"
- Binding="{Binding Changed}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_Changed}"
- SortMemberPath="Brand" />
- -->
- <!-- 关联数量 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding RelationQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_RelationQty}"
- SortMemberPath="Rank" />
- -->
- <!-- 变更时间 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding ChangeTime}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_ChangeTime}"
- SortMemberPath="DeliveryPriceMoveDisplay" />
- -->
- <!-- 变更操作人 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding ChangeOperator}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_ChangeOperator}"
- SortMemberPath="EnableQty" />
- -->
- <!-- 变更原因 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding ChangeReason}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_ChangeReason}"
- SortMemberPath="GoodsUnitIdDisplay" />
- -->
- <!-- 备注 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryMatchView_Remark}" />
-
-
-
-
-
- </DataGrid.Columns>
-
- </dataGrid:MuchinfoDataGrid>
- </xctk:BusyIndicator>
- -->
- </Grid>
- <StackPanel Margin="0,20"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding ReturnCommand}"
- Content="{x:Static resource:Client_Resource.Notice_Black}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </Window>
|