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

TechnologyProcess.xaml 30 KiB

2 年之前
2 年之前
2 年之前
2 年之前
2 年之前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <Window x:Class="BPASmart.RecipeManagement.View.TechnologyProcess"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:BPASmart.RecipeManagement.View" xmlns:Themes1="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Luna" xmlns:Themes11="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic"
  7. xmlns:vm ="clr-namespace:BPASmart.RecipeManagement.ViewModel"
  8. mc:Ignorable="d"
  9. Title="TechnologyProcess" Height="550" Width="800" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True">
  10. <Window.DataContext>
  11. <vm:TechnologyProcessViewModel/>
  12. </Window.DataContext>
  13. <Window.Resources>
  14. <SolidColorBrush x:Key="foreground" Color="#a2c2e8" />
  15. <SolidColorBrush x:Key="borderBrush" Color="#FF074B92" />
  16. <Style x:Key="ComboBoxFocusVisual">
  17. <Setter Property="Control.Template">
  18. <Setter.Value>
  19. <ControlTemplate>
  20. <Rectangle
  21. Margin="4,4,21,4"
  22. SnapsToDevicePixels="true"
  23. Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  24. StrokeDashArray="1 2"
  25. StrokeThickness="1" />
  26. </ControlTemplate>
  27. </Setter.Value>
  28. </Setter>
  29. </Style>
  30. <Geometry x:Key="DownArrowGeometry">M 0 0 L 3.5 4 L 7 0 Z</Geometry>
  31. <Style x:Key="ComboBoxTransparentButtonStyle" TargetType="{x:Type ToggleButton}">
  32. <Setter Property="MinWidth" Value="0" />
  33. <Setter Property="MinHeight" Value="0" />
  34. <Setter Property="Width" Value="Auto" />
  35. <Setter Property="Height" Value="Auto" />
  36. <Setter Property="Background" Value="Transparent" />
  37. <Setter Property="Foreground" Value="White" />
  38. <Setter Property="BorderBrush" Value="{x:Static Themes11:ClassicBorderDecorator.ClassicBorderBrush}" />
  39. <Setter Property="BorderThickness" Value="2" />
  40. <Setter Property="Template">
  41. <Setter.Value>
  42. <ControlTemplate TargetType="{x:Type ToggleButton}">
  43. <DockPanel
  44. Background="{TemplateBinding Background}"
  45. LastChildFill="false"
  46. SnapsToDevicePixels="true">
  47. <Themes11:ClassicBorderDecorator
  48. x:Name="Border"
  49. Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}"
  50. BorderBrush="{TemplateBinding BorderBrush}"
  51. BorderStyle="None"
  52. BorderThickness="{TemplateBinding BorderThickness}"
  53. DockPanel.Dock="Right">
  54. <Path
  55. HorizontalAlignment="Center"
  56. VerticalAlignment="Center"
  57. Data="{StaticResource DownArrowGeometry}"
  58. Fill="{TemplateBinding Foreground}" />
  59. </Themes11:ClassicBorderDecorator>
  60. </DockPanel>
  61. <ControlTemplate.Triggers>
  62. <Trigger Property="IsChecked" Value="true">
  63. <Setter TargetName="Border" Property="BorderStyle" Value="AltPressed" />
  64. </Trigger>
  65. </ControlTemplate.Triggers>
  66. </ControlTemplate>
  67. </Setter.Value>
  68. </Setter>
  69. <Style.Triggers>
  70. <Trigger Property="IsEnabled" Value="false">
  71. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}" />
  72. </Trigger>
  73. </Style.Triggers>
  74. </Style>
  75. <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
  76. <Setter Property="OverridesDefaultStyle" Value="true" />
  77. <Setter Property="AllowDrop" Value="true" />
  78. <Setter Property="MinWidth" Value="0" />
  79. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  80. <Setter Property="MinHeight" Value="0" />
  81. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  82. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  83. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  84. <Setter Property="Template">
  85. <Setter.Value>
  86. <ControlTemplate TargetType="{x:Type TextBox}">
  87. <ScrollViewer
  88. x:Name="PART_ContentHost"
  89. Background="Transparent"
  90. Focusable="false"
  91. HorizontalScrollBarVisibility="Hidden"
  92. VerticalScrollBarVisibility="Hidden" />
  93. </ControlTemplate>
  94. </Setter.Value>
  95. </Setter>
  96. </Style>
  97. <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
  98. <Border
  99. Background="{TemplateBinding Background}"
  100. BorderBrush="{TemplateBinding BorderBrush}"
  101. BorderThickness="{TemplateBinding BorderThickness}"
  102. SnapsToDevicePixels="true">
  103. <Grid>
  104. <Themes11:ClassicBorderDecorator
  105. x:Name="Border"
  106. BorderBrush="{x:Static Themes11:ClassicBorderDecorator.ClassicBorderBrush}"
  107. BorderStyle="None"
  108. BorderThickness="2">
  109. <Popup
  110. x:Name="PART_Popup"
  111. AllowsTransparency="true"
  112. Focusable="False"
  113. IsOpen="{TemplateBinding IsDropDownOpen}"
  114. Placement="Bottom"
  115. PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
  116. <Themes1:SystemDropShadowChrome
  117. x:Name="Shdw"
  118. MinWidth="{Binding ActualWidth, ElementName=Border}"
  119. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  120. Color="Transparent">
  121. <Border
  122. x:Name="DropDownBorder"
  123. BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
  124. BorderThickness="1">
  125. <Border.Background>
  126. <ImageBrush
  127. ImageSource="../Image/内部背景.png"
  128. Opacity="0.5"
  129. Stretch="Fill" />
  130. </Border.Background>
  131. <ScrollViewer x:Name="DropDownScrollViewer">
  132. <Grid RenderOptions.ClearTypeHint="Enabled">
  133. <Canvas
  134. Width="0"
  135. Height="0"
  136. HorizontalAlignment="Left"
  137. VerticalAlignment="Top">
  138. <Rectangle
  139. x:Name="OpaqueRect"
  140. Width="{Binding ActualWidth, ElementName=DropDownBorder}"
  141. Height="{Binding ActualHeight, ElementName=DropDownBorder}"
  142. Fill="{Binding Background, ElementName=DropDownBorder}" />
  143. </Canvas>
  144. <ItemsPresenter
  145. x:Name="ItemsPresenter"
  146. KeyboardNavigation.DirectionalNavigation="Contained"
  147. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  148. </Grid>
  149. </ScrollViewer>
  150. </Border>
  151. </Themes1:SystemDropShadowChrome>
  152. </Popup>
  153. </Themes11:ClassicBorderDecorator>
  154. <ToggleButton
  155. Width="Auto"
  156. MinWidth="0"
  157. MinHeight="0"
  158. ClickMode="Press"
  159. Focusable="false"
  160. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  161. Style="{StaticResource ComboBoxTransparentButtonStyle}" />
  162. <DockPanel>
  163. <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
  164. <TextBox
  165. x:Name="PART_EditableTextBox"
  166. Margin="{TemplateBinding Padding}"
  167. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  168. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  169. CaretBrush="White"
  170. IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource TemplatedParent}}"
  171. Style="{StaticResource ComboBoxEditableTextBox}" />
  172. </DockPanel>
  173. </Grid>
  174. </Border>
  175. <ControlTemplate.Triggers>
  176. <Trigger Property="HasItems" Value="false">
  177. <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
  178. </Trigger>
  179. <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
  180. <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
  181. <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
  182. </Trigger>
  183. <Trigger Property="IsEnabled" Value="false">
  184. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  185. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  186. </Trigger>
  187. <MultiTrigger>
  188. <MultiTrigger.Conditions>
  189. <Condition Property="IsGrouping" Value="true" />
  190. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
  191. </MultiTrigger.Conditions>
  192. <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
  193. </MultiTrigger>
  194. <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
  195. <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
  196. <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
  197. </Trigger>
  198. </ControlTemplate.Triggers>
  199. </ControlTemplate>
  200. <Style x:Key="BaseComboBoxStyle" TargetType="{x:Type ComboBox}">
  201. <Setter Property="FocusVisualStyle" Value="{StaticResource ComboBoxFocusVisual}" />
  202. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  203. <Setter Property="Background" Value="Transparent" />
  204. <Setter Property="BorderBrush" Value="{DynamicResource borderBrush}" />
  205. <Setter Property="BorderThickness" Value="1" />
  206. <Setter Property="Margin" Value="0,0,0,0" />
  207. <Setter Property="Padding" Value="0" />
  208. <Setter Property="Height" Value="24" />
  209. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
  210. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
  211. <Setter Property="ScrollViewer.CanContentScroll" Value="true" />
  212. <Setter Property="ScrollViewer.PanningMode" Value="Both" />
  213. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  214. <Setter Property="VerticalContentAlignment" Value="Center" />
  215. <Setter Property="IsTextSearchCaseSensitive" Value="true" />
  216. <Setter Property="IsEditable" Value="true" />
  217. <Setter Property="StaysOpenOnEdit" Value="true" />
  218. <Setter Property="Template">
  219. <Setter.Value>
  220. <ControlTemplate TargetType="{x:Type ComboBox}">
  221. <Border
  222. Background="{TemplateBinding Background}"
  223. BorderBrush="{TemplateBinding BorderBrush}"
  224. BorderThickness="{TemplateBinding BorderThickness}"
  225. SnapsToDevicePixels="true">
  226. <Grid>
  227. <Themes11:ClassicBorderDecorator
  228. x:Name="Border"
  229. BorderBrush="{x:Static Themes11:ClassicBorderDecorator.ClassicBorderBrush}"
  230. BorderStyle="None"
  231. BorderThickness="2">
  232. <Popup
  233. x:Name="PART_Popup"
  234. AllowsTransparency="true"
  235. Focusable="False"
  236. IsOpen="{TemplateBinding IsDropDownOpen}"
  237. Placement="Bottom"
  238. PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
  239. <Themes1:SystemDropShadowChrome
  240. x:Name="Shdw"
  241. MinWidth="{Binding ActualWidth, ElementName=Border}"
  242. MaxHeight="{TemplateBinding MaxDropDownHeight}"
  243. Color="Transparent">
  244. <Border
  245. x:Name="DropDownBorder"
  246. BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}"
  247. BorderThickness="1">
  248. <Border.Background>
  249. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/内部背景.png" />
  250. </Border.Background>
  251. <ScrollViewer x:Name="DropDownScrollViewer">
  252. <Grid RenderOptions.ClearTypeHint="Enabled">
  253. <Canvas
  254. Width="0"
  255. Height="0"
  256. HorizontalAlignment="Left"
  257. VerticalAlignment="Top">
  258. <Rectangle
  259. x:Name="OpaqueRect"
  260. Width="{Binding ActualWidth, ElementName=DropDownBorder}"
  261. Height="{Binding ActualHeight, ElementName=DropDownBorder}"
  262. Fill="{Binding Background, ElementName=DropDownBorder}" />
  263. </Canvas>
  264. <ItemsPresenter
  265. x:Name="ItemsPresenter"
  266. KeyboardNavigation.DirectionalNavigation="Contained"
  267. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  268. </Grid>
  269. </ScrollViewer>
  270. </Border>
  271. </Themes1:SystemDropShadowChrome>
  272. </Popup>
  273. </Themes11:ClassicBorderDecorator>
  274. <DockPanel Margin="2">
  275. <FrameworkElement Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" DockPanel.Dock="Right" />
  276. <Border x:Name="SelectedItemBorder" Margin="{TemplateBinding Padding}">
  277. <ContentPresenter
  278. Margin="1,1,1,1"
  279. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  280. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  281. Content="{TemplateBinding SelectionBoxItem}"
  282. ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}"
  283. ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
  284. ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
  285. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  286. </Border>
  287. </DockPanel>
  288. <ToggleButton
  289. Width="Auto"
  290. MinWidth="0"
  291. MinHeight="0"
  292. Margin="2"
  293. ClickMode="Press"
  294. Focusable="false"
  295. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  296. Style="{StaticResource ComboBoxTransparentButtonStyle}" />
  297. </Grid>
  298. </Border>
  299. <ControlTemplate.Triggers>
  300. <MultiTrigger>
  301. <MultiTrigger.Conditions>
  302. <!--<Condition Property="IsSelectionBoxHighlighted" Value="true"/>-->
  303. <Condition Property="IsDropDownOpen" Value="false" />
  304. </MultiTrigger.Conditions>
  305. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
  306. </MultiTrigger>
  307. <!--<Trigger Property="IsSelectionBoxHighlighted" Value="true">
  308. <Setter Property="Background" TargetName="SelectedItemBorder" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>
  309. </Trigger>-->
  310. <Trigger Property="HasItems" Value="false">
  311. <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
  312. </Trigger>
  313. <Trigger Property="IsEnabled" Value="false">
  314. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  315. <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  316. </Trigger>
  317. <MultiTrigger>
  318. <MultiTrigger.Conditions>
  319. <Condition Property="IsGrouping" Value="true" />
  320. <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false" />
  321. </MultiTrigger.Conditions>
  322. <Setter Property="ScrollViewer.CanContentScroll" Value="false" />
  323. </MultiTrigger>
  324. <Trigger SourceName="PART_Popup" Property="HasDropShadow" Value="true">
  325. <Setter TargetName="Shdw" Property="Margin" Value="0,0,5,5" />
  326. <Setter TargetName="Shdw" Property="Color" Value="#71000000" />
  327. </Trigger>
  328. <Trigger SourceName="DropDownScrollViewer" Property="ScrollViewer.CanContentScroll" Value="false">
  329. <Setter TargetName="OpaqueRect" Property="Canvas.Top" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}" />
  330. <Setter TargetName="OpaqueRect" Property="Canvas.Left" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}" />
  331. </Trigger>
  332. </ControlTemplate.Triggers>
  333. </ControlTemplate>
  334. </Setter.Value>
  335. </Setter>
  336. <Style.Triggers>
  337. <Trigger Property="IsEditable" Value="true">
  338. <Setter Property="IsTabStop" Value="false" />
  339. <Setter Property="Padding" Value="1" />
  340. <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}" />
  341. </Trigger>
  342. </Style.Triggers>
  343. </Style>
  344. <Style BasedOn="{StaticResource BaseComboBoxStyle}" TargetType="ComboBox" />
  345. <!--#endregion-->
  346. <!--#region ColorCommboxStyle-->
  347. <ObjectDataProvider
  348. x:Key="colorPropertieOdp"
  349. MethodName="GetProperties"
  350. ObjectInstance="{x:Type Colors}" />
  351. <Style
  352. x:Key="ColorCommboxStyle"
  353. BasedOn="{StaticResource BaseComboBoxStyle}"
  354. TargetType="ComboBox">
  355. <Setter Property="IsTextSearchCaseSensitive" Value="False" />
  356. <Setter Property="IsEditable" Value="False" />
  357. <Setter Property="StaysOpenOnEdit" Value="False" />
  358. <Setter Property="ItemsSource" Value="{Binding Source={StaticResource colorPropertieOdp}}" />
  359. <Setter Property="ItemTemplate">
  360. <Setter.Value>
  361. <DataTemplate>
  362. <StackPanel Orientation="Horizontal">
  363. <Rectangle
  364. Width="40"
  365. Height="10"
  366. Fill="{Binding Name}" />
  367. <TextBlock Text="{Binding Name}" />
  368. </StackPanel>
  369. </DataTemplate>
  370. </Setter.Value>
  371. </Setter>
  372. </Style>
  373. <!--#endregion-->
  374. </Window.Resources>
  375. <Border x:Name="br">
  376. <Border.Background>
  377. <SolidColorBrush Color="#264c73"/>
  378. </Border.Background>
  379. <Grid>
  380. <Grid.RowDefinitions>
  381. <RowDefinition Height="50"/>
  382. <RowDefinition Height="50"/>
  383. <RowDefinition Height="40"/>
  384. <RowDefinition/>
  385. </Grid.RowDefinitions>
  386. <TextBlock Text="工艺流程" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF2AB2E7" Background="Transparent" FontSize="25" Cursor="Arrow" ></TextBlock>
  387. <Border BorderThickness="0,0,0,1" BorderBrush="#FF2AB2E7"></Border>
  388. <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
  389. <Button Content="向前新增" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding AddFrontFlowItemCommand}" ></Button>
  390. <Button Content="向后新增" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding AddLastFlowItemCommand}" ></Button>
  391. <Button Content="删除选项" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding DeleteFlowItemCommand}" ></Button>
  392. <Button Content="保存工艺" Width="100" Margin="0,0,10,0" Height="30" Background="Transparent" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Cursor="Hand" FontSize="18" Command="{Binding ConfirmCommand}" ></Button>
  393. <Button Content="取消" Height="30" Width="100" Margin="0,0,10,0" Background="Transparent" FontSize="18" BorderBrush="#FF2AB2E7" Foreground="#FF2AB2E7" Command="{Binding CloseWindowCommand}"></Button>
  394. </StackPanel>
  395. <Grid Grid.Row="2" Background="#FF2AB2E7" Margin="0,0,0,8">
  396. <Grid.ColumnDefinitions>
  397. <ColumnDefinition Width="100"/>
  398. <ColumnDefinition Width="140"/>
  399. <ColumnDefinition Width="140"/>
  400. <ColumnDefinition Width="140"/>
  401. <ColumnDefinition Width="140"/>
  402. <ColumnDefinition Width="140"/>
  403. </Grid.ColumnDefinitions>
  404. <TextBlock Text="工艺步骤" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  405. <GridSplitter BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  406. <TextBlock Grid.Column="1" Text="炒制原料/桶号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  407. <GridSplitter Grid.Column="1" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  408. <TextBlock Grid.Column="2" Text="炒制速度" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="white" FontSize="18"/>
  409. <GridSplitter Grid.Column="2" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  410. <TextBlock Grid.Column="3" Text="炒制重量" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"></TextBlock>
  411. <GridSplitter Grid.Column="3" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  412. <TextBlock Grid.Column="4" Text="炒制温度" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
  413. <GridSplitter Grid.Column="4" BorderThickness="0.2" BorderBrush="White"></GridSplitter>
  414. <TextBlock Grid.Column="5" Text="炒制时间" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="white" FontSize="18"/>
  415. </Grid>
  416. <ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Hidden">
  417. <ItemsControl x:Name="itemcontrols" AlternationCount="{Binding technologyProcessModels.Count}" ItemsSource="{Binding technologyProcessModels}" Margin="0,1,0,-1">
  418. <ItemsControl.ItemsPanel>
  419. <ItemsPanelTemplate>
  420. <StackPanel/>
  421. </ItemsPanelTemplate>
  422. </ItemsControl.ItemsPanel>
  423. <ItemsControl.ItemTemplate>
  424. <DataTemplate>
  425. <StackPanel x:Name="stk" Orientation="Horizontal" >
  426. <Label MouseLeftButtonDown="Label_MouseLeftButtonDown" Content="{Binding Path=(ItemsControl.AlternationIndex),RelativeSource={ RelativeSource TemplatedParent}}" Foreground="SkyBlue" Width="100" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="18" Background="Transparent" BorderBrush="#FF2AB2E7" BorderThickness="1,1,0.5,1"/>
  427. <ComboBox ItemsSource="{Binding DataContext.meterailItems, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}" Text="{Binding FryMaterialNum}" Style="{StaticResource BaseComboBoxStyle}" IsReadOnly="True" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  428. <TextBox Text="{Binding FrySpeed}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  429. <TextBox Text="{Binding FryWeight}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  430. <TextBox Text="{Binding FryTemperature}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,0.5,1"/>
  431. <TextBox Text="{Binding FryPeriodTime}" Width="140" Height="40" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="Transparent" Foreground="SkyBlue" FontSize="18" BorderBrush="#FF2AB2E7" BorderThickness="0.5,1,1,1"/>
  432. </StackPanel>
  433. </DataTemplate>
  434. </ItemsControl.ItemTemplate>
  435. </ItemsControl>
  436. </ScrollViewer>
  437. </Grid>
  438. </Border>
  439. </Window>