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

132 рядки
5.3 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkCL.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.MorkCL.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.MorkCL.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 Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  21. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  22. </ResourceDictionary.MergedDictionaries>
  23. </ResourceDictionary>
  24. </UserControl.Resources>
  25. <Grid Margin="10">
  26. <Grid.RowDefinitions>
  27. <RowDefinition Height="50" />
  28. <RowDefinition Height="1*" />
  29. <RowDefinition Height="1*" />
  30. </Grid.RowDefinitions>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="1*" />
  33. <ColumnDefinition Width="1*" />
  34. </Grid.ColumnDefinitions>
  35. <pry:ImageBorder Grid.RowSpan="9" Grid.ColumnSpan="9" />
  36. <StackPanel
  37. Grid.ColumnSpan="2"
  38. Margin="5"
  39. HorizontalAlignment="Right"
  40. Orientation="Horizontal">
  41. <TextBlock Style="{StaticResource TextBlockStyle}" Text="请点击按钮保存参数:" />
  42. <Button
  43. Grid.Column="5"
  44. Width="100"
  45. Height="40"
  46. HorizontalAlignment="Left"
  47. Command="{Binding SaveInfoCommand}"
  48. Content="保存配置"
  49. FontSize="16" />
  50. </StackPanel>
  51. <StackPanel Grid.Row="1" Margin="5">
  52. <CheckBox
  53. Margin="5"
  54. Content="连接炒锅1#"
  55. FontSize="16"
  56. IsChecked="{Binding Param.FryPanConnect_1}" />
  57. <CheckBox
  58. Margin="5"
  59. Content="连接炒锅2#"
  60. FontSize="16"
  61. IsChecked="{Binding Param.FryPanConnect_2}" />
  62. <CheckBox
  63. Margin="5"
  64. Content="连接机器人"
  65. FontSize="16"
  66. IsChecked="{Binding Param.RobotConnet}" />
  67. <CheckBox
  68. Margin="5"
  69. Content="连接外部设备(电子秤以及空盘仓位传感器)"
  70. FontSize="16"
  71. IsChecked="{Binding Param.OtherDeviceConnect}" />
  72. </StackPanel>
  73. <!--分位逻辑有问题,暂时不开放 -->
  74. <!--<StackPanel Grid.Row="1" Grid.Column="2" >
  75. <CheckBox
  76. Margin="5"
  77. Content="辅料库位根据炒锅区分位置" IsChecked="{Binding Param.IsUseSplitStorage}"
  78. FontSize="16" />
  79. <StackPanel Orientation="Horizontal">
  80. <TextBlock Text="1#炒锅辅料最小位置:" />
  81. <TextBox
  82. Width="100"
  83. Height="30"
  84. HorizontalContentAlignment="Center"
  85. d:Text="1"
  86. FontSize="22"
  87. Text="{Binding Param.FryPanAccessoriesMin_1}" />
  88. </StackPanel>
  89. <StackPanel Orientation="Horizontal">
  90. <TextBlock Text="1#炒锅辅料最大位置:" />
  91. <TextBox
  92. Width="100"
  93. Height="30"
  94. HorizontalContentAlignment="Center"
  95. d:Text="4"
  96. FontSize="22"
  97. Text="{Binding Param.FryPanAccessoriesMax_1}" />
  98. </StackPanel>
  99. <StackPanel Orientation="Horizontal">
  100. <TextBlock Text="2#炒锅辅料最小位置:" />
  101. <TextBox
  102. Width="100"
  103. Height="30"
  104. HorizontalContentAlignment="Center"
  105. d:Text="5"
  106. FontSize="22"
  107. Text="{Binding Param.FryPanAccessoriesMin_2}" />
  108. </StackPanel>
  109. <StackPanel Orientation="Horizontal">
  110. <TextBlock Text="2#炒锅辅料最大位置:" />
  111. <TextBox
  112. Width="100"
  113. Height="30"
  114. HorizontalContentAlignment="Center"
  115. d:Text="8"
  116. FontSize="22"
  117. Text="{Binding Param.FryPanAccessoriesMax_2}" />
  118. </StackPanel>
  119. </StackPanel>-->
  120. <!--<StackPanel Grid.Row="2" Margin="5">
  121. <StackPanel Orientation="Horizontal">
  122. <TextBlock Text="主料重量偏差值(Kg):"/>
  123. <TextBox Text="{Binding Param.IngredientsDeviation}" Width="100" Height="30" d:Text="1.23" FontSize="22"/>
  124. </StackPanel>
  125. </StackPanel>-->
  126. </Grid>
  127. </UserControl>