| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QueryDepositAppView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- 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 DepositQuery,
- Source={StaticResource Locator}}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
- </UserControl.Resources>
- <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" 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>
- <dataGrid:MuchinfoDataGrid Grid.Row="1"
- ItemsSource="{Binding DepositApplyList}"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- SelectedIndex="-1"
- SelectedItem="{Binding CurApplyModel}"
- Style="{DynamicResource AccountMuchinfoDataGridStyle}">
- <DataGrid.Columns>
- <DataGridTextColumn Width="Auto"
- MinWidth="150"
- Binding="{Binding StoreInId}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Resources_Service_ApplyNum}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="150"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DepositGoodsCode_Name}">
- <DataGridTextColumn.Binding>
- <MultiBinding StringFormat="{}{0}/{1}">
- <Binding Path="DeliveryGoodsCode" />
- <Binding Path="DeliveryGoodsName" />
- </MultiBinding>
- </DataGridTextColumn.Binding>
- </DataGridTextColumn>
- <!--
- <DataGridTextColumn Width="Auto"
- MinWidth="150"
- Binding="{Binding DeliveryGoodsName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DepositGoodsName}" />
- -->
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding Qty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DepositApllyLot}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding DisplayStoreInQty}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Resources_Service_StoreApplyNum}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding GoodsUnitName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_UnitName}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding FreezeCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_DepositFreezeFee}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="140"
- Binding="{Binding DisplayStoreInCharge}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Resources_Service_DepositFee}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding WareHouseName}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_Warehouse}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding RequestTime}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Moduel_ApplyTime}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="120"
- Binding="{Binding DisplayAuditStatus}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Content_State}" />
- <DataGridTextColumn Width="Auto"
- MinWidth="80"
- Binding="{Binding Remark}"
- ElementStyle="{StaticResource DataGridTextColumnStyle}"
- Header="{x:Static resource:Client_Resource.Report_AmountLogs_Remark}" />
- <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=DepositQuery.CancelCommand,
- Source={StaticResource Locator}}"
- Content="{x:Static resource:Client_Resource.Button_CanCancel}"
- Padding="10,2"
- Style="{DynamicResource ButtonWithBorderStyle}"
- Visibility="{Binding CanCancel,
- Converter={StaticResource ToVisibilityConverter}}" />
- </StackPanel>
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
- </DataGrid.Columns>
- <DataGrid.ContextMenu>
- <ContextMenu>
- <MenuItem Command="{Binding RightCancelCommand}" Header="{x:Static resource:Client_Resource.Button_CanCancel}" />
- <MenuItem Command="{Binding RefreshCommand}"
- Header="{x:Static resource:Client_Resource.Button_Refresh}"
- IsEnabled="True" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </dataGrid:MuchinfoDataGrid>
- </Grid>
- </xctk:BusyIndicator>
- </UserControl>
|