终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

443 líneas
21 KiB

  1. <Window
  2. x:Class="BPASmartClient.OrderListDialogView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.ViewModel;assembly=BPASmartClient.ViewModel"
  9. Title="OrderListDialogView"
  10. Width="800"
  11. Height="450"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. MouseMove="Window_MouseMove"
  15. Opacity="0.8"
  16. Topmost="True"
  17. WindowStartupLocation="CenterScreen"
  18. WindowStyle="None"
  19. mc:Ignorable="d">
  20. <Window.DataContext>
  21. <vm:OrderListDialogViewModel />
  22. </Window.DataContext>
  23. <Window.Resources>
  24. <ResourceDictionary>
  25. <ResourceDictionary.MergedDictionaries>
  26. <ResourceDictionary>
  27. <SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
  28. <SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
  29. <SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
  30. <SolidColorBrush x:Key="CursorColor" Color="Aqua" />
  31. <SolidColorBrush x:Key="TitleBorderColor" Color="#552AB2E7" />
  32. <SolidColorBrush x:Key="TextBlockForeground" Color="#9934F7F7" />
  33. <!--<con:ColorConverter x:Key="ColorConverter" />
  34. <con:TextConverter x:Key="TextConverter" />-->
  35. <Style x:Key="buttonStyle" TargetType="Button">
  36. <Setter Property="FontFamily" Value="楷体" />
  37. <Setter Property="Width" Value="100" />
  38. <Setter Property="FontSize" Value="18" />
  39. <Setter Property="Foreground" Value="Aqua" />
  40. <Setter Property="Template">
  41. <Setter.Value>
  42. <ControlTemplate TargetType="Button">
  43. <Grid x:Name="gr">
  44. <ContentControl
  45. HorizontalAlignment="Center"
  46. VerticalAlignment="Center"
  47. Content="{TemplateBinding Content}"
  48. Foreground="{TemplateBinding Foreground}" />
  49. <Polygon
  50. x:Name="poly"
  51. Points="0 0,80 0,100 30,20 30"
  52. Stroke="#FF34F7F7"
  53. StrokeThickness="2" />
  54. </Grid>
  55. <ControlTemplate.Triggers>
  56. <Trigger Property="IsMouseOver" Value="True">
  57. <Setter TargetName="poly" Property="Fill" Value="#2234F7F7" />
  58. </Trigger>
  59. </ControlTemplate.Triggers>
  60. </ControlTemplate>
  61. </Setter.Value>
  62. </Setter>
  63. </Style>
  64. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  65. <Setter Property="FontFamily" Value="楷体" />
  66. <Setter Property="FontSize" Value="16" />
  67. <Setter Property="Background" Value="Transparent" />
  68. <!--<Setter Property="Foreground" Value="{StaticResource FontColor}" />-->
  69. <Setter Property="VerticalAlignment" Value="Center" />
  70. <Setter Property="HorizontalAlignment" Value="Center" />
  71. </Style>
  72. </ResourceDictionary>
  73. </ResourceDictionary.MergedDictionaries>
  74. </ResourceDictionary>
  75. </Window.Resources>
  76. <Grid Background="#103153">
  77. <Grid.RowDefinitions>
  78. <RowDefinition Height="35" />
  79. <RowDefinition />
  80. <RowDefinition Height="50" />
  81. </Grid.RowDefinitions>
  82. <!--#region 标题栏设置-->
  83. <Border
  84. x:Name="MoveBorder"
  85. Height="35"
  86. VerticalAlignment="Top"
  87. Background="#0C2349"
  88. BorderBrush="#55ffffff"
  89. BorderThickness="0,0,0,1">
  90. <StackPanel Orientation="Horizontal">
  91. <Image Margin="15,5,0,5" Source="pack://application:,,,/BPASmartClient.CustomResource;component/Image/HBL.png" />
  92. <TextBlock
  93. Name="tbTitle"
  94. Margin="10,0"
  95. HorizontalAlignment="Left"
  96. VerticalAlignment="Center"
  97. FontSize="18"
  98. Foreground="White"
  99. Text="订单数据" />
  100. </StackPanel>
  101. </Border>
  102. <UniformGrid
  103. Width="150"
  104. Height="30"
  105. HorizontalAlignment="Right"
  106. Columns="3">
  107. <Button
  108. Name="ButMin"
  109. Content="&#xe664;"
  110. Style="{StaticResource TitleBarStyle}"
  111. Visibility="Hidden" />
  112. <Button
  113. Name="ButMax"
  114. Content="&#xe65d;"
  115. Style="{StaticResource TitleBarStyle}"
  116. Visibility="Hidden" />
  117. <Button
  118. Name="ButClose"
  119. Command="{Binding CloseCommand}"
  120. Content="&#xe602;"
  121. FontSize="30"
  122. Style="{StaticResource TitleBarStyle}" />
  123. </UniformGrid>
  124. <!--#endregion-->
  125. <!--#region 表单数据-->
  126. <Grid Grid.Row="1">
  127. <!--<Grid.RowDefinitions>
  128. <RowDefinition Height="30" />
  129. <RowDefinition />
  130. </Grid.RowDefinitions>-->
  131. <!--#region 表格标题栏设置-->
  132. <!--
  133. <Grid>
  134. <Grid.ColumnDefinitions>
  135. <ColumnDefinition Width="0.1*" />
  136. <ColumnDefinition Width="0.3*" />
  137. <ColumnDefinition />
  138. <ColumnDefinition Width="0.7*" />
  139. </Grid.ColumnDefinitions>
  140. <CheckBox
  141. Height="20"
  142. HorizontalAlignment="Center"
  143. VerticalAlignment="Center"
  144. Background="#FF2AB2E7"
  145. Content=""
  146. FontSize="14"
  147. Foreground="#ddd"
  148. IsChecked="{Binding AllSelected}"
  149. Template="{StaticResource CbTemplate}" />
  150. <Border
  151. Grid.Column="1"
  152. Grid.ColumnSpan="3"
  153. Background="#882AB2E7" />
  154. <Grid Grid.Column="1">
  155. <TextBlock
  156. HorizontalAlignment="Center"
  157. VerticalAlignment="Center"
  158. FontSize="16"
  159. Foreground="{StaticResource TitleFontColor}"
  160. Text="取餐号" />
  161. <Border BorderBrush="{StaticResource TitleBorderColor}" BorderThickness="1,0,1,0" />
  162. </Grid>
  163. <TextBlock
  164. Grid.Column="2"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center"
  167. FontSize="16"
  168. Foreground="{StaticResource TitleFontColor}"
  169. Text="商品名称" />
  170. <Grid Grid.Column="3">
  171. <TextBlock
  172. HorizontalAlignment="Center"
  173. VerticalAlignment="Center"
  174. FontSize="16"
  175. Foreground="{StaticResource TitleFontColor}"
  176. Text="订单状态" />
  177. <Border BorderBrush="{StaticResource TitleBorderColor}" BorderThickness="1,0,1,0" />
  178. </Grid>
  179. <Border
  180. Grid.ColumnSpan="8"
  181. BorderBrush="{StaticResource BorderSolid}"
  182. BorderThickness="1,0,1,1" />
  183. </Grid>
  184. -->
  185. <!--#endregion-->
  186. <!--#region 表格数据显示-->
  187. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  188. <ItemsControl ItemsSource="{Binding orderStatusLists}">
  189. <ItemsControl.ItemTemplate>
  190. <DataTemplate>
  191. <Grid>
  192. <StackPanel Margin="0,0,0,15">
  193. <CheckBox
  194. Height="20"
  195. HorizontalAlignment="Left"
  196. VerticalAlignment="Center"
  197. Background="#FF2AB2E7"
  198. Content="{Binding DeviceId}"
  199. FontSize="14"
  200. Foreground="#ddd"
  201. IsChecked="{Binding IsAllSelect}"
  202. Template="{StaticResource CbTemplate}" />
  203. <!--#region 表格标题栏设置-->
  204. <Grid Height="30" Margin="23,5,0,0">
  205. <Grid.ColumnDefinitions>
  206. <ColumnDefinition Width="0.068*" />
  207. <ColumnDefinition Width="0.3*" />
  208. <ColumnDefinition />
  209. <ColumnDefinition Width="0.7*" />
  210. </Grid.ColumnDefinitions>
  211. <!--<CheckBox
  212. Height="20"
  213. HorizontalAlignment="Center"
  214. VerticalAlignment="Center"
  215. Background="#FF2AB2E7"
  216. Content=""
  217. FontSize="14"
  218. Foreground="#ddd"
  219. IsChecked="{Binding AllSelected}"
  220. Template="{StaticResource CbTemplate}" />-->
  221. <!--<Border
  222. Grid.Column="1"
  223. Grid.ColumnSpan="3"
  224. Background="#882AB2E7" />-->
  225. <Grid Grid.Column="1">
  226. <TextBlock
  227. HorizontalAlignment="Center"
  228. VerticalAlignment="Center"
  229. FontSize="16"
  230. Foreground="{StaticResource TitleFontColor}"
  231. Text="取餐号" />
  232. <Border BorderBrush="{StaticResource TitleBorderColor}" BorderThickness="1,0,1,0" />
  233. </Grid>
  234. <TextBlock
  235. Grid.Column="2"
  236. HorizontalAlignment="Center"
  237. VerticalAlignment="Center"
  238. FontSize="16"
  239. Foreground="{StaticResource TitleFontColor}"
  240. Text="商品名称" />
  241. <Grid Grid.Column="3">
  242. <TextBlock
  243. HorizontalAlignment="Center"
  244. VerticalAlignment="Center"
  245. FontSize="16"
  246. Foreground="{StaticResource TitleFontColor}"
  247. Text="订单状态" />
  248. <Border BorderBrush="{StaticResource TitleBorderColor}" BorderThickness="1,0,1,0" />
  249. </Grid>
  250. <Border
  251. Grid.Column="1"
  252. Grid.ColumnSpan="3"
  253. Background="#882AB2E7"
  254. BorderBrush="{StaticResource BorderSolid}"
  255. BorderThickness="1,0,1,1" />
  256. </Grid>
  257. <!--#endregion-->
  258. <ItemsControl ItemsSource="{Binding morkOrderPushes}">
  259. <ItemsControl.ItemTemplate>
  260. <DataTemplate>
  261. <Grid Height="30" Margin="23,0,0,0">
  262. <Grid.ColumnDefinitions>
  263. <ColumnDefinition Width="0.068*" />
  264. <ColumnDefinition Width="0.3*" />
  265. <ColumnDefinition />
  266. <ColumnDefinition Width="0.7*" />
  267. </Grid.ColumnDefinitions>
  268. <CheckBox
  269. Height="20"
  270. HorizontalAlignment="Center"
  271. VerticalAlignment="Center"
  272. Background="#FF2AB2E7"
  273. Content=""
  274. FontSize="14"
  275. Foreground="#ddd"
  276. IsChecked="{Binding IsSelected}"
  277. Template="{StaticResource CbTemplate}" />
  278. <Grid Grid.Column="1">
  279. <TextBlock
  280. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  281. Style="{StaticResource TextBlockStyle}"
  282. Text="{Binding OrderPush.SortNum}" />
  283. <Border BorderBrush="{StaticResource BorderSolid}" BorderThickness="1,0,1,0" />
  284. </Grid>
  285. <TextBlock
  286. Grid.Column="2"
  287. Margin="5,0,0,0"
  288. HorizontalAlignment="Left"
  289. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  290. Style="{StaticResource TextBlockStyle}"
  291. Text="{Binding OrderPush.GoodsName}" />
  292. <Grid Grid.Column="3">
  293. <TextBlock
  294. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  295. Style="{StaticResource TextBlockStyle}"
  296. Text="{Binding OrderStatus, Converter={StaticResource TextConverter}}" />
  297. <Border BorderBrush="{StaticResource BorderSolid}" BorderThickness="1,0,1,0" />
  298. </Grid>
  299. <Border
  300. Grid.Column="1"
  301. Grid.ColumnSpan="8"
  302. BorderBrush="{StaticResource BorderSolid}"
  303. BorderThickness="1,0,1,1" />
  304. </Grid>
  305. </DataTemplate>
  306. </ItemsControl.ItemTemplate>
  307. </ItemsControl>
  308. </StackPanel>
  309. </Grid>
  310. <!--<Grid Height="30">
  311. <Grid.ColumnDefinitions>
  312. <ColumnDefinition Width="0.1*" />
  313. <ColumnDefinition Width="0.3*" />
  314. <ColumnDefinition />
  315. <ColumnDefinition Width="0.7*" />
  316. </Grid.ColumnDefinitions>
  317. <CheckBox
  318. Height="20"
  319. HorizontalAlignment="Center"
  320. VerticalAlignment="Center"
  321. Background="#FF2AB2E7"
  322. Content=""
  323. FontSize="14"
  324. Foreground="#ddd"
  325. IsChecked="{Binding IsSelected}"
  326. Template="{StaticResource CbTemplate}" />
  327. <Grid Grid.Column="1">
  328. <TextBlock
  329. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  330. Style="{StaticResource TextBlockStyle}"
  331. Text="{Binding OrderPush.SortNum}" />
  332. <Border BorderBrush="{StaticResource BorderSolid}" BorderThickness="1,0,1,0" />
  333. </Grid>
  334. <TextBlock
  335. Grid.Column="2"
  336. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  337. Style="{StaticResource TextBlockStyle}"
  338. Text="{Binding OrderPush.GoodsName}" />
  339. <Grid Grid.Column="3">
  340. <TextBlock
  341. Foreground="{Binding OrderStatus, Converter={StaticResource ColorConverter}}"
  342. Style="{StaticResource TextBlockStyle}"
  343. Text="{Binding OrderStatus, Converter={StaticResource TextConverter}}" />
  344. <Border BorderBrush="{StaticResource BorderSolid}" BorderThickness="1,0,1,0" />
  345. </Grid>
  346. <Border
  347. Grid.ColumnSpan="8"
  348. BorderBrush="{StaticResource BorderSolid}"
  349. BorderThickness="1,0,1,1" />
  350. </Grid>-->
  351. </DataTemplate>
  352. </ItemsControl.ItemTemplate>
  353. </ItemsControl>
  354. </ScrollViewer>
  355. <!--#endregion-->
  356. </Grid>
  357. <!--#endregion-->
  358. <!--#region 信息取-->
  359. <Grid Grid.Row="2">
  360. <Grid.ColumnDefinitions>
  361. <ColumnDefinition />
  362. <ColumnDefinition Width="0.2*" />
  363. <ColumnDefinition Width="0.2*" />
  364. </Grid.ColumnDefinitions>
  365. <TextBlock
  366. Margin="10,0,0,0"
  367. HorizontalAlignment="Center"
  368. VerticalAlignment="Center"
  369. FontFamily="楷体"
  370. FontSize="20"
  371. Foreground="Yellow"
  372. Text="请选择需要继续制作的订单,取消或关闭将删除所有订单。" />
  373. <Button
  374. Grid.Column="1"
  375. VerticalAlignment="Center"
  376. Command="{Binding CancelCommand}"
  377. Content="取消"
  378. Style="{StaticResource buttonStyle}" />
  379. <Button
  380. Grid.Column="2"
  381. VerticalAlignment="Center"
  382. Command="{Binding ConfirmCommand}"
  383. Content="确认"
  384. Style="{StaticResource buttonStyle}" />
  385. </Grid>
  386. <!--#endregion-->
  387. </Grid>
  388. </Window>