终端一体化运控平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

807 linhas
54 KiB

  1. <UserControl x:Class="BPASmartClient.MorkF.View.MaterialCalibration"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkF.View"
  7. xmlns:vm="clr-namespace:BPASmartClient.MorkF.ViewModel"
  8. x:Name="菜品库校验"
  9. mc:Ignorable="d"
  10. d:DesignHeight="1000" d:DesignWidth="1300">
  11. <UserControl.DataContext>
  12. <vm:MaterialCalibrationViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  18. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  19. </ResourceDictionary.MergedDictionaries>
  20. <!--#region 用户输入框样式-->
  21. <Style x:Key="UserTextBoxStyle" TargetType="TextBox">
  22. <!--<Setter Property="Background" Value="Transparent" />-->
  23. <Setter Property="CaretBrush" Value="#009DFF" />
  24. <Setter Property="Template">
  25. <Setter.Value>
  26. <ControlTemplate TargetType="TextBox">
  27. <Border
  28. x:Name="border"
  29. BorderBrush="{TemplateBinding BorderBrush}"
  30. BorderThickness="{TemplateBinding BorderThickness}"
  31. CornerRadius="5"
  32. SnapsToDevicePixels="true">
  33. <Grid>
  34. <TextBlock
  35. Name="markText"
  36. Grid.Column="1"
  37. Margin="10,0"
  38. HorizontalAlignment="Left"
  39. VerticalAlignment="Center"
  40. FontSize="{TemplateBinding FontSize}"
  41. Foreground="#a2c2e8"
  42. Text="数据有效值为1-100"
  43. Visibility="Collapsed" />
  44. <ScrollViewer
  45. x:Name="PART_ContentHost"
  46. Grid.Column="1"
  47. MinHeight="20"
  48. VerticalAlignment="Center"
  49. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  50. </Grid>
  51. </Border>
  52. <ControlTemplate.Triggers>
  53. <Trigger Property="IsEnabled" Value="false">
  54. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  55. </Trigger>
  56. <Trigger Property="IsMouseOver" Value="true">
  57. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  58. </Trigger>
  59. <Trigger Property="IsKeyboardFocused" Value="true">
  60. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  61. </Trigger>
  62. <DataTrigger Binding="{Binding Path=Text, RelativeSource={RelativeSource Mode=self}}" Value="">
  63. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  64. </DataTrigger>
  65. </ControlTemplate.Triggers>
  66. </ControlTemplate>
  67. </Setter.Value>
  68. </Setter>
  69. </Style>
  70. <!--#endregion-->
  71. </ResourceDictionary>
  72. </UserControl.Resources>
  73. <Grid>
  74. <ScrollViewer>
  75. <Grid>
  76. <Grid.RowDefinitions>
  77. <RowDefinition></RowDefinition>
  78. <RowDefinition></RowDefinition>
  79. <RowDefinition></RowDefinition>
  80. <RowDefinition></RowDefinition>
  81. <RowDefinition Height="150" ></RowDefinition>
  82. </Grid.RowDefinitions>
  83. <GroupBox Grid.Row="0" Header="菜品库第一层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
  84. <Grid Height="150">
  85. <Grid.RowDefinitions>
  86. <RowDefinition Height="*"/>
  87. <RowDefinition Height="*"/>
  88. <RowDefinition Height="*"/>
  89. </Grid.RowDefinitions>
  90. <WrapPanel Orientation="Horizontal">
  91. <Grid>
  92. <Grid.RowDefinitions>
  93. <RowDefinition Height="1*"/>
  94. <RowDefinition Height="1*"/>
  95. </Grid.RowDefinitions>
  96. <RadioButton Content="位置1" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  97. <Grid Grid.Row="1">
  98. <Grid.ColumnDefinitions>
  99. <ColumnDefinition Width="1*"/>
  100. <ColumnDefinition Width="1*"/>
  101. <ColumnDefinition Width="1*"/>
  102. <ColumnDefinition Width="1*"/>
  103. </Grid.ColumnDefinitions>
  104. <TextBlock Text="x轴:" Margin="10,0"/>
  105. <TextBox Grid.Column="1" Text="{Binding OneX}" Width="100"/>
  106. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  107. <TextBox Grid.Column="3" Text="{Binding OneY}" Width="100"/>
  108. </Grid>
  109. </Grid>
  110. <Grid>
  111. <Grid.RowDefinitions>
  112. <RowDefinition Height="1*"/>
  113. <RowDefinition Height="1*"/>
  114. </Grid.RowDefinitions>
  115. <RadioButton Content="位置2" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  116. <Grid Grid.Row="1">
  117. <Grid.ColumnDefinitions>
  118. <ColumnDefinition Width="1*"/>
  119. <ColumnDefinition Width="1*"/>
  120. <ColumnDefinition Width="1*"/>
  121. <ColumnDefinition Width="1*"/>
  122. </Grid.ColumnDefinitions>
  123. <TextBlock Text="x轴:" Margin="10,0"/>
  124. <TextBox Grid.Column="1" Text="{Binding TwoX}" Width="100"/>
  125. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  126. <TextBox Grid.Column="3" Text="{Binding TwoY}" Width="100"/>
  127. </Grid>
  128. </Grid>
  129. <Grid>
  130. <Grid.RowDefinitions>
  131. <RowDefinition Height="1*"/>
  132. <RowDefinition Height="1*"/>
  133. </Grid.RowDefinitions>
  134. <RadioButton Content="位置3" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  135. <Grid Grid.Row="1">
  136. <Grid.ColumnDefinitions>
  137. <ColumnDefinition Width="1*"/>
  138. <ColumnDefinition Width="1*"/>
  139. <ColumnDefinition Width="1*"/>
  140. <ColumnDefinition Width="1*"/>
  141. </Grid.ColumnDefinitions>
  142. <TextBlock Text="x轴:" Margin="10,0"/>
  143. <TextBox Grid.Column="1" Text="{Binding ThreeX}" Width="100"/>
  144. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  145. <TextBox Grid.Column="3" Text="{Binding ThreeY}" Width="100"/>
  146. </Grid>
  147. </Grid>
  148. </WrapPanel>
  149. <WrapPanel Grid.Row="1" Orientation="Horizontal">
  150. <Grid>
  151. <Grid.RowDefinitions>
  152. <RowDefinition Height="1*"/>
  153. <RowDefinition Height="1*"/>
  154. </Grid.RowDefinitions>
  155. <RadioButton Content="位置4" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFour}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  156. <Grid Grid.Row="1">
  157. <Grid.ColumnDefinitions>
  158. <ColumnDefinition Width="1*"/>
  159. <ColumnDefinition Width="1*"/>
  160. <ColumnDefinition Width="1*"/>
  161. <ColumnDefinition Width="1*"/>
  162. </Grid.ColumnDefinitions>
  163. <TextBlock Text="x轴:" Margin="10,0"/>
  164. <TextBox Grid.Column="1" Text="{Binding FourX}" Width="100"/>
  165. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  166. <TextBox Grid.Column="3" Text="{Binding FourY}" Width="100"/>
  167. </Grid>
  168. </Grid>
  169. <Grid>
  170. <Grid.RowDefinitions>
  171. <RowDefinition Height="1*"/>
  172. <RowDefinition Height="1*"/>
  173. </Grid.RowDefinitions>
  174. <RadioButton Content="位置5" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFive}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  175. <Grid Grid.Row="1">
  176. <Grid.ColumnDefinitions>
  177. <ColumnDefinition Width="1*"/>
  178. <ColumnDefinition Width="1*"/>
  179. <ColumnDefinition Width="1*"/>
  180. <ColumnDefinition Width="1*"/>
  181. </Grid.ColumnDefinitions>
  182. <TextBlock Text="x轴:" Margin="10,0"/>
  183. <TextBox Grid.Column="1" Text="{Binding FiveX}" Width="100"/>
  184. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  185. <TextBox Grid.Column="3" Text="{Binding FiveY}" Width="100"/>
  186. </Grid>
  187. </Grid>
  188. <Grid>
  189. <Grid.RowDefinitions>
  190. <RowDefinition Height="1*"/>
  191. <RowDefinition Height="1*"/>
  192. </Grid.RowDefinitions>
  193. <RadioButton Content="位置6" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSix}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  194. <Grid Grid.Row="1">
  195. <Grid.ColumnDefinitions>
  196. <ColumnDefinition Width="1*"/>
  197. <ColumnDefinition Width="1*"/>
  198. <ColumnDefinition Width="1*"/>
  199. <ColumnDefinition Width="1*"/>
  200. </Grid.ColumnDefinitions>
  201. <TextBlock Text="x轴:" Margin="10,0"/>
  202. <TextBox Grid.Column="1" Text="{Binding SixX}" Width="100"/>
  203. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  204. <TextBox Grid.Column="3" Text="{Binding SixY}" Width="100"/>
  205. </Grid>
  206. </Grid>
  207. </WrapPanel>
  208. <WrapPanel Grid.Row="2" Orientation="Horizontal">
  209. <Grid>
  210. <Grid.RowDefinitions>
  211. <RowDefinition Height="1*"/>
  212. <RowDefinition Height="1*"/>
  213. </Grid.RowDefinitions>
  214. <RadioButton Content="位置7" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSeven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  215. <Grid Grid.Row="1">
  216. <Grid.ColumnDefinitions>
  217. <ColumnDefinition Width="1*"/>
  218. <ColumnDefinition Width="1*"/>
  219. <ColumnDefinition Width="1*"/>
  220. <ColumnDefinition Width="1*"/>
  221. </Grid.ColumnDefinitions>
  222. <TextBlock Text="x轴:" Margin="10,0"/>
  223. <TextBox Grid.Column="1" Text="{Binding SevenX}" Width="100"/>
  224. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  225. <TextBox Grid.Column="3" Text="{Binding SevenY}" Width="100"/>
  226. </Grid>
  227. </Grid>
  228. <Grid>
  229. <Grid.RowDefinitions>
  230. <RowDefinition Height="1*"/>
  231. <RowDefinition Height="1*"/>
  232. </Grid.RowDefinitions>
  233. <RadioButton Content="位置8" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEight}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  234. <Grid Grid.Row="1">
  235. <Grid.ColumnDefinitions>
  236. <ColumnDefinition Width="1*"/>
  237. <ColumnDefinition Width="1*"/>
  238. <ColumnDefinition Width="1*"/>
  239. <ColumnDefinition Width="1*"/>
  240. </Grid.ColumnDefinitions>
  241. <TextBlock Text="x轴:" Margin="10,0"/>
  242. <TextBox Grid.Column="1" Text="{Binding EightX}" Width="100"/>
  243. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  244. <TextBox Grid.Column="3" Text="{Binding EightY}" Width="100"/>
  245. </Grid>
  246. </Grid>
  247. <Grid>
  248. <Grid.RowDefinitions>
  249. <RowDefinition Height="1*"/>
  250. <RowDefinition Height="1*"/>
  251. </Grid.RowDefinitions>
  252. <RadioButton Content="位置9" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionNine}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  253. <Grid Grid.Row="1">
  254. <Grid.ColumnDefinitions>
  255. <ColumnDefinition Width="1*"/>
  256. <ColumnDefinition Width="1*"/>
  257. <ColumnDefinition Width="1*"/>
  258. <ColumnDefinition Width="1*"/>
  259. </Grid.ColumnDefinitions>
  260. <TextBlock Text="x轴:" Margin="10,0"/>
  261. <TextBox Grid.Column="1" Text="{Binding NineX}" Width="100"/>
  262. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  263. <TextBox Grid.Column="3" Text="{Binding NineY}" Width="100"/>
  264. </Grid>
  265. </Grid>
  266. </WrapPanel>
  267. </Grid>
  268. </GroupBox>
  269. <GroupBox Grid.Row="1" Header="菜品库第二层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
  270. <Grid Height="150">
  271. <Grid.RowDefinitions>
  272. <RowDefinition Height="*"/>
  273. <RowDefinition Height="*"/>
  274. <RowDefinition Height="*"/>
  275. </Grid.RowDefinitions>
  276. <WrapPanel Orientation="Horizontal">
  277. <Grid>
  278. <Grid.RowDefinitions>
  279. <RowDefinition Height="1*"/>
  280. <RowDefinition Height="1*"/>
  281. </Grid.RowDefinitions>
  282. <RadioButton Content="位置10" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  283. <Grid Grid.Row="1">
  284. <Grid.ColumnDefinitions>
  285. <ColumnDefinition Width="1*"/>
  286. <ColumnDefinition Width="1*"/>
  287. <ColumnDefinition Width="1*"/>
  288. <ColumnDefinition Width="1*"/>
  289. </Grid.ColumnDefinitions>
  290. <TextBlock Text="x轴:" Margin="10,0"/>
  291. <TextBox Grid.Column="1" Text="{Binding TenX}" Width="100"/>
  292. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  293. <TextBox Grid.Column="3" Text="{Binding TenY}" Width="100"/>
  294. </Grid>
  295. </Grid>
  296. <Grid>
  297. <Grid.RowDefinitions>
  298. <RowDefinition Height="1*"/>
  299. <RowDefinition Height="1*"/>
  300. </Grid.RowDefinitions>
  301. <RadioButton Content="位置11" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEleven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  302. <Grid Grid.Row="1">
  303. <Grid.ColumnDefinitions>
  304. <ColumnDefinition Width="1*"/>
  305. <ColumnDefinition Width="1*"/>
  306. <ColumnDefinition Width="1*"/>
  307. <ColumnDefinition Width="1*"/>
  308. </Grid.ColumnDefinitions>
  309. <TextBlock Text="x轴:" Margin="10,0"/>
  310. <TextBox Grid.Column="1" Text="{Binding ElevenX}" Width="100"/>
  311. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  312. <TextBox Grid.Column="3" Text="{Binding ElevenY}" Width="100"/>
  313. </Grid>
  314. </Grid>
  315. <Grid>
  316. <Grid.RowDefinitions>
  317. <RowDefinition Height="1*"/>
  318. <RowDefinition Height="1*"/>
  319. </Grid.RowDefinitions>
  320. <RadioButton Content="位置12" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwelve}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  321. <Grid Grid.Row="1">
  322. <Grid.ColumnDefinitions>
  323. <ColumnDefinition Width="1*"/>
  324. <ColumnDefinition Width="1*"/>
  325. <ColumnDefinition Width="1*"/>
  326. <ColumnDefinition Width="1*"/>
  327. </Grid.ColumnDefinitions>
  328. <TextBlock Text="x轴:" Margin="10,0"/>
  329. <TextBox Grid.Column="1" Text="{Binding TwelveX}" Width="100"/>
  330. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  331. <TextBox Grid.Column="3" Text="{Binding TwelveY}" Width="100"/>
  332. </Grid>
  333. </Grid>
  334. </WrapPanel>
  335. <WrapPanel Grid.Row="1" Orientation="Horizontal">
  336. <Grid>
  337. <Grid.RowDefinitions>
  338. <RowDefinition Height="1*"/>
  339. <RowDefinition Height="1*"/>
  340. </Grid.RowDefinitions>
  341. <RadioButton Content="位置13" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionThirteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  342. <Grid Grid.Row="1">
  343. <Grid.ColumnDefinitions>
  344. <ColumnDefinition Width="1*"/>
  345. <ColumnDefinition Width="1*"/>
  346. <ColumnDefinition Width="1*"/>
  347. <ColumnDefinition Width="1*"/>
  348. </Grid.ColumnDefinitions>
  349. <TextBlock Text="x轴:" Margin="10,0"/>
  350. <TextBox Grid.Column="1" Text="{Binding ThirteenX}" Width="100"/>
  351. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  352. <TextBox Grid.Column="3" Text="{Binding ThirteenY}" Width="100"/>
  353. </Grid>
  354. </Grid>
  355. <Grid>
  356. <Grid.RowDefinitions>
  357. <RowDefinition Height="1*"/>
  358. <RowDefinition Height="1*"/>
  359. </Grid.RowDefinitions>
  360. <RadioButton Content="位置14" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFourteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  361. <Grid Grid.Row="1">
  362. <Grid.ColumnDefinitions>
  363. <ColumnDefinition Width="1*"/>
  364. <ColumnDefinition Width="1*"/>
  365. <ColumnDefinition Width="1*"/>
  366. <ColumnDefinition Width="1*"/>
  367. </Grid.ColumnDefinitions>
  368. <TextBlock Text="x轴:" Margin="10,0"/>
  369. <TextBox Grid.Column="1" Text="{Binding FourteenX}" Width="100"/>
  370. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  371. <TextBox Grid.Column="3" Text="{Binding FourteenY}" Width="100"/>
  372. </Grid>
  373. </Grid>
  374. <Grid>
  375. <Grid.RowDefinitions>
  376. <RowDefinition Height="1*"/>
  377. <RowDefinition Height="1*"/>
  378. </Grid.RowDefinitions>
  379. <RadioButton Content="位置15" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFifteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  380. <Grid Grid.Row="1">
  381. <Grid.ColumnDefinitions>
  382. <ColumnDefinition Width="1*"/>
  383. <ColumnDefinition Width="1*"/>
  384. <ColumnDefinition Width="1*"/>
  385. <ColumnDefinition Width="1*"/>
  386. </Grid.ColumnDefinitions>
  387. <TextBlock Text="x轴:" Margin="10,0"/>
  388. <TextBox Grid.Column="1" Text="{Binding FifteenX}" Width="100"/>
  389. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  390. <TextBox Grid.Column="3" Text="{Binding FifteenY}" Width="100"/>
  391. </Grid>
  392. </Grid>
  393. </WrapPanel>
  394. <WrapPanel Grid.Row="2" Orientation="Horizontal">
  395. <Grid>
  396. <Grid.RowDefinitions>
  397. <RowDefinition Height="1*"/>
  398. <RowDefinition Height="1*"/>
  399. </Grid.RowDefinitions>
  400. <RadioButton Content="位置16" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSixteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  401. <Grid Grid.Row="1">
  402. <Grid.ColumnDefinitions>
  403. <ColumnDefinition Width="1*"/>
  404. <ColumnDefinition Width="1*"/>
  405. <ColumnDefinition Width="1*"/>
  406. <ColumnDefinition Width="1*"/>
  407. </Grid.ColumnDefinitions>
  408. <TextBlock Text="x轴:" Margin="10,0"/>
  409. <TextBox Grid.Column="1" Text="{Binding SixteenX}" Width="100"/>
  410. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  411. <TextBox Grid.Column="3" Text="{Binding SixteenY}" Width="100"/>
  412. </Grid>
  413. </Grid>
  414. <Grid>
  415. <Grid.RowDefinitions>
  416. <RowDefinition Height="1*"/>
  417. <RowDefinition Height="1*"/>
  418. </Grid.RowDefinitions>
  419. <RadioButton Content="位置17" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionSeventeen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  420. <Grid Grid.Row="1">
  421. <Grid.ColumnDefinitions>
  422. <ColumnDefinition Width="1*"/>
  423. <ColumnDefinition Width="1*"/>
  424. <ColumnDefinition Width="1*"/>
  425. <ColumnDefinition Width="1*"/>
  426. </Grid.ColumnDefinitions>
  427. <TextBlock Text="x轴:" Margin="10,0"/>
  428. <TextBox Grid.Column="1" Text="{Binding SeventeenX}" Width="100"/>
  429. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  430. <TextBox Grid.Column="3" Text="{Binding SeventeenY}" Width="100"/>
  431. </Grid>
  432. </Grid>
  433. <Grid>
  434. <Grid.RowDefinitions>
  435. <RowDefinition Height="1*"/>
  436. <RowDefinition Height="1*"/>
  437. </Grid.RowDefinitions>
  438. <RadioButton Content="位置18" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionEighteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  439. <Grid Grid.Row="1">
  440. <Grid.ColumnDefinitions>
  441. <ColumnDefinition Width="1*"/>
  442. <ColumnDefinition Width="1*"/>
  443. <ColumnDefinition Width="1*"/>
  444. <ColumnDefinition Width="1*"/>
  445. </Grid.ColumnDefinitions>
  446. <TextBlock Text="x轴:" Margin="10,0"/>
  447. <TextBox Grid.Column="1" Text="{Binding EighteenX}" Width="100"/>
  448. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  449. <TextBox Grid.Column="3" Text="{Binding EighteenY}" Width="100"/>
  450. </Grid>
  451. </Grid>
  452. </WrapPanel>
  453. </Grid>
  454. </GroupBox>
  455. <GroupBox Grid.Row="2" Header="菜品库第三层" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
  456. <Grid Height="150">
  457. <Grid.RowDefinitions>
  458. <RowDefinition Height="*"/>
  459. <RowDefinition Height="*"/>
  460. <RowDefinition Height="*"/>
  461. </Grid.RowDefinitions>
  462. <WrapPanel Orientation="Horizontal">
  463. <Grid>
  464. <Grid.RowDefinitions>
  465. <RowDefinition Height="1*"/>
  466. <RowDefinition Height="1*"/>
  467. </Grid.RowDefinitions>
  468. <RadioButton Content="位置19" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionNineteen}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  469. <Grid Grid.Row="1">
  470. <Grid.ColumnDefinitions>
  471. <ColumnDefinition Width="1*"/>
  472. <ColumnDefinition Width="1*"/>
  473. <ColumnDefinition Width="1*"/>
  474. <ColumnDefinition Width="1*"/>
  475. </Grid.ColumnDefinitions>
  476. <TextBlock Text="x轴:" Margin="10,0"/>
  477. <TextBox Grid.Column="1" Text="{Binding NineteenX}" Width="100"/>
  478. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  479. <TextBox Grid.Column="3" Text="{Binding NineteenY}" Width="100"/>
  480. </Grid>
  481. </Grid>
  482. <Grid>
  483. <Grid.RowDefinitions>
  484. <RowDefinition Height="1*"/>
  485. <RowDefinition Height="1*"/>
  486. </Grid.RowDefinitions>
  487. <RadioButton Content="位置20" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwenty}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  488. <Grid Grid.Row="1">
  489. <Grid.ColumnDefinitions>
  490. <ColumnDefinition Width="1*"/>
  491. <ColumnDefinition Width="1*"/>
  492. <ColumnDefinition Width="1*"/>
  493. <ColumnDefinition Width="1*"/>
  494. </Grid.ColumnDefinitions>
  495. <TextBlock Text="x轴:" Margin="10,0"/>
  496. <TextBox Grid.Column="1" Text="{Binding TwentyX}" Width="100"/>
  497. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  498. <TextBox Grid.Column="3" Text="{Binding TwentyY}" Width="100"/>
  499. </Grid>
  500. </Grid>
  501. <Grid>
  502. <Grid.RowDefinitions>
  503. <RowDefinition Height="1*"/>
  504. <RowDefinition Height="1*"/>
  505. </Grid.RowDefinitions>
  506. <RadioButton Content="位置21" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  507. <Grid Grid.Row="1">
  508. <Grid.ColumnDefinitions>
  509. <ColumnDefinition Width="1*"/>
  510. <ColumnDefinition Width="1*"/>
  511. <ColumnDefinition Width="1*"/>
  512. <ColumnDefinition Width="1*"/>
  513. </Grid.ColumnDefinitions>
  514. <TextBlock Text="x轴:" Margin="10,0"/>
  515. <TextBox Grid.Column="1" Text="{Binding TwentyOneX}" Width="100"/>
  516. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  517. <TextBox Grid.Column="3" Text="{Binding TwentyOneY}" Width="100"/>
  518. </Grid>
  519. </Grid>
  520. </WrapPanel>
  521. <WrapPanel Grid.Row="1" Orientation="Horizontal">
  522. <Grid>
  523. <Grid.RowDefinitions>
  524. <RowDefinition Height="1*"/>
  525. <RowDefinition Height="1*"/>
  526. </Grid.RowDefinitions>
  527. <RadioButton Content="位置22" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  528. <Grid Grid.Row="1">
  529. <Grid.ColumnDefinitions>
  530. <ColumnDefinition Width="1*"/>
  531. <ColumnDefinition Width="1*"/>
  532. <ColumnDefinition Width="1*"/>
  533. <ColumnDefinition Width="1*"/>
  534. </Grid.ColumnDefinitions>
  535. <TextBlock Text="x轴:" Margin="10,0"/>
  536. <TextBox Grid.Column="1" Text="{Binding TwentyTwoX}" Width="100"/>
  537. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  538. <TextBox Grid.Column="3" Text="{Binding TwentyTwoY}" Width="100"/>
  539. </Grid>
  540. </Grid>
  541. <Grid>
  542. <Grid.RowDefinitions>
  543. <RowDefinition Height="1*"/>
  544. <RowDefinition Height="1*"/>
  545. </Grid.RowDefinitions>
  546. <RadioButton Content="位置23" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  547. <Grid Grid.Row="1">
  548. <Grid.ColumnDefinitions>
  549. <ColumnDefinition Width="1*"/>
  550. <ColumnDefinition Width="1*"/>
  551. <ColumnDefinition Width="1*"/>
  552. <ColumnDefinition Width="1*"/>
  553. </Grid.ColumnDefinitions>
  554. <TextBlock Text="x轴:" Margin="10,0"/>
  555. <TextBox Grid.Column="1" Text="{Binding TwentyThreeX}" Width="100"/>
  556. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  557. <TextBox Grid.Column="3" Text="{Binding TwentyThreeY}" Width="100"/>
  558. </Grid>
  559. </Grid>
  560. <Grid>
  561. <Grid.RowDefinitions>
  562. <RowDefinition Height="1*"/>
  563. <RowDefinition Height="1*"/>
  564. </Grid.RowDefinitions>
  565. <RadioButton Content="位置24" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyFour}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  566. <Grid Grid.Row="1">
  567. <Grid.ColumnDefinitions>
  568. <ColumnDefinition Width="1*"/>
  569. <ColumnDefinition Width="1*"/>
  570. <ColumnDefinition Width="1*"/>
  571. <ColumnDefinition Width="1*"/>
  572. </Grid.ColumnDefinitions>
  573. <TextBlock Text="x轴:" Margin="10,0"/>
  574. <TextBox Grid.Column="1" Text="{Binding TwentyFourX}" Width="100"/>
  575. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  576. <TextBox Grid.Column="3" Text="{Binding TwentyFourY}" Width="100"/>
  577. </Grid>
  578. </Grid>
  579. </WrapPanel>
  580. <WrapPanel Grid.Row="2" Orientation="Horizontal">
  581. <Grid>
  582. <Grid.RowDefinitions>
  583. <RowDefinition Height="1*"/>
  584. <RowDefinition Height="1*"/>
  585. </Grid.RowDefinitions>
  586. <RadioButton Content="位置25" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentyFive}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  587. <Grid Grid.Row="1">
  588. <Grid.ColumnDefinitions>
  589. <ColumnDefinition Width="1*"/>
  590. <ColumnDefinition Width="1*"/>
  591. <ColumnDefinition Width="1*"/>
  592. <ColumnDefinition Width="1*"/>
  593. </Grid.ColumnDefinitions>
  594. <TextBlock Text="x轴:" Margin="10,0"/>
  595. <TextBox Grid.Column="1" Text="{Binding TwentyFiveX}" Width="100"/>
  596. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  597. <TextBox Grid.Column="3" Text="{Binding TwentyFiveY}" Width="100"/>
  598. </Grid>
  599. </Grid>
  600. <Grid>
  601. <Grid.RowDefinitions>
  602. <RowDefinition Height="1*"/>
  603. <RowDefinition Height="1*"/>
  604. </Grid.RowDefinitions>
  605. <RadioButton Content="位置26" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentySix}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  606. <Grid Grid.Row="1">
  607. <Grid.ColumnDefinitions>
  608. <ColumnDefinition Width="1*"/>
  609. <ColumnDefinition Width="1*"/>
  610. <ColumnDefinition Width="1*"/>
  611. <ColumnDefinition Width="1*"/>
  612. </Grid.ColumnDefinitions>
  613. <TextBlock Text="x轴:" Margin="10,0"/>
  614. <TextBox Grid.Column="1" Text="{Binding TwentySixX}" Width="100"/>
  615. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  616. <TextBox Grid.Column="3" Text="{Binding SeventeenY}" Width="100"/>
  617. </Grid>
  618. </Grid>
  619. <Grid>
  620. <Grid.RowDefinitions>
  621. <RowDefinition Height="1*"/>
  622. <RowDefinition Height="1*"/>
  623. </Grid.RowDefinitions>
  624. <RadioButton Content="位置27" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionTwentySeven}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  625. <Grid Grid.Row="1">
  626. <Grid.ColumnDefinitions>
  627. <ColumnDefinition Width="1*"/>
  628. <ColumnDefinition Width="1*"/>
  629. <ColumnDefinition Width="1*"/>
  630. <ColumnDefinition Width="1*"/>
  631. </Grid.ColumnDefinitions>
  632. <TextBlock Text="x轴:" Margin="10,0"/>
  633. <TextBox Grid.Column="1" Text="{Binding TwentySevenX}" Width="100"/>
  634. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  635. <TextBox Grid.Column="3" Text="{Binding TwentySevenY}" Width="100"/>
  636. </Grid>
  637. </Grid>
  638. </WrapPanel>
  639. </Grid>
  640. </GroupBox>
  641. <GroupBox Grid.Row="3" Header="菜品库特殊点位" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
  642. <Grid>
  643. <Grid.RowDefinitions>
  644. <RowDefinition Height="*"/>
  645. <RowDefinition Height="*"/>
  646. </Grid.RowDefinitions>
  647. <WrapPanel>
  648. <Grid>
  649. <Grid.RowDefinitions>
  650. <RowDefinition Height="1*"/>
  651. <RowDefinition Height="1*"/>
  652. </Grid.RowDefinitions>
  653. <RadioButton Content="菜品库高度测量" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialHeight}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  654. <Grid Grid.Row="1">
  655. <WrapPanel>
  656. <TextBlock Text="x轴:" Margin="10,0"/>
  657. <TextBox Grid.Column="1" Text="{Binding MaterialHeightX}" Width="100"/>
  658. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  659. <TextBox Grid.Column="3" Text="{Binding MaterialHeightY}" Width="100"/>
  660. </WrapPanel>
  661. </Grid>
  662. </Grid>
  663. <Grid>
  664. <Grid.RowDefinitions>
  665. <RowDefinition Height="1*"/>
  666. <RowDefinition Height="1*"/>
  667. </Grid.RowDefinitions>
  668. <RadioButton Content="炒锅1菜品交互位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFrying1}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  669. <Grid Grid.Row="1">
  670. <WrapPanel>
  671. <TextBlock Text="x轴:" Margin="10,0"/>
  672. <TextBox Grid.Column="1" Text="{Binding Frying1X}" Width="100"/>
  673. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  674. <TextBox Grid.Column="3" Text="{Binding Frying1Y}" Width="100"/>
  675. </WrapPanel>
  676. </Grid>
  677. </Grid>
  678. <Grid>
  679. <Grid.RowDefinitions>
  680. <RowDefinition Height="1*"/>
  681. <RowDefinition Height="1*"/>
  682. </Grid.RowDefinitions>
  683. <RadioButton Content="炒锅2菜品交互位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionFrying2}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  684. <Grid Grid.Row="1">
  685. <WrapPanel>
  686. <TextBlock Text="x轴:" Margin="10,0"/>
  687. <TextBox Grid.Column="1" Text="{Binding Frying2X}" Width="100"/>
  688. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  689. <TextBox Grid.Column="3" Text="{Binding Frying2Y}" Width="100"/>
  690. </WrapPanel>
  691. </Grid>
  692. </Grid>
  693. </WrapPanel>
  694. <WrapPanel Grid.Row="1">
  695. <Grid>
  696. <Grid.RowDefinitions>
  697. <RowDefinition Height="1*"/>
  698. <RowDefinition Height="1*"/>
  699. </Grid.RowDefinitions>
  700. <RadioButton Content="第一层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialOne}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  701. <Grid Grid.Row="1">
  702. <WrapPanel>
  703. <TextBlock Text="x轴:" Margin="10,0"/>
  704. <TextBox Grid.Column="1" Text="{Binding MaterialOneX}" Width="100"/>
  705. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  706. <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
  707. </WrapPanel>
  708. </Grid>
  709. </Grid>
  710. <Grid>
  711. <Grid.RowDefinitions>
  712. <RowDefinition Height="1*"/>
  713. <RowDefinition Height="1*"/>
  714. </Grid.RowDefinitions>
  715. <RadioButton Content="第二层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialTwo}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  716. <Grid Grid.Row="1">
  717. <WrapPanel>
  718. <TextBlock Text="x轴:" Margin="10,0"/>
  719. <TextBox Grid.Column="1" Text="{Binding MaterialTwoX}" Width="100"/>
  720. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  721. <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
  722. </WrapPanel>
  723. </Grid>
  724. </Grid>
  725. <Grid>
  726. <Grid.RowDefinitions>
  727. <RowDefinition Height="1*"/>
  728. <RowDefinition Height="1*"/>
  729. </Grid.RowDefinitions>
  730. <RadioButton Content="第三层菜品库出菜位置" Margin="5,0" IsEnabled="True" IsChecked="{Binding PositionMaterialThree}" GroupName="MaterialPosition" HorizontalAlignment="Center"/>
  731. <Grid Grid.Row="1">
  732. <WrapPanel>
  733. <TextBlock Text="x轴:" Margin="10,0"/>
  734. <TextBox Grid.Column="1" Text="{Binding MaterialThreeX}" Width="100"/>
  735. <TextBlock Grid.Column="2" Text="Y轴:" Margin="10,0"/>
  736. <TextBox Grid.Column="3" Text="0" IsEnabled="False" Width="100"/>
  737. </WrapPanel>
  738. </Grid>
  739. </Grid>
  740. </WrapPanel>
  741. </Grid>
  742. </GroupBox>
  743. <GroupBox Grid.Row="4" Header="操作" FontSize="15" Foreground="Aqua" VerticalAlignment="Center" >
  744. <Grid >
  745. <Grid.RowDefinitions>
  746. <RowDefinition Height="1*"/>
  747. <RowDefinition Height="1*"/>
  748. <RowDefinition Height="1*"/>
  749. <RowDefinition Height="1*"/>
  750. </Grid.RowDefinitions>
  751. <WrapPanel>
  752. <Button Content="菜品库初始化" Margin="10,0,5,0" Command="{Binding FoodLibInit}"/>
  753. <Button Content="电磁阀启动" Margin="10,0,5,0" Command="{Binding StartElectromagnetism}"/>
  754. <Button Content="电磁阀停止" Margin="10,0,5,0" Command="{Binding StopElectromagnetism}"/>
  755. <Button Content="夹爪伸出" Command="{Binding PawTurnFront}" Margin="5,0" Cursor="Hand"/>
  756. <Button Content="夹爪收缩" Command="{Binding PawTurnBack}" Margin="5,0" Cursor="Hand"/>
  757. <RadioButton Content="位置1" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon1}" Command="{Binding PawToPoint1}" GroupName="PawTurn"/>
  758. <RadioButton Content="位置2" Margin="5,0" IsEnabled="True" IsChecked="{Binding PawPositon2}" Command="{Binding PawToPoint2}" GroupName="PawTurn"/>
  759. <RadioButton Content="位置3" Margin="5,0 " IsEnabled="True" IsChecked="{Binding PawPositon3}" Command="{Binding PawToPoint3}" GroupName="PawTurn"/>
  760. </WrapPanel>
  761. <WrapPanel Grid.Row="1">
  762. <Button Content="感应器1测距" Margin="5,0" Command="{Binding GetDistance_1}" Cursor="Hand"/>
  763. <TextBox Grid.Column="1" Text="{Binding Distance_1}" Width="100"/>
  764. <Button Content="感应器2测距" Margin="5,0" Command="{Binding GetDistance_2}"/>
  765. <TextBox Grid.Column="1" Text="{Binding Distance_2}" Width="100"/>
  766. <Button Content="感应器3测距" Margin="5,0" Command="{Binding GetDistance_3}"/>
  767. <TextBox Grid.Column="1" Text="{Binding Distance_3}" Width="100"/>
  768. </WrapPanel>
  769. <WrapPanel Grid.Row="2">
  770. <TextBlock Text="移动系数:"></TextBlock>
  771. <TextBox
  772. Style="{DynamicResource UserTextBoxStyle}"
  773. Foreground="#a2c2e8" Text="{Binding Str}"/>
  774. <TextBlock Text="移动方式:" Margin="50,0,0,0"></TextBlock>
  775. <RadioButton Content="上" Margin="5,0" IsChecked="{Binding Up}" GroupName="ArmRun"/>
  776. <RadioButton Content="下" Margin="5,0" IsChecked="{Binding Down}" GroupName="ArmRun"/>
  777. <RadioButton Content="左" Margin="5,0 " IsChecked="{Binding Left}" GroupName="ArmRun"/>
  778. <RadioButton Content="右" Margin="5,0 " IsChecked="{Binding Right}" GroupName="ArmRun"/>
  779. <RadioButton Content="定点" Margin="5,0 " IsChecked="{Binding Point}" GroupName="ArmRun"/>
  780. <Button Content="移动" Command="{Binding SetNowPosition}"/>
  781. </WrapPanel>
  782. <WrapPanel Grid.Row="3" Cursor="">
  783. <Button Content="自动计算" Margin="20,0,50,0" Command="{Binding AutoCalculation}"/>
  784. <Button Content="保存" Margin="20,0,50,0" Command="{Binding SaveCoordinate}"/>
  785. <Button Content="读取" Command="{Binding ReadCoordinate}"/>
  786. </WrapPanel>
  787. </Grid>
  788. </GroupBox>
  789. </Grid>
  790. </ScrollViewer>
  791. </Grid>
  792. </UserControl>