TakaDeliveryGoodsQueryView.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.TakaDeliveryGoodsQueryView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
  5. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  10. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  11. DataContext="{Binding TakaDeliveryGoodsQuery,
  12. Source={StaticResource Locator}}"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <converters:DeliveryOrderStatusToStringConverter x:Key="deliveryOrderStatusToStringConverter" />
  16. <converters:eAuditStatusToVisibityConverter x:Key="eAuditStatusToVisibityConverter" />
  17. </UserControl.Resources>
  18. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition />
  23. </Grid.RowDefinitions>
  24. <StackPanel Margin="0,4" Orientation="Horizontal">
  25. <TextBlock Margin="10,0"
  26. VerticalAlignment="Center"
  27. Foreground="{DynamicResource TextBlockForeground}"
  28. Text="{x:Static resource:Client_Resource.Content_Date}" />
  29. <DatePicker Width="120"
  30. HorizontalAlignment="Stretch"
  31. VerticalAlignment="Center"
  32. CalendarStyle="{DynamicResource CalendarStyle}"
  33. SelectedDate="{Binding StartTime,
  34. Mode=TwoWay}"
  35. TabIndex="7">
  36. <DatePicker.Resources>
  37. <Style TargetType="DatePickerTextBox">
  38. <Setter Property="IsReadOnly" Value="True" />
  39. <Setter Property="IsEnabled" Value="False" />
  40. </Style>
  41. </DatePicker.Resources>
  42. </DatePicker>
  43. <TextBlock Margin="5,0"
  44. VerticalAlignment="Center"
  45. Foreground="{DynamicResource TextBlockForeground}"
  46. Text="{x:Static resource:Client_Resource.Content_To}" />
  47. <DatePicker Width="120"
  48. HorizontalAlignment="Stretch"
  49. VerticalAlignment="Center"
  50. CalendarStyle="{DynamicResource CalendarStyle}"
  51. SelectedDate="{Binding EndTime,
  52. Mode=TwoWay}"
  53. TabIndex="7" >
  54. <DatePicker.Resources>
  55. <Style TargetType="DatePickerTextBox">
  56. <Setter Property="IsReadOnly" Value="True" />
  57. <Setter Property="IsEnabled" Value="False" />
  58. </Style>
  59. </DatePicker.Resources>
  60. </DatePicker>
  61. <Button Width="70"
  62. Height="26"
  63. Margin="10,0"
  64. VerticalAlignment="Center"
  65. Command="{Binding RefreshCommand}"
  66. Content="{x:Static resource:Client_Resource.Button_Search}"
  67. Style="{DynamicResource CommonButtonStyle}" />
  68. <Button Width="70"
  69. Height="26"
  70. Margin="0,0"
  71. VerticalAlignment="Center"
  72. Command="{Binding ResetCommand}"
  73. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  74. Style="{DynamicResource CommonButtonStyle}" />
  75. </StackPanel>
  76. <Button Grid.Row="0"
  77. Width="100"
  78. Height="26"
  79. Margin="0,0"
  80. HorizontalAlignment="Right"
  81. VerticalAlignment="Center"
  82. Command="{Binding TakeDeliveryGoodsCommand}"
  83. Content="{x:Static resource:Client_Resource.DeliveryOrderView_TakeDeliveryGoodsApplyPlus}"
  84. Style="{DynamicResource CommonButtonStyle}" />
  85. <dataGrid:MuchinfoDataGrid x:Name="TakeDeliveryGoodsDataGrid"
  86. Grid.Row="1"
  87. ItemsSource="{Binding AllTakaDeliveryGoodsOrderList}"
  88. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  89. SelectedItem="{Binding SelectEntrustOrder,
  90. Mode=TwoWay}"
  91. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  92. <DataGrid.Columns>
  93. <!-- 出库单号 -->
  94. <DataGridTextColumn Width="Auto"
  95. MinWidth="140"
  96. Binding="{Binding StoreOutCode}"
  97. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  98. Header="{x:Static resource:Client_Resource.Content_StoreOutCode}" />
  99. <!-- 提货仓库组 -->
  100. <DataGridTextColumn Width="Auto"
  101. MinWidth="140"
  102. Binding="{Binding WarehouseNameGroupDisplay}"
  103. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  104. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  105. Header="{x:Static resource:Client_Resource.Content_WarehouseModels}" />
  106. <!-- 交割商品组 -->
  107. <DataGridTextColumn Width="Auto"
  108. MinWidth="140"
  109. Binding="{Binding DeliveryGoodsNameGroupDisplay}"
  110. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  111. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  112. Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
  113. <!-- 品牌组
  114. <DataGridTextColumn Width="Auto"
  115. MinWidth="100"
  116. Binding="{Binding BrandGroupDisplay}"
  117. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  118. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  119. Header="{x:Static resource:Client_Resource.Moduel_Brand}"
  120. SortMemberPath="StrOpenDirection" />-->
  121. <!-- 等级组
  122. <DataGridTextColumn Width="Auto"
  123. MinWidth="100"
  124. Binding="{Binding RankGroupDisplay}"
  125. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  126. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  127. Header="{x:Static resource:Client_Resource.Moduel_Level}" />-->
  128. <!-- 规格组
  129. <DataGridTextColumn Width="Auto"
  130. MinWidth="100"
  131. Binding="{Binding SpecGroupDisplay}"
  132. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  133. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  134. Header="{x:Static resource:Client_Resource.Moduel_Spec}" />-->
  135. <!-- 提货数量组
  136. <DataGridTextColumn Width="Auto"
  137. MinWidth="100"
  138. Binding="{Binding StoreOutQtyGroupDisplay}"
  139. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  140. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  141. Header="{x:Static resource:Client_Resource.Content_DeliveryLots}" />-->
  142. <!-- 申请时间 -->
  143. <DataGridTextColumn Width="Auto"
  144. MinWidth="140"
  145. Binding="{Binding RequestTime,
  146. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  147. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  148. Header="{x:Static resource:Client_Resource.Moduel_ApplyTime}" />
  149. <!-- 关联仓单组
  150. <DataGridTextColumn Width="Auto"
  151. MinWidth="120"
  152. Binding="{Binding WRCodeGroupDisplay}"
  153. CellStyle="{StaticResource DataGridCellColumnStyleToolTip}"
  154. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  155. Header="{x:Static resource:Client_Resource.Delivery_RelationWRCode}" />-->
  156. <!-- 备注
  157. <DataGridTextColumn Width="Auto"
  158. MinWidth="100"
  159. Binding="{Binding Remark}"
  160. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  161. Header="{x:Static resource:Client_Resource.DeliveryWarehouse_Remark}" />-->
  162. <!-- 状态 -->
  163. <DataGridTextColumn Width="Auto"
  164. MinWidth="100"
  165. Binding="{Binding AuditStatusDisplay}"
  166. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  167. Header="{x:Static resource:Client_Resource.Moduel_Status}" />
  168. <DataGridTemplateColumn>
  169. <DataGridTemplateColumn.Header>
  170. <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
  171. </DataGridTemplateColumn.Header>
  172. <DataGridTemplateColumn.CellTemplate>
  173. <DataTemplate>
  174. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  175. <!--查看详细-->
  176. <Button
  177. Command="{Binding Path=DataContext.SeeMoreDetailCommand,
  178. RelativeSource={RelativeSource Mode=FindAncestor,
  179. AncestorLevel=3,
  180. AncestorType={x:Type Grid}}}"
  181. CommandParameter="{Binding Path=SelectedItem,ElementName=TakeDeliveryGoodsDataGrid}"
  182. Padding="10,2"
  183. Height="20"
  184. Content="{x:Static resource:Client_Resource.Content_SeeMoreDetail}"
  185. Style="{DynamicResource ButtonWithBorderStyle}" />
  186. <!--撤销-->
  187. <Button Margin="10,0,0,0" Visibility="{Binding AuditStatus, Converter={StaticResource eAuditStatusToVisibityConverter}}"
  188. Command="{Binding Path=DataContext.CancelCommand,
  189. RelativeSource={RelativeSource Mode=FindAncestor,
  190. AncestorLevel=3,
  191. AncestorType={x:Type Grid}}}"
  192. Padding="10,2"
  193. Height="20"
  194. CommandParameter="{Binding Path=SelectedItem,ElementName=TakeDeliveryGoodsDataGrid}"
  195. Content="{x:Static resource:Client_Resource.Moduel_Canceled}"
  196. Style="{DynamicResource ButtonWithBorderStyle}" />
  197. </StackPanel>
  198. </DataTemplate>
  199. </DataGridTemplateColumn.CellTemplate>
  200. </DataGridTemplateColumn>
  201. </DataGrid.Columns>
  202. <DataGrid.ContextMenu>
  203. <ContextMenu>
  204. <MenuItem Command="{Binding CancelOrderCammand}"
  205. Header="{x:Static resource:Client_Resource.Button_Cancellation}"
  206. Style="{DynamicResource CommonMenuItem}" />
  207. <MenuItem Command="{Binding RefreshCommand}"
  208. Header="{x:Static resource:Client_Resource.Button_Refresh}"
  209. IsEnabled="True"
  210. Style="{DynamicResource CommonMenuItem}" />
  211. </ContextMenu>
  212. </DataGrid.ContextMenu>
  213. </dataGrid:MuchinfoDataGrid>
  214. </Grid>
  215. </xctk:BusyIndicator>
  216. </UserControl>