QueryDepositAppView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <UserControl x:Class="Muchinfo.MTPClient.Sale.Views.QueryDepositAppView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  9. DataContext="{Binding DepositQuery,
  10. Source={StaticResource Locator}}"
  11. mc:Ignorable="d">
  12. <UserControl.Resources>
  13. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  14. </UserControl.Resources>
  15. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_SearchBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition />
  20. </Grid.RowDefinitions>
  21. <StackPanel Margin="0,4" Orientation="Horizontal">
  22. <TextBlock Margin="10,0"
  23. VerticalAlignment="Center"
  24. Foreground="{DynamicResource TextBlockForeground}"
  25. Text="{x:Static resource:Client_Resource.Content_Date}" />
  26. <DatePicker Width="120"
  27. HorizontalAlignment="Stretch"
  28. VerticalAlignment="Center"
  29. CalendarStyle="{DynamicResource CalendarStyle}"
  30. SelectedDate="{Binding StartTime,
  31. Mode=TwoWay}"
  32. TabIndex="7">
  33. <DatePicker.Resources>
  34. <Style TargetType="DatePickerTextBox">
  35. <Setter Property="IsReadOnly" Value="True" />
  36. <Setter Property="IsEnabled" Value="False" />
  37. </Style>
  38. </DatePicker.Resources>
  39. </DatePicker>
  40. <TextBlock Margin="5,0"
  41. VerticalAlignment="Center"
  42. Foreground="{DynamicResource TextBlockForeground}"
  43. Text="{x:Static resource:Client_Resource.Content_To}" />
  44. <DatePicker Width="120"
  45. HorizontalAlignment="Stretch"
  46. VerticalAlignment="Center"
  47. CalendarStyle="{DynamicResource CalendarStyle}"
  48. SelectedDate="{Binding EndTime,
  49. Mode=TwoWay}"
  50. TabIndex="7">
  51. <DatePicker.Resources>
  52. <Style TargetType="DatePickerTextBox">
  53. <Setter Property="IsReadOnly" Value="True" />
  54. <Setter Property="IsEnabled" Value="False" />
  55. </Style>
  56. </DatePicker.Resources>
  57. </DatePicker>
  58. <Button Width="70"
  59. Height="26"
  60. Margin="10,0"
  61. VerticalAlignment="Center"
  62. Command="{Binding RefreshCommand}"
  63. Content="{x:Static resource:Client_Resource.Button_Search}"
  64. Style="{DynamicResource CommonButtonStyle}" />
  65. <Button Width="70"
  66. Height="26"
  67. Margin="0,0"
  68. VerticalAlignment="Center"
  69. Command="{Binding ResetCommand}"
  70. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  71. Style="{DynamicResource CommonButtonStyle}" />
  72. </StackPanel>
  73. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  74. ItemsSource="{Binding DepositApplyList}"
  75. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  76. ScrollViewer.VerticalScrollBarVisibility="Auto"
  77. SelectedIndex="-1"
  78. SelectedItem="{Binding CurApplyModel}"
  79. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  80. <DataGrid.Columns>
  81. <DataGridTextColumn Width="Auto"
  82. MinWidth="150"
  83. Binding="{Binding StoreInId}"
  84. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  85. Header="{x:Static resource:Client_Resource.Resources_Service_ApplyNum}" />
  86. <DataGridTextColumn Width="Auto"
  87. MinWidth="150"
  88. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  89. Header="{x:Static resource:Client_Resource.Content_DepositGoodsCode_Name}">
  90. <DataGridTextColumn.Binding>
  91. <MultiBinding StringFormat="{}{0}/{1}">
  92. <Binding Path="DeliveryGoodsCode" />
  93. <Binding Path="DeliveryGoodsName" />
  94. </MultiBinding>
  95. </DataGridTextColumn.Binding>
  96. </DataGridTextColumn>
  97. <!--
  98. <DataGridTextColumn Width="Auto"
  99. MinWidth="150"
  100. Binding="{Binding DeliveryGoodsName}"
  101. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  102. Header="{x:Static resource:Client_Resource.Content_DepositGoodsName}" />
  103. -->
  104. <DataGridTextColumn Width="Auto"
  105. MinWidth="120"
  106. Binding="{Binding Qty}"
  107. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  108. Header="{x:Static resource:Client_Resource.Content_DepositApllyLot}" />
  109. <DataGridTextColumn Width="Auto"
  110. MinWidth="120"
  111. Binding="{Binding DisplayStoreInQty}"
  112. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  113. Header="{x:Static resource:Client_Resource.Resources_Service_StoreApplyNum}" />
  114. <DataGridTextColumn Width="Auto"
  115. MinWidth="80"
  116. Binding="{Binding GoodsUnitName}"
  117. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  118. Header="{x:Static resource:Client_Resource.Content_UnitName}" />
  119. <DataGridTextColumn Width="Auto"
  120. MinWidth="120"
  121. Binding="{Binding FreezeCharge}"
  122. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  123. Header="{x:Static resource:Client_Resource.Content_DepositFreezeFee}" />
  124. <DataGridTextColumn Width="Auto"
  125. MinWidth="140"
  126. Binding="{Binding DisplayStoreInCharge}"
  127. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  128. Header="{x:Static resource:Client_Resource.Resources_Service_DepositFee}" />
  129. <DataGridTextColumn Width="Auto"
  130. MinWidth="120"
  131. Binding="{Binding WareHouseName}"
  132. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  133. Header="{x:Static resource:Client_Resource.Content_Warehouse}" />
  134. <DataGridTextColumn Width="Auto"
  135. MinWidth="120"
  136. Binding="{Binding RequestTime}"
  137. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  138. Header="{x:Static resource:Client_Resource.Moduel_ApplyTime}" />
  139. <DataGridTextColumn Width="Auto"
  140. MinWidth="120"
  141. Binding="{Binding DisplayAuditStatus}"
  142. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  143. Header="{x:Static resource:Client_Resource.Content_State}" />
  144. <DataGridTextColumn Width="Auto"
  145. MinWidth="80"
  146. Binding="{Binding Remark}"
  147. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  148. Header="{x:Static resource:Client_Resource.Report_AmountLogs_Remark}" />
  149. <DataGridTemplateColumn>
  150. <DataGridTemplateColumn.Header>
  151. <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
  152. </DataGridTemplateColumn.Header>
  153. <DataGridTemplateColumn.CellTemplate>
  154. <DataTemplate>
  155. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  156. <Button Height="20"
  157. Command="{Binding Path=DepositQuery.CancelCommand,
  158. Source={StaticResource Locator}}"
  159. Content="{x:Static resource:Client_Resource.Button_CanCancel}"
  160. Padding="10,2"
  161. Style="{DynamicResource ButtonWithBorderStyle}"
  162. Visibility="{Binding CanCancel,
  163. Converter={StaticResource ToVisibilityConverter}}" />
  164. </StackPanel>
  165. </DataTemplate>
  166. </DataGridTemplateColumn.CellTemplate>
  167. </DataGridTemplateColumn>
  168. </DataGrid.Columns>
  169. <DataGrid.ContextMenu>
  170. <ContextMenu>
  171. <MenuItem Command="{Binding RightCancelCommand}" Header="{x:Static resource:Client_Resource.Button_CanCancel}" />
  172. <MenuItem Command="{Binding RefreshCommand}"
  173. Header="{x:Static resource:Client_Resource.Button_Refresh}"
  174. IsEnabled="True" />
  175. </ContextMenu>
  176. </DataGrid.ContextMenu>
  177. </dataGrid:MuchinfoDataGrid>
  178. </Grid>
  179. </xctk:BusyIndicator>
  180. </UserControl>