VpwRecipeView.xaml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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. </Grid>
  87. <Grid Grid.Row="2" Grid.Column="2">
  88. <Grid.RowDefinitions>
  89. <RowDefinition Height="200"></RowDefinition>
  90. <RowDefinition Height="*"></RowDefinition>
  91. </Grid.RowDefinitions>
  92. <Grid.ColumnDefinitions>
  93. <ColumnDefinition Width="350"></ColumnDefinition>
  94. <ColumnDefinition Width="350"></ColumnDefinition>
  95. <ColumnDefinition Width="350"></ColumnDefinition>
  96. <ColumnDefinition Width="350"></ColumnDefinition>
  97. </Grid.ColumnDefinitions>
  98. <GroupBox Header="1.Vacuum Prewet" Grid.Column="1" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  99. <Grid>
  100. <Grid.RowDefinitions>
  101. <RowDefinition Height="75"></RowDefinition>
  102. <RowDefinition Height="75"></RowDefinition>
  103. <RowDefinition Height="45"></RowDefinition>
  104. <RowDefinition Height="45"></RowDefinition>
  105. <RowDefinition Height="45"></RowDefinition>
  106. <RowDefinition Height="45"></RowDefinition>
  107. <RowDefinition Height="200"></RowDefinition>
  108. </Grid.RowDefinitions>
  109. <Grid.ColumnDefinitions>
  110. <ColumnDefinition Width="300"></ColumnDefinition>
  111. </Grid.ColumnDefinitions>
  112. <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>
  113. <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>
  114. <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>
  115. <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>
  116. <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"/>
  117. <UserControls:GroupTextBoxControlDouble Grid.Row="6" Title="Flow Set Point" Unit="L/min" MinValue="0" MaxValue="10.0" Width="120" Margin="0,0,200,119"
  118. DoubleValue="{Binding Recipe.VacuumPrewetFlowSetPoint,Mode=TwoWay}"
  119. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowSetPoint],Mode=TwoWay}" />
  120. <UserControls:GroupTextBoxControl Grid.Row="6" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="97,0,105,118" Width="120"
  121. IntValue="{Binding Recipe.VacuumPrewetFlowWarningPercent,Mode=TwoWay}"
  122. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowWarningPercent],Mode=TwoWay}" />
  123. <UserControls:GroupTextBoxControl Grid.Row="6" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="194,0,-14,118" Width="120"
  124. IntValue="{Binding Recipe.VacuumPrewetFlowErrorPercent,Mode=TwoWay}"
  125. ValidResult="{Binding PropertyValidResultDic[VacuumPrewetFlowErrorPercent],Mode=TwoWay}" />
  126. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Vacuum Target" Unit="Toor" MinValue="0" MaxValue="1000" Width="300"
  127. IntValue="{Binding Recipe.VacuumTarget,Mode=TwoWay}"
  128. ValidResult="{Binding PropertyValidResultDic[VacuumTarget],Mode=TwoWay}" />
  129. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Dry Hold Time" Unit="Sec" MinValue="0" MaxValue="800" Width="300"
  130. IntValue="{Binding Recipe.DryHoldTime,Mode=TwoWay}"
  131. ValidResult="{Binding PropertyValidResultDic[DryHoldTime],Mode=TwoWay}" />
  132. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  133. <Grid>
  134. <Label Content="Spray Bar" Height="30" VerticalAlignment="Top" />
  135. <RadioButton Content="EXT" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  136. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract ,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="158,-1,0,-6" ></RadioButton>
  137. <RadioButton Content="RET" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  138. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract,Mode=TwoWay}" Margin="220,-1,0,-6" ></RadioButton>
  139. </Grid>
  140. </GroupBox>
  141. <GroupBox Grid.Row="3" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  142. <Grid>
  143. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  144. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  145. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  146. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  147. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  148. </Grid>
  149. </GroupBox>
  150. <GroupBox Grid.Row="4" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  151. <Grid>
  152. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  153. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  154. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  155. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  156. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  157. </Grid>
  158. </GroupBox>
  159. <GroupBox Grid.Row="5" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  160. <Grid>
  161. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  162. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  163. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  164. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  165. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  166. </Grid>
  167. </GroupBox>
  168. <DataGrid x:Name="VacuumPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="6" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="12,88,73,-78"
  169. ItemsSource="{Binding Recipe.VacuumRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVacuumPrewetIndex,Mode=TwoWay}"
  170. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  171. <DataGrid.Columns>
  172. <DataGridTextColumn Header="Step" IsReadOnly="True" Width="50" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  173. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  174. </DataGridTextColumn>
  175. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  176. </DataGridTextColumn>
  177. </DataGrid.Columns>
  178. </DataGrid>
  179. </Grid>
  180. </GroupBox>
  181. <GroupBox Header="0.Prewet Prepare" Grid.Column="0" Padding="10" Grid.Row="0">
  182. <Grid>
  183. <Grid.RowDefinitions>
  184. <RowDefinition Height="45"></RowDefinition>
  185. <RowDefinition Height="75"></RowDefinition>
  186. </Grid.RowDefinitions>
  187. <Grid.ColumnDefinitions>
  188. <ColumnDefinition Width="58.205"></ColumnDefinition>
  189. <ColumnDefinition Width="241.795"/>
  190. </Grid.ColumnDefinitions>
  191. <UserControls:GroupTextBoxControl Grid.Row="1" Title="DIW Loop DO" Unit="ppm" MinValue="0" MaxValue="10" Width="300"
  192. IntValue="{Binding Recipe.DiwLoopDoSet,Mode=TwoWay}"
  193. ValidResult="{Binding PropertyValidResultDic[DiwLoopDoSet],Mode=TwoWay}" Grid.ColumnSpan="2" />
  194. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0" Grid.ColumnSpan="2">
  195. <Grid>
  196. <Label Content="Purge Enable" Height="30" VerticalAlignment="Top" />
  197. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  198. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  199. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  200. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  201. </Grid>
  202. </GroupBox>
  203. </Grid>
  204. </GroupBox>
  205. <GroupBox Header="4.Spin Off" Grid.Column="0" Padding="10" Grid.Row="1">
  206. <Grid>
  207. <Grid.RowDefinitions>
  208. <RowDefinition Height="75"></RowDefinition>
  209. <RowDefinition Height="75"></RowDefinition>
  210. </Grid.RowDefinitions>
  211. <Grid.ColumnDefinitions>
  212. <ColumnDefinition Width="58.205"></ColumnDefinition>
  213. <ColumnDefinition Width="241.795"/>
  214. </Grid.ColumnDefinitions>
  215. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Spin Speed" Unit="rpm" MinValue="0" MaxValue="1000" Width="300"
  216. IntValue="{Binding Recipe.SpinSpeed,Mode=TwoWay}"
  217. ValidResult="{Binding PropertyValidResultDic[SpinSpeed],Mode=TwoWay}" Grid.ColumnSpan="2" />
  218. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Spin Time" Unit="sec" MinValue="0" MaxValue="10" Width="300"
  219. IntValue="{Binding Recipe.SpinTime,Mode=TwoWay}"
  220. ValidResult="{Binding PropertyValidResultDic[SpinTime],Mode=TwoWay}" Grid.ColumnSpan="2" />
  221. </Grid>
  222. </GroupBox>
  223. <GroupBox Header="2.Vent Prewet" Grid.Column="2" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  224. <Grid Margin="0,0,0,0">
  225. <Grid.RowDefinitions>
  226. <RowDefinition Height="45"></RowDefinition>
  227. <RowDefinition Height="45"></RowDefinition>
  228. <RowDefinition Height="45"></RowDefinition>
  229. <RowDefinition Height="300"></RowDefinition>
  230. </Grid.RowDefinitions>
  231. <Grid.ColumnDefinitions>
  232. <ColumnDefinition Width="300"></ColumnDefinition>
  233. </Grid.ColumnDefinitions>
  234. <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>
  235. <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>
  236. <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>
  237. <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>
  238. <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>
  239. <UserControls:GroupTextBoxControlDouble Grid.Row="3" Title="Flow Set Point" Unit="L/min" MinValue="0" MaxValue="10.0" Width="120" Margin="-1,2,201,220"
  240. DoubleValue="{Binding Recipe.VentPrewetFlowSetPoint,Mode=TwoWay}"
  241. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowSetPoint],Mode=TwoWay}" />
  242. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="96,2,84,220" Width="120"
  243. IntValue="{Binding Recipe.VentPrewetFlowWarningPercent,Mode=TwoWay}"
  244. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowWarningPercent],Mode=TwoWay}" />
  245. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="213,2,-15,220" Width="120"
  246. IntValue="{Binding Recipe.VentPrewetFlowErrorPercent,Mode=TwoWay}"
  247. ValidResult="{Binding PropertyValidResultDic[VentPrewetFlowErrorPercent],Mode=TwoWay}" />
  248. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  249. <Grid>
  250. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  251. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  252. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  253. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  254. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  255. </Grid>
  256. </GroupBox>
  257. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  258. <Grid>
  259. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  260. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  261. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  262. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  263. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  264. </Grid>
  265. </GroupBox>
  266. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  267. <Grid>
  268. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  269. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  270. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  271. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  272. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  273. </Grid>
  274. </GroupBox>
  275. <DataGrid x:Name="VentPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="3" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="8,89,77,1"
  276. ItemsSource="{Binding Recipe.VentRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVentPrewetIndex,Mode=TwoWay}"
  277. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" >
  278. <DataGrid.Resources>
  279. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  280. </DataGrid.Resources>
  281. <DataGrid.Columns>
  282. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  283. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  284. </DataGridTextColumn>
  285. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  286. </DataGridTextColumn>
  287. </DataGrid.Columns>
  288. </DataGrid>
  289. </Grid>
  290. </GroupBox>
  291. <GroupBox Header="3.Extend Clean" Grid.Column="3" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  292. <Grid>
  293. <Grid.RowDefinitions>
  294. <RowDefinition Height="45"></RowDefinition>
  295. <RowDefinition Height="45"></RowDefinition>
  296. <RowDefinition Height="45"></RowDefinition>
  297. <RowDefinition Height="200"></RowDefinition>
  298. </Grid.RowDefinitions>
  299. <Grid.ColumnDefinitions>
  300. <ColumnDefinition Width="300"></ColumnDefinition>
  301. </Grid.ColumnDefinitions>
  302. <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>
  303. <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>
  304. <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>
  305. <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"/>
  306. <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>
  307. <UserControls:GroupTextBoxControlDouble Grid.Row="3" Title="Flow Set Point" Unit="L/min" MinValue="0" MaxValue="10.0" Width="120" Margin="1,3,199,123"
  308. DoubleValue="{Binding Recipe.ExtendCleanFlowSetPoint,Mode=TwoWay}"
  309. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowSetPoint],Mode=TwoWay}" />
  310. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Warning" Unit="%" MinValue="0" MaxValue="100" Margin="100,2,105,122" Width="120"
  311. IntValue="{Binding Recipe.ExtendCleanFlowWarningPercent,Mode=TwoWay}"
  312. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowWarningPercent],Mode=TwoWay}" />
  313. <UserControls:GroupTextBoxControl Grid.Row="3" Title="Flow Fault" Unit="%" MinValue="0" MaxValue="100" Margin="196,1,-16,122" Width="120"
  314. IntValue="{Binding Recipe.ExtendCleanFlowErrorPercent,Mode=TwoWay}"
  315. ValidResult="{Binding PropertyValidResultDic[ExtendCleanFlowErrorPercent],Mode=TwoWay}" />
  316. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  317. <Grid>
  318. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  319. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  320. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  321. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  322. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  323. </Grid>
  324. </GroupBox>
  325. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  326. <Grid>
  327. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  328. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  329. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  330. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  331. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  332. </Grid>
  333. </GroupBox>
  334. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  335. <Grid>
  336. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  337. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  338. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  339. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  340. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  341. </Grid>
  342. </GroupBox>
  343. <DataGrid x:Name="ExtendCleanRinseGrid" Width="215" MinRowHeight="27" Grid.Row="3" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="12,93,73,-83"
  344. ItemsSource="{Binding Recipe.ExtendCleanRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedExtendCleanIndex,Mode=TwoWay}"
  345. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  346. <DataGrid.Resources>
  347. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  348. </DataGrid.Resources>
  349. <DataGrid.Columns>
  350. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  351. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  352. </DataGridTextColumn>
  353. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay,ValidatesOnDataErrors=True}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  354. </DataGridTextColumn>
  355. </DataGrid.Columns>
  356. </DataGrid>
  357. </Grid>
  358. </GroupBox>
  359. </Grid>
  360. </Grid>
  361. </UserControl>