ProductParams.xaml 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. <RowDefinition Height="auto" />
  136. </Grid.RowDefinitions>
  137. <Grid.ColumnDefinitions>
  138. <ColumnDefinition Width="auto" />
  139. <ColumnDefinition Width="auto" />
  140. </Grid.ColumnDefinitions>
  141. <Grid.Resources>
  142. <Style TargetType="TextBlock">
  143. <Setter Property="HorizontalAlignment"
  144. Value="Right" />
  145. <Setter Property="VerticalAlignment"
  146. Value="Center" />
  147. <Setter Property="FontSize"
  148. Value="10" />
  149. <Setter Property="FontWeight"
  150. Value="Bold" />
  151. <Setter Property="Margin"
  152. Value="5,2" />
  153. </Style>
  154. <Style TargetType="TextBox"
  155. BasedOn="{StaticResource MaterialDesignFloatingHintTextBox}">
  156. <Setter Property="HorizontalAlignment"
  157. Value="Center" />
  158. <Setter Property="VerticalAlignment"
  159. Value="Center" />
  160. <Setter Property="FontSize"
  161. Value="10" />
  162. <Setter Property="Margin"
  163. Value="5,2" />
  164. <Setter Property="MinWidth"
  165. Value="100" />
  166. <Setter Property="HorizontalContentAlignment"
  167. Value="Center" />
  168. <Setter Property="VerticalContentAlignment"
  169. Value="Center" />
  170. </Style>
  171. </Grid.Resources>
  172. <ToggleButton Grid.Column="1"
  173. Grid.Row="0"
  174. HorizontalAlignment="Right"
  175. VerticalAlignment="Top"
  176. materialDesign:ToggleButtonAssist.OnContent="{materialDesign:PackIcon Kind=ChevronDoubleLeft}"
  177. Content="{materialDesign:PackIcon Kind=ChevronDoubleRight}"
  178. Style="{StaticResource MaterialDesignActionToggleButton}"
  179. ToolTip="{lex:Loc 其他参数}"
  180. Margin="0,-40"
  181. IsChecked="{Binding IsRightDrawerOpen,ElementName=DrawerHost}" />
  182. <!--PTP速度-->
  183. <TextBlock Grid.Row="0"
  184. Grid.Column="0"
  185. Text="{lex:Loc PTP速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  186. <mah:NumericUpDown Grid.Row="0"
  187. Grid.Column="1"
  188. Margin="0,5"
  189. Maximum="100"
  190. Minimum="1"
  191. StringFormat="{}{0:N0} %"
  192. Value="{Binding SelectProduct.Speed,Mode=TwoWay}" />
  193. <!--PTP加减速度--><!--
  194. <TextBlock Grid.Row="1"
  195. Grid.Column="0"
  196. Text="{lex:Loc PTP加减速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  197. <mah:NumericUpDown Grid.Row="1"
  198. Grid.Column="1"
  199. Margin="0,5"
  200. Maximum="100"
  201. Minimum="1"
  202. StringFormat="{}{0:N0} %"
  203. Value="{Binding SelectProduct.Accel,Mode=TwoWay}" />
  204. --><!--CP速度--><!--
  205. <TextBlock Grid.Row="2"
  206. Grid.Column="0"
  207. Text="{lex:Loc CP速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  208. <mah:NumericUpDown Grid.Row="2"
  209. Grid.Column="1"
  210. Margin="0,5"
  211. Maximum="3000"
  212. Minimum="1"
  213. StringFormat="{}{0:N0} mm/s"
  214. Value="{Binding SelectProduct.Speeds,Mode=TwoWay}" />
  215. --><!--CP加减速度--><!--
  216. <TextBlock Grid.Row="3"
  217. Grid.Column="0"
  218. Text="{lex:Loc CP加减速度,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  219. <mah:NumericUpDown Grid.Row="3"
  220. Grid.Column="1"
  221. Margin="0,5"
  222. Maximum="30000"
  223. Minimum="1"
  224. StringFormat="{}{0:N0} mm/s²"
  225. Value="{Binding SelectProduct.Accels,Mode=TwoWay}" />
  226. --><!--功率--><!--
  227. <TextBlock Grid.Row="4"
  228. Grid.Column="0"
  229. Text="{lex:Loc 功率,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  230. <CheckBox Grid.Row="4"
  231. Grid.Column="1"
  232. Content="{lex:Loc 高功率}"
  233. IsChecked="{Binding SelectProduct.Power}" />
  234. --><!--二次相机功能--><!--
  235. <TextBlock Grid.Row="5"
  236. Grid.Column="0"
  237. Text="{lex:Loc 视觉引导模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
  238. <CheckBox Grid.Row="5"
  239. Grid.Column="1"
  240. Content="{lex:Loc 启用二次定位相机}"
  241. IsChecked="{Binding SelectProduct.IsUserUpCamera}" />-->
  242. <!--固定向上相机1视觉流程-->
  243. <TextBlock Grid.Row="1"
  244. Grid.Column="0"
  245. Text="固定向上相机1视觉流程ID: " />
  246. <ComboBox Grid.Row="1"
  247. Grid.Column="1"
  248. ItemsSource="{Binding ProcedureModels}"
  249. SelectedItem="{Binding FixedUpCamera1Procedure}"
  250. materialDesign:TextFieldAssist.HasClearButton="True"
  251. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  252. <ComboBox.ItemTemplate>
  253. <DataTemplate>
  254. <StackPanel Orientation="Horizontal">
  255. <materialDesign:PackIcon Kind="VideoOutline" />
  256. <TextBlock Text="{Binding CameraName}"
  257. Margin="6,0" />
  258. <materialDesign:PackIcon Kind="ProgressWrench" />
  259. <TextBlock Text="{Binding Name}"
  260. Margin="6,0" />
  261. </StackPanel>
  262. </DataTemplate>
  263. </ComboBox.ItemTemplate>
  264. </ComboBox>
  265. <!--固定向上相机2视觉流程-->
  266. <TextBlock Grid.Row="2"
  267. Grid.Column="0"
  268. Text="固定向上相机2视觉流程ID: " />
  269. <ComboBox Grid.Row="2"
  270. Grid.Column="1"
  271. ItemsSource="{Binding ProcedureModels}"
  272. SelectedItem="{Binding FixedUpCamera2Procedure}"
  273. materialDesign:TextFieldAssist.HasClearButton="True"
  274. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  275. <ComboBox.ItemTemplate>
  276. <DataTemplate>
  277. <StackPanel Orientation="Horizontal">
  278. <materialDesign:PackIcon Kind="VideoOutline" />
  279. <TextBlock Text="{Binding CameraName}"
  280. Margin="6,0" />
  281. <materialDesign:PackIcon Kind="ProgressWrench" />
  282. <TextBlock Text="{Binding Name}"
  283. Margin="6,0" />
  284. </StackPanel>
  285. </DataTemplate>
  286. </ComboBox.ItemTemplate>
  287. </ComboBox>
  288. <!--固定向下相机1取料流程--><!--
  289. <TextBlock Grid.Row="3"
  290. Grid.Column="0"
  291. Text="固定向下相机1取料流程ID: " />
  292. <ComboBox Grid.Row="3"
  293. Grid.Column="1"
  294. ItemsSource="{Binding ProcedureModels}"
  295. SelectedItem="{Binding FixedDownCamera1Procedure}"
  296. materialDesign:TextFieldAssist.HasClearButton="True"
  297. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  298. <ComboBox.ItemTemplate>
  299. <DataTemplate>
  300. <StackPanel Orientation="Horizontal">
  301. <materialDesign:PackIcon Kind="VideoOutline" />
  302. <TextBlock Text="{Binding CameraName}"
  303. Margin="6,0" />
  304. <materialDesign:PackIcon Kind="ProgressWrench" />
  305. <TextBlock Text="{Binding Name}"
  306. Margin="6,0" />
  307. </StackPanel>
  308. </DataTemplate>
  309. </ComboBox.ItemTemplate>
  310. </ComboBox>
  311. --><!--固定向下相机2取料流程--><!--
  312. <TextBlock Grid.Row="4"
  313. Grid.Column="0"
  314. Text="固定向下相机2取料流程ID: " />
  315. <ComboBox Grid.Row="4"
  316. Grid.Column="1"
  317. ItemsSource="{Binding ProcedureModels}"
  318. SelectedItem="{Binding FixedDownCamera2Procedure}"
  319. materialDesign:TextFieldAssist.HasClearButton="True"
  320. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  321. <ComboBox.ItemTemplate>
  322. <DataTemplate>
  323. <StackPanel Orientation="Horizontal">
  324. <materialDesign:PackIcon Kind="VideoOutline" />
  325. <TextBlock Text="{Binding CameraName}"
  326. Margin="6,0" />
  327. <materialDesign:PackIcon Kind="ProgressWrench" />
  328. <TextBlock Text="{Binding Name}"
  329. Margin="6,0" />
  330. </StackPanel>
  331. </DataTemplate>
  332. </ComboBox.ItemTemplate>
  333. </ComboBox>-->
  334. <!--移动向下相机1锁付拍照流程--><!--
  335. <TextBlock Grid.Row="5"
  336. Grid.Column="0"
  337. Text="移动向下相机1锁付拍照流程ID: " />
  338. <ComboBox Grid.Row="5"
  339. Grid.Column="1"
  340. ItemsSource="{Binding ProcedureModels}"
  341. SelectedItem="{Binding MoveDownCamera1LockPhotoProcedure}"
  342. materialDesign:TextFieldAssist.HasClearButton="True"
  343. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  344. <ComboBox.ItemTemplate>
  345. <DataTemplate>
  346. <StackPanel Orientation="Horizontal">
  347. <materialDesign:PackIcon Kind="VideoOutline" />
  348. <TextBlock Text="{Binding CameraName}"
  349. Margin="6,0" />
  350. <materialDesign:PackIcon Kind="ProgressWrench" />
  351. <TextBlock Text="{Binding Name}"
  352. Margin="6,0" />
  353. </StackPanel>
  354. </DataTemplate>
  355. </ComboBox.ItemTemplate>
  356. </ComboBox>
  357. --><!--移动向下相机2锁付拍照流程--><!--
  358. <TextBlock Grid.Row="6"
  359. Grid.Column="0"
  360. Text="移动向下相机2锁付拍照流程ID: " />
  361. <ComboBox Grid.Row="6"
  362. Grid.Column="1"
  363. ItemsSource="{Binding ProcedureModels}"
  364. SelectedItem="{Binding MoveDownCamera2LockPhotoProcedure}"
  365. materialDesign:TextFieldAssist.HasClearButton="True"
  366. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  367. <ComboBox.ItemTemplate>
  368. <DataTemplate>
  369. <StackPanel Orientation="Horizontal">
  370. <materialDesign:PackIcon Kind="VideoOutline" />
  371. <TextBlock Text="{Binding CameraName}"
  372. Margin="6,0" />
  373. <materialDesign:PackIcon Kind="ProgressWrench" />
  374. <TextBlock Text="{Binding Name}"
  375. Margin="6,0" />
  376. </StackPanel>
  377. </DataTemplate>
  378. </ComboBox.ItemTemplate>
  379. </ComboBox>
  380. --><!--移动向下相机1取料拍照流程--><!--
  381. <TextBlock Grid.Row="7"
  382. Grid.Column="0"
  383. Text="移动向下相机1取料拍照流程ID: " />
  384. <ComboBox Grid.Row="7"
  385. Grid.Column="1"
  386. ItemsSource="{Binding ProcedureModels}"
  387. SelectedItem="{Binding MoveDownCamer1PickPhotoProcedureId}"
  388. materialDesign:TextFieldAssist.HasClearButton="True"
  389. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  390. <ComboBox.ItemTemplate>
  391. <DataTemplate>
  392. <StackPanel Orientation="Horizontal">
  393. <materialDesign:PackIcon Kind="VideoOutline" />
  394. <TextBlock Text="{Binding CameraName}"
  395. Margin="6,0" />
  396. <materialDesign:PackIcon Kind="ProgressWrench" />
  397. <TextBlock Text="{Binding Name}"
  398. Margin="6,0" />
  399. </StackPanel>
  400. </DataTemplate>
  401. </ComboBox.ItemTemplate>
  402. </ComboBox>
  403. --><!--移动向下相机2取料拍照流程--><!--
  404. <TextBlock Grid.Row="8"
  405. Grid.Column="0"
  406. Text="移动向下相机2取料拍照流程ID: " />
  407. <ComboBox Grid.Row="8"
  408. Grid.Column="1"
  409. ItemsSource="{Binding ProcedureModels}"
  410. SelectedItem="{Binding MoveDownCamer2PickPhotoProcedureId}"
  411. materialDesign:TextFieldAssist.HasClearButton="True"
  412. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  413. <ComboBox.ItemTemplate>
  414. <DataTemplate>
  415. <StackPanel Orientation="Horizontal">
  416. <materialDesign:PackIcon Kind="VideoOutline" />
  417. <TextBlock Text="{Binding CameraName}"
  418. Margin="6,0" />
  419. <materialDesign:PackIcon Kind="ProgressWrench" />
  420. <TextBlock Text="{Binding Name}"
  421. Margin="6,0" />
  422. </StackPanel>
  423. </DataTemplate>
  424. </ComboBox.ItemTemplate>
  425. </ComboBox>-->
  426. <!--独立向下相机1取料拍照流程ID-->
  427. <TextBlock Grid.Row="9"
  428. Grid.Column="0"
  429. Text="独立向下相机1取料拍照流程ID: " />
  430. <ComboBox Grid.Row="9"
  431. Grid.Column="1"
  432. ItemsSource="{Binding ProcedureModels}"
  433. SelectedItem="{Binding IndependentCamer1AuxProcedureId}"
  434. materialDesign:TextFieldAssist.HasClearButton="True"
  435. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  436. <ComboBox.ItemTemplate>
  437. <DataTemplate>
  438. <StackPanel Orientation="Horizontal">
  439. <materialDesign:PackIcon Kind="VideoOutline" />
  440. <TextBlock Text="{Binding CameraName}"
  441. Margin="6,0" />
  442. <materialDesign:PackIcon Kind="ProgressWrench" />
  443. <TextBlock Text="{Binding Name}"
  444. Margin="6,0" />
  445. </StackPanel>
  446. </DataTemplate>
  447. </ComboBox.ItemTemplate>
  448. </ComboBox>
  449. <!--独立向下相机2取料拍照流程ID-->
  450. <TextBlock Grid.Row="10"
  451. Grid.Column="0"
  452. Text="独立向下相机2取料拍照流程ID: " />
  453. <ComboBox Grid.Row="10"
  454. Grid.Column="1"
  455. ItemsSource="{Binding ProcedureModels}"
  456. SelectedItem="{Binding IndependentCamer2AuxProcedureId}"
  457. materialDesign:TextFieldAssist.HasClearButton="True"
  458. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  459. <ComboBox.ItemTemplate>
  460. <DataTemplate>
  461. <StackPanel Orientation="Horizontal">
  462. <materialDesign:PackIcon Kind="VideoOutline" />
  463. <TextBlock Text="{Binding CameraName}"
  464. Margin="6,0" />
  465. <materialDesign:PackIcon Kind="ProgressWrench" />
  466. <TextBlock Text="{Binding Name}"
  467. Margin="6,0" />
  468. </StackPanel>
  469. </DataTemplate>
  470. </ComboBox.ItemTemplate>
  471. </ComboBox>
  472. <!--独立向下相机3取料拍照流程ID-->
  473. <TextBlock Grid.Row="11"
  474. Grid.Column="0"
  475. Text="独立向下相机3取料拍照流程ID: " />
  476. <ComboBox Grid.Row="11"
  477. Grid.Column="1"
  478. ItemsSource="{Binding ProcedureModels}"
  479. SelectedItem="{Binding IndependentCamer3AuxProcedureId}"
  480. materialDesign:TextFieldAssist.HasClearButton="True"
  481. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  482. <ComboBox.ItemTemplate>
  483. <DataTemplate>
  484. <StackPanel Orientation="Horizontal">
  485. <materialDesign:PackIcon Kind="VideoOutline" />
  486. <TextBlock Text="{Binding CameraName}"
  487. Margin="6,0" />
  488. <materialDesign:PackIcon Kind="ProgressWrench" />
  489. <TextBlock Text="{Binding Name}"
  490. Margin="6,0" />
  491. </StackPanel>
  492. </DataTemplate>
  493. </ComboBox.ItemTemplate>
  494. </ComboBox>
  495. <!--独立向下相机4取料拍照流程ID-->
  496. <TextBlock Grid.Row="12"
  497. Grid.Column="0"
  498. Text="独立向下相机4取料拍照流程ID: " />
  499. <ComboBox Grid.Row="12"
  500. Grid.Column="1"
  501. ItemsSource="{Binding ProcedureModels}"
  502. SelectedItem="{Binding IndependentCamer4AuxProcedureId}"
  503. materialDesign:TextFieldAssist.HasClearButton="True"
  504. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  505. <ComboBox.ItemTemplate>
  506. <DataTemplate>
  507. <StackPanel Orientation="Horizontal">
  508. <materialDesign:PackIcon Kind="VideoOutline" />
  509. <TextBlock Text="{Binding CameraName}"
  510. Margin="6,0" />
  511. <materialDesign:PackIcon Kind="ProgressWrench" />
  512. <TextBlock Text="{Binding Name}"
  513. Margin="6,0" />
  514. </StackPanel>
  515. </DataTemplate>
  516. </ComboBox.ItemTemplate>
  517. </ComboBox>
  518. <!--独立向下相机1产品拍照流程ID-->
  519. <TextBlock Grid.Row="13"
  520. Grid.Column="0"
  521. Text="独立向下相机1产品拍照流程ID: " />
  522. <ComboBox Grid.Row="13"
  523. Grid.Column="1"
  524. ItemsSource="{Binding ProcedureModels}"
  525. SelectedItem="{Binding IndependentCamer1ProductProcedureId}"
  526. materialDesign:TextFieldAssist.HasClearButton="True"
  527. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  528. <ComboBox.ItemTemplate>
  529. <DataTemplate>
  530. <StackPanel Orientation="Horizontal">
  531. <materialDesign:PackIcon Kind="VideoOutline" />
  532. <TextBlock Text="{Binding CameraName}"
  533. Margin="6,0" />
  534. <materialDesign:PackIcon Kind="ProgressWrench" />
  535. <TextBlock Text="{Binding Name}"
  536. Margin="6,0" />
  537. </StackPanel>
  538. </DataTemplate>
  539. </ComboBox.ItemTemplate>
  540. </ComboBox>
  541. <!--独立向下相机2产品拍照流程ID-->
  542. <TextBlock Grid.Row="14"
  543. Grid.Column="0"
  544. Text="独立向下相机2产品拍照流程ID: " />
  545. <ComboBox Grid.Row="14"
  546. Grid.Column="1"
  547. ItemsSource="{Binding ProcedureModels}"
  548. SelectedItem="{Binding IndependentCamer2ProductProcedureId}"
  549. materialDesign:TextFieldAssist.HasClearButton="True"
  550. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  551. <ComboBox.ItemTemplate>
  552. <DataTemplate>
  553. <StackPanel Orientation="Horizontal">
  554. <materialDesign:PackIcon Kind="VideoOutline" />
  555. <TextBlock Text="{Binding CameraName}"
  556. Margin="6,0" />
  557. <materialDesign:PackIcon Kind="ProgressWrench" />
  558. <TextBlock Text="{Binding Name}"
  559. Margin="6,0" />
  560. </StackPanel>
  561. </DataTemplate>
  562. </ComboBox.ItemTemplate>
  563. </ComboBox>
  564. <!--独立向下相机3产品拍照流程ID-->
  565. <TextBlock Grid.Row="15"
  566. Grid.Column="0"
  567. Text="独立向下相机3产品拍照流程ID: " />
  568. <ComboBox Grid.Row="15"
  569. Grid.Column="1"
  570. ItemsSource="{Binding ProcedureModels}"
  571. SelectedItem="{Binding IndependentCamer3ProductProcedureId}"
  572. materialDesign:TextFieldAssist.HasClearButton="True"
  573. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  574. <ComboBox.ItemTemplate>
  575. <DataTemplate>
  576. <StackPanel Orientation="Horizontal">
  577. <materialDesign:PackIcon Kind="VideoOutline" />
  578. <TextBlock Text="{Binding CameraName}"
  579. Margin="6,0" />
  580. <materialDesign:PackIcon Kind="ProgressWrench" />
  581. <TextBlock Text="{Binding Name}"
  582. Margin="6,0" />
  583. </StackPanel>
  584. </DataTemplate>
  585. </ComboBox.ItemTemplate>
  586. </ComboBox>
  587. <!--独立向下相机4产品拍照流程ID-->
  588. <TextBlock Grid.Row="16"
  589. Grid.Column="0"
  590. Text="独立向下相机4产品拍照流程ID: " />
  591. <ComboBox Grid.Row="16"
  592. Grid.Column="1"
  593. ItemsSource="{Binding ProcedureModels}"
  594. SelectedItem="{Binding IndependentCamer4ProductProcedureId}"
  595. materialDesign:TextFieldAssist.HasClearButton="True"
  596. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  597. <ComboBox.ItemTemplate>
  598. <DataTemplate>
  599. <StackPanel Orientation="Horizontal">
  600. <materialDesign:PackIcon Kind="VideoOutline" />
  601. <TextBlock Text="{Binding CameraName}"
  602. Margin="6,0" />
  603. <materialDesign:PackIcon Kind="ProgressWrench" />
  604. <TextBlock Text="{Binding Name}"
  605. Margin="6,0" />
  606. </StackPanel>
  607. </DataTemplate>
  608. </ComboBox.ItemTemplate>
  609. </ComboBox>
  610. <!--独立向下相机1检测拍照流程ID-->
  611. <TextBlock Grid.Row="17"
  612. Grid.Column="0"
  613. Text="独立向下相机1检测拍照流程ID: " />
  614. <ComboBox Grid.Row="17"
  615. Grid.Column="1"
  616. ItemsSource="{Binding ProcedureModels}"
  617. SelectedItem="{Binding IndependentCamer1CheckProcedureId}"
  618. materialDesign:TextFieldAssist.HasClearButton="True"
  619. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  620. <ComboBox.ItemTemplate>
  621. <DataTemplate>
  622. <StackPanel Orientation="Horizontal">
  623. <materialDesign:PackIcon Kind="VideoOutline" />
  624. <TextBlock Text="{Binding CameraName}"
  625. Margin="6,0" />
  626. <materialDesign:PackIcon Kind="ProgressWrench" />
  627. <TextBlock Text="{Binding Name}"
  628. Margin="6,0" />
  629. </StackPanel>
  630. </DataTemplate>
  631. </ComboBox.ItemTemplate>
  632. </ComboBox>
  633. <!--独立向下相机2检测拍照流程ID-->
  634. <TextBlock Grid.Row="18"
  635. Grid.Column="0"
  636. Text="独立向下相机2检测拍照流程ID: " />
  637. <ComboBox Grid.Row="18"
  638. Grid.Column="1"
  639. ItemsSource="{Binding ProcedureModels}"
  640. SelectedItem="{Binding IndependentCamer2CheckProcedureId}"
  641. materialDesign:TextFieldAssist.HasClearButton="True"
  642. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  643. <ComboBox.ItemTemplate>
  644. <DataTemplate>
  645. <StackPanel Orientation="Horizontal">
  646. <materialDesign:PackIcon Kind="VideoOutline" />
  647. <TextBlock Text="{Binding CameraName}"
  648. Margin="6,0" />
  649. <materialDesign:PackIcon Kind="ProgressWrench" />
  650. <TextBlock Text="{Binding Name}"
  651. Margin="6,0" />
  652. </StackPanel>
  653. </DataTemplate>
  654. </ComboBox.ItemTemplate>
  655. </ComboBox>
  656. <!--独立向下相机3检测拍照流程ID-->
  657. <TextBlock Grid.Row="19"
  658. Grid.Column="0"
  659. Text="独立向下相机3检测拍照流程ID: " />
  660. <ComboBox Grid.Row="19"
  661. Grid.Column="1"
  662. ItemsSource="{Binding ProcedureModels}"
  663. SelectedItem="{Binding IndependentCamer3CheckProcedureId}"
  664. materialDesign:TextFieldAssist.HasClearButton="True"
  665. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  666. <ComboBox.ItemTemplate>
  667. <DataTemplate>
  668. <StackPanel Orientation="Horizontal">
  669. <materialDesign:PackIcon Kind="VideoOutline" />
  670. <TextBlock Text="{Binding CameraName}"
  671. Margin="6,0" />
  672. <materialDesign:PackIcon Kind="ProgressWrench" />
  673. <TextBlock Text="{Binding Name}"
  674. Margin="6,0" />
  675. </StackPanel>
  676. </DataTemplate>
  677. </ComboBox.ItemTemplate>
  678. </ComboBox>
  679. <!--独立向下相机4检测拍照流程ID-->
  680. <TextBlock Grid.Row="20"
  681. Grid.Column="0"
  682. Text="独立向下相机4检测拍照流程ID: " />
  683. <ComboBox Grid.Row="20"
  684. Grid.Column="1"
  685. ItemsSource="{Binding ProcedureModels}"
  686. SelectedItem="{Binding IndependentCamer4CheckProcedureId}"
  687. materialDesign:TextFieldAssist.HasClearButton="True"
  688. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  689. <ComboBox.ItemTemplate>
  690. <DataTemplate>
  691. <StackPanel Orientation="Horizontal">
  692. <materialDesign:PackIcon Kind="VideoOutline" />
  693. <TextBlock Text="{Binding CameraName}"
  694. Margin="6,0" />
  695. <materialDesign:PackIcon Kind="ProgressWrench" />
  696. <TextBlock Text="{Binding Name}"
  697. Margin="6,0" />
  698. </StackPanel>
  699. </DataTemplate>
  700. </ComboBox.ItemTemplate>
  701. </ComboBox>
  702. <!--相机扫码拍照流程-->
  703. <TextBlock Grid.Row="21"
  704. Grid.Column="0"
  705. Text="相机扫码拍照流程ID" />
  706. <ComboBox Grid.Row="21"
  707. Grid.Column="1"
  708. ItemsSource="{Binding ProcedureModels}"
  709. SelectedItem="{Binding QrCodePhotoProcedure}"
  710. materialDesign:TextFieldAssist.HasClearButton="True"
  711. materialDesign:HintAssist.Hint="{lex:Loc 选择需要配置的流程}">
  712. <ComboBox.ItemTemplate>
  713. <DataTemplate>
  714. <StackPanel Orientation="Horizontal">
  715. <materialDesign:PackIcon Kind="VideoOutline" />
  716. <TextBlock Text="{Binding CameraName}"
  717. Margin="6,0" />
  718. <materialDesign:PackIcon Kind="ProgressWrench" />
  719. <TextBlock Text="{Binding Name}"
  720. Margin="6,0" />
  721. </StackPanel>
  722. </DataTemplate>
  723. </ComboBox.ItemTemplate>
  724. </ComboBox>
  725. </Grid>
  726. </Grid>
  727. </materialDesign:DrawerHost>
  728. <StackPanel Grid.Row="2"
  729. Orientation="Horizontal"
  730. HorizontalAlignment="Center"
  731. VerticalAlignment="Center"
  732. Margin="20">
  733. <Button Content="{lex:Loc 完成}"
  734. IsEnabled="{Binding IsAllowEdit}"
  735. MinWidth="100"
  736. HorizontalAlignment="Center"
  737. VerticalAlignment="Center"
  738. materialDesign:ButtonAssist.CornerRadius="10"
  739. Style="{StaticResource MaterialDesignRaisedButton}"
  740. Command="{Binding NextCommand}" />
  741. </StackPanel>
  742. </Grid>
  743. </UserControl>