终端一体化运控平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

492 строки
22 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="800"
  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 />
  70. <RowDefinition />
  71. <RowDefinition />
  72. </Grid.RowDefinitions>
  73. <StackPanel Orientation="Horizontal">
  74. <!-- 煮面口参数设置 -->
  75. <ItemsControl Grid.Row="0" ItemsSource="{Binding parSets}">
  76. <ItemsControl.ItemTemplate>
  77. <DataTemplate>
  78. <StackPanel Orientation="Horizontal">
  79. <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding TextBlockContext}" />
  80. <TextBox
  81. Width="100"
  82. Margin="10,0,0,0"
  83. VerticalAlignment="Center"
  84. Background="Transparent"
  85. BorderBrush="#FF23CACA"
  86. CaretBrush="Aqua"
  87. FontFamily="楷体"
  88. FontSize="21"
  89. Foreground="#ff34f7f7"
  90. Text="{Binding Minute}" />
  91. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(分)" />
  92. <TextBox
  93. Width="100"
  94. Margin="0,10"
  95. VerticalAlignment="Center"
  96. Background="Transparent"
  97. BorderBrush="#FF23CACA"
  98. CaretBrush="Aqua"
  99. FontFamily="楷体"
  100. FontSize="21"
  101. Foreground="#ff34f7f7"
  102. Text="{Binding Second}" />
  103. <TextBlock Style="{StaticResource TextBlockStyle}" Text="(秒)" />
  104. <CheckBox
  105. Height="20"
  106. Margin="10"
  107. VerticalAlignment="Center"
  108. Background="#FF2AB2E7"
  109. Content="{Binding CheckBoxContext}"
  110. FontSize="14"
  111. Foreground="#00c2f4"
  112. IsChecked="{Binding IsShield}"
  113. Template="{StaticResource CbTemplate}" />
  114. </StackPanel>
  115. </DataTemplate>
  116. </ItemsControl.ItemTemplate>
  117. </ItemsControl>
  118. <Grid>
  119. <Grid.RowDefinitions>
  120. <RowDefinition Height="50" />
  121. <RowDefinition />
  122. </Grid.RowDefinitions>
  123. <Grid
  124. Grid.Row="0"
  125. Margin="100,10,0,0"
  126. Background="#ff0C255F">
  127. <Grid.ColumnDefinitions>
  128. <ColumnDefinition />
  129. <ColumnDefinition />
  130. <ColumnDefinition />
  131. </Grid.ColumnDefinitions>
  132. <TextBlock
  133. Grid.Column="0"
  134. FontSize="24"
  135. Style="{StaticResource TitleTextblockStyle}"
  136. Text="库位序号" />
  137. <TextBlock
  138. Grid.Column="1"
  139. FontSize="24"
  140. Style="{StaticResource TitleTextblockStyle}"
  141. Text="煮时间(分)" />
  142. <TextBlock
  143. Grid.Column="2"
  144. FontSize="24"
  145. Style="{StaticResource TitleTextblockStyle}"
  146. Text="煮时间(秒)" />
  147. <Border
  148. Grid.Column="0"
  149. Grid.ColumnSpan="4"
  150. BorderBrush="{StaticResource bordColor}"
  151. BorderThickness="1,1,1,1" />
  152. <Border
  153. Grid.Column="1"
  154. BorderBrush="{StaticResource bordColor}"
  155. BorderThickness="1,0,1,0" />
  156. <Border
  157. Grid.Column="3"
  158. BorderBrush="{StaticResource bordColor}"
  159. BorderThickness="1,0,1,0" />
  160. </Grid>
  161. <Grid Grid.Row="1" Margin="100,0,0,0">
  162. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  163. <ItemsControl Foreground="DeepSkyBlue" ItemsSource="{Binding DishLibraryParSets}">
  164. <ItemsControl.ItemTemplate>
  165. <DataTemplate>
  166. <Grid Name="gr">
  167. <Grid.ColumnDefinitions>
  168. <ColumnDefinition Width="157" />
  169. <ColumnDefinition Width="1*" />
  170. <ColumnDefinition Width="1*" />
  171. </Grid.ColumnDefinitions>
  172. <TextBlock
  173. Grid.Column="0"
  174. HorizontalAlignment="Center"
  175. VerticalAlignment="Center"
  176. FontSize="18"
  177. Text="{Binding TextBlockContext}" />
  178. <!--<ComboBox
  179. Grid.Column="1"
  180. Height="auto"
  181. Background="Transparent"
  182. BorderThickness="0"
  183. FontSize="18"
  184. Foreground="DeepSkyBlue"
  185. IsEditable="False"
  186. ItemsSource="{Binding DataContext.DishTypeName, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  187. SelectedIndex="{Binding LocDishType}" />-->
  188. <Border
  189. Grid.Column="0"
  190. Grid.ColumnSpan="3"
  191. BorderBrush="{StaticResource bordColor}"
  192. BorderThickness="1,0,1,1" />
  193. <Border
  194. Grid.Column="1"
  195. BorderBrush="{StaticResource bordColor}"
  196. BorderThickness="1,0,1,0">
  197. <TextBox
  198. Grid.Column="1"
  199. FontSize="18"
  200. Style="{StaticResource InputTextboxStyle}"
  201. Text="{Binding Minute}" />
  202. </Border>
  203. <Border
  204. Grid.Column="2"
  205. BorderBrush="{StaticResource bordColor}"
  206. BorderThickness="1,0,1,0">
  207. <TextBox
  208. Grid.Column="2"
  209. FontSize="18"
  210. Style="{StaticResource InputTextboxStyle}"
  211. Text="{Binding Second}" />
  212. </Border>
  213. </Grid>
  214. <DataTemplate.Triggers>
  215. <Trigger Property="IsMouseOver" Value="true">
  216. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  217. </Trigger>
  218. </DataTemplate.Triggers>
  219. </DataTemplate>
  220. </ItemsControl.ItemTemplate>
  221. </ItemsControl>
  222. </ScrollViewer>
  223. </Grid>
  224. </Grid>
  225. </StackPanel>
  226. <!-- 加汤设置 -->
  227. <!-- 抽汤时间设定 -->
  228. <StackPanel Grid.Row="2" HorizontalAlignment="Left">
  229. <!--<StackPanel
  230. Margin="0,5"
  231. HorizontalAlignment="Right"
  232. Orientation="Horizontal">
  233. <TextBlock
  234. FontSize="21"
  235. Style="{StaticResource TextBlockStyle}"
  236. Text="加汤时间:" />
  237. <TextBox
  238. Width="100"
  239. Margin="10,0,0,0"
  240. VerticalAlignment="Center"
  241. Background="Transparent"
  242. BorderBrush="#FF23CACA"
  243. CaretBrush="Aqua"
  244. FontFamily="楷体"
  245. FontSize="21"
  246. Foreground="#ff34f7f7"
  247. Text="{Binding AddSoup}" />
  248. <TextBlock
  249. Margin="10,0,0,0"
  250. FontSize="21"
  251. Style="{StaticResource TextBlockStyle}"
  252. Text="(秒)" />
  253. </StackPanel>-->
  254. <StackPanel
  255. Margin="0,5"
  256. HorizontalAlignment="Right"
  257. Orientation="Horizontal">
  258. <TextBlock
  259. FontSize="21"
  260. Style="{StaticResource TextBlockStyle}"
  261. Text="清洗加汤管道时间:" />
  262. <TextBox
  263. Width="100"
  264. Margin="10,0,0,0"
  265. VerticalAlignment="Center"
  266. Background="Transparent"
  267. BorderBrush="#FF23CACA"
  268. CaretBrush="Aqua"
  269. FontFamily="楷体"
  270. FontSize="21"
  271. Foreground="#ff34f7f7"
  272. Text="{Binding DelayTime, UpdateSourceTrigger=PropertyChanged}" />
  273. <TextBlock
  274. Margin="10,0,0,0"
  275. FontSize="21"
  276. Style="{StaticResource TextBlockStyle}"
  277. Text="(秒)" />
  278. </StackPanel>
  279. <StackPanel
  280. Margin="0,5"
  281. HorizontalAlignment="Right"
  282. Orientation="Horizontal">
  283. <TextBlock
  284. FontSize="21"
  285. Style="{StaticResource TextBlockStyle}"
  286. Text="倒面条件,煮面口使用数量:" />
  287. <TextBox
  288. Width="100"
  289. Margin="10,0,0,0"
  290. VerticalAlignment="Center"
  291. Background="Transparent"
  292. BorderBrush="#FF23CACA"
  293. CaretBrush="Aqua"
  294. FontFamily="楷体"
  295. FontSize="21"
  296. Foreground="#ff34f7f7"
  297. Text="{Binding OpenUseNumber, UpdateSourceTrigger=PropertyChanged}" />
  298. <TextBlock
  299. Margin="10,0,0,0"
  300. FontSize="21"
  301. Style="{StaticResource TextBlockStyle}"
  302. Text="(个)" />
  303. </StackPanel>
  304. <!-- 间隔时间设定 -->
  305. <StackPanel
  306. Margin="0,5"
  307. HorizontalAlignment="Right"
  308. Orientation="Horizontal">
  309. <TextBlock
  310. Margin="10,0,0,0"
  311. FontSize="21"
  312. Style="{StaticResource TextBlockStyle}"
  313. Text="反转间隔时间设定:" />
  314. <TextBox
  315. Width="100"
  316. Margin="10,0,0,0"
  317. VerticalAlignment="Center"
  318. Background="Transparent"
  319. BorderBrush="#FF23CACA"
  320. CaretBrush="Aqua"
  321. FontFamily="楷体"
  322. FontSize="21"
  323. Foreground="#ff34f7f7"
  324. Text="{Binding IntervalTime, UpdateSourceTrigger=PropertyChanged}" />
  325. <TextBlock
  326. Margin="10,0,0,0"
  327. FontSize="21"
  328. Style="{StaticResource TextBlockStyle}"
  329. Text="(秒)" />
  330. </StackPanel>
  331. <!-- 反转抽汤时间设定 -->
  332. <StackPanel
  333. Margin="0,5"
  334. HorizontalAlignment="Right"
  335. Orientation="Horizontal">
  336. <TextBlock
  337. Margin="10,0,0,0"
  338. FontSize="21"
  339. Style="{StaticResource TextBlockStyle}"
  340. Text="反转抽汤时间设定:" />
  341. <TextBox
  342. Width="100"
  343. Margin="10,0,0,0"
  344. VerticalAlignment="Center"
  345. Background="Transparent"
  346. BorderBrush="#FF23CACA"
  347. CaretBrush="Aqua"
  348. FontFamily="楷体"
  349. FontSize="21"
  350. Foreground="#ff34f7f7"
  351. Text="{Binding BackwardSoupSootTime, UpdateSourceTrigger=PropertyChanged}" />
  352. <TextBlock
  353. Margin="10,0,0,0"
  354. FontSize="21"
  355. Style="{StaticResource TextBlockStyle}"
  356. Text="(秒)" />
  357. </StackPanel>
  358. <!-- 反转后再次出汤时间设定 -->
  359. <StackPanel
  360. Margin="0,5"
  361. HorizontalAlignment="Right"
  362. Orientation="Horizontal">
  363. <TextBlock
  364. Margin="10,0,0,0"
  365. FontSize="21"
  366. Style="{StaticResource TextBlockStyle}"
  367. Text="反转后再次出汤时间设定:" />
  368. <TextBox
  369. Width="100"
  370. Margin="10,0,0,0"
  371. VerticalAlignment="Center"
  372. Background="Transparent"
  373. BorderBrush="#FF23CACA"
  374. CaretBrush="Aqua"
  375. FontFamily="楷体"
  376. FontSize="21"
  377. Foreground="#ff34f7f7"
  378. Text="{Binding BackwardedOutSoupTime, UpdateSourceTrigger=PropertyChanged}" />
  379. <TextBlock
  380. Margin="10,0,0,0"
  381. FontSize="21"
  382. Style="{StaticResource TextBlockStyle}"
  383. Text="(秒)" />
  384. </StackPanel>
  385. <!-- 未反转抽汤情况下时间设定 -->
  386. <StackPanel
  387. Margin="0,5"
  388. HorizontalAlignment="Right"
  389. Orientation="Horizontal">
  390. <TextBlock
  391. Margin="10,0,0,0"
  392. FontSize="21"
  393. Style="{StaticResource TextBlockStyle}"
  394. Text="未反转抽汤情况下时间设定:" />
  395. <TextBox
  396. Width="100"
  397. Margin="10,0,0,0"
  398. VerticalAlignment="Center"
  399. Background="Transparent"
  400. BorderBrush="#FF23CACA"
  401. CaretBrush="Aqua"
  402. FontFamily="楷体"
  403. FontSize="21"
  404. Foreground="#ff34f7f7"
  405. Text="{Binding UnBackwardSoupSootTime, UpdateSourceTrigger=PropertyChanged}" />
  406. <TextBlock
  407. Margin="10,0,0,0"
  408. FontSize="21"
  409. Style="{StaticResource TextBlockStyle}"
  410. Text="(秒)" />
  411. </StackPanel>
  412. </StackPanel>
  413. <!-- 抽汤调试按钮 -->
  414. <StackPanel Grid.Row="3" Orientation="Horizontal">
  415. <Button
  416. Width="100"
  417. Margin="5"
  418. HorizontalAlignment="Center"
  419. VerticalAlignment="Center"
  420. Command="{Binding SoupSootForwardCommand}"
  421. Content="抽汤正转"
  422. Foreground="Aqua"
  423. Style="{StaticResource ButtonStyle}" />
  424. <Button
  425. Width="100"
  426. Margin="5"
  427. HorizontalAlignment="Center"
  428. VerticalAlignment="Center"
  429. Command="{Binding SoupSootBackwardCommand}"
  430. Content="抽汤反转"
  431. Foreground="Aqua"
  432. Style="{StaticResource ButtonStyle}" />
  433. <Button
  434. Width="100"
  435. Margin="5"
  436. HorizontalAlignment="Center"
  437. VerticalAlignment="Center"
  438. Command="{Binding SoupSootStopCommand}"
  439. Content="抽汤停止"
  440. Foreground="Aqua"
  441. Style="{StaticResource ButtonStyle}" />
  442. <Button
  443. Width="100"
  444. Margin="5"
  445. HorizontalAlignment="Center"
  446. VerticalAlignment="Center"
  447. Command="{Binding CommandStart}"
  448. Content="清洗启动"
  449. Foreground="Aqua"
  450. Style="{StaticResource ButtonStyle}" />
  451. </StackPanel>
  452. </Grid>
  453. </Grid>
  454. </UserControl>