终端一体化运控平台
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.
 
 
 

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