VpwRecipeView.xaml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. <UserControl x:Class="PunkHPX8_MainPages.Views.VpwRecipeView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PunkHPX8_MainPages.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. xmlns:converters="clr-namespace:PunkHPX8_MainPages.Converters"
  10. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"
  11. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  12. xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
  13. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. mc:Ignorable="d"
  16. d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
  17. <UserControl.Resources>
  18. <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
  19. <converters:BoolVisibilityConverter x:Key="boolVisibilityConverter"/>
  20. </UserControl.Resources>
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="210"></RowDefinition>
  24. <RowDefinition Height="*"/>
  25. </Grid.RowDefinitions>
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="50"></ColumnDefinition>
  28. <ColumnDefinition Width="400"></ColumnDefinition>
  29. <ColumnDefinition></ColumnDefinition>
  30. </Grid.ColumnDefinitions>
  31. <UserControls:RecipeFileLoadControl Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" Title="VPW Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
  32. RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
  33. CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
  34. <Grid Grid.Row="0" Grid.Column="2" Margin="10 0 0 0">
  35. <Grid.RowDefinitions>
  36. <RowDefinition Height="70"></RowDefinition>
  37. <RowDefinition Height="70"></RowDefinition>
  38. <RowDefinition Height="70"></RowDefinition>
  39. <RowDefinition/>
  40. </Grid.RowDefinitions>
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="220"></ColumnDefinition>
  43. <ColumnDefinition Width="220"></ColumnDefinition>
  44. <ColumnDefinition Width="220"></ColumnDefinition>
  45. <ColumnDefinition Width="220"></ColumnDefinition>
  46. <ColumnDefinition Width="220"></ColumnDefinition>
  47. </Grid.ColumnDefinitions>
  48. <GroupBox Header="PPID" Grid.Row="0" Grid.ColumnSpan="3">
  49. <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
  50. </TextBlock>
  51. </GroupBox>
  52. <Grid Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Margin="10 0 0 0 ">
  53. <Grid.RowDefinitions>
  54. <RowDefinition Height="70"></RowDefinition>
  55. </Grid.RowDefinitions>
  56. <Grid Grid.Row="0" >
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition/>
  59. <ColumnDefinition/>
  60. <ColumnDefinition/>
  61. </Grid.ColumnDefinitions>
  62. <Button Grid.Column="0" IsEnabled="{Binding Enable}" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
  63. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
  64. </Grid>
  65. </Grid>
  66. <GroupBox Header="Description" Grid.Row="1" Grid.ColumnSpan="3">
  67. <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
  68. </TextBlock>
  69. </GroupBox>
  70. <GroupBox Header="Author" Grid.Row="2" Grid.Column="0">
  71. <Label Content="{Binding Recipe.Author}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  72. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  73. </GroupBox>
  74. <GroupBox Header="CreateDate" Grid.Row="2" Grid.Column="1">
  75. <Label Content="{Binding Recipe.CreateDate}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  76. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  77. </GroupBox>
  78. <GroupBox Header="SaveDate" Grid.Row="2" Grid.Column="2">
  79. <Label Content="{Binding Recipe.SaveDate}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  80. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  81. </GroupBox>
  82. <GroupBox Header="Total TIme" IsEnabled="{Binding Enable}" Grid.Row="2" Grid.Column="3">
  83. <Label Content="{Binding Recipe.TotalTime}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  84. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  85. </GroupBox>
  86. <GroupBox Header="Wafer Size" IsEnabled="{Binding Enable}" Grid.Row="2" Grid.Column="4">
  87. <ComboBox Height="30" Margin="0,0,20,0" ItemsSource="{Binding WaferSizeLst}" SelectedItem="{Binding Recipe.WaferSize, Mode=TwoWay}">
  88. </ComboBox>
  89. </GroupBox>
  90. </Grid>
  91. <Grid Grid.Row="2" Grid.Column="2">
  92. <Grid.RowDefinitions>
  93. <RowDefinition Height="200"></RowDefinition>
  94. <RowDefinition Height="*"></RowDefinition>
  95. </Grid.RowDefinitions>
  96. <Grid.ColumnDefinitions>
  97. <ColumnDefinition Width="350"></ColumnDefinition>
  98. <ColumnDefinition Width="350"></ColumnDefinition>
  99. <ColumnDefinition Width="350"></ColumnDefinition>
  100. <ColumnDefinition Width="350"></ColumnDefinition>
  101. </Grid.ColumnDefinitions>
  102. <GroupBox Header="1.Vacuum Prewet" Grid.Column="3" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  103. <Grid>
  104. <Grid.RowDefinitions>
  105. <RowDefinition Height="75"></RowDefinition>
  106. <RowDefinition Height="75"></RowDefinition>
  107. <RowDefinition Height="45"></RowDefinition>
  108. <RowDefinition Height="45"></RowDefinition>
  109. <RowDefinition Height="45"></RowDefinition>
  110. <RowDefinition Height="45"></RowDefinition>
  111. <RowDefinition Height="200"></RowDefinition>
  112. </Grid.RowDefinitions>
  113. <Grid.ColumnDefinitions>
  114. <ColumnDefinition Width="300"></ColumnDefinition>
  115. </Grid.ColumnDefinitions>
  116. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding AddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,-20,0"></Button>
  117. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding AddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,70,-20,0"></Button>
  118. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding MoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,140,-20,0"></Button>
  119. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" Height="26" Width="80" FontSize="10" Command="{Binding MoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,165,-20,-50" ></Button>
  120. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="26" Width="80" FontSize="10" Command="{Binding DeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,210,-20,-80"/>
  121. <UserControls:GroupTextBoxControl Grid.Row="6" Title="Flow Set Ponit" Unit="L/min" MinValue="0" MaxValue="10" Width="120" Margin="0,0,200,119"
  122. IntValue="{Binding Recipe.VacuumPrewetFlowSetPoint,Mode=TwoWay}"
  123. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowSetPoint],Mode=TwoWay}" />
  124. <UserControls:GroupTextBoxControl Grid.Row="6" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="97,0,105,118" Width="120"
  125. IntValue="{Binding Recipe.VacuumPrewetFlowWarningPercent,Mode=TwoWay}"
  126. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowWarningPercent],Mode=TwoWay}" />
  127. <UserControls:GroupTextBoxControl Grid.Row="6" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="194,0,-14,118" Width="120"
  128. IntValue="{Binding Recipe.VacuumPrewetFlowErrorPercent,Mode=TwoWay}"
  129. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowErrorPercent],Mode=TwoWay}" />
  130. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Vacuum Target" Unit="Toor" MinValue="0" MaxValue="200" Width="300"
  131. IntValue="{Binding Recipe.VacuumTarget,Mode=TwoWay}"
  132. ValidResult="{Binding PropertyValidResultDic[VacuumTarget],Mode=TwoWay}" />
  133. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Dry Hold Time" Unit="Sec" MinValue="0" MaxValue="800" Width="300"
  134. IntValue="{Binding Recipe.DryHoldTime,Mode=TwoWay}"
  135. ValidResult="{Binding PropertyValidResultDic[DryHoldTime],Mode=TwoWay}" />
  136. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  137. <Grid>
  138. <Label Content="Spray Bar" Height="30" VerticalAlignment="Top" />
  139. <RadioButton Content="EXT" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  140. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract ,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="158,-1,0,-6" ></RadioButton>
  141. <RadioButton Content="RET" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  142. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract,Mode=TwoWay}" Margin="220,-1,0,-6" ></RadioButton>
  143. </Grid>
  144. </GroupBox>
  145. <GroupBox Grid.Row="3" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  146. <Grid>
  147. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  148. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  149. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  150. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  151. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  152. </Grid>
  153. </GroupBox>
  154. <GroupBox Grid.Row="4" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  155. <Grid>
  156. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  157. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  158. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  159. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  160. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  161. </Grid>
  162. </GroupBox>
  163. <GroupBox Grid.Row="5" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  164. <Grid>
  165. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  166. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  167. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  168. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  169. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  170. </Grid>
  171. </GroupBox>
  172. <DataGrid x:Name="VacuumPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="6" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="12,88,73,-78"
  173. ItemsSource="{Binding Recipe.VacuumRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVacuumPrewetIndex,Mode=TwoWay}"
  174. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  175. <DataGrid.Resources>
  176. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  177. </DataGrid.Resources>
  178. <DataGrid.Columns>
  179. <DataGridTextColumn Header="Step" IsReadOnly="True" Width="50" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  180. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  181. <DataGridTextColumn.ElementStyle>
  182. <Style TargetType="TextBlock">
  183. <Setter Property="ToolTip"
  184. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  185. </Style>
  186. </DataGridTextColumn.ElementStyle>
  187. <DataGridTextColumn.EditingElementStyle>
  188. <Style TargetType="TextBox">
  189. <Setter Property="ToolTip"
  190. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  191. </Style>
  192. </DataGridTextColumn.EditingElementStyle>
  193. </DataGridTextColumn>
  194. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  195. <DataGridTextColumn.ElementStyle>
  196. <Style TargetType="TextBlock">
  197. <Setter Property="ToolTip"
  198. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  199. </Style>
  200. </DataGridTextColumn.ElementStyle>
  201. <DataGridTextColumn.EditingElementStyle>
  202. <Style TargetType="TextBox">
  203. <Setter Property="ToolTip"
  204. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  205. </Style>
  206. </DataGridTextColumn.EditingElementStyle>
  207. </DataGridTextColumn>
  208. </DataGrid.Columns>
  209. </DataGrid>
  210. </Grid>
  211. </GroupBox>
  212. <GroupBox Header="0.Prewet Prepare" Grid.Column="0" Padding="10" Grid.Row="0">
  213. <Grid>
  214. <Grid.RowDefinitions>
  215. <RowDefinition Height="45"></RowDefinition>
  216. <RowDefinition Height="75"></RowDefinition>
  217. </Grid.RowDefinitions>
  218. <Grid.ColumnDefinitions>
  219. <ColumnDefinition Width="58.205"></ColumnDefinition>
  220. <ColumnDefinition Width="241.795"/>
  221. </Grid.ColumnDefinitions>
  222. <UserControls:GroupTextBoxControl Grid.Row="1" Title="DIW Loop DO" Unit="ppm" MinValue="0" MaxValue="10" Width="300"
  223. IntValue="{Binding Recipe.DiwLoopDoSet,Mode=TwoWay}"
  224. ValidResult="{Binding PropertyValidResultDic[DiwLoopDoSet],Mode=TwoWay}" Grid.ColumnSpan="2" />
  225. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0" Grid.ColumnSpan="2">
  226. <Grid>
  227. <Label Content="Purge Enable" Height="30" VerticalAlignment="Top" />
  228. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  229. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  230. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  231. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  232. </Grid>
  233. </GroupBox>
  234. </Grid>
  235. </GroupBox>
  236. <GroupBox Header="4.Spin Off" Grid.Column="0" Padding="10" Grid.Row="1">
  237. <Grid>
  238. <Grid.RowDefinitions>
  239. <RowDefinition Height="75"></RowDefinition>
  240. <RowDefinition Height="75"></RowDefinition>
  241. </Grid.RowDefinitions>
  242. <Grid.ColumnDefinitions>
  243. <ColumnDefinition Width="58.205"></ColumnDefinition>
  244. <ColumnDefinition Width="241.795"/>
  245. </Grid.ColumnDefinitions>
  246. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Spin Speed" Unit="rpm" MinValue="0" MaxValue="1000" Width="300"
  247. IntValue="{Binding Recipe.SpinSpeed,Mode=TwoWay}"
  248. ValidResult="{Binding PropertyValidResultDic[SpinSpeed],Mode=TwoWay}" Grid.ColumnSpan="2" />
  249. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Spin Time" Unit="sec" MinValue="0" MaxValue="10" Width="300"
  250. IntValue="{Binding Recipe.SpinTime,Mode=TwoWay}"
  251. ValidResult="{Binding PropertyValidResultDic[SpinTime],Mode=TwoWay}" Grid.ColumnSpan="2" />
  252. </Grid>
  253. </GroupBox>
  254. <GroupBox Header="2.Vent Prewet" Grid.Column="1" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  255. <Grid Margin="0,0,0,0">
  256. <Grid.RowDefinitions>
  257. <RowDefinition Height="45"></RowDefinition>
  258. <RowDefinition Height="45"></RowDefinition>
  259. <RowDefinition Height="45"></RowDefinition>
  260. <RowDefinition Height="300"></RowDefinition>
  261. </Grid.RowDefinitions>
  262. <Grid.ColumnDefinitions>
  263. <ColumnDefinition Width="300"></ColumnDefinition>
  264. </Grid.ColumnDefinitions>
  265. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetAddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-100,-20,0"></Button>
  266. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetAddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-30,-20,0"></Button>
  267. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetMoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,40,-20,0"></Button>
  268. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetMoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,110,-20,0"></Button>
  269. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetDeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,180,-20,0"></Button>
  270. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Set Ponit" Unit="L/min" MinValue="0" MaxValue="10" Width="120" Margin="-1,2,201,220"
  271. IntValue="{Binding Recipe.VentPrewetFlowSetPoint,Mode=TwoWay}"
  272. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowSetPoint],Mode=TwoWay}" />
  273. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="96,2,84,220" Width="120"
  274. IntValue="{Binding Recipe.VentPrewetFlowWarningPercent,Mode=TwoWay}"
  275. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowWarningPercent],Mode=TwoWay}" />
  276. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="213,2,-15,220" Width="120"
  277. IntValue="{Binding Recipe.VentPrewetFlowErrorPercent,Mode=TwoWay}"
  278. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowErrorPercent],Mode=TwoWay}" />
  279. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  280. <Grid>
  281. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  282. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  283. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  284. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  285. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  286. </Grid>
  287. </GroupBox>
  288. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  289. <Grid>
  290. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  291. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  292. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  293. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  294. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  295. </Grid>
  296. </GroupBox>
  297. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  298. <Grid>
  299. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  300. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  301. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  302. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  303. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  304. </Grid>
  305. </GroupBox>
  306. <DataGrid x:Name="VentPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="3" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="8,89,77,1"
  307. ItemsSource="{Binding Recipe.VentRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVentPrewetIndex,Mode=TwoWay}"
  308. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" >
  309. <DataGrid.Resources>
  310. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  311. </DataGrid.Resources>
  312. <DataGrid.Columns>
  313. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  314. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  315. <DataGridTextColumn.ElementStyle>
  316. <Style TargetType="TextBlock">
  317. <Setter Property="ToolTip"
  318. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  319. </Style>
  320. </DataGridTextColumn.ElementStyle>
  321. <DataGridTextColumn.EditingElementStyle>
  322. <Style TargetType="TextBox">
  323. <Setter Property="ToolTip"
  324. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  325. </Style>
  326. </DataGridTextColumn.EditingElementStyle>
  327. </DataGridTextColumn>
  328. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  329. <DataGridTextColumn.ElementStyle>
  330. <Style TargetType="TextBlock">
  331. <Setter Property="ToolTip"
  332. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  333. </Style>
  334. </DataGridTextColumn.ElementStyle>
  335. <DataGridTextColumn.EditingElementStyle>
  336. <Style TargetType="TextBox">
  337. <Setter Property="ToolTip"
  338. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  339. </Style>
  340. </DataGridTextColumn.EditingElementStyle>
  341. </DataGridTextColumn>
  342. </DataGrid.Columns>
  343. </DataGrid>
  344. </Grid>
  345. </GroupBox>
  346. <GroupBox Header="3.Extend Clean" Grid.Column="2" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  347. <Grid>
  348. <Grid.RowDefinitions>
  349. <RowDefinition Height="45"></RowDefinition>
  350. <RowDefinition Height="45"></RowDefinition>
  351. <RowDefinition Height="45"></RowDefinition>
  352. <RowDefinition Height="200"></RowDefinition>
  353. </Grid.RowDefinitions>
  354. <Grid.ColumnDefinitions>
  355. <ColumnDefinition Width="300"></ColumnDefinition>
  356. </Grid.ColumnDefinitions>
  357. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanAddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,10,-20,0"></Button>
  358. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanAddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,80,-20,0"></Button>
  359. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanMoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,150,-20,0"></Button>
  360. <Button Grid.Row="3" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" FontSize="10" Height="26" Width="80" Command="{Binding ExtendCleanMoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-20,-23"/>
  361. <Button Grid.Row="3" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="24" Width="80" FontSize="10" Command="{Binding ExtendCleanDeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,-20,-57"></Button>
  362. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Set Ponit" Unit="L/min" MinValue="0" MaxValue="10" Width="120" Margin="1,3,199,123"
  363. IntValue="{Binding Recipe.ExtendCleanFlowSetPoint,Mode=TwoWay}"
  364. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowSetPoint],Mode=TwoWay}" />
  365. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="100,2,105,122" Width="120"
  366. IntValue="{Binding Recipe.ExtendCleanFlowWarningPercent,Mode=TwoWay}"
  367. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowWarningPercent],Mode=TwoWay}" />
  368. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="196,1,-16,122" Width="120"
  369. IntValue="{Binding Recipe.ExtendCleanFlowErrorPercent,Mode=TwoWay}"
  370. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowErrorPercent],Mode=TwoWay}" />
  371. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  372. <Grid>
  373. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  374. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  375. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  376. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  377. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  378. </Grid>
  379. </GroupBox>
  380. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  381. <Grid>
  382. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  383. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  384. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  385. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  386. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  387. </Grid>
  388. </GroupBox>
  389. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  390. <Grid>
  391. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  392. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  393. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  394. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  395. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  396. </Grid>
  397. </GroupBox>
  398. <DataGrid x:Name="ExtendCleanRinseGrid" Width="215" MinRowHeight="27" Grid.Row="3" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="12,93,73,-83"
  399. ItemsSource="{Binding Recipe.ExtendCleanRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedExtendCleanIndex,Mode=TwoWay}"
  400. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  401. <DataGrid.Resources>
  402. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  403. </DataGrid.Resources>
  404. <DataGrid.Columns>
  405. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  406. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  407. <DataGridTextColumn.ElementStyle>
  408. <Style TargetType="TextBlock">
  409. <Setter Property="ToolTip"
  410. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  411. </Style>
  412. </DataGridTextColumn.ElementStyle>
  413. <DataGridTextColumn.EditingElementStyle>
  414. <Style TargetType="TextBox">
  415. <Setter Property="ToolTip"
  416. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  417. </Style>
  418. </DataGridTextColumn.EditingElementStyle>
  419. </DataGridTextColumn>
  420. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  421. <DataGridTextColumn.ElementStyle>
  422. <Style TargetType="TextBlock">
  423. <Setter Property="ToolTip"
  424. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  425. </Style>
  426. </DataGridTextColumn.ElementStyle>
  427. <DataGridTextColumn.EditingElementStyle>
  428. <Style TargetType="TextBox">
  429. <Setter Property="ToolTip"
  430. Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}"/>
  431. </Style>
  432. </DataGridTextColumn.EditingElementStyle>
  433. </DataGridTextColumn>
  434. </DataGrid.Columns>
  435. </DataGrid>
  436. </Grid>
  437. </GroupBox>
  438. </Grid>
  439. </Grid>
  440. </UserControl>