SRDHomePageView.xaml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <UserControl x:Class="CyberX8_MainPages.Views.SRDHomePageView"
  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:UserControls="clr-namespace:CyberX8_Themes.UserControls;assembly=CyberX8_Themes"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters;assembly=CyberX8_Themes"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:local="clr-namespace:CyberX8_MainPages.Views"
  11. mc:Ignorable="d" x:Name="self"
  12. d:DesignHeight="800" d:DesignWidth="1850">
  13. <UserControl.Resources>
  14. <converters:BoolToColor x:Key="boolToColor"/>
  15. <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
  16. </UserControl.Resources>
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="5"/>
  20. <RowDefinition Height="170"/>
  21. <RowDefinition Height="240"/>
  22. <RowDefinition Height="145"/>
  23. <RowDefinition/>
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="610"></ColumnDefinition>
  27. <ColumnDefinition Width="400"></ColumnDefinition>
  28. <ColumnDefinition Width="610"></ColumnDefinition>
  29. <ColumnDefinition Width="250"></ColumnDefinition>
  30. <ColumnDefinition/>
  31. </Grid.ColumnDefinitions>
  32. <Grid Grid.Row="1" Grid.Column="0">
  33. <UserControls:SrdOverviewInformationPanel HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  34. ModuleTitle="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  35. RecipeContentValue="{Binding CurrentRecipe}"
  36. TimeRemainingValue="{Binding TimeRemaining}"
  37. TotalTimeValue="{Binding TotalTime}"
  38. StateValue="{Binding State}"
  39. OperatingModeValue="{Binding SRDPersistent.OperatingMode}"
  40. RecipeModeValue="{Binding SRDPersistent.RecipeOperatingMode}"/>
  41. </Grid>
  42. <Grid Grid.Row="1" Grid.Column="1">
  43. <UserControls:WaferOverviewPanel HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  44. WaferIDValue="{Binding WaferInfo.WaferID}" IsEnabled="{Binding IsEnabled}"
  45. SeqRecipeValue="{Binding WaferInfo.SequenceName}"/>
  46. </Grid>
  47. <Grid Grid.Row="1" Grid.Column="2" Grid.RowSpan="2">
  48. <UserControls:RecipeControl HorizontalAlignment="Center" Margin="10,0,0,0" VerticalAlignment="Center" Name="rcpControl"
  49. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  50. ModuleTitle="{Binding RecipeModuleName}"
  51. RecipeType="{Binding RecipeType}"
  52. SelectedRecipeNode="{Binding SelectedRecipeNode,Mode=TwoWay}"
  53. CurrentOperationMode="{Binding SRDPersistent.OperatingMode}"
  54. AchievedCycleTimes="{Binding AchievedRunRecipeCycle}" Loaded="RecipeControl_Loaded"
  55. RecipeModeValue ="{Binding SRDPersistent.RecipeOperatingMode}"
  56. />
  57. </Grid>
  58. <Grid Grid.Row="3" Grid.Column="3" Margin="0,-50,0,00">
  59. <Grid.RowDefinitions>
  60. <RowDefinition Height="1*"/>
  61. <RowDefinition Height="1*"/>
  62. <RowDefinition Height="1*"/>
  63. <RowDefinition Height="30"/>
  64. </Grid.RowDefinitions>
  65. <Grid.ColumnDefinitions>
  66. <ColumnDefinition Width="15"/>
  67. <ColumnDefinition Width="100"/>
  68. <ColumnDefinition Width="100"/>
  69. </Grid.ColumnDefinitions>
  70. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsEnabled}" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Switch On" Command="{Binding SwitchOnCommand}"/>
  71. <Button Grid.Column="2" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsEnabled}" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Switch Off" Command="{Binding SwitchOffCommand}"/>
  72. <Button Grid.Row="1" Grid.Column="1" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsEnabled}" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Load" Command="{Binding LoaderCommand}"/>
  73. <Button Grid.Row="1" Grid.Column="2" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsEnabled}" Height="30" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" Content="Unload" Command="{Binding UnloaderCommand}"/>
  74. </Grid>
  75. <Grid Grid.Row="2" Grid.Column="3" Height="155" VerticalAlignment="Top">
  76. <UserControls:OperatingModeControl HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top"
  77. ModuleName="{Binding Module}"
  78. OperationModeValue="{Binding SRDPersistent.OperatingMode}"/>
  79. </Grid>
  80. <Grid Grid.Row="1" Grid.Column="3">
  81. <Grid.RowDefinitions>
  82. <RowDefinition Height="60"></RowDefinition>
  83. <RowDefinition Height="50"></RowDefinition>
  84. <RowDefinition Height="60"></RowDefinition>
  85. </Grid.RowDefinitions>
  86. <Grid Grid.Row="0">
  87. <Label Content="{Binding Module}" FontSize="35" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center" Margin="0,0,0,13"></Label>
  88. </Grid>
  89. <Grid Grid.Row="1">
  90. <Button Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding IsAutoEnabled}" Grid.Column="1" Height="30" Width="100" HorizontalAlignment="Center" Content="Initialize" Command="{Binding InitializeCommand}"></Button>
  91. </Grid>
  92. <Grid Grid.Row="2">
  93. <Label Content="Operating Mode" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Center"></Label>
  94. </Grid>
  95. </Grid>
  96. <Grid Grid.Row="2" Grid.Column="0">
  97. <Grid.ColumnDefinitions>
  98. <ColumnDefinition Width="461*"/>
  99. <ColumnDefinition Width="149*"/>
  100. </Grid.ColumnDefinitions>
  101. <UserControls:SRDLeftInformation HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" Grid.ColumnSpan="2"
  102. StateMachine="{Binding StateMachine}" IsEnabled="{Binding IsEnabled}"
  103. CommonData="{Binding SRDCommonData}" WaferPresence="{Binding WaferPresence}"/>
  104. </Grid>
  105. <Grid Grid.Row="3" Grid.Column="0">
  106. <Grid.ColumnDefinitions>
  107. <ColumnDefinition Width="168*"/>
  108. <ColumnDefinition Width="137*"/>
  109. </Grid.ColumnDefinitions>
  110. <UserControls:SRDMoveControl HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  111. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  112. CommonData="{Binding SRDCommonData}" Grid.ColumnSpan="2"/>
  113. </Grid>
  114. <Grid Grid.Row="3" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="2">
  115. <UserControls:SRDUIControl HorizontalAlignment="Left" ArmUIPosition="{Binding SRDArmUIPosition}" RotationUIPosition="{Binding SRDRotationUIPosition}"
  116. WaferInfo="{Binding WaferInfo}" CommonData="{Binding SRDCommonData}" IsEnabled="{Binding IsEnabled}"/>
  117. </Grid>
  118. <Grid Grid.Row="4" Grid.Column="0">
  119. <Grid.ColumnDefinitions>
  120. <ColumnDefinition Width="168*"/>
  121. <ColumnDefinition Width="137*"/>
  122. </Grid.ColumnDefinitions>
  123. <UserControls:SRDSideControl HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center"
  124. ModuleName="{Binding Module}" IsEnabled="{Binding IsEnabled}"
  125. CommonData="{Binding SRDCommonData}" Grid.ColumnSpan="2"
  126. LoaderDiEnable ="{Binding LoaderDiEnable}"
  127. SelectedRecipeNode ="{Binding SelectedRecipeNode}"
  128. CurrentOperationMode="{Binding SRDPersistent.OperatingMode}"
  129. IsPresenceTesting ="{Binding IsPresenceTesting}"
  130. WaferID="{Binding WaferID}" />
  131. </Grid>
  132. <Grid Grid.Row="4" Grid.Column="2" Grid.ColumnSpan="2" >
  133. <UserControls:SRDFlipperControl HorizontalAlignment="Left" Margin="115,5,0,0" VerticalAlignment="Top"
  134. IsEnabled="{Binding IsEnabled}" ModuleName="{Binding Module}" CommonData="{Binding SRDCommonData}" Width="580"/>
  135. </Grid>
  136. </Grid>
  137. </UserControl>