LoadLockView.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.LoadLockView"
  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:i="http://schemas.microsoft.com/expression/2010/interactivity"
  7. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  8. xmlns:micro="clr-namespace:Caliburn.Micro"
  9. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter"
  10. mc:Ignorable="d" >
  11. <UserControl.Resources>
  12. <converter:FOUPStatusConverter x:Key="FOUPStatusConverter"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <StackPanel >
  16. <TextBlock Text="{Binding UnitData.ModuleID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" FontFamily="Arial" Width="110" Height="16" TextAlignment="Center" FontSize="14" FontWeight="Bold" TextWrapping="Wrap" Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
  17. </TextBlock>
  18. <Border BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" HorizontalAlignment="Center" VerticalAlignment="Center" Width="260" Margin="0,5">
  19. <StackPanel Orientation="Horizontal">
  20. <Border>
  21. <Grid>
  22. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,15,5"/>
  23. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,18,8">
  24. <Rectangle.Effect>
  25. <BlurEffect Radius="15"/>
  26. </Rectangle.Effect>
  27. </Rectangle>
  28. <Grid Margin="5,10,0,10">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="0"/>
  31. <RowDefinition/>
  32. </Grid.RowDefinitions>
  33. <Grid>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition />
  36. <ColumnDefinition Width="15"/>
  37. </Grid.ColumnDefinitions>
  38. <TextBlock TextWrapping="Wrap" Text="{Binding UnitData.Status, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},Converter={StaticResource FOUPStatusConverter}}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" TextAlignment="Center" />
  39. </Grid>
  40. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  41. <ListBox ItemContainerStyle="{DynamicResource NoSelection_ListBoxItem}" ItemsSource="{Binding LeftWaferData, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  42. <ListBox.ItemTemplate>
  43. <DataTemplate>
  44. <Grid Height="24">
  45. <Grid.ColumnDefinitions>
  46. <ColumnDefinition Width="108"/>
  47. <ColumnDefinition Width="15"/>
  48. </Grid.ColumnDefinitions>
  49. <Rectangle Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  50. <Rectangle.Effect>
  51. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  52. </Rectangle.Effect>
  53. </Rectangle>
  54. <Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  55. <Rectangle.Effect>
  56. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  57. </Rectangle.Effect>
  58. </Rectangle>
  59. <controls:Slot ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,9,0,0">
  60. <i:Interaction.Triggers>
  61. <i:EventTrigger EventName="SlotMouseButtonDown">
  62. <micro:ActionMessage MethodName="OnMouseUp">
  63. <micro:Parameter Value="$source" />
  64. <micro:Parameter Value="$eventargs" />
  65. </micro:ActionMessage>
  66. </i:EventTrigger>
  67. <i:EventTrigger EventName="WaferTransferStarted">
  68. <micro:ActionMessage MethodName="OnWaferTransfer">
  69. <micro:Parameter Value="$eventargs" />
  70. </micro:ActionMessage>
  71. </i:EventTrigger>
  72. </i:Interaction.Triggers>
  73. </controls:Slot>
  74. <TextBlock x:Name="Foup_Text" HorizontalAlignment="Center" Grid.Column="1" TextWrapping="Wrap" Text="{Binding SlotIndex}" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
  75. </TextBlock>
  76. </Grid>
  77. <DataTemplate.Triggers>
  78. <Trigger Property="IsMouseOver" Value="True">
  79. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  80. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  81. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  82. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  83. </Trigger>
  84. </DataTemplate.Triggers>
  85. </DataTemplate>
  86. </ListBox.ItemTemplate>
  87. </ListBox>
  88. </StackPanel>
  89. </Grid>
  90. </Grid>
  91. </Border>
  92. <Border>
  93. <Grid>
  94. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,15,5"/>
  95. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,18,8">
  96. <Rectangle.Effect>
  97. <BlurEffect Radius="15"/>
  98. </Rectangle.Effect>
  99. </Rectangle>
  100. <Grid Margin="5,10,0,10">
  101. <Grid.RowDefinitions>
  102. <RowDefinition Height="0"/>
  103. <RowDefinition/>
  104. </Grid.RowDefinitions>
  105. <Grid>
  106. <Grid.ColumnDefinitions>
  107. <ColumnDefinition />
  108. <ColumnDefinition Width="15"/>
  109. </Grid.ColumnDefinitions>
  110. <TextBlock TextWrapping="Wrap" Text="{Binding UnitData.Status, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}},Converter={StaticResource FOUPStatusConverter}}" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" TextAlignment="Center" />
  111. </Grid>
  112. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  113. <ListBox ItemContainerStyle="{DynamicResource NoSelection_ListBoxItem}" ItemsSource="{Binding RightWaferData, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  114. <ListBox.ItemTemplate>
  115. <DataTemplate>
  116. <Grid Height="24">
  117. <Grid.ColumnDefinitions>
  118. <ColumnDefinition Width="108"/>
  119. <ColumnDefinition Width="15"/>
  120. </Grid.ColumnDefinitions>
  121. <Rectangle Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  122. <Rectangle.Effect>
  123. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  124. </Rectangle.Effect>
  125. </Rectangle>
  126. <Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
  127. <Rectangle.Effect>
  128. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  129. </Rectangle.Effect>
  130. </Rectangle>
  131. <controls:Slot ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,9,0,0">
  132. <i:Interaction.Triggers>
  133. <i:EventTrigger EventName="SlotMouseButtonDown">
  134. <micro:ActionMessage MethodName="OnMouseUp">
  135. <micro:Parameter Value="$source" />
  136. <micro:Parameter Value="$eventargs" />
  137. </micro:ActionMessage>
  138. </i:EventTrigger>
  139. <i:EventTrigger EventName="WaferTransferStarted">
  140. <micro:ActionMessage MethodName="OnWaferTransfer">
  141. <micro:Parameter Value="$eventargs" />
  142. </micro:ActionMessage>
  143. </i:EventTrigger>
  144. </i:Interaction.Triggers>
  145. </controls:Slot>
  146. <TextBlock x:Name="Foup_Text" HorizontalAlignment="Center" Grid.Column="1" TextWrapping="Wrap" Text="{Binding SlotIndex}" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
  147. </TextBlock>
  148. </Grid>
  149. <DataTemplate.Triggers>
  150. <Trigger Property="IsMouseOver" Value="True">
  151. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  152. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  153. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  154. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  155. </Trigger>
  156. </DataTemplate.Triggers>
  157. </DataTemplate>
  158. </ListBox.ItemTemplate>
  159. </ListBox>
  160. </StackPanel>
  161. </Grid>
  162. </Grid>
  163. </Border>
  164. <StackPanel.Style>
  165. <Style>
  166. <Style.Triggers>
  167. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  168. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  169. </DataTrigger>
  170. </Style.Triggers>
  171. </Style>
  172. </StackPanel.Style>
  173. </StackPanel>
  174. </Border>
  175. <!--<StackPanel>
  176. <StackPanel.Style>
  177. <Style>
  178. <Style.Triggers>
  179. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  180. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  181. </DataTrigger>
  182. </Style.Triggers>
  183. </Style>
  184. </StackPanel.Style>
  185. </StackPanel>-->
  186. </StackPanel>
  187. </Grid>
  188. </UserControl>