终端一体化运控平台
Você não pode selecionar mais de 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.
 
 
 

220 linhas
11 KiB

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