| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.NDeliveryEntructOrderView"
- 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: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: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"
- DataContext="{Binding DeliveryEntruct,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <Style x:Key="TextBlockCommon" TargetType="TextBlock">
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="TextAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{DynamicResource AcountGridHeadForeground}" />
- <Setter Property="MinWidth" Value="100" />
- <!-- <Setter Property="Margin" Value="10,0,0,0"></Setter> -->
- </Style>
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <DataTemplate x:Key="DeliveryDetailDataTemlate">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <!-- 其他 -->
- <Border Grid.Row="0"
- MaxWidth="800"
- Margin="50,0,0,0"
- HorizontalAlignment="Left"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1">
- <StackPanel Height="25"
- Background="{DynamicResource AcountGridHeadBackground}"
- Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 商品名称title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=GoodsNameContent}"
- MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.DeliveryOrderView_TradeGoods}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 申报手数 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=GoodsDeliveryCountContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.Delivery_OrderQty}" />
- </Border>
- <!-- 交割结算价 title -->
- <TextBlock Width="{Binding ActualWidth,
- ElementName=GoodsDeliveryEndMoneyContent}"
- Style="{StaticResource TextBlockCommon}"
- Text="{x:Static resource:Client_Resource.Content_DeliveryEndMoney}" />
- </StackPanel>
- </Border>
- <Border Grid.Row="1"
- MaxWidth="800"
- Margin="50,0,0,0"
- HorizontalAlignment="Left"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1">
- <StackPanel Height="25" Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 主商品名称-content -->
- <TextBlock x:Name="GoodsNameContent"
- MinWidth="145"
- Style="{StaticResource TextBlockCommon}">
- <Run Text="{Binding XGoodsCode, Mode=OneWay}" />
- <Run Text="/" />
- <Run Text="{Binding XGoodsName, Mode=OneWay}" />
- </TextBlock>
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 申报手数 content -->
- <TextBlock x:Name="GoodsDeliveryCountContent"
- MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding XDeliveryQty,
- Mode=OneWay}" />
- </Border>
- <!-- 交割结算价 content -->
- <TextBlock x:Name="GoodsDeliveryEndMoneyContent"
- MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding XDeliveryPriceDisplay,
- Mode=OneWay}" />
- </StackPanel>
- </Border>
- <Border Grid.Row="2"
- MaxWidth="800"
- Margin="50,0,0,0"
- HorizontalAlignment="Left"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1"
- Visibility="{Binding IsVisibility_RelationModeP}">
- <StackPanel Height="25" Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 关联商品1名称-content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding PGoodsNameDisplay,
- Mode=OneWay}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 申报手数 content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding PDeliveryQty,
- Mode=OneWay}" />
- </Border>
- <!-- 交割结算价 content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding PDeliveryPriceDisplay,
- Mode=OneWay}" />
- </StackPanel>
- </Border>
- <Border Grid.Row="3"
- MaxWidth="800"
- Margin="50,0,0,0"
- HorizontalAlignment="Left"
- BorderBrush="{DynamicResource BorderBrush_Common}"
- BorderThickness="1,0,1,1"
- Visibility="{Binding IsVisibility_RelationModeP2}">
- <StackPanel Height="25" Orientation="Horizontal">
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 关联商品名称2-content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding P2GoodsNameDisplay,
- Mode=OneWay}" />
- </Border>
- <Border BorderBrush="{DynamicResource BorderBrush_Common}" BorderThickness="0,0,1,0">
- <!-- 申报手数 content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding P2DeliveryQty,
- Mode=OneWay}" />
- </Border>
- <!-- 交割结算价 content -->
- <TextBlock MinWidth="145"
- Style="{StaticResource TextBlockCommon}"
- Text="{Binding P2DeliveryPriceDisplay,
- Mode=OneWay}" />
- </StackPanel>
- </Border>
- </Grid>
- </DataTemplate>
- <converters:DeliveryOrderStatusToStringConverter x:Key="deliveryOrderStatusToStringConverter" />
- <converters:DeliveryOrderStatusToBooleanConverter x:Key="deliveryOrderStatusToBooleanConverter" />
- </UserControl.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <StackPanel Margin="0,4" Orientation="Horizontal">
- <TextBlock Margin="10,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_Date}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding StartTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <TextBlock Margin="5,0"
- VerticalAlignment="Center"
- Foreground="{DynamicResource TextBlockForeground}"
- Text="{x:Static resource:Client_Resource.Content_To}" />
- <DatePicker Width="120"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Center"
- CalendarStyle="{DynamicResource CalendarStyle}"
- SelectedDate="{Binding EndTime,
- Mode=TwoWay}"
- TabIndex="7">
- <DatePicker.Resources>
- <Style TargetType="DatePickerTextBox">
- <Setter Property="IsReadOnly" Value="True" />
- <Setter Property="IsEnabled" Value="False" />
- </Style>
- </DatePicker.Resources>
- </DatePicker>
- <Button Width="70"
- Height="26"
- Margin="10,0"
- VerticalAlignment="Center"
- Command="{Binding RefreshCommand}"
- Content="{x:Static resource:Client_Resource.Button_Search}"
- Style="{DynamicResource CommonButtonStyle}" />
- <Button Width="70"
- Height="26"
- Margin="0,0"
- VerticalAlignment="Center"
- Command="{Binding ResetCommand}"
- Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
- Style="{DynamicResource CommonButtonStyle}" />
- </StackPanel>
- <Button Grid.Row="0"
- Width="100"
- Height="26"
- Margin="10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{Binding DeliveryCommand}"
- Content="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryApplyPlus}"
- Style="{DynamicResource CommonButtonStyle}" Visibility="Collapsed" />
- <dataGrid:MuchinfoDataGrid x:Name="DeliveryDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding AllOrders}"
- MouseDoubleClick="MuchinfoDataGrid_MouseDoubleClick"
- RowDetailsTemplate="{DynamicResource DeliveryDetailDataTemlate}"
- RowStyle="{DynamicResource DeliveryDetailDataGridRowStyle}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountHolderSummaryDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding accountid}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Report_TaAccount}" />
- <!-- 申报单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryOrderId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderNumber}" />
- <!-- 仓单商品 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryGoodsNameDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.NDeliveryOrderView_WarehouseGoods}" />
- <!-- 交割数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding DeliveryQtyDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_holderQty}" />
- <!-- 申报时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding OrderTimeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_OrderTime}" />
- <!-- 状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding OrderStatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Status}" />
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True"
- Style="{DynamicResource CommonMenuItem}" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|