ManualControl.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.setting.ManualControl"
  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:SHJX.Service.Librarys.setting"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  9. d:DesignHeight="750"
  10. d:DesignWidth="800"
  11. mc:Ignorable="d">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="2.9*" />
  15. <RowDefinition Height="1*" />
  16. <RowDefinition Height="5.3*" />
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition />
  20. </Grid.ColumnDefinitions>
  21. <Grid Grid.Row="0">
  22. <GroupBox
  23. Width="700"
  24. Margin="0,0,0,0"
  25. pu:GroupBoxHelper.CornerRadius="8"
  26. pu:GroupBoxHelper.IsSplitLineVisible="True"
  27. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  28. BorderBrush="#99CCCC"
  29. Foreground="#99CCCC"
  30. Header="结果校准">
  31. <Grid>
  32. <Grid.RowDefinitions>
  33. <RowDefinition Height="1.2*" />
  34. <RowDefinition Height="4*" />
  35. </Grid.RowDefinitions>
  36. <GroupBox Grid.Row="0" Grid.Column="0" Margin="0,0,6,0">
  37. <ComboBox
  38. Name="cmb_wave"
  39. Width="150"
  40. Height="28"
  41. Margin="0,-65,0,0"
  42. pu:ComboBoxHelper.CornerRadius="7"
  43. pu:ComboBoxHelper.HoverBackground="#1E66CCCC"
  44. pu:ComboBoxHelper.SelectedBackground="#3299CCCC"
  45. BorderBrush="#99CCCC"
  46. Cursor="Hand"
  47. Foreground="#99CCCC"
  48. ItemsSource="{Binding Wavekeys}"
  49. Text="{Binding WavekeysCurrentShow}"
  50. SelectedIndex="0" DropDownOpened="cmb_wave_DropDownOpened" />
  51. </GroupBox>
  52. <GroupBox Margin="0,40,6,0" Grid.Column="0" Grid.RowSpan="2">
  53. <UniformGrid Width="650" Margin="0,0,0,0" Columns="2" Rows="0" >
  54. <GroupBox
  55. Grid.Row="0"
  56. Width="300"
  57. Margin="0,-10,0,0"
  58. pu:GroupBoxHelper.CornerRadius="8"
  59. pu:GroupBoxHelper.IsSplitLineVisible="True"
  60. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  61. BorderBrush="#99CCCC"
  62. Foreground="#99CCCC"
  63. Header="低浓度">
  64. <Grid>
  65. <Grid.ColumnDefinitions>
  66. <ColumnDefinition />
  67. <ColumnDefinition />
  68. </Grid.ColumnDefinitions>
  69. <Grid.RowDefinitions>
  70. <RowDefinition />
  71. <RowDefinition />
  72. <RowDefinition />
  73. </Grid.RowDefinitions>
  74. <Label
  75. Grid.Row="0"
  76. Grid.Column="0"
  77. HorizontalAlignment="Center"
  78. VerticalAlignment="Center"
  79. Content="标定:"
  80. Foreground="#99CCCC" />
  81. <Label
  82. Grid.Row="1"
  83. Grid.Column="0"
  84. HorizontalAlignment="Center"
  85. VerticalAlignment="Center"
  86. Content="空白:"
  87. Foreground="#99CCCC" />
  88. <TextBox
  89. Grid.Row="0"
  90. Grid.Column="1"
  91. Width="100"
  92. Height="23"
  93. pu:TextBoxHelper.CornerRadius="10"
  94. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  95. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  96. BorderBrush="#99CCCC"
  97. Foreground="#99CCCC"
  98. Text="{Binding LowCalibrationValue}" />
  99. <TextBox
  100. Grid.Row="1"
  101. Grid.Column="1"
  102. Width="100"
  103. Height="23"
  104. pu:TextBoxHelper.CornerRadius="10"
  105. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  106. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  107. BorderBrush="#99CCCC"
  108. Foreground="#99CCCC"
  109. Text="{Binding LowBlankValue}" />
  110. <Button
  111. Grid.Row="2"
  112. Grid.Column="1"
  113. Width="90"
  114. Height="23"
  115. pu:ButtonHelper.ClickStyle="Sink"
  116. pu:ButtonHelper.CornerRadius="8"
  117. pu:ButtonHelper.HoverBrush="#66CCCC"
  118. Background="#99CCCC"
  119. Command="{Binding LowValueUpdateCommand}"
  120. Content="确定"
  121. Cursor="Hand"
  122. FontFamily="{StaticResource FontAwesome}"
  123. Foreground="White" />
  124. </Grid>
  125. </GroupBox>
  126. <GroupBox
  127. Grid.Row="0"
  128. Width="300"
  129. Margin="0,-10,0,0"
  130. pu:GroupBoxHelper.CornerRadius="8"
  131. pu:GroupBoxHelper.IsSplitLineVisible="True"
  132. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  133. BorderBrush="#99CCCC"
  134. Foreground="#99CCCC"
  135. Header="高浓度">
  136. <Grid>
  137. <Grid.ColumnDefinitions>
  138. <ColumnDefinition />
  139. <ColumnDefinition />
  140. </Grid.ColumnDefinitions>
  141. <Grid.RowDefinitions>
  142. <RowDefinition />
  143. <RowDefinition />
  144. <RowDefinition />
  145. </Grid.RowDefinitions>
  146. <Label
  147. Grid.Row="0"
  148. Grid.Column="0"
  149. HorizontalAlignment="Center"
  150. VerticalAlignment="Center"
  151. Content="标定:"
  152. Foreground="#99CCCC" />
  153. <Label
  154. Grid.Row="1"
  155. Grid.Column="0"
  156. HorizontalAlignment="Center"
  157. VerticalAlignment="Center"
  158. Content="空白:"
  159. Foreground="#99CCCC" />
  160. <TextBox
  161. Grid.Row="0"
  162. Grid.Column="1"
  163. Width="100"
  164. Height="23"
  165. pu:TextBoxHelper.CornerRadius="10"
  166. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  167. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  168. BorderBrush="#99CCCC"
  169. Foreground="#99CCCC"
  170. Text="{Binding HighCalibrationValue}" />
  171. <TextBox
  172. Grid.Row="1"
  173. Grid.Column="1"
  174. Width="100"
  175. Height="23"
  176. pu:TextBoxHelper.CornerRadius="10"
  177. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  178. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  179. BorderBrush="#99CCCC"
  180. Foreground="#99CCCC"
  181. Text="{Binding HighBlankValue}" />
  182. <Button
  183. Grid.Row="2"
  184. Grid.Column="1"
  185. Width="90"
  186. Height="23"
  187. pu:ButtonHelper.ClickStyle="Sink"
  188. pu:ButtonHelper.CornerRadius="8"
  189. pu:ButtonHelper.HoverBrush="#66CCCC"
  190. Background="#99CCCC"
  191. Command="{Binding HighValueUpdateCommand}"
  192. Content="确定"
  193. Cursor="Hand"
  194. FontFamily="{StaticResource FontAwesome}"
  195. Foreground="White" />
  196. </Grid>
  197. </GroupBox>
  198. </UniformGrid>
  199. </GroupBox>
  200. </Grid>
  201. </GroupBox>
  202. </Grid>
  203. <GroupBox
  204. Grid.Row="1"
  205. Width="700"
  206. Margin="0,8,0,5"
  207. HorizontalAlignment="Center"
  208. VerticalAlignment="Center"
  209. pu:GroupBoxHelper.CornerRadius="8"
  210. pu:GroupBoxHelper.IsSplitLineVisible="True"
  211. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  212. BorderBrush="#99CCCC"
  213. Foreground="#99CCCC"
  214. Header="反馈设置">
  215. <StackPanel Orientation="Horizontal">
  216. <CheckBox
  217. Height="30"
  218. Margin="0,0,20,0"
  219. pu:CheckBoxHelper.BoxHeight="16"
  220. pu:CheckBoxHelper.BoxWidth="24"
  221. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  222. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  223. Content="抓取检测"
  224. Cursor="Hand"
  225. FontSize="14"
  226. Foreground="#99CCCC"
  227. IsChecked="{Binding ManiGrabFeedback}" />
  228. <CheckBox
  229. Height="30"
  230. Margin="0,0,20,0"
  231. pu:CheckBoxHelper.BoxHeight="16"
  232. pu:CheckBoxHelper.BoxWidth="24"
  233. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  234. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  235. Content="滴嘴检测"
  236. Cursor="Hand"
  237. FontSize="14"
  238. Foreground="#99CCCC"
  239. IsChecked="{Binding DripNozzleFeedBack}" />
  240. <CheckBox
  241. Height="30"
  242. Margin="0,0,20,0"
  243. pu:CheckBoxHelper.BoxHeight="16"
  244. pu:CheckBoxHelper.BoxWidth="24"
  245. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  246. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  247. Content="是否补杯"
  248. Cursor="Hand"
  249. FontSize="14"
  250. Foreground="#99CCCC"
  251. IsChecked="{Binding IsAddCupFeedBack}" />
  252. </StackPanel>
  253. </GroupBox>
  254. <GroupBox
  255. Grid.Row="2"
  256. Width="700"
  257. Margin="0,3,0,5"
  258. HorizontalAlignment="Center"
  259. VerticalAlignment="Center"
  260. pu:GroupBoxHelper.CornerRadius="8"
  261. pu:GroupBoxHelper.IsSplitLineVisible="True"
  262. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  263. BorderBrush="#99CCCC"
  264. Foreground="#99CCCC"
  265. Header=" 液体总量">
  266. <DataGrid
  267. pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
  268. pu:DataGridHelper.HeaderBackground="#5099CCCC"
  269. pu:DataGridHelper.HeaderForeground="White"
  270. pu:DataGridHelper.HeaderMinHeight="40"
  271. pu:DataGridHelper.HoverBackground="#5066CCCC"
  272. pu:DataGridHelper.SelectedBackground="#5099CCCC"
  273. BorderBrush="#99CCCC"
  274. CanUserAddRows="False"
  275. Foreground="#99CCCC"
  276. ItemsSource="{Binding LiquidTotals, Mode=TwoWay}" Margin="4,0,10,0">
  277. <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  278. <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
  279. <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
  280. <Style.Triggers>
  281. <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
  282. <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
  283. </DataTrigger>
  284. </Style.Triggers>
  285. </Style>
  286. </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
  287. </DataGrid>
  288. </GroupBox>
  289. </Grid>
  290. </UserControl>