终端一体化运控平台
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.
 
 
 

227 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 />
  44. </Grid.RowDefinitions>
  45. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  46. <CheckBox
  47. x:Name="NotUseSmallDosing"
  48. Margin="0,0,10,0"
  49. VerticalAlignment="Center"
  50. VerticalContentAlignment="Center"
  51. Content="不使用小料站配料"
  52. FontFamily="楷体"
  53. FontSize="20"
  54. Foreground="Aqua"
  55. IsChecked="{Binding NotUseSmallDosing}" />
  56. <CheckBox
  57. x:Name="IsUseWindSend"
  58. Margin="0,0,10,0"
  59. VerticalAlignment="Center"
  60. VerticalContentAlignment="Center"
  61. Content="使用粉料仓配料"
  62. FontFamily="楷体"
  63. FontSize="20"
  64. Foreground="Aqua"
  65. IsChecked="{Binding IsUseWindSendDosing}" />
  66. <CheckBox
  67. x:Name="IsUseStockBin"
  68. VerticalAlignment="Center"
  69. VerticalContentAlignment="Center"
  70. Content="本地小料仓配方配料"
  71. FontFamily="楷体"
  72. FontSize="20"
  73. Foreground="Aqua"
  74. IsChecked="{Binding IsUseLocalRecipe}" />
  75. <pry:IcoButton
  76. Width="140"
  77. Margin="10"
  78. HorizontalAlignment="Right"
  79. Command="{Binding NewRecipe}"
  80. Content="自定义配方"
  81. FontSize="16"
  82. Foreground="Aqua"
  83. IcoText="&#xe626;"
  84. Style="{StaticResource IcoButtonStyle}" />
  85. <pry:IcoButton
  86. Width="140"
  87. Margin="10"
  88. HorizontalAlignment="Right"
  89. Command="{Binding NewSimulateRecipe}"
  90. Content="新建模拟配方"
  91. FontSize="16"
  92. Foreground="Aqua"
  93. IcoText="&#xe626;"
  94. Style="{StaticResource IcoButtonStyle}" />
  95. <pry:IcoButton
  96. Width="140"
  97. Margin="10"
  98. HorizontalAlignment="Right"
  99. Command="{Binding ClearAllRecipe}"
  100. Content="清除所有配方"
  101. FontSize="16"
  102. Foreground="Aqua"
  103. IcoText="&#xe635;"
  104. IsEnabled="True"
  105. Style="{StaticResource IcoButtonStyle}" />
  106. </StackPanel>
  107. <ScrollViewer Grid.Row="1">
  108. <ListView
  109. Margin="5"
  110. VerticalAlignment="Top"
  111. Background="Transparent"
  112. BorderThickness="0"
  113. ItemsSource="{Binding Recipes}"
  114. ScrollViewer.HorizontalScrollBarVisibility="Disabled">
  115. <ListView.ItemsPanel>
  116. <ItemsPanelTemplate>
  117. <UniformGrid
  118. HorizontalAlignment="Left"
  119. VerticalAlignment="Top"
  120. Columns="8" />
  121. </ItemsPanelTemplate>
  122. </ListView.ItemsPanel>
  123. <ListView.ItemTemplate>
  124. <DataTemplate>
  125. <Border Margin="5" Background="LightSkyBlue">
  126. <Grid>
  127. <Grid.RowDefinitions>
  128. <RowDefinition />
  129. <RowDefinition Height="0.25*" />
  130. <RowDefinition Height="0.2*" />
  131. </Grid.RowDefinitions>
  132. <Image Source="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
  133. <WrapPanel Grid.Row="1">
  134. <TextBlock
  135. Margin="2,0,0,0"
  136. Foreground="#dd000000"
  137. Text="名称:" />
  138. <TextBlock
  139. Margin="2,0,0,0"
  140. Foreground="#dd000000"
  141. Text="{Binding RecipeName}" />
  142. <TextBlock
  143. Margin="5,0,0,0"
  144. Foreground="#dd000000"
  145. Text="编号:" />
  146. <TextBlock
  147. Margin="2,0,0,0"
  148. Foreground="#dd000000"
  149. Text="{Binding RecipeCode}" />
  150. <TextBlock
  151. Margin="5,0,0,0"
  152. Foreground="#dd000000"
  153. Text="托盘号:" />
  154. <TextBlock
  155. Margin="2,0,0,0"
  156. Foreground="#dd000000"
  157. Text="{Binding TrayCode}" />
  158. </WrapPanel>
  159. <Grid
  160. Name="gr"
  161. Grid.Row="2"
  162. Height="30">
  163. <Grid.ColumnDefinitions>
  164. <ColumnDefinition />
  165. <ColumnDefinition />
  166. <ColumnDefinition />
  167. </Grid.ColumnDefinitions>
  168. <pry:IcoButton
  169. Grid.Column="0"
  170. Height="{Binding ElementName=gr, Path=ActualHeight}"
  171. HorizontalAlignment="Center"
  172. VerticalAlignment="Center"
  173. BorderThickness="0"
  174. Command="{Binding DataContext.DetailsCommand, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  175. CommandParameter="{Binding RecipeCode}"
  176. Content="编辑"
  177. EnterBackground="#FF2AB2E7"
  178. Foreground="#dd000000"
  179. IcoText="&#xe636;"
  180. Style="{StaticResource IcoButtonStyle}" />
  181. <pry:IcoButton
  182. Grid.Column="1"
  183. Height="{Binding ElementName=gr, Path=ActualHeight}"
  184. HorizontalAlignment="Center"
  185. VerticalAlignment="Center"
  186. BorderThickness="0"
  187. Command="{Binding DataContext.IssueRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  188. CommandParameter="{Binding RecipeCode}"
  189. Content="下发"
  190. EnterBackground="#FF2AB2E7"
  191. Foreground="#dd000000"
  192. IcoText="&#xe636;"
  193. Style="{StaticResource IcoButtonStyle}" />
  194. <pry:IcoButton
  195. Grid.Column="2"
  196. Height="{Binding ElementName=gr, Path=ActualHeight}"
  197. HorizontalAlignment="Center"
  198. VerticalAlignment="Center"
  199. BorderThickness="0"
  200. Command="{Binding DataContext.RemoveRecipe, RelativeSource={RelativeSource AncestorType=ListView, Mode=FindAncestor}}"
  201. CommandParameter="{Binding RecipeCode}"
  202. Content="删除"
  203. EnterBackground="#FF2AB2E7"
  204. Foreground="#dd000000"
  205. IcoText="&#xe636;"
  206. Style="{StaticResource IcoButtonStyle}" />
  207. </Grid>
  208. </Grid>
  209. </Border>
  210. </DataTemplate>
  211. </ListView.ItemTemplate>
  212. </ListView>
  213. </ScrollViewer>
  214. </Grid>
  215. </UserControl>