DeliveryWarehouseOrderView.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <UserControl x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryWarehouseOrderView"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  7. xmlns:ignore="http://www.galasoft.ch/ignore"
  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 DeliveryWarehouseOrder,
  12. Source={StaticResource Locator}}"
  13. mc:Ignorable="d ignore">
  14. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition />
  19. </Grid.RowDefinitions>
  20. <StackPanel Margin="0,4" Orientation="Horizontal">
  21. <TextBlock Margin="10,0"
  22. VerticalAlignment="Center"
  23. Foreground="{DynamicResource TextBlockForeground}"
  24. Text="{x:Static resource:Client_Resource.Content_Date}" />
  25. <DatePicker Width="120"
  26. HorizontalAlignment="Stretch"
  27. VerticalAlignment="Center"
  28. CalendarStyle="{DynamicResource CalendarStyle}"
  29. SelectedDate="{Binding StartTime,
  30. Mode=TwoWay}"
  31. TabIndex="7">
  32. <DatePicker.Resources>
  33. <Style TargetType="DatePickerTextBox">
  34. <Setter Property="IsReadOnly" Value="True" />
  35. <Setter Property="IsEnabled" Value="False" />
  36. </Style>
  37. </DatePicker.Resources>
  38. </DatePicker>
  39. <TextBlock Margin="5,0"
  40. VerticalAlignment="Center"
  41. Foreground="{DynamicResource TextBlockForeground}"
  42. Text="{x:Static resource:Client_Resource.Content_To}" />
  43. <DatePicker Width="120"
  44. HorizontalAlignment="Stretch"
  45. VerticalAlignment="Center"
  46. CalendarStyle="{DynamicResource CalendarStyle}"
  47. SelectedDate="{Binding EndTime,
  48. Mode=TwoWay}"
  49. TabIndex="7">
  50. <DatePicker.Resources>
  51. <Style TargetType="DatePickerTextBox">
  52. <Setter Property="IsReadOnly" Value="True" />
  53. <Setter Property="IsEnabled" Value="False" />
  54. </Style>
  55. </DatePicker.Resources>
  56. </DatePicker>
  57. <Button Width="70"
  58. Height="26"
  59. Margin="10,0"
  60. VerticalAlignment="Center"
  61. Command="{Binding RefreshCommand}"
  62. Content="{x:Static resource:Client_Resource.Button_Search}"
  63. Style="{DynamicResource CommonButtonStyle}" />
  64. <Button Width="70"
  65. Height="26"
  66. Margin="0,0"
  67. VerticalAlignment="Center"
  68. Command="{Binding ResetCommand}"
  69. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  70. Style="{DynamicResource CommonButtonStyle}" />
  71. </StackPanel>
  72. <!--
  73. <Button Grid.Row="0"
  74. Width="100"
  75. Height="26"
  76. Margin="0,0"
  77. HorizontalAlignment="Right"
  78. VerticalAlignment="Center"
  79. Command="{Binding DeliveryCommand}"
  80. Content="+仓单注册"
  81. Style="{DynamicResource CommonButtonStyle}" />
  82. -->
  83. <dataGrid:MuchinfoDataGrid Grid.Row="1"
  84. ItemsSource="{Binding AllAduitOrders}"
  85. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  86. SelectedItem="{Binding SelectEntrustOrder}"
  87. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  88. <DataGrid.Columns>
  89. <!-- 仓单号 -->
  90. <DataGridTextColumn Width="Auto"
  91. MinWidth="140"
  92. Binding="{Binding WRCode}"
  93. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  94. Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WRCode}" />
  95. <!-- 仓单类型 -->
  96. <DataGridTextColumn Width="Auto"
  97. MinWidth="140"
  98. Binding="{Binding WRTypeDisplay}"
  99. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  100. Header="{x:Static resource:Client_Resource.Content_StorageTypeName}" />
  101. <!-- 交割商品 -->
  102. <!--
  103. <DataGridTextColumn Width="Auto"
  104. MinWidth="140"
  105. Binding="{Binding DeliveryGoodsName}"
  106. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  107. Header="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
  108. -->
  109. <DataGridTextColumn Width="Auto"
  110. MinWidth="140"
  111. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  112. Header="{x:Static resource:Client_Resource.NDeliveryOrderView_WarehouseGoods}"
  113. SortMemberPath="GoodsCode">
  114. <DataGridTextColumn.Binding>
  115. <MultiBinding StringFormat="{}{0}/{1}">
  116. <Binding Path="DeliveryGoodsCode" />
  117. <Binding Path="DeliveryGoodsName" />
  118. </MultiBinding>
  119. </DataGridTextColumn.Binding>
  120. </DataGridTextColumn>
  121. <!-- 品牌 -->
  122. <DataGridTextColumn Width="Auto"
  123. MinWidth="140"
  124. Binding="{Binding Brand}"
  125. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  126. Header="{x:Static resource:Client_Resource.Moduel_Brand}" />
  127. <!-- 等级 -->
  128. <DataGridTextColumn Width="Auto"
  129. MinWidth="140"
  130. Binding="{Binding Rank}"
  131. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  132. Header="{x:Static resource:Client_Resource.Moduel_Level}" />
  133. <!-- 单位 -->
  134. <DataGridTextColumn Width="Auto"
  135. MinWidth="140"
  136. Binding="{Binding GoodsUnitIdDisplay}"
  137. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  138. Header="{x:Static resource:Client_Resource.Moduel_Unit}" />
  139. <!-- 规格 -->
  140. <DataGridTextColumn Width="Auto"
  141. MinWidth="140"
  142. Binding="{Binding Spec}"
  143. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  144. Header="{x:Static resource:Client_Resource.Moduel_Spec}" />
  145. <!-- 注册数量 -->
  146. <DataGridTextColumn Width="Auto"
  147. MinWidth="140"
  148. Binding="{Binding Qty}"
  149. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  150. Header="{x:Static resource:Client_Resource.DeliveryRegisterNumber}" />
  151. <!-- 冻结数量 -->
  152. <DataGridTextColumn Width="Auto"
  153. MinWidth="140"
  154. Binding="{Binding FreezeQty}"
  155. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  156. Header="{x:Static resource:Client_Resource.Content_FreezingNumber}" />
  157. <!-- 兑付数量 -->
  158. <DataGridTextColumn Width="Auto"
  159. MinWidth="140"
  160. Binding="{Binding PayQty}"
  161. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  162. Header="{x:Static resource:Client_Resource.Content_PayNumber}" />
  163. <!-- 存储仓库 -->
  164. <DataGridTextColumn Width="Auto"
  165. MinWidth="140"
  166. Binding="{Binding WareHouseName}"
  167. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  168. Header="{x:Static resource:Client_Resource.DeliveryWarehouse_WareHouseId}" />
  169. <!-- 库位 -->
  170. <DataGridTextColumn Width="Auto"
  171. MinWidth="100"
  172. Binding="{Binding StorePlace}"
  173. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  174. Header="{x:Static resource:Client_Resource.Moduel_StorePlace}" />
  175. <!-- 货值金额 25817 -->
  176. <!--
  177. <DataGridTextColumn Width="Auto"
  178. MinWidth="100"
  179. Binding="{Binding StoreAmount}"
  180. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  181. Header="{x:Static resource:Client_Resource.Delivery_StoreAmount}" />
  182. -->
  183. <!-- 仓储费 -->
  184. <DataGridTextColumn Width="Auto"
  185. MinWidth="100"
  186. Binding="{Binding StoreCharge}"
  187. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  188. Header="{x:Static resource:Client_Resource.Delivery_StoreCharge}" />
  189. <!--
  190. 申请时间
  191. <DataGridTextColumn Width="Auto"
  192. MinWidth="160"
  193. Binding="{Binding RequestTime,
  194. StringFormat=\{0:yyyy-MM-dd HH:mm:ss\}}"
  195. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  196. Header="{x:Static resource:Client_Resource.Moduel_ApplyTime}" />
  197. -->
  198. <!-- 备注 -->
  199. <DataGridTextColumn Width="Auto"
  200. MinWidth="100"
  201. Binding="{Binding Remark}"
  202. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  203. Header="{x:Static resource:Client_Resource.DeliveryWarehouse_Remark}" />
  204. <!-- 状态 -->
  205. <DataGridTextColumn Width="Auto"
  206. MinWidth="100"
  207. Binding="{Binding StatusDisplay}"
  208. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  209. Header="{x:Static resource:Client_Resource.Content_State}" />
  210. <!--
  211. Command="{Binding Path=DeliveryEntruct.CancelCommand,
  212. Source={StaticResource Locator},
  213. Mode=OneWay}"
  214. -->
  215. <DataGridTemplateColumn>
  216. <DataGridTemplateColumn.Header>
  217. <TextBlock Text="{x:Static resource:Client_Resource.Content_Operation}" />
  218. </DataGridTemplateColumn.Header>
  219. <DataGridTemplateColumn.CellTemplate>
  220. <DataTemplate>
  221. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  222. <Button Height="20"
  223. Command="{Binding Path=DataContext.PopDetailCommand,
  224. RelativeSource={RelativeSource Mode=FindAncestor,
  225. AncestorLevel=3,
  226. AncestorType={x:Type Grid}}}"
  227. CommandParameter="{Binding}"
  228. Content="{x:Static resource:Client_Resource.DeliveryWarehouseOrder_Detail}"
  229. Padding="10,2"
  230. Style="{DynamicResource ButtonWithBorderStyle}" />
  231. <Button Height="20"
  232. Command="{Binding Path=DataContext.PopUpRecieveInfoCommand,
  233. RelativeSource={RelativeSource Mode=FindAncestor,
  234. AncestorLevel=3,
  235. AncestorType={x:Type Grid}}}"
  236. Content="{x:Static resource:Client_Resource.DeliveryWarehouseOrder_TakeGoods}"
  237. Padding="10,2"
  238. Style="{DynamicResource ButtonWithBorderStyle}"
  239. Visibility="{Binding IsVisibility}" />
  240. </StackPanel>
  241. </DataTemplate>
  242. </DataGridTemplateColumn.CellTemplate>
  243. </DataGridTemplateColumn>
  244. </DataGrid.Columns>
  245. <!--
  246. <DataGrid.ContextMenu>
  247. <ContextMenu>
  248. <MenuItem Command="{Binding CancelCommand}"
  249. Header="{x:Static resource:Client_Resource.Button_Cancellation}"
  250. Style="{DynamicResource CommonMenuItem}" />
  251. </ContextMenu>
  252. </DataGrid.ContextMenu>
  253. -->
  254. </dataGrid:MuchinfoDataGrid>
  255. </Grid>
  256. </xctk:BusyIndicator>
  257. </UserControl>