| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689 |
- <Window x:Class="Muchinfo.MTPClient.Delivery.Views.NDeliveryOrderView"
- 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:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
- xmlns:validations="clr-namespace:Muchinfo.MTPClient.Infrastructure.ValidationRules;assembly=Client.Infrastructure"
- xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
- xmlns:local="clr-namespace:Muchinfo.MTPClient.Delivery.Utilities"
- x:Name="NDeliveryOrderViewWindow"
- Title="{Binding Title}"
- MinHeight="350"
- ShowInTaskbar="False"
- SizeToContent="WidthAndHeight"
- Style="{DynamicResource DialogWindowStyle}"
- WindowStartupLocation="CenterOwner"
- mc:Ignorable="d ignore">
- <Window.Resources>
- <converters:IntToVisibilityConverter x:Key="ZeroOrNotVisibilityConverter" />
- <converters:BuyOrSellConvert x:Key="EnumBooleanConvert" />
- <converters:StringToIntConverter x:Key="stringToIntConvert" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <DataTemplate x:Key="GoodsDatatTemplate">
- <TextBlock>
- <Run Text="{Binding Name}" />
- <Run Text=" " />
- <Run Text="{Binding GoodsCode}" />
- </TextBlock>
- </DataTemplate>
- <Style x:Key="TextBlockCommon" TargetType="TextBlock">
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{DynamicResource AcountGridHeadForeground}" />
- <Setter Property="Margin" Value="10,0,0,0" />
- </Style>
- <ControlTemplate x:Key="ErrorTemplate">
- <!--
- <Border BorderBrush="Red" BorderThickness="1">
- <AdornedElementPlaceholder/>
- </Border>
- -->
- <DockPanel>
- <AdornedElementPlaceholder />
- <TextBlock FontSize="20" Foreground="Red">*</TextBlock>
- </DockPanel>
- </ControlTemplate>
- <Style TargetType="TextBlock">
- <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ErrorTemplate}" />
- <Style.Triggers>
- <Trigger Property="Validation.HasError" Value="True">
- <Setter Property="Foreground" Value="Red" />
- <Setter Property="ToolTip" Value="{Binding RelativeSource={x:Static RelativeSource.Self}, Path=(Validation.Errors)[0].ErrorContent}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </Window.Resources>
- <xctk:BusyIndicator BusyContent="{Binding BusyContent}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid Margin="20,10">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <StackPanel Orientation="Vertical">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Border Grid.Row="0"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1">
- <StackPanel Grid.Row="0"
- Grid.ColumnSpan="5"
- Height="25"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 交易商品名称title -->
- <TextBlock Width="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeclareGoods}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 价格 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=AvailPriceContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_Price}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 可用数量 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=AvailQtyContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_AvailQty}" />
- </Border>
- <!-- 申报数量 title -->
- <TextBlock MinWidth="100"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_DeliveryQty}" />
- </StackPanel>
- </Border>
- <Border Grid.Row="1"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1">
- <StackPanel Margin="0,0,0,2" Orientation="Horizontal" Height="25">
- <!-- 交易商品名称-content -->
- <TextBlock x:Name="XGoods"
- Width="145"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding DisplayXGoods, Mode=OneWay}" />
- </TextBlock>
- <TextBlock x:Name="AvailPriceContent"
- MinWidth="80"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding XPriceFormat, Mode=OneWay}" />
- </TextBlock>
- <!-- 可用数量 content -->
- <TextBlock x:Name="AvailQtyContent"
- MinWidth="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding AvailHoldQty, Mode=OneWay}" />
- </TextBlock>
- <!-- 申报数量 content -->
- <TextBlock x:Name="DeclareQtyContent"
- MinWidth="100"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding DeliveryCount, Mode=OneWay}" />
- <Run Text="{Binding DeliveryCountCalcAlgrithm, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </Border>
- <Border Grid.Row="3"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1" Visibility="{Binding IsVisibility_P}">
- <StackPanel Grid.Row="3"
- Grid.ColumnSpan="5"
- Height="25"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 交易商品名称title -->
- <TextBlock Width="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.DeliveryOrderView_RelationGoodsName}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 价格 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=P1AvailPriceContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_Price}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 可用数量 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=RelationGoodsHoldQty_content}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_AvailQty}" />
- </Border>
- <!-- 申报数量 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=RelationNumContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_DeliveryQty}" />
- </StackPanel>
- </Border>
- <Border Grid.Row="4"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1" Visibility="{Binding IsVisibility_Type1}">
- <StackPanel Grid.Row="4"
- Grid.ColumnSpan="5"
- Height="25"
- Margin="0,0,0,2"
- Orientation="Horizontal">
- <!-- 交易商品名称-content -->
- <TextBlock x:Name="PGoods1"
- Width="145"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding P1GoodsName, Mode=OneWay}" />
- </TextBlock>
- <TextBlock x:Name="P1AvailPriceContent"
- MinWidth="80"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding RelationGoodsHoldPriceFormat, Mode=OneWay}" />
- </TextBlock>
- <!-- 可用数量 content -->
- <TextBlock x:Name="RelationGoodsHoldQty_content"
- MinWidth="100"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding RelationGoodsHoldQtyDisp, Mode=OneWay}" />
- </TextBlock>
- <!-- 申报数量 content -->
- <TextBlock x:Name="RelationNumContent"
- MinWidth="100"
- Margin="10,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsError_RelationDeliveryCount}" Value="true">
- <Setter Property="Foreground" Value="{DynamicResource TextBrush_Common}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- <!-- 数据验证 -->
- <Run Text="{Binding RelationDeliveryCountDisp, Mode=OneWay}" />
- <Run Text="{Binding RelationDeliveryCountCalcAlgrithm, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </Border>
- <Border Grid.Row="5"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1" Visibility="{Binding IsVisibility_Type2}">
- <StackPanel Grid.Row="5"
- Grid.ColumnSpan="5"
- Height="25"
- Margin="0,0,0,2"
- Orientation="Horizontal">
- <!-- 交易商品名称-content -->
- <TextBlock x:Name="PGoods2"
- Width="145"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding P2GoodsName, Mode=OneWay}" />
- </TextBlock>
- <TextBlock x:Name="P2AvailPriceContent"
- MinWidth="80"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding RelationGoodsHoldPriceFormat2, Mode=OneWay}" />
- </TextBlock>
- <!-- 可用数量 content -->
- <TextBlock x:Name="RelationGoodsHoldQty_content2"
- MinWidth="100"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding RelationGoodsHoldQty2Disp, Mode=OneWay}" />
- </TextBlock>
- <!-- 申报数量 content -->
- <TextBlock x:Name="RelationNumContent2"
- MinWidth="100"
- Margin="10,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Style.Triggers>
- <DataTrigger Binding="{Binding IsError_RelationDeliveryCount2}" Value="true">
- <Setter Property="Foreground" Value="{DynamicResource TextBrush_Common}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- <!-- 数据验证 -->
- <Run Text="{Binding RelationDeliveryCountDisp2, Mode=OneWay}" />
- <Run Text="{Binding RelationDeliveryCountCalcAlgrithm2, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </Border>
- <Border Grid.Row="6"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1"
- >
- <StackPanel Grid.Row="6"
- Grid.ColumnSpan="5"
- Height="25"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal"
- >
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 交割商品 title -->
- <TextBlock Width="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.NDeliveryOrderView_WarehouseGoods}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 价格 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=DeliveryPriceContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resources:Client_Resource.Content_Price}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 点选数量 title -->
- <TextBlock Width="100"
- Style="{StaticResource TextBlockCommon}"
- Text="点选数量" />
- </Border>
- <!-- 预估货款 title -->
- <TextBlock Width="145"
- Style="{StaticResource TextBlockCommon}"
- Text="预估货款" />
- </StackPanel>
- </Border>
- <Border Grid.Row="7"
- Grid.ColumnSpan="5"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1"
- >
- <StackPanel Grid.Row="7"
- Grid.ColumnSpan="5"
- Height="25"
- Margin="0,0,0,2"
- Orientation="Horizontal"
- >
- <!-- 交割商品-content -->
- <TextBlock x:Name="DeliveryGoods"
- Width="145"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding DeliveryGoodsNameCode, Mode=OneWay}" />
- </TextBlock>
- <TextBlock x:Name="DeliveryPriceContent"
- MinWidth="80"
- Margin="10,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding DeliveryPriceFormat, Mode=OneWay}" />
- </TextBlock>
- <!-- 交割数量 content -->
- <TextBlock MinWidth="100"
- Margin="10,0"
- VerticalAlignment="Center"
- IsEnabled="False"
- Padding="20,0,0,0"
- TextAlignment="Left">
- <Run Text="{Binding DeliveryNumDisplay, Mode=OneWay}" />
- <Run Text="{Binding DeliveryAgreeUnitType, Mode=OneWay}" />
- </TextBlock>
- </StackPanel>
- </Border>
- <TextBlock Grid.Row="8"
- Grid.ColumnSpan="5"
- Height="20"
- Margin="0,20,0,0">
- <Run Text="交割要素信息:" />
- <Run Text="{Binding DeliveryFactor, Mode=OneWay}" />
- </TextBlock>
- <StackPanel Grid.Row="9"
- Grid.ColumnSpan="5"
- Margin="0,0,0,0"
- Orientation="Vertical" Visibility="{Binding IsVisibility_BtnSearch}">
- <StackPanel
- Margin="0,10"
- Orientation="Horizontal">
- <!-- 全部仓库 -->
- <ComboBox Grid.Row="1"
- Grid.Column="1"
- Width="125"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryWarehouseList}"
- SelectedItem="{Binding SelectedWareHouse,
- Mode=TwoWay}" SelectedValuePath="Key" DisplayMemberPath="Value"
- Style="{DynamicResource SimpleComboBoxStyle}" Visibility="{Binding IsVisibility_WareHouse}">
- <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="125"
- Margin="10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryBrandList}"
- SelectedItem="{Binding SelectedBrand,
- Mode=TwoWay}" SelectedValuePath="Key" DisplayMemberPath="Value"
- Style="{DynamicResource SimpleComboBoxStyle}" Visibility="{Binding IsVisibility_Brand}">
- <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="125"
- Margin="0,0,10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliveryQualityList}"
- SelectedItem="{Binding SelectedQuality,
- Mode=TwoWay}" SelectedValuePath="Key" DisplayMemberPath="Value"
- Style="{DynamicResource SimpleComboBoxStyle}" Visibility="{Binding IsVisibility_Quality}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding QualitySelectionChanged}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <!-- 全部规格 -->
- <ComboBox Grid.Row="1"
- Grid.Column="4"
- Width="125"
- Margin="0,0,10,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- ItemsSource="{Binding DeliverySpeciList}"
- SelectedItem="{Binding SelectedSpeci,
- Mode=TwoWay}" SelectedValuePath="Key" DisplayMemberPath="Value"
- Style="{DynamicResource SimpleComboBoxStyle}" Visibility="{Binding IsVisibility_Spec}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding SpeciSelectionChanged}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- <Button Width="82"
- Height="26"
- Command="{Binding SearchCommand}"
- CommandParameter="{Binding FilterList}"
- Content="{x:Static resources:Client_Resource.Content_Query}"
- Style="{DynamicResource CommonButtonStyle}" Visibility="{Binding IsVisibility_BtnSearch}" />
- </StackPanel>
- <xctk:BusyIndicator
- BusyContent="{x:Static resources:Client_Resource.Content_GetBusy}"
- IsBusy="{Binding IsBusyWR,
- Mode=TwoWay}">
- <dataGrid:MuchinfoDataGrid
- Margin="0"
- EnableRowVirtualization="False"
- ItemsSource="{Binding WrPairDetailsListEx}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding CurrentSelectedWhRecieptEx,
- UpdateSourceTrigger=PropertyChanged}"
- Style="{DynamicResource AccountMuchinfoDataGridStyleXS}" >
- <DataGrid.Resources>
- <local:BindingProxy x:Key="proxy" Data="{Binding}"></local:BindingProxy>
- </DataGrid.Resources>
- <DataGrid.Columns>
- <!-- 选择CheckBox -->
- <DataGridTemplateColumn Width="Auto"
- MinWidth="50"
- Header="{x:Static resources: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}"
- Style="{DynamicResource mtpCheckBoxStyle}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Checked">
- <i:InvokeCommandAction Command="{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" />
- </i:EventTrigger>
- <i:EventTrigger EventName="Unchecked">
- <i:InvokeCommandAction Command="{Binding DataContext.UnSelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </CheckBox>
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- <!-- 存储仓库 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding WarehouseName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Content_Warehouse}"
- SortMemberPath="StorePlace" Visibility="{Binding Data.IsVisibility_WareHouse,Source={StaticResource proxy}}" />
- <!-- 品牌 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="70"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Moduel_Brand}"
- SortMemberPath="Brand" Visibility="{Binding Data.IsVisibility_Brand,Source={StaticResource proxy}}" Binding="{Binding BrandName}" />
- <!-- 等级-品质 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding QualityName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Moduel_Level}"
- SortMemberPath="Rank" Visibility="{Binding Data.IsVisibility_Quality,Source={StaticResource proxy}}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="60"
- Binding="{Binding SpecName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Moduel_Spec}"
- SortMemberPath="Rank" Visibility="{Binding Data.IsVisibility_Spec,Source={StaticResource proxy}}" />
- <!-- 升贴水 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding PriceMove}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Moduel_PriceMove}"
- SortMemberPath="DeliveryPriceMoveDisplay" />
- <DataGridTextColumn Width="Auto"
- MinWidth="50"
- Binding="{Binding WRUserName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.HOLDERNAME}" />
- <!-- 数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding RestQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resources:Client_Resource.Content_LotNum}"
- SortMemberPath="EnableQty" />
- <!-- 选择数量 -->
- <DataGridTemplateColumn Width="250"
- Header="{x:Static resources:Client_Resource.Delivery_ChoiceNum}">
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Border Margin="2">
- <TextBlock>
- <Run Text="{Binding Data.StandardQty, Mode=OneWay,Source={StaticResource proxy}}" />
- <Run Text=" * " />
- </TextBlock>
- </Border>
- <Border Margin="2"
- BorderBrush="Red"
- BorderThickness="{Binding IsError}">
- <controls:DecimalNumBox x:Name="SelectQty"
- Width="80"
- Increment="{Binding DataContext.MinMultiple,ElementName=NDeliveryOrderViewWindow}"
- DecimalCount="2"
- IsEnabled="{Binding IsEnable}"
- KeyDown="SelectQty_KeyDown"
- Maximum="{Binding MaximunQty}"
- 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>
- </Border>
- <Border Margin="2">
- <TextBlock>
- <Run Text=" = " />
- <Run Text="{Binding SelectedQty, Mode=OneWay}" />
- </TextBlock>
- </Border>
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- </dataGrid:MuchinfoDataGrid>
- </xctk:BusyIndicator>
- </StackPanel>
- </Grid>
- </StackPanel>
- <StackPanel Grid.Row="1"
- Margin="0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <TextBlock HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBrush_Common}">
- <Run Text="{Binding ShowErrorInfo}" />
- </TextBlock>
- </StackPanel>
- <StackPanel Grid.Row="2"
- Margin="0,5"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button Width="82"
- Height="26"
- Command="{Binding OKCommand}"
- CommandParameter="{Binding ElementName=NDeliveryOrderViewWindow}"
- Content="{x:Static resources:Client_Resource.Button_Confirm}"
- IsEnabled="{Binding OKButtonEnabled}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="6" />
- <Button Width="82"
- Height="26"
- Margin="60,0,0,0"
- Command="{Binding CancelCommand}"
- CommandParameter="{Binding ElementName=NDeliveryOrderViewWindow}"
- Content="{x:Static resources:Client_Resource.Button_Cancel}"
- Style="{DynamicResource CommonButtonStyle}"
- TabIndex="7" />
- </StackPanel>
- </Grid>
- </xctk:BusyIndicator>
- </Window>
|