终端一体化运控平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

229 行
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 Content="筛选配方" Style="{StaticResource ButtonStyle}" Command="{Binding SelectRecipesCommand}" Grid.Row="1"/>
  109. <ScrollViewer Grid.Row="2">
  110. <ListView
  111. Margin="5"
  112. VerticalAlignment="Top"
  113. Background="Transparent"
  114. BorderThickness="0"
  115. ItemsSource="{Binding SelectedRecipes}"
  116. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  117. <ListView.ItemsPanel>
  118. <ItemsPanelTemplate>
  119. <UniformGrid
  120. HorizontalAlignment="Left"
  121. VerticalAlignment="Top"
  122. Columns="8" />
  123. </ItemsPanelTemplate>
  124. </ListView.ItemsPanel>
  125. <ListView.ItemTemplate>
  126. <DataTemplate>
  127. <Border Margin="5" Background="LightSkyBlue">
  128. <Grid>
  129. <Grid.RowDefinitions>
  130. <RowDefinition />
  131. <RowDefinition Height="0.25*" />
  132. <RowDefinition Height="0.2*" />
  133. </Grid.RowDefinitions>
  134. <Image Source="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  135. <WrapPanel Grid.Row="1">
  136. <TextBlock
  137. Margin="2,0,0,0"
  138. Foreground="#dd000000"
  139. Text="名称:" />
  140. <TextBlock
  141. Margin="2,0,0,0"
  142. Foreground="#dd000000"
  143. Text="{Binding RecipeName}" />
  144. <TextBlock
  145. Margin="5,0,0,0"
  146. Foreground="#dd000000"
  147. Text="编号:" />
  148. <TextBlock
  149. Margin="2,0,0,0"
  150. Foreground="#dd000000"
  151. Text="{Binding RecipeCode}" />
  152. <TextBlock
  153. Margin="5,0,0,0"
  154. Foreground="#dd000000"
  155. Text="托盘号:" />
  156. <TextBlock
  157. Margin="2,0,0,0"
  158. Foreground="#dd000000"
  159. Text="{Binding TrayCode}" />
  160. </WrapPanel>
  161. <Grid
  162. Name="gr"
  163. Grid.Row="2"
  164. Height="30">
  165. <Grid.ColumnDefinitions>
  166. <ColumnDefinition />
  167. <ColumnDefinition />
  168. <ColumnDefinition />
  169. </Grid.ColumnDefinitions>
  170. <pry:IcoButton
  171. Grid.Column="0"
  172. Height="{Binding ElementName=gr, Path=ActualHeight}"
  173. HorizontalAlignment="Center"
  174. VerticalAlignment="Center"
  175. BorderThickness="0"
  176. Command="{Binding DataContext.DetailsCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  177. CommandParameter="{Binding RecipeCode}"
  178. Content="编辑"
  179. EnterBackground="#FF2AB2E7"
  180. Foreground="#dd000000"
  181. IcoText="&#xe636;"
  182. Style="{StaticResource IcoButtonStyle}" />
  183. <pry:IcoButton
  184. Grid.Column="1"
  185. Height="{Binding ElementName=gr, Path=ActualHeight}"
  186. HorizontalAlignment="Center"
  187. VerticalAlignment="Center"
  188. BorderThickness="0"
  189. Command="{Binding DataContext.IssueRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  190. CommandParameter="{Binding RecipeCode}"
  191. Content="下发"
  192. EnterBackground="#FF2AB2E7"
  193. Foreground="#dd000000"
  194. IcoText="&#xe636;"
  195. Style="{StaticResource IcoButtonStyle}" />
  196. <pry:IcoButton
  197. Grid.Column="2"
  198. Height="{Binding ElementName=gr, Path=ActualHeight}"
  199. HorizontalAlignment="Center"
  200. VerticalAlignment="Center"
  201. BorderThickness="0"
  202. Command="{Binding DataContext.RemoveRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  203. CommandParameter="{Binding RecipeCode}"
  204. Content="删除"
  205. EnterBackground="#FF2AB2E7"
  206. Foreground="#dd000000"
  207. IcoText="&#xe636;"
  208. Style="{StaticResource IcoButtonStyle}" />
  209. </Grid>
  210. </Grid>
  211. </Border>
  212. </DataTemplate>
  213. </ListView.ItemTemplate>
  214. </ListView>
  215. </ScrollViewer>
  216. </Grid>
  217. </UserControl>