终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

233 linhas
11 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.JXJFoodSmallStation.View.RecipeReceiveView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:control="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <SolidColorBrush x:Key="BorderSolid" Color="#5523CACA" />
  16. <SolidColorBrush x:Key="FontColor" Color="#FF2AB2E7" />
  17. <SolidColorBrush x:Key="TitleFontColor" Color="#ddd" />
  18. <SolidColorBrush x:Key="CursorColor" Color="Aqua" />
  19. <SolidColorBrush x:Key="TitleBorderColor" Color="#FF2AB2E7" />
  20. <SolidColorBrush x:Key="TextBlockForeground" Color="#9934F7F7" />
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="20" />
  24. <Setter Property="Background" Value="Transparent" />
  25. <!--<Setter Property="Foreground" Value="{StaticResource FontColor}" />-->
  26. <Setter Property="VerticalAlignment" Value="Center" />
  27. <Setter Property="HorizontalAlignment" Value="Center" />
  28. </Style>
  29. <Style x:Key="buttonStyle" TargetType="Button">
  30. <Setter Property="Background" Value="Transparent" />
  31. <Setter Property="FontSize" Value="16" />
  32. <Setter Property="Foreground" Value="Aqua" />
  33. <Setter Property="HorizontalAlignment" Value="Center" />
  34. <Setter Property="BorderThickness" Value="0" />
  35. </Style>
  36. </UserControl.Resources>
  37. <UserControl.DataContext>
  38. <vm:RecipeReceiveViewModel />
  39. </UserControl.DataContext>
  40. <Grid>
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="50" />
  43. <RowDefinition Height="40" />
  44. <RowDefinition />
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  47. <CheckBox
  48. x:Name="NotUseSmallDosing"
  49. Margin="0,0,10,0"
  50. VerticalAlignment="Center"
  51. VerticalContentAlignment="Center"
  52. Content="不使用小料站配料"
  53. FontFamily="楷体"
  54. FontSize="20"
  55. Foreground="Aqua"
  56. IsChecked="{Binding NotUseSmallDosing}" />
  57. <CheckBox
  58. x:Name="IsUseWindSend"
  59. Margin="0,0,10,0"
  60. VerticalAlignment="Center"
  61. VerticalContentAlignment="Center"
  62. Content="使用粉料仓配料"
  63. FontFamily="楷体"
  64. FontSize="20"
  65. Foreground="Aqua"
  66. IsChecked="{Binding IsUseWindSendDosing}" />
  67. <CheckBox
  68. x:Name="IsUseStockBin"
  69. VerticalAlignment="Center"
  70. VerticalContentAlignment="Center"
  71. Content="本地小料仓配方配料"
  72. FontFamily="楷体"
  73. FontSize="20"
  74. Foreground="Aqua"
  75. IsChecked="{Binding IsUseLocalRecipe}" />
  76. <pry:IcoButton
  77. Width="140"
  78. Margin="10"
  79. HorizontalAlignment="Right"
  80. Command="{Binding NewRecipe}"
  81. Content="自定义配方"
  82. FontSize="16"
  83. Foreground="Aqua"
  84. IcoText="&#xe626;"
  85. Style="{StaticResource IcoButtonStyle}" />
  86. <pry:IcoButton
  87. Width="140"
  88. Margin="10"
  89. HorizontalAlignment="Right"
  90. Command="{Binding NewSimulateRecipe}"
  91. Content="新建模拟配方"
  92. FontSize="16"
  93. Foreground="Aqua"
  94. IcoText="&#xe626;"
  95. Style="{StaticResource IcoButtonStyle}" />
  96. <pry:IcoButton
  97. Width="140"
  98. Margin="10"
  99. HorizontalAlignment="Right"
  100. Command="{Binding ClearAllRecipe}"
  101. Content="清除所有配方"
  102. FontSize="16"
  103. Foreground="Aqua"
  104. IcoText="&#xe635;"
  105. IsEnabled="True"
  106. Style="{StaticResource IcoButtonStyle}" />
  107. </StackPanel>
  108. <Button
  109. Grid.Row="1"
  110. Command="{Binding SelectRecipesCommand}"
  111. Content="筛选配方"
  112. Style="{StaticResource ButtonStyle}" />
  113. <ScrollViewer Grid.Row="2">
  114. <ListView
  115. Margin="5"
  116. VerticalAlignment="Top"
  117. Background="Transparent"
  118. BorderThickness="0"
  119. ItemsSource="{Binding SelectedRecipes}"
  120. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  121. <ListView.ItemsPanel>
  122. <ItemsPanelTemplate>
  123. <UniformGrid
  124. HorizontalAlignment="Left"
  125. VerticalAlignment="Top"
  126. Columns="8" />
  127. </ItemsPanelTemplate>
  128. </ListView.ItemsPanel>
  129. <ListView.ItemTemplate>
  130. <DataTemplate>
  131. <Border Margin="5" Background="LightSkyBlue">
  132. <Grid>
  133. <Grid.RowDefinitions>
  134. <RowDefinition />
  135. <RowDefinition Height="0.25*" />
  136. <RowDefinition Height="0.2*" />
  137. </Grid.RowDefinitions>
  138. <Image Source="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  139. <WrapPanel Grid.Row="1">
  140. <TextBlock
  141. Margin="2,0,0,0"
  142. Foreground="#dd000000"
  143. Text="名称:" />
  144. <TextBlock
  145. Margin="2,0,0,0"
  146. Foreground="#dd000000"
  147. Text="{Binding RecipeName}" />
  148. <TextBlock
  149. Margin="5,0,0,0"
  150. Foreground="#dd000000"
  151. Text="编号:" />
  152. <TextBlock
  153. Margin="2,0,0,0"
  154. Foreground="#dd000000"
  155. Text="{Binding RecipeCode}" />
  156. <TextBlock
  157. Margin="5,0,0,0"
  158. Foreground="#dd000000"
  159. Text="托盘号:" />
  160. <TextBlock
  161. Margin="2,0,0,0"
  162. Foreground="#dd000000"
  163. Text="{Binding TrayCode}" />
  164. </WrapPanel>
  165. <Grid
  166. Name="gr"
  167. Grid.Row="2"
  168. Height="30">
  169. <Grid.ColumnDefinitions>
  170. <ColumnDefinition />
  171. <ColumnDefinition />
  172. <ColumnDefinition />
  173. </Grid.ColumnDefinitions>
  174. <pry:IcoButton
  175. Grid.Column="0"
  176. Height="{Binding ElementName=gr, Path=ActualHeight}"
  177. HorizontalAlignment="Center"
  178. VerticalAlignment="Center"
  179. BorderThickness="0"
  180. Command="{Binding DataContext.DetailsCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  181. CommandParameter="{Binding RecipeCode}"
  182. Content="编辑"
  183. EnterBackground="#FF2AB2E7"
  184. Foreground="#dd000000"
  185. IcoText="&#xe636;"
  186. Style="{StaticResource IcoButtonStyle}" />
  187. <pry:IcoButton
  188. Grid.Column="1"
  189. Height="{Binding ElementName=gr, Path=ActualHeight}"
  190. HorizontalAlignment="Center"
  191. VerticalAlignment="Center"
  192. BorderThickness="0"
  193. Command="{Binding DataContext.IssueRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  194. CommandParameter="{Binding RecipeCode}"
  195. Content="下发"
  196. EnterBackground="#FF2AB2E7"
  197. Foreground="#dd000000"
  198. IcoText="&#xe636;"
  199. Style="{StaticResource IcoButtonStyle}" />
  200. <pry:IcoButton
  201. Grid.Column="2"
  202. Height="{Binding ElementName=gr, Path=ActualHeight}"
  203. HorizontalAlignment="Center"
  204. VerticalAlignment="Center"
  205. BorderThickness="0"
  206. Command="{Binding DataContext.RemoveRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  207. CommandParameter="{Binding RecipeCode}"
  208. Content="删除"
  209. EnterBackground="#FF2AB2E7"
  210. Foreground="#dd000000"
  211. IcoText="&#xe636;"
  212. Style="{StaticResource IcoButtonStyle}" />
  213. </Grid>
  214. </Grid>
  215. </Border>
  216. </DataTemplate>
  217. </ListView.ItemTemplate>
  218. </ListView>
  219. </ScrollViewer>
  220. </Grid>
  221. </UserControl>