ProductParams.xaml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <UserControl x:Class="TeamAAS_VP.Views.Product.ProductParams"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  6. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  8. xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
  9. xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
  10. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Product"
  13. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  14. lex:LocalizeDictionary.DesignCulture="zh-CN"
  15. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  16. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. mc:Ignorable="d"
  19. d:DataContext="{d:DesignInstance Type=vm:ProductParamsViewModel}"
  20. d:Height="600"
  21. d:Width="1024"
  22. d:Background="White"
  23. FontFamily="{DynamicResource DefaultFont}">
  24. <b:Interaction.Triggers>
  25. <b:EventTrigger EventName="Loaded">
  26. <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
  27. </b:EventTrigger>
  28. </b:Interaction.Triggers>
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="auto" />
  32. <RowDefinition Height="*" />
  33. <RowDefinition Height="auto" />
  34. </Grid.RowDefinitions>
  35. <Button Grid.Row="0"
  36. Content="{materialDesign:PackIcon Kind=ArrowLeftCircle}"
  37. Width="50"
  38. HorizontalAlignment="Left"
  39. VerticalAlignment="Top"
  40. ToolTip="{lex:Loc 返回}"
  41. Style="{StaticResource MaterialDesignIconButton}"
  42. Command="{Binding BackCommand}" />
  43. <StackPanel Grid.Row="0"
  44. Orientation="Horizontal"
  45. Margin="50,0"
  46. VerticalAlignment="Center">
  47. <materialDesign:PackIcon Kind="CubeOutline"
  48. Width="30"
  49. Height="30" />
  50. <TextBlock Text="{Binding SelectProduct.Name}"
  51. VerticalAlignment="Center" />
  52. <TextBlock Text="{lex:Loc 产品参数,Converter={StaticResource StringFormatConverter},ConverterParameter=' - {0}'}"
  53. VerticalAlignment="Center" />
  54. </StackPanel>
  55. <Border BorderThickness="1,1,1,1"
  56. VerticalAlignment="Bottom"
  57. Height="1">
  58. <Border.BorderBrush>
  59. <VisualBrush>
  60. <VisualBrush.Visual>
  61. <Rectangle StrokeDashArray="4 4"
  62. Stroke="LightGray"
  63. StrokeThickness="1"
  64. Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
  65. Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}" />
  66. </VisualBrush.Visual>
  67. </VisualBrush>
  68. </Border.BorderBrush>
  69. </Border>
  70. <materialDesign:DrawerHost Grid.Row="1"
  71. OpenMode="Standard"
  72. x:Name="DrawerHost"
  73. IsEnabled="{Binding IsAllowEdit}">
  74. <materialDesign:DrawerHost.RightDrawerContent>
  75. <uControl:ParameterEdit x:Name="parameterEdit"/>
  76. </materialDesign:DrawerHost.RightDrawerContent>
  77. <Grid>
  78. <Grid.ColumnDefinitions>
  79. <ColumnDefinition Width="auto" />
  80. <ColumnDefinition Width="*" />
  81. </Grid.ColumnDefinitions>
  82. <Expander Grid.Column="0"
  83. ExpandDirection="Right"
  84. Background="Transparent">
  85. <Expander.Header>
  86. <TextBlock RenderTransformOrigin=".5,.5"
  87. Text="Navigation Description">
  88. <TextBlock.LayoutTransform>
  89. <RotateTransform Angle="90" />
  90. </TextBlock.LayoutTransform>
  91. </TextBlock>
  92. </Expander.Header>
  93. <ScrollViewer>
  94. <StackPanel Margin="8,24,16,24"
  95. Orientation="Vertical">
  96. <Image Source="pack://application:,,,/TeamAAS-VP;component/Resources/Images/10产品参数.png"
  97. Stretch="Uniform"
  98. Width="350"
  99. HorizontalAlignment="Center"
  100. VerticalAlignment="Top" />
  101. <TextBlock Text="{lex:Loc 产品参数设定}" />
  102. <TextBlock Foreground="Gray"
  103. TextWrapping="Wrap"
  104. Text="{lex:Loc 产品参数设定描述}" />
  105. </StackPanel>
  106. </ScrollViewer>
  107. </Expander>
  108. <Grid Grid.Column="1"
  109. IsEnabled="{Binding IsAllowEdit}"
  110. Margin="10"
  111. HorizontalAlignment="Center"
  112. VerticalAlignment="Center">
  113. <Grid.RowDefinitions>
  114. <RowDefinition Height="auto" />
  115. <RowDefinition Height="auto" />
  116. <RowDefinition Height="auto" />
  117. <RowDefinition Height="auto" />
  118. <RowDefinition Height="auto" />
  119. <RowDefinition Height="auto" />
  120. <RowDefinition Height="auto" />
  121. <RowDefinition Height="auto" />
  122. <RowDefinition Height="auto" />
  123. <RowDefinition Height="auto" />
  124. <RowDefinition Height="auto" />
  125. <RowDefinition Height="auto" />
  126. <RowDefinition Height="auto" />
  127. <RowDefinition Height="auto" />
  128. <RowDefinition Height="auto" />
  129. <RowDefinition Height="auto" />
  130. <RowDefinition Height="auto" />
  131. <RowDefinition Height="auto" />
  132. <RowDefinition Height="auto" />
  133. <RowDefinition Height="auto" />
  134. <RowDefinition Height="auto" />
  135. </Grid.RowDefinitions>
  136. <Grid.ColumnDefinitions>
  137. <ColumnDefinition Width="auto" />
  138. <ColumnDefinition Width="auto" />
  139. </Grid.ColumnDefinitions>
  140. <Grid.Resources>
  141. <Style TargetType="TextBlock">
  142. <Setter Property="HorizontalAlignment"
  143. Value="Right" />
  144. <Setter Property="VerticalAlignment"
  145. Value="Center" />
  146. <Setter Property="FontSize"
  147. Value="10" />
  148. <Setter Property="FontWeight"
  149. Value="Bold" />
  150. <Setter Property="Margin"
  151. Value="5,2" />
  152. </Style>
  153. <Style TargetType="TextBox"
  154. BasedOn="{StaticResource MaterialDesignFloatingHintTextBox}">
  155. <Setter Property="HorizontalAlignment"
  156. Value="Center" />
  157. <Setter Property="VerticalAlignment"
  158. Value="Center" />
  159. <Setter Property="FontSize"
  160. Value="10" />
  161. <Setter Property="Margin"
  162. Value="5,2" />
  163. <Setter Property="MinWidth"
  164. Value="100" />
  165. <Setter Property="HorizontalContentAlignment"
  166. Value="Center" />
  167. <Setter Property="VerticalContentAlignment"
  168. Value="Center" />
  169. </Style>
  170. </Grid.Resources>
  171. <ToggleButton Grid.Column="1"
  172. Grid.Row="0"
  173. HorizontalAlignment="Right"
  174. VerticalAlignment="Top"
  175. materialDesign:ToggleButtonAssist.OnContent="{materialDesign:PackIcon Kind=ChevronDoubleLeft}"
  176. Content="{materialDesign:PackIcon Kind=ChevronDoubleRight}"
  177. Style="{StaticResource MaterialDesignActionToggleButton}"
  178. ToolTip="{lex:Loc 其他参数}"
  179. Margin="0,-40"
  180. IsChecked="{Binding IsRightDrawerOpen,ElementName=DrawerHost}" />
  181. <!--PTP速度-->
  182. <TextBlock Grid.Row="0"
  183. Grid.Column="0"
  184. Text="{lex:Loc PTP速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  185. <mah:NumericUpDown Grid.Row="0"
  186. Grid.Column="1"
  187. Margin="0,5"
  188. Maximum="100"
  189. Minimum="1"
  190. StringFormat="{}{0:N0} %"
  191. Value="{Binding SelectProduct.Speed,Mode=TwoWay}" />
  192. <!--PTP加减速度--><!--
  193. <TextBlock Grid.Row="1"
  194. Grid.Column="0"
  195. Text="{lex:Loc PTP加减速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  196. <mah:NumericUpDown Grid.Row="1"
  197. Grid.Column="1"
  198. Margin="0,5"
  199. Maximum="100"
  200. Minimum="1"
  201. StringFormat="{}{0:N0} %"
  202. Value="{Binding SelectProduct.Accel,Mode=TwoWay}" />
  203. --><!--CP速度--><!--
  204. <TextBlock Grid.Row="2"
  205. Grid.Column="0"
  206. Text="{lex:Loc CP速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  207. <mah:NumericUpDown Grid.Row="2"
  208. Grid.Column="1"
  209. Margin="0,5"
  210. Maximum="3000"
  211. Minimum="1"
  212. StringFormat="{}{0:N0} mm/s"
  213. Value="{Binding SelectProduct.Speeds,Mode=TwoWay}" />
  214. --><!--CP加减速度--><!--
  215. <TextBlock Grid.Row="3"
  216. Grid.Column="0"
  217. Text="{lex:Loc CP加减速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  218. <mah:NumericUpDown Grid.Row="3"
  219. Grid.Column="1"
  220. Margin="0,5"
  221. Maximum="30000"
  222. Minimum="1"
  223. StringFormat="{}{0:N0} mm/s²"
  224. Value="{Binding SelectProduct.Accels,Mode=TwoWay}" />
  225. --><!--功率--><!--
  226. <TextBlock Grid.Row="4"
  227. Grid.Column="0"
  228. Text="{lex:Loc 功率,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  229. <CheckBox Grid.Row="4"
  230. Grid.Column="1"
  231. Content="{lex:Loc 高功率}"
  232. IsChecked="{Binding SelectProduct.Power}" />
  233. --><!--二次相机功能--><!--
  234. <TextBlock Grid.Row="5"
  235. Grid.Column="0"
  236. Text="{lex:Loc 视觉引导模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  237. <CheckBox Grid.Row="5"
  238. Grid.Column="1"
  239. Content="{lex:Loc 启用二次定位相机}"
  240. IsChecked="{Binding SelectProduct.IsUserUpCamera}" />-->
  241. <!--固定向上相机1视觉流程-->
  242. <TextBlock Grid.Row="1"
  243. Grid.Column="0"
  244. Text="固定向上相机1视觉流程ID: " />
  245. <ComboBox Grid.Row="1"
  246. Grid.Column="1"
  247. ItemsSource="{Binding ProcedureModels}"
  248. SelectedItem="{Binding FixedUpCamera1Procedure}"
  249. materialDesign:TextFieldAssist.HasClearButton="True"
  250. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  251. <ComboBox.ItemTemplate>
  252. <DataTemplate>
  253. <StackPanel Orientation="Horizontal">
  254. <materialDesign:PackIcon Kind="VideoOutline" />
  255. <TextBlock Text="{Binding CameraName}"
  256. Margin="6,0" />
  257. <materialDesign:PackIcon Kind="ProgressWrench" />
  258. <TextBlock Text="{Binding Name}"
  259. Margin="6,0" />
  260. </StackPanel>
  261. </DataTemplate>
  262. </ComboBox.ItemTemplate>
  263. </ComboBox>
  264. <!--固定向上相机2视觉流程-->
  265. <TextBlock Grid.Row="2"
  266. Grid.Column="0"
  267. Text="固定向上相机2视觉流程ID: " />
  268. <ComboBox Grid.Row="2"
  269. Grid.Column="1"
  270. ItemsSource="{Binding ProcedureModels}"
  271. SelectedItem="{Binding FixedUpCamera2Procedure}"
  272. materialDesign:TextFieldAssist.HasClearButton="True"
  273. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  274. <ComboBox.ItemTemplate>
  275. <DataTemplate>
  276. <StackPanel Orientation="Horizontal">
  277. <materialDesign:PackIcon Kind="VideoOutline" />
  278. <TextBlock Text="{Binding CameraName}"
  279. Margin="6,0" />
  280. <materialDesign:PackIcon Kind="ProgressWrench" />
  281. <TextBlock Text="{Binding Name}"
  282. Margin="6,0" />
  283. </StackPanel>
  284. </DataTemplate>
  285. </ComboBox.ItemTemplate>
  286. </ComboBox>
  287. <!--固定向下相机1取料流程--><!--
  288. <TextBlock Grid.Row="3"
  289. Grid.Column="0"
  290. Text="固定向下相机1取料流程ID: " />
  291. <ComboBox Grid.Row="3"
  292. Grid.Column="1"
  293. ItemsSource="{Binding ProcedureModels}"
  294. SelectedItem="{Binding FixedDownCamera1Procedure}"
  295. materialDesign:TextFieldAssist.HasClearButton="True"
  296. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  297. <ComboBox.ItemTemplate>
  298. <DataTemplate>
  299. <StackPanel Orientation="Horizontal">
  300. <materialDesign:PackIcon Kind="VideoOutline" />
  301. <TextBlock Text="{Binding CameraName}"
  302. Margin="6,0" />
  303. <materialDesign:PackIcon Kind="ProgressWrench" />
  304. <TextBlock Text="{Binding Name}"
  305. Margin="6,0" />
  306. </StackPanel>
  307. </DataTemplate>
  308. </ComboBox.ItemTemplate>
  309. </ComboBox>
  310. --><!--固定向下相机2取料流程--><!--
  311. <TextBlock Grid.Row="4"
  312. Grid.Column="0"
  313. Text="固定向下相机2取料流程ID: " />
  314. <ComboBox Grid.Row="4"
  315. Grid.Column="1"
  316. ItemsSource="{Binding ProcedureModels}"
  317. SelectedItem="{Binding FixedDownCamera2Procedure}"
  318. materialDesign:TextFieldAssist.HasClearButton="True"
  319. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  320. <ComboBox.ItemTemplate>
  321. <DataTemplate>
  322. <StackPanel Orientation="Horizontal">
  323. <materialDesign:PackIcon Kind="VideoOutline" />
  324. <TextBlock Text="{Binding CameraName}"
  325. Margin="6,0" />
  326. <materialDesign:PackIcon Kind="ProgressWrench" />
  327. <TextBlock Text="{Binding Name}"
  328. Margin="6,0" />
  329. </StackPanel>
  330. </DataTemplate>
  331. </ComboBox.ItemTemplate>
  332. </ComboBox>-->
  333. <!--移动向下相机1锁付拍照流程--><!--
  334. <TextBlock Grid.Row="5"
  335. Grid.Column="0"
  336. Text="移动向下相机1锁付拍照流程ID: " />
  337. <ComboBox Grid.Row="5"
  338. Grid.Column="1"
  339. ItemsSource="{Binding ProcedureModels}"
  340. SelectedItem="{Binding MoveDownCamera1LockPhotoProcedure}"
  341. materialDesign:TextFieldAssist.HasClearButton="True"
  342. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  343. <ComboBox.ItemTemplate>
  344. <DataTemplate>
  345. <StackPanel Orientation="Horizontal">
  346. <materialDesign:PackIcon Kind="VideoOutline" />
  347. <TextBlock Text="{Binding CameraName}"
  348. Margin="6,0" />
  349. <materialDesign:PackIcon Kind="ProgressWrench" />
  350. <TextBlock Text="{Binding Name}"
  351. Margin="6,0" />
  352. </StackPanel>
  353. </DataTemplate>
  354. </ComboBox.ItemTemplate>
  355. </ComboBox>
  356. --><!--移动向下相机2锁付拍照流程--><!--
  357. <TextBlock Grid.Row="6"
  358. Grid.Column="0"
  359. Text="移动向下相机2锁付拍照流程ID: " />
  360. <ComboBox Grid.Row="6"
  361. Grid.Column="1"
  362. ItemsSource="{Binding ProcedureModels}"
  363. SelectedItem="{Binding MoveDownCamera2LockPhotoProcedure}"
  364. materialDesign:TextFieldAssist.HasClearButton="True"
  365. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  366. <ComboBox.ItemTemplate>
  367. <DataTemplate>
  368. <StackPanel Orientation="Horizontal">
  369. <materialDesign:PackIcon Kind="VideoOutline" />
  370. <TextBlock Text="{Binding CameraName}"
  371. Margin="6,0" />
  372. <materialDesign:PackIcon Kind="ProgressWrench" />
  373. <TextBlock Text="{Binding Name}"
  374. Margin="6,0" />
  375. </StackPanel>
  376. </DataTemplate>
  377. </ComboBox.ItemTemplate>
  378. </ComboBox>
  379. --><!--移动向下相机1取料拍照流程--><!--
  380. <TextBlock Grid.Row="7"
  381. Grid.Column="0"
  382. Text="移动向下相机1取料拍照流程ID: " />
  383. <ComboBox Grid.Row="7"
  384. Grid.Column="1"
  385. ItemsSource="{Binding ProcedureModels}"
  386. SelectedItem="{Binding MoveDownCamer1PickPhotoProcedureId}"
  387. materialDesign:TextFieldAssist.HasClearButton="True"
  388. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  389. <ComboBox.ItemTemplate>
  390. <DataTemplate>
  391. <StackPanel Orientation="Horizontal">
  392. <materialDesign:PackIcon Kind="VideoOutline" />
  393. <TextBlock Text="{Binding CameraName}"
  394. Margin="6,0" />
  395. <materialDesign:PackIcon Kind="ProgressWrench" />
  396. <TextBlock Text="{Binding Name}"
  397. Margin="6,0" />
  398. </StackPanel>
  399. </DataTemplate>
  400. </ComboBox.ItemTemplate>
  401. </ComboBox>
  402. --><!--移动向下相机2取料拍照流程--><!--
  403. <TextBlock Grid.Row="8"
  404. Grid.Column="0"
  405. Text="移动向下相机2取料拍照流程ID: " />
  406. <ComboBox Grid.Row="8"
  407. Grid.Column="1"
  408. ItemsSource="{Binding ProcedureModels}"
  409. SelectedItem="{Binding MoveDownCamer2PickPhotoProcedureId}"
  410. materialDesign:TextFieldAssist.HasClearButton="True"
  411. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  412. <ComboBox.ItemTemplate>
  413. <DataTemplate>
  414. <StackPanel Orientation="Horizontal">
  415. <materialDesign:PackIcon Kind="VideoOutline" />
  416. <TextBlock Text="{Binding CameraName}"
  417. Margin="6,0" />
  418. <materialDesign:PackIcon Kind="ProgressWrench" />
  419. <TextBlock Text="{Binding Name}"
  420. Margin="6,0" />
  421. </StackPanel>
  422. </DataTemplate>
  423. </ComboBox.ItemTemplate>
  424. </ComboBox>-->
  425. <!--独立向下相机1取料拍照流程ID-->
  426. <TextBlock Grid.Row="9"
  427. Grid.Column="0"
  428. Text="独立向下相机1取料拍照流程ID: " />
  429. <ComboBox Grid.Row="9"
  430. Grid.Column="1"
  431. ItemsSource="{Binding ProcedureModels}"
  432. SelectedItem="{Binding IndependentCamer1AuxProcedureId}"
  433. materialDesign:TextFieldAssist.HasClearButton="True"
  434. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  435. <ComboBox.ItemTemplate>
  436. <DataTemplate>
  437. <StackPanel Orientation="Horizontal">
  438. <materialDesign:PackIcon Kind="VideoOutline" />
  439. <TextBlock Text="{Binding CameraName}"
  440. Margin="6,0" />
  441. <materialDesign:PackIcon Kind="ProgressWrench" />
  442. <TextBlock Text="{Binding Name}"
  443. Margin="6,0" />
  444. </StackPanel>
  445. </DataTemplate>
  446. </ComboBox.ItemTemplate>
  447. </ComboBox>
  448. <!--独立向下相机2取料拍照流程ID-->
  449. <TextBlock Grid.Row="10"
  450. Grid.Column="0"
  451. Text="独立向下相机2取料拍照流程ID: " />
  452. <ComboBox Grid.Row="10"
  453. Grid.Column="1"
  454. ItemsSource="{Binding ProcedureModels}"
  455. SelectedItem="{Binding IndependentCamer2AuxProcedureId}"
  456. materialDesign:TextFieldAssist.HasClearButton="True"
  457. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  458. <ComboBox.ItemTemplate>
  459. <DataTemplate>
  460. <StackPanel Orientation="Horizontal">
  461. <materialDesign:PackIcon Kind="VideoOutline" />
  462. <TextBlock Text="{Binding CameraName}"
  463. Margin="6,0" />
  464. <materialDesign:PackIcon Kind="ProgressWrench" />
  465. <TextBlock Text="{Binding Name}"
  466. Margin="6,0" />
  467. </StackPanel>
  468. </DataTemplate>
  469. </ComboBox.ItemTemplate>
  470. </ComboBox>
  471. <!--独立向下相机3取料拍照流程ID-->
  472. <TextBlock Grid.Row="11"
  473. Grid.Column="0"
  474. Text="独立向下相机3取料拍照流程ID: " />
  475. <ComboBox Grid.Row="11"
  476. Grid.Column="1"
  477. ItemsSource="{Binding ProcedureModels}"
  478. SelectedItem="{Binding IndependentCamer3AuxProcedureId}"
  479. materialDesign:TextFieldAssist.HasClearButton="True"
  480. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  481. <ComboBox.ItemTemplate>
  482. <DataTemplate>
  483. <StackPanel Orientation="Horizontal">
  484. <materialDesign:PackIcon Kind="VideoOutline" />
  485. <TextBlock Text="{Binding CameraName}"
  486. Margin="6,0" />
  487. <materialDesign:PackIcon Kind="ProgressWrench" />
  488. <TextBlock Text="{Binding Name}"
  489. Margin="6,0" />
  490. </StackPanel>
  491. </DataTemplate>
  492. </ComboBox.ItemTemplate>
  493. </ComboBox>
  494. <!--独立向下相机4取料拍照流程ID-->
  495. <TextBlock Grid.Row="12"
  496. Grid.Column="0"
  497. Text="独立向下相机4取料拍照流程ID: " />
  498. <ComboBox Grid.Row="12"
  499. Grid.Column="1"
  500. ItemsSource="{Binding ProcedureModels}"
  501. SelectedItem="{Binding IndependentCamer4AuxProcedureId}"
  502. materialDesign:TextFieldAssist.HasClearButton="True"
  503. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  504. <ComboBox.ItemTemplate>
  505. <DataTemplate>
  506. <StackPanel Orientation="Horizontal">
  507. <materialDesign:PackIcon Kind="VideoOutline" />
  508. <TextBlock Text="{Binding CameraName}"
  509. Margin="6,0" />
  510. <materialDesign:PackIcon Kind="ProgressWrench" />
  511. <TextBlock Text="{Binding Name}"
  512. Margin="6,0" />
  513. </StackPanel>
  514. </DataTemplate>
  515. </ComboBox.ItemTemplate>
  516. </ComboBox>
  517. <!--独立向下相机1产品拍照流程ID-->
  518. <TextBlock Grid.Row="13"
  519. Grid.Column="0"
  520. Text="独立向下相机1产品拍照流程ID: " />
  521. <ComboBox Grid.Row="13"
  522. Grid.Column="1"
  523. ItemsSource="{Binding ProcedureModels}"
  524. SelectedItem="{Binding IndependentCamer1ProductProcedureId}"
  525. materialDesign:TextFieldAssist.HasClearButton="True"
  526. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  527. <ComboBox.ItemTemplate>
  528. <DataTemplate>
  529. <StackPanel Orientation="Horizontal">
  530. <materialDesign:PackIcon Kind="VideoOutline" />
  531. <TextBlock Text="{Binding CameraName}"
  532. Margin="6,0" />
  533. <materialDesign:PackIcon Kind="ProgressWrench" />
  534. <TextBlock Text="{Binding Name}"
  535. Margin="6,0" />
  536. </StackPanel>
  537. </DataTemplate>
  538. </ComboBox.ItemTemplate>
  539. </ComboBox>
  540. <!--独立向下相机2产品拍照流程ID-->
  541. <TextBlock Grid.Row="14"
  542. Grid.Column="0"
  543. Text="独立向下相机2产品拍照流程ID: " />
  544. <ComboBox Grid.Row="14"
  545. Grid.Column="1"
  546. ItemsSource="{Binding ProcedureModels}"
  547. SelectedItem="{Binding IndependentCamer2ProductProcedureId}"
  548. materialDesign:TextFieldAssist.HasClearButton="True"
  549. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  550. <ComboBox.ItemTemplate>
  551. <DataTemplate>
  552. <StackPanel Orientation="Horizontal">
  553. <materialDesign:PackIcon Kind="VideoOutline" />
  554. <TextBlock Text="{Binding CameraName}"
  555. Margin="6,0" />
  556. <materialDesign:PackIcon Kind="ProgressWrench" />
  557. <TextBlock Text="{Binding Name}"
  558. Margin="6,0" />
  559. </StackPanel>
  560. </DataTemplate>
  561. </ComboBox.ItemTemplate>
  562. </ComboBox>
  563. <!--独立向下相机3产品拍照流程ID-->
  564. <TextBlock Grid.Row="15"
  565. Grid.Column="0"
  566. Text="独立向下相机3产品拍照流程ID: " />
  567. <ComboBox Grid.Row="15"
  568. Grid.Column="1"
  569. ItemsSource="{Binding ProcedureModels}"
  570. SelectedItem="{Binding IndependentCamer3ProductProcedureId}"
  571. materialDesign:TextFieldAssist.HasClearButton="True"
  572. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  573. <ComboBox.ItemTemplate>
  574. <DataTemplate>
  575. <StackPanel Orientation="Horizontal">
  576. <materialDesign:PackIcon Kind="VideoOutline" />
  577. <TextBlock Text="{Binding CameraName}"
  578. Margin="6,0" />
  579. <materialDesign:PackIcon Kind="ProgressWrench" />
  580. <TextBlock Text="{Binding Name}"
  581. Margin="6,0" />
  582. </StackPanel>
  583. </DataTemplate>
  584. </ComboBox.ItemTemplate>
  585. </ComboBox>
  586. <!--独立向下相机4产品拍照流程ID-->
  587. <TextBlock Grid.Row="16"
  588. Grid.Column="0"
  589. Text="独立向下相机4产品拍照流程ID: " />
  590. <ComboBox Grid.Row="16"
  591. Grid.Column="1"
  592. ItemsSource="{Binding ProcedureModels}"
  593. SelectedItem="{Binding IndependentCamer4ProductProcedureId}"
  594. materialDesign:TextFieldAssist.HasClearButton="True"
  595. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  596. <ComboBox.ItemTemplate>
  597. <DataTemplate>
  598. <StackPanel Orientation="Horizontal">
  599. <materialDesign:PackIcon Kind="VideoOutline" />
  600. <TextBlock Text="{Binding CameraName}"
  601. Margin="6,0" />
  602. <materialDesign:PackIcon Kind="ProgressWrench" />
  603. <TextBlock Text="{Binding Name}"
  604. Margin="6,0" />
  605. </StackPanel>
  606. </DataTemplate>
  607. </ComboBox.ItemTemplate>
  608. </ComboBox>
  609. <!--独立向下相机1检测拍照流程ID-->
  610. <TextBlock Grid.Row="17"
  611. Grid.Column="0"
  612. Text="独立向下相机1检测拍照流程ID: " />
  613. <ComboBox Grid.Row="17"
  614. Grid.Column="1"
  615. ItemsSource="{Binding ProcedureModels}"
  616. SelectedItem="{Binding IndependentCamer1CheckProcedureId}"
  617. materialDesign:TextFieldAssist.HasClearButton="True"
  618. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  619. <ComboBox.ItemTemplate>
  620. <DataTemplate>
  621. <StackPanel Orientation="Horizontal">
  622. <materialDesign:PackIcon Kind="VideoOutline" />
  623. <TextBlock Text="{Binding CameraName}"
  624. Margin="6,0" />
  625. <materialDesign:PackIcon Kind="ProgressWrench" />
  626. <TextBlock Text="{Binding Name}"
  627. Margin="6,0" />
  628. </StackPanel>
  629. </DataTemplate>
  630. </ComboBox.ItemTemplate>
  631. </ComboBox>
  632. <!--独立向下相机2检测拍照流程ID-->
  633. <TextBlock Grid.Row="18"
  634. Grid.Column="0"
  635. Text="独立向下相机2检测拍照流程ID: " />
  636. <ComboBox Grid.Row="18"
  637. Grid.Column="1"
  638. ItemsSource="{Binding ProcedureModels}"
  639. SelectedItem="{Binding IndependentCamer2CheckProcedureId}"
  640. materialDesign:TextFieldAssist.HasClearButton="True"
  641. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  642. <ComboBox.ItemTemplate>
  643. <DataTemplate>
  644. <StackPanel Orientation="Horizontal">
  645. <materialDesign:PackIcon Kind="VideoOutline" />
  646. <TextBlock Text="{Binding CameraName}"
  647. Margin="6,0" />
  648. <materialDesign:PackIcon Kind="ProgressWrench" />
  649. <TextBlock Text="{Binding Name}"
  650. Margin="6,0" />
  651. </StackPanel>
  652. </DataTemplate>
  653. </ComboBox.ItemTemplate>
  654. </ComboBox>
  655. <!--独立向下相机3检测拍照流程ID-->
  656. <TextBlock Grid.Row="19"
  657. Grid.Column="0"
  658. Text="独立向下相机3检测拍照流程ID: " />
  659. <ComboBox Grid.Row="19"
  660. Grid.Column="1"
  661. ItemsSource="{Binding ProcedureModels}"
  662. SelectedItem="{Binding IndependentCamer3CheckProcedureId}"
  663. materialDesign:TextFieldAssist.HasClearButton="True"
  664. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  665. <ComboBox.ItemTemplate>
  666. <DataTemplate>
  667. <StackPanel Orientation="Horizontal">
  668. <materialDesign:PackIcon Kind="VideoOutline" />
  669. <TextBlock Text="{Binding CameraName}"
  670. Margin="6,0" />
  671. <materialDesign:PackIcon Kind="ProgressWrench" />
  672. <TextBlock Text="{Binding Name}"
  673. Margin="6,0" />
  674. </StackPanel>
  675. </DataTemplate>
  676. </ComboBox.ItemTemplate>
  677. </ComboBox>
  678. <!--独立向下相机4检测拍照流程ID-->
  679. <TextBlock Grid.Row="20"
  680. Grid.Column="0"
  681. Text="独立向下相机4检测拍照流程ID: " />
  682. <ComboBox Grid.Row="20"
  683. Grid.Column="1"
  684. ItemsSource="{Binding ProcedureModels}"
  685. SelectedItem="{Binding IndependentCamer4CheckProcedureId}"
  686. materialDesign:TextFieldAssist.HasClearButton="True"
  687. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  688. <ComboBox.ItemTemplate>
  689. <DataTemplate>
  690. <StackPanel Orientation="Horizontal">
  691. <materialDesign:PackIcon Kind="VideoOutline" />
  692. <TextBlock Text="{Binding CameraName}"
  693. Margin="6,0" />
  694. <materialDesign:PackIcon Kind="ProgressWrench" />
  695. <TextBlock Text="{Binding Name}"
  696. Margin="6,0" />
  697. </StackPanel>
  698. </DataTemplate>
  699. </ComboBox.ItemTemplate>
  700. </ComboBox>
  701. </Grid>
  702. </Grid>
  703. </materialDesign:DrawerHost>
  704. <StackPanel Grid.Row="2"
  705. Orientation="Horizontal"
  706. HorizontalAlignment="Center"
  707. VerticalAlignment="Center"
  708. Margin="20">
  709. <Button Content="{lex:Loc 完成}"
  710. IsEnabled="{Binding IsAllowEdit}"
  711. MinWidth="100"
  712. HorizontalAlignment="Center"
  713. VerticalAlignment="Center"
  714. materialDesign:ButtonAssist.CornerRadius="10"
  715. Style="{StaticResource MaterialDesignRaisedButton}"
  716. Command="{Binding NextCommand}" />
  717. </StackPanel>
  718. </Grid>
  719. </UserControl>