终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

334 lines
15 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkS.View.ParSet"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkS.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  9. xmlns:vm="clr-namespace:BPASmartClient.MorkS.ViewModel"
  10. Name="参数设置界面"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. mc:Ignorable="d">
  14. <UserControl.DataContext>
  15. <vm:ParSetViewModel/>
  16. </UserControl.DataContext>
  17. <UserControl.Resources>
  18. <ResourceDictionary>
  19. <ResourceDictionary.MergedDictionaries>
  20. <ResourceDictionary>
  21. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  22. <Setter Property="FontFamily" Value="楷体" />
  23. <Setter Property="FontSize" Value="18" />
  24. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  25. <Setter Property="VerticalAlignment" Value="Center" />
  26. <Setter Property="HorizontalAlignment" Value="Center" />
  27. </Style>
  28. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  29. <Setter Property="FontFamily" Value="楷体" />
  30. <Setter Property="FontSize" Value="22" />
  31. <Setter Property="Background" Value="Transparent" />
  32. <Setter Property="Foreground" Value="{StaticResource TextBlockForeground}" />
  33. <Setter Property="BorderBrush" Value="#FF23CACA" />
  34. <Setter Property="CaretBrush" Value="Aqua" />
  35. <Setter Property="VerticalAlignment" Value="Center" />
  36. </Style>
  37. </ResourceDictionary>
  38. </ResourceDictionary.MergedDictionaries>
  39. </ResourceDictionary>
  40. </UserControl.Resources>
  41. <Grid Margin="10">
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="35" />
  44. <RowDefinition Height="Auto" />
  45. </Grid.RowDefinitions>
  46. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  47. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  48. <pry:IcoButton
  49. Grid.Column="5"
  50. Width="140"
  51. HorizontalAlignment="Left"
  52. Command="{Binding SaveInfoCommand}"
  53. Content="保存配置"
  54. FontSize="16"
  55. IcoText="&#xe936;"
  56. Style="{StaticResource IcoButtonStyle}">
  57. <pry:IcoButton.Foreground>
  58. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  59. <GradientStop Color="#FFBB662A" />
  60. <GradientStop Offset="1" Color="White" />
  61. </LinearGradientBrush>
  62. </pry:IcoButton.Foreground>
  63. </pry:IcoButton>
  64. </StackPanel>
  65. <!-- 参数放置面板 -->
  66. <Grid Grid.Row="2">
  67. <Grid.RowDefinitions>
  68. <RowDefinition />
  69. <RowDefinition Height="150" />
  70. </Grid.RowDefinitions>
  71. <StackPanel Orientation="Horizontal">
  72. <!--煮面口参数设置-->
  73. <ItemsControl Grid.Row="0" ItemsSource="{Binding parSets}">
  74. <ItemsControl.ItemTemplate>
  75. <DataTemplate>
  76. <StackPanel Orientation="Horizontal">
  77. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  78. <TextBox
  79. Width="100"
  80. Margin="10,0,0,0"
  81. VerticalAlignment="Center"
  82. Background="Transparent"
  83. BorderBrush="#FF23CACA"
  84. CaretBrush="Aqua"
  85. FontFamily="楷体"
  86. FontSize="21"
  87. Foreground="#ff34f7f7"
  88. Text="{Binding Minute}" />
  89. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  90. <TextBox
  91. Width="100"
  92. Margin="0,10"
  93. VerticalAlignment="Center"
  94. Background="Transparent"
  95. BorderBrush="#FF23CACA"
  96. CaretBrush="Aqua"
  97. FontFamily="楷体"
  98. FontSize="21"
  99. Foreground="#ff34f7f7"
  100. Text="{Binding Second}" />
  101. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  102. <CheckBox
  103. Height="20"
  104. Margin="10"
  105. VerticalAlignment="Center"
  106. Background="#FF2AB2E7"
  107. Content="{Binding CheckBoxContext}"
  108. FontSize="14"
  109. Foreground="#00c2f4"
  110. IsChecked="{Binding IsShield}"
  111. Template="{StaticResource CbTemplate}" />
  112. </StackPanel>
  113. </DataTemplate>
  114. </ItemsControl.ItemTemplate>
  115. </ItemsControl>
  116. <Grid>
  117. <Grid.RowDefinitions>
  118. <RowDefinition Height="50" />
  119. <RowDefinition />
  120. </Grid.RowDefinitions>
  121. <Grid
  122. Grid.Row="0"
  123. Margin="100,10,0,0"
  124. Background="#ff0C255F">
  125. <Grid.ColumnDefinitions>
  126. <ColumnDefinition />
  127. <ColumnDefinition />
  128. <ColumnDefinition />
  129. </Grid.ColumnDefinitions>
  130. <TextBlock
  131. Grid.Column="0"
  132. FontSize="24"
  133. Style="{StaticResource TitleTextblockStyle}"
  134. Text="库位序号" />
  135. <TextBlock
  136. Grid.Column="1"
  137. FontSize="24"
  138. Style="{StaticResource TitleTextblockStyle}"
  139. Text="煮时间(分)" />
  140. <TextBlock
  141. Grid.Column="2"
  142. FontSize="24"
  143. Style="{StaticResource TitleTextblockStyle}"
  144. Text="煮时间(秒)" />
  145. <Border
  146. Grid.Column="0"
  147. Grid.ColumnSpan="4"
  148. BorderBrush="{StaticResource bordColor}"
  149. BorderThickness="1,1,1,1" />
  150. <Border
  151. Grid.Column="1"
  152. BorderBrush="{StaticResource bordColor}"
  153. BorderThickness="1,0,1,0" />
  154. <Border
  155. Grid.Column="3"
  156. BorderBrush="{StaticResource bordColor}"
  157. BorderThickness="1,0,1,0" />
  158. </Grid>
  159. <Grid Grid.Row="1" Margin="100,0,0,0">
  160. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  161. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
  162. <ItemsControl.ItemTemplate>
  163. <DataTemplate>
  164. <Grid Name="gr">
  165. <Grid.ColumnDefinitions>
  166. <ColumnDefinition Width="157"/>
  167. <ColumnDefinition Width="1*"/>
  168. <ColumnDefinition Width="1*"/>
  169. </Grid.ColumnDefinitions>
  170. <TextBlock
  171. Grid.Column="0"
  172. HorizontalAlignment="Center"
  173. VerticalAlignment="Center"
  174. FontSize="18"
  175. Text="{Binding TextBlockContext}" />
  176. <!--<ComboBox
  177. Grid.Column="1"
  178. Height="auto"
  179. Background="Transparent"
  180. BorderThickness="0"
  181. FontSize="18"
  182. Foreground="DeepSkyBlue"
  183. IsEditable="False"
  184. ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  185. SelectedIndex="{Binding LocDishType}" />-->
  186. <Border
  187. Grid.Column="0"
  188. Grid.ColumnSpan="3"
  189. BorderBrush="{StaticResource bordColor}"
  190. BorderThickness="1,0,1,1"></Border>
  191. <Border
  192. Grid.Column="1"
  193. BorderBrush="{StaticResource bordColor}"
  194. BorderThickness="1,0,1,0">
  195. <TextBox
  196. Grid.Column="1"
  197. FontSize="18"
  198. Style="{StaticResource InputTextboxStyle}"
  199. Text="{Binding Minute}" />
  200. </Border>
  201. <Border
  202. Grid.Column="2"
  203. BorderBrush="{StaticResource bordColor}"
  204. BorderThickness="1,0,1,0">
  205. <TextBox
  206. Grid.Column="2"
  207. FontSize="18"
  208. Style="{StaticResource InputTextboxStyle}"
  209. Text="{Binding Second}" />
  210. </Border>
  211. </Grid>
  212. <DataTemplate.Triggers>
  213. <Trigger Property="IsMouseOver" Value="true">
  214. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  215. </Trigger>
  216. </DataTemplate.Triggers>
  217. </DataTemplate>
  218. </ItemsControl.ItemTemplate>
  219. </ItemsControl>
  220. </ScrollViewer>
  221. </Grid>
  222. </Grid>
  223. </StackPanel>
  224. <!--加汤设置-->
  225. <StackPanel Grid.Row="1" Orientation="Horizontal">
  226. <TextBlock
  227. Margin="40,0,0,0"
  228. FontSize="21"
  229. Style="{StaticResource TextBlockStyle}"
  230. Text="加汤时间:" />
  231. <TextBox
  232. Width="100"
  233. Margin="10,0,0,0"
  234. VerticalAlignment="Center"
  235. Background="Transparent"
  236. BorderBrush="#FF23CACA"
  237. CaretBrush="Aqua"
  238. FontFamily="楷体"
  239. FontSize="21"
  240. Foreground="#ff34f7f7"
  241. Text="{Binding AddSoup}" />
  242. <TextBlock
  243. Margin="10,0,0,0"
  244. FontSize="21"
  245. Style="{StaticResource TextBlockStyle}"
  246. Text="(秒)" />
  247. <TextBlock
  248. Margin="40,0,0,0"
  249. FontSize="21"
  250. Style="{StaticResource TextBlockStyle}"
  251. Text="清洗加汤管道时间:" />
  252. <TextBox
  253. Width="100"
  254. Margin="10,0,0,0"
  255. VerticalAlignment="Center"
  256. Background="Transparent"
  257. BorderBrush="#FF23CACA"
  258. CaretBrush="Aqua"
  259. FontFamily="楷体"
  260. FontSize="21"
  261. Foreground="#ff34f7f7"
  262. Text="{Binding DelayTime}" />
  263. <TextBlock
  264. Margin="10,0,0,0"
  265. FontSize="21"
  266. Style="{StaticResource TextBlockStyle}"
  267. Text="(秒)" />
  268. <Button
  269. Margin="5"
  270. HorizontalAlignment="Center"
  271. VerticalAlignment="Center"
  272. Command="{Binding CommandStart}"
  273. Content="启动"
  274. Foreground="Aqua"
  275. Style="{StaticResource ButtonStyle}" />
  276. <TextBlock
  277. Margin="40,0,0,0"
  278. FontSize="21"
  279. Style="{StaticResource TextBlockStyle}"
  280. Text="倒面条件,煮面口使用数量:" />
  281. <TextBox
  282. Width="100"
  283. Margin="10,0,0,0"
  284. VerticalAlignment="Center"
  285. Background="Transparent"
  286. BorderBrush="#FF23CACA"
  287. CaretBrush="Aqua"
  288. FontFamily="楷体"
  289. FontSize="21"
  290. Foreground="#ff34f7f7"
  291. Text="{Binding OpenUseNumber}" />
  292. <TextBlock
  293. Margin="10,0,0,0"
  294. FontSize="21"
  295. Style="{StaticResource TextBlockStyle}"
  296. Text="(个)" />
  297. </StackPanel>
  298. </Grid>
  299. </Grid>
  300. </UserControl>