终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

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