| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.TakaDeliveryGoodsQueryView"
- 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 TakaDeliveryGoodsQuery,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <converters:DeliveryOrderStatusToStringConverter x:Key="deliveryOrderStatusToStringConverter" />
- <converters:eAuditStatusToVisibityConverter x:Key="eAuditStatusToVisibityConverter" />
- </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="0,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- Command="{Binding TakeDeliveryGoodsCommand}"
- Content="{x:Static resource:Client_Resource.DeliveryOrderView_TakeDeliveryGoodsApplyPlus}"
- Style="{DynamicResource CommonButtonStyle}" />
- <dataGrid:MuchinfoDataGrid x:Name="TakeDeliveryGoodsDataGrid"
- Grid.Row="1"
- ItemsSource="{Binding AllTakaDeliveryGoodsOrderList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder,
- Mode=TwoWay}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
-
- <!-- 出库单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding StoreOutCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_StoreOutCode}" />
- <!-- 提货仓库组 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding WarehouseNameGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_WarehouseModels}" />
- <!-- 交割商品组 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryGoodsNameGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
- <!-- 品牌组
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding BrandGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Brand}"
- SortMemberPath="StrOpenDirection" />-->
- <!-- 等级组
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding RankGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Level}" />-->
- <!-- 规格组
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding SpecGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Spec}" />-->
- <!-- 提货数量组
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StoreOutQtyGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DeliveryLots}" />-->
-
-
- <!-- 申请时间 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding RequestTime,
- StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_ApplyTime}" />
- <!-- 关联仓单组
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding WRCodeGroupDisplay}"
- CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_RelationWRCode}" />-->
- <!-- 备注
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_Remark}" />-->
- <!-- 状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding AuditStatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Status}" />
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.Header>
- <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <!--查看详细-->
- <Button
- Command="{Binding Path=DataContext.SeeMoreDetailCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding Path=SelectedItem,ElementName=TakeDeliveryGoodsDataGrid}"
- Padding="10,2"
- Height="20"
- Content="{x:Static resource:Client_Resource.Content_SeeMoreDetail}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- <!--撤销-->
- <Button Margin="10,0,0,0" Visibility="{Binding AuditStatus, Converter={StaticResource eAuditStatusToVisibityConverter}}"
- Command="{Binding Path=DataContext.CancelCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- Padding="10,2"
- Height="20"
- CommandParameter="{Binding Path=SelectedItem,ElementName=TakeDeliveryGoodsDataGrid}"
- Content="{x:Static resource:Client_Resource.Moduel_Canceled}"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelOrderCammand}"
- Header="{x:Static resource:Client_Resource.Button_Cancellation}"
- Style="{DynamicResource CommonMenuItem}" />
- <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>
|