PlatingCellHomePageView.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <UserControl x:Class="PunkHPX8_MainPages.Views.PlatingCellHomePageView"
  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:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls;assembly=PunkHPX8_Themes"
  9. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"
  10. xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters;assembly=PunkHPX8_Themes"
  11. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  12. xmlns:Control1="clr-namespace:Aitex.Core.UI.Control;assembly=MECF.Framework.UI.Core"
  13. xmlns:cmd="http://www.galasoft.ch/mvvmlight"
  14. xmlns:prism="http://prismlibrary.com/"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. mc:Ignorable="d"
  17. d:DesignHeight="800" d:DesignWidth="1850">
  18. <UserControl.Resources>
  19. <converters:StringToString x:Key="stringToString"/>
  20. <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
  21. <converters:BoolToOrientation2 x:Key="boolToOrientation2"></converters:BoolToOrientation2>
  22. <converters:BoolToColor x:Key="boolToColor"/>
  23. <converters:BoolToRedColor x:Key="boolToRedColor"/>
  24. <converters:boolToRedColor2 x:Key="boolToRedColor2"/>
  25. <converters:BoolToVisibility2 x:Key="boolToVisibility2"/>
  26. <converters:MutiBoolToBool x:Key="mutiBoolToBool"/>
  27. <converters:BoolToErrorColor x:Key="boolToErrorColor"></converters:BoolToErrorColor>
  28. <converters:BoolToYellowColor x:Key="boolToYellowColor"></converters:BoolToYellowColor>
  29. <converters:BoolToYellowColor2 x:Key="boolToYellowColor2"></converters:BoolToYellowColor2>
  30. <converters:BoolToGreenRedColor x:Key="boolToGreenRedColor"></converters:BoolToGreenRedColor>
  31. <converters:BoolToRedGreenColor x:Key="boolToRedGreenColor"></converters:BoolToRedGreenColor>
  32. <converters:BoolToColor4 x:Key="boolToColor4"></converters:BoolToColor4>
  33. <converters:BoolToColor6 x:Key="boolToColor6"></converters:BoolToColor6>
  34. <converters:BoolToColor7 x:Key="boolToColor7"></converters:BoolToColor7>
  35. <converters:BoolToBool x:Key="boolReverse"></converters:BoolToBool>
  36. </UserControl.Resources>
  37. <Canvas>
  38. <Grid>
  39. <Grid.RowDefinitions>
  40. <RowDefinition Height="5"/>
  41. <RowDefinition Height="170"/>
  42. <RowDefinition Height="240"/>
  43. <RowDefinition Height="145"/>
  44. <RowDefinition Height="245"/>
  45. </Grid.RowDefinitions>
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition Width="610"></ColumnDefinition>
  48. <ColumnDefinition Width="400"></ColumnDefinition>
  49. <ColumnDefinition Width="610"></ColumnDefinition>
  50. <ColumnDefinition Width="250"></ColumnDefinition>
  51. <ColumnDefinition/>
  52. </Grid.ColumnDefinitions>
  53. <Grid Grid.Row="1" Grid.Column="0">
  54. <UserControls:SrdOverviewInformationPanel HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  55. ModuleTitle="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  56. />
  57. </Grid>
  58. <Grid Grid.Row="1" Grid.Column="1">
  59. <UserControls:WaferOverviewPanel HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  60. IsEnabled="{Binding IsEnabled}"
  61. />
  62. </Grid>
  63. <Grid Grid.Row="1" Grid.Column="2" Grid.RowSpan="2">
  64. <UserControls:RecipeControl HorizontalAlignment="Center" Margin="10,0,0,0" VerticalAlignment="Center" Name="rcpControl"
  65. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  66. ModuleTitle="{Binding RecipeModuleName}"
  67. RecipeType="{Binding RecipeType}"
  68. SelectedRecipeNode="{Binding SelectedRecipeNode,Mode=TwoWay}"
  69. CurrentOperationMode="{Binding SRDPersistent.OperatingMode}"
  70. AchievedCycleTimes="{Binding AchievedRunRecipeCycle}"
  71. RecipeModeValue ="{Binding SRDPersistent.RecipeOperatingMode}"
  72. />
  73. </Grid>
  74. <Grid Grid.Row="1" Grid.Column="3">
  75. <Grid.RowDefinitions>
  76. <RowDefinition Height="60"></RowDefinition>
  77. <RowDefinition Height="50"></RowDefinition>
  78. <RowDefinition Height="60"></RowDefinition>
  79. </Grid.RowDefinitions>
  80. <Grid Grid.Row="0">
  81. <Label Content="{Binding Module}" FontSize="35" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,13"></Label>
  82. </Grid>
  83. <Grid Grid.Row="1">
  84. <Button Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsAutoEnabled}" Grid.Column="1" Height="30" Width="100" HorizontalAlignment="Center" Content="Initialize" Command="{Binding InitializeCommand}"></Button>
  85. </Grid>
  86. <Grid Grid.Row="2">
  87. <Label Content="Operating Mode" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Label>
  88. </Grid>
  89. </Grid>
  90. <Grid Grid.Row="2" Grid.Column="3" Height="155" VerticalAlignment="Top">
  91. <UserControls:OperatingModeControl HorizontalAlignment="Left" Margin="26,0,0,0" VerticalAlignment="Top"
  92. ModuleName="{Binding Module}"
  93. OperationModeValue="{Binding SRDPersistent.OperatingMode}"/>
  94. </Grid>
  95. <Grid Grid.Row="2" Grid.Column="3" Grid.RowSpan="2">
  96. <Label Content="Recipe Mode" FontSize="15" FontWeight="Bold" Margin="0,0,0,90" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center"></Label>
  97. <UserControls:RecipeModeControl HorizontalAlignment="Center" Margin="0,170,0,0" VerticalAlignment="Top" Width="190"
  98. ModuleName="{Binding Module}"
  99. RecipeModeValue="{Binding ReservoirsPersistent.RecipeOperatingMode}" />
  100. </Grid>
  101. <GroupBox Header="Cell Status" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Grid.RowSpan="2" HorizontalAlignment="Right" Height="180" VerticalAlignment="Center" Margin="0,0,30,50">
  102. <Grid>
  103. <Grid.RowDefinitions>
  104. <RowDefinition Height="30"/>
  105. <RowDefinition Height="30"/>
  106. <RowDefinition Height="30"/>
  107. <RowDefinition Height="30"/>
  108. <RowDefinition Height="30"/>
  109. </Grid.RowDefinitions>
  110. <Grid.ColumnDefinitions>
  111. <ColumnDefinition Width="200"></ColumnDefinition>
  112. <ColumnDefinition Width="80"></ColumnDefinition>
  113. <ColumnDefinition Width="80"></ColumnDefinition>
  114. </Grid.ColumnDefinitions>
  115. <Grid Grid.Row="0" >
  116. <Label Content="AN Tower Status" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
  117. </Grid>
  118. <Grid Grid.Row="1" >
  119. <Label Content="Anode Flow" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
  120. </Grid>
  121. <Grid Grid.Row="2" >
  122. <Label Content="Overflow Level" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
  123. </Grid>
  124. <Grid Grid.Row="3" >
  125. <Label Content="OverflowStatus" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  126. </Grid>
  127. <Grid Grid.Row="4" >
  128. <Label Content="Cell FLow" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  129. </Grid>
  130. <Grid Grid.Row="0" Grid.Column="1">
  131. <Ellipse Grid.Column="0" Width="16" Height="16" HorizontalAlignment="Left" Margin="3,0,0,0" Fill="{Binding CommonSafetyData.Reservoir12CAPumpEdm,Converter={StaticResource boolToRedGreenColor}}" Stroke="Silver"/>
  132. <Label Content="High" FontSize="12" FontWeight="Bold" Margin="20,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  133. </Grid>
  134. <Grid Grid.Row="0" Grid.Column="2">
  135. <Ellipse Grid.Column="0" Width="16" Height="16" HorizontalAlignment="Right" Margin="0 0 20 0" Fill="{Binding CommonSafetyData.Reservoir12CAPumpEdm,Converter={StaticResource boolToRedGreenColor}}" Stroke="Silver"/>
  136. <Label Content="Low" FontSize="12" FontWeight="Bold" Margin="8,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  137. </Grid>
  138. <Border Grid.Row="1" Grid.Column="1" Margin="5,5,2,5" Background="Black">
  139. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  140. </Border>
  141. <Border Grid.Row="1" Grid.Column="2" Margin="5,5,25,5" Background="Black">
  142. <TextBlock Text="L/min" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  143. </Border>
  144. <Border Grid.Row="2" Grid.Column="1" Margin="5,5,2,5" Background="Black">
  145. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  146. </Border>
  147. <Border Grid.Row="2" Grid.Column="2" Margin="5,5,25,5" Background="Black">
  148. <TextBlock Text="mm" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  149. </Border>
  150. <Border Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Background="Black" Height="30" Margin="5,5,25,5">
  151. <TextBlock Text="{Binding CurrentRecipe.Metal}" Foreground="Lime" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  152. </Border>
  153. <Border Grid.Row="4" Grid.Column="1" Margin="5,5,2,5" Background="Black">
  154. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  155. </Border>
  156. <Border Grid.Row="4" Grid.Column="2" Margin="5,5,25,5" Background="Black">
  157. <TextBlock Text="L/min" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  158. </Border>
  159. </Grid>
  160. </GroupBox>
  161. <Grid Grid.Row="2" Grid.Column="0" Grid.RowSpan="2">
  162. <UserControls:PlatingCellStatusControl HorizontalAlignment="Left" Margin="10,-50,0,0" VerticalAlignment="Center"
  163. IsEnabled="True"
  164. ModuleName="{Binding Module}"
  165. />
  166. </Grid>
  167. <GroupBox Header="Plating Power Supply" Grid.Row="3" Grid.Column="0" Grid.RowSpan="2" HorizontalAlignment="Left" Height="150" VerticalAlignment="Center" Margin="10,0,30,0">
  168. <Grid>
  169. <Grid.RowDefinitions>
  170. <RowDefinition Height="30"/>
  171. <RowDefinition Height="30"/>
  172. <RowDefinition Height="30"/>
  173. </Grid.RowDefinitions>
  174. <Grid.ColumnDefinitions>
  175. <ColumnDefinition Width="100"></ColumnDefinition>
  176. <ColumnDefinition Width="100"></ColumnDefinition>
  177. <ColumnDefinition Width="100"></ColumnDefinition>
  178. </Grid.ColumnDefinitions>
  179. <Grid Grid.Row="1" >
  180. <Label Content="Current" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
  181. </Grid>
  182. <Grid Grid.Row="2" >
  183. <Label Content="Voltage" FontSize="14" FontWeight="Bold" Margin="10,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" />
  184. </Grid>
  185. <Grid Grid.Row="0" Grid.Column="1">
  186. <Label Content="Setpoint" FontSize="12" FontWeight="Bold" Margin="20,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  187. </Grid>
  188. <Grid Grid.Row="0" Grid.Column="2">
  189. <Label Content="Feedback" FontSize="12" FontWeight="Bold" Margin="8,0,0,0" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  190. </Grid>
  191. <Border Grid.Row="1" Grid.Column="1" Margin="5,5,5,5" Background="Black">
  192. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  193. </Border>
  194. <Border Grid.Row="1" Grid.Column="2" Margin="5,5,25,5" Background="Black">
  195. <TextBlock Text="L/min" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  196. </Border>
  197. <Border Grid.Row="2" Grid.Column="1" Margin="5,5,5,5" Background="Black">
  198. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  199. </Border>
  200. <Border Grid.Row="2" Grid.Column="2" Margin="5,5,25,5" Background="Black">
  201. <TextBlock Text="mm" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  202. </Border>
  203. </Grid>
  204. </GroupBox>
  205. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="3" HorizontalAlignment="Center" Margin="-120,100,0,0">
  206. <UserControls:PlatingCellUIControl ModuleName="{Binding Module}"
  207. ></UserControls:PlatingCellUIControl>
  208. </Grid>
  209. </Grid>
  210. </Canvas>
  211. </UserControl>