| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryWarehouseOrderView"
- 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: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"
- DataContext="{Binding DeliveryWarehouseOrder,
- Source={StaticResource Locator}}"
- mc:Ignorable="d ignore">
- <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 DeliveryCommand}"
- Content="+仓单注册"
- Style="{DynamicResource CommonButtonStyle}" />
- -->
- <dataGrid:MuchinfoDataGrid Grid.Row="1"
- ItemsSource="{Binding AllAduitOrders}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- SelectedItem="{Binding SelectEntrustOrder}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <!-- 仓单号 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding WRCode}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}" />
- <!-- 仓单类型 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding WRTypeDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_StorageTypeName}" />
- <!-- 交割商品 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DeliveryGoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
- -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.NDeliveryOrderView_WarehouseGoods}"
- SortMemberPath="GoodsCode">
- <DataGridTextColumn.Binding>
- <MultiBinding StringFormat="{}{0}/{1}">
- <Binding Path="DeliveryGoodsCode" />
- <Binding Path="DeliveryGoodsName" />
- </MultiBinding>
- </DataGridTextColumn.Binding>
- </DataGridTextColumn>
- <!-- 品牌 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding Brand}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Brand}" />
- <!-- 等级 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding Rank}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Level}" />
- <!-- 单位 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding GoodsUnitIdDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Unit}" />
- <!-- 规格 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding Spec}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_Spec}" />
- <!-- 注册数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding Qty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryRegisterNumber}" />
- <!-- 冻结数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding FreezeQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_FreezingNumber}" />
- <!-- 兑付数量 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding PayQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_PayNumber}" />
- <!-- 存储仓库 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding WareHouseName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouseId}" />
- <!-- 库位 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StorePlace}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_StorePlace}" />
- <!-- 货值金额 25817 -->
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StoreAmount}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreAmount}" />
- -->
- <!-- 仓储费 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StoreCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Delivery_StoreCharge}" />
- <!--
- 申请时间
- <DataGridTextColumn Width="Auto"
- MinWidth="160"
- 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="100"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.DeliveryWarehouse_Remark}" />
- <!-- 状态 -->
- <DataGridTextColumn Width="Auto"
- MinWidth="100"
- Binding="{Binding StatusDisplay}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_State}" />
- <!--
- Command="{Binding Path=DeliveryEntruct.CancelCommand,
- Source={StaticResource Locator},
- Mode=OneWay}"
- -->
- <DataGridTemplateColumn>
- <DataGridTemplateColumn.Header>
- <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
- </DataGridTemplateColumn.Header>
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button Height="20"
- Command="{Binding Path=DataContext.PopDetailCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- CommandParameter="{Binding}"
- Content="{x:Static resource:Client_Resource.DeliveryWarehouseOrder_Detail}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}" />
- <Button Height="20"
- Command="{Binding Path=DataContext.PopUpRecieveInfoCommand,
- RelativeSource={RelativeSource Mode=FindAncestor,
- AncestorLevel=3,
- AncestorType={x:Type Grid}}}"
- Content="{x:Static resource:Client_Resource.DeliveryWarehouseOrder_TakeGoods}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding IsVisibility}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <!--
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding CancelCommand}"
- Header="{x:Static resource:Client_Resource.Button_Cancellation}"
- Style="{DynamicResource CommonMenuItem}" />
-
-
- </ContextMenu>
- </DataGrid.ContextMenu>
- -->
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|