ProductParams.xaml 37 KB

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