SrdRecipeView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <UserControl xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  2. xmlns:UserControls="clr-namespace:CyberX8_Themes.UserControls;assembly=CyberX8_Themes"
  3. x:Class="CyberX8_MainPages.Views.SrdRecipeView"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:local="clr-namespace:CyberX8_MainPages.Views"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  11. xmlns:converters="clr-namespace:CyberX8_MainPages.Converters"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. mc:Ignorable="d"
  14. d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
  15. <UserControl.Resources>
  16. <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="100"></RowDefinition>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="50"></ColumnDefinition>
  25. <ColumnDefinition Width="400"></ColumnDefinition>
  26. <ColumnDefinition Width="700"></ColumnDefinition>
  27. <ColumnDefinition Width="500"></ColumnDefinition>
  28. <ColumnDefinition/>
  29. </Grid.ColumnDefinitions>
  30. <UserControls:RecipeFileLoadControl Grid.Row="1" Grid.Column="1" Title="Srd Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
  31. RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
  32. CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
  33. <Grid Grid.Row="1" Grid.Column="2">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="70"></RowDefinition>
  36. <RowDefinition Height="70"></RowDefinition>
  37. <RowDefinition/>
  38. </Grid.RowDefinitions>
  39. <GroupBox Header="PPID" Grid.Row="0">
  40. <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
  41. </TextBlock>
  42. </GroupBox>
  43. <GroupBox Header="Description" Grid.Row="1">
  44. <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
  45. </TextBlock>
  46. </GroupBox>
  47. <Grid Grid.Row="2">
  48. <GroupBox Header="DI Water Rinse">
  49. <Grid>
  50. <Grid.RowDefinitions>
  51. <RowDefinition></RowDefinition>
  52. <RowDefinition Height="10"></RowDefinition>
  53. </Grid.RowDefinitions>
  54. <Grid Grid.Row="0">
  55. <!--<GroupBox Header="Pre-Rinse" Grid.Column="0" Height="370">
  56. <Grid>
  57. <Grid.RowDefinitions>
  58. <RowDefinition Height="88"/>
  59. <RowDefinition Height="88"/>
  60. <RowDefinition Height="88"/>
  61. <RowDefinition/>
  62. </Grid.RowDefinitions>
  63. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Front Divert Time" Unit="sec" MinValue="0" MaxValue="30" IntValue="{Binding Recipe.FrontDivertTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[FrontDivertTime],Mode=TwoWay}" Width="290"/>
  64. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Front Pool Time" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.FrontPoolTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[FrontPoolTime],Mode=TwoWay}" Width="290"/>
  65. --><!--<UserControls:GroupTextBoxControl Grid.Row="2" Title="Max Divert Plus Pool Pressure" Unit="psi" MinValue="0" MaxValue="100" IntValue="{Binding Recipe.MaxDivertPlusPoolPressure,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[MaxDivertPlusPoolPressure],Mode=TwoWay}" Width="290"/>-->
  66. <!--<UserControls:GroupTextBoxControl Grid.Row="3" Title="Divert Plus Pool Delay" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.DivertPlusPoolDelay,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[DivertPlusPoolDelay],Mode=TwoWay}" Width="290"/>--><!--
  67. </Grid>
  68. </GroupBox>-->
  69. <GroupBox Header="Rinse" Grid.Column="2">
  70. <Grid>
  71. <Grid.RowDefinitions>
  72. <RowDefinition Height="85"/>
  73. <RowDefinition Height="85"/>
  74. <RowDefinition Height="85"/>
  75. <RowDefinition Height="85"/>
  76. <RowDefinition Height="85"/>
  77. <RowDefinition/>
  78. </Grid.RowDefinitions>
  79. <Grid.ColumnDefinitions>
  80. <ColumnDefinition/>
  81. <ColumnDefinition/>
  82. </Grid.ColumnDefinitions>
  83. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Rinse Speed" Unit="rpm" MinValue="0" MaxValue="300" IntValue="{Binding Recipe.RinseSpeed,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[RinseSpeed],Mode=TwoWay}" Width="290"/>
  84. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Rinse Time" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.RinseTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[RinseTime],Mode=TwoWay}" Width="290"/>
  85. <UserControls:GroupTextBoxControl Grid.Row="0" Grid.Column="1" Title="Max Water Pressure" Unit="psi" MinValue="0" MaxValue="50" IntValue="{Binding Recipe.MaxWaterPressure,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[MaxWaterPressure],Mode=TwoWay}" Width="290"/>
  86. <UserControls:GroupTextBoxControl Grid.Row="2" Title="Flow Check Delay" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.FlowCheckDelay,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[FlowCheckDelay],Mode=TwoWay}" Width="290"/>
  87. <UserControls:GroupTextBoxControl Grid.Row="1" Grid.Column="1" Title="Min Water Pressure" Unit="psi" MinValue="0" MaxValue="50" IntValue="{Binding Recipe.MinWaterPressure,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[MinWaterPressure],Mode=TwoWay}" Width="290" />
  88. <UserControls:GroupTextBoxControlDouble Grid.Row="2" Grid.Column="1" Title="Max SRD Water Flow" Unit="L/min" MinValue="0" MaxValue="2.5" DoubleValue="{Binding Recipe.MaxSRDWaterFlow,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[MaxSRDWaterFlow],Mode=TwoWay}" Width="290" />
  89. <UserControls:GroupTextBoxControlDouble Grid.Row="3" Grid.Column="1" Title="Min SRD Water Flow" Unit="L/min" MinValue="0" MaxValue="2.5" DoubleValue="{Binding Recipe.MinSRDWaterFlow,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[MinSRDWaterFlow],Mode=TwoWay}" Width="290" />
  90. </Grid>
  91. </GroupBox>
  92. </Grid>
  93. </Grid>
  94. </GroupBox>
  95. </Grid>
  96. </Grid>
  97. <Grid Grid.Row="1" Grid.Column="3">
  98. <Grid.RowDefinitions>
  99. <RowDefinition Height="70"></RowDefinition>
  100. <RowDefinition Height="70"></RowDefinition>
  101. <RowDefinition/>
  102. <RowDefinition Height="70"></RowDefinition>
  103. </Grid.RowDefinitions>
  104. <Grid Grid.Row="0" IsEnabled="{Binding Enable}">
  105. <Grid.ColumnDefinitions>
  106. <ColumnDefinition/>
  107. <ColumnDefinition/>
  108. <ColumnDefinition/>
  109. </Grid.ColumnDefinitions>
  110. <Button Grid.Column="0" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
  111. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
  112. </Grid>
  113. <Grid Grid.Row="2">
  114. <Grid.ColumnDefinitions>
  115. <ColumnDefinition Width="90"></ColumnDefinition>
  116. <ColumnDefinition/>
  117. <ColumnDefinition Width="90"></ColumnDefinition>
  118. </Grid.ColumnDefinitions>
  119. <GroupBox Header="Nitrogen Dry" Grid.Column="1">
  120. <Grid>
  121. <Grid.RowDefinitions>
  122. <RowDefinition Height="88"/>
  123. <RowDefinition Height="88"/>
  124. <RowDefinition Height="88"/>
  125. <RowDefinition Height="88"/>
  126. <RowDefinition/>
  127. </Grid.RowDefinitions>
  128. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Dry Speed" Unit="rpm" MinValue="1" MaxValue="1500" IntValue="{Binding Recipe.DrySpeed,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[DrySpeed],Mode=TwoWay}" Width="290"/>
  129. <!--<UserControls:GroupTextBoxControl Grid.Row="1" Title="Pre-N2 Time" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.PreN2DryTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[PreN2DryTime],Mode=TwoWay}" Width="290"/>-->
  130. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Dry Time" Unit="sec" MinValue="0" MaxValue="100" IntValue="{Binding Recipe.DryTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[DryTime],Mode=TwoWay}" Width="290" />
  131. <!--<UserControls:GroupTextBoxControl Grid.Row="3" Title="Post-N2 Time" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.PostN2DryTime,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[PostN2DryTime],Mode=TwoWay}" Width="290"/>-->
  132. <!--<UserControls:GroupTextBoxControl Grid.Row="4" Title="Exhaust Fan Delay" Unit="sec" MinValue="0" MaxValue="60" IntValue="{Binding Recipe.ExhaustFanDelay,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[ExhaustFanDelay],Mode=TwoWay}" Width="290"/>-->
  133. </Grid>
  134. </GroupBox>
  135. </Grid>
  136. </Grid>
  137. </Grid>
  138. </UserControl>