FOUPFrontView.xaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl x:Class="EfemDual.Client.Models.Controls.FOUPFrontView"
  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:cal="http://www.caliburn.org"
  8. xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
  9. xmlns:converter="clr-namespace:MECF.Framework.UI.Client.Ctrlib.Converter;assembly=MECF.Framework.UI.Client"
  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="90" Height="16" TextAlignment="Center" FontSize="14" TextWrapping="Wrap" FontWeight="Bold" 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="130" Margin="0,5" CornerRadius="4">
  19. <Grid>
  20. <Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="5,5,15,5" RadiusX="2" RadiusY="2"/>
  21. <Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="8,8,18,8" RadiusX="2" RadiusY="2">
  22. <Rectangle.Effect>
  23. <BlurEffect Radius="15"/>
  24. </Rectangle.Effect>
  25. </Rectangle>
  26. <Grid Margin="5,10,0,10">
  27. <Grid.RowDefinitions>
  28. <RowDefinition Height="18"/>
  29. <RowDefinition/>
  30. </Grid.RowDefinitions>
  31. <Grid>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition />
  34. <ColumnDefinition Width="15"/>
  35. </Grid.ColumnDefinitions>
  36. <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" />
  37. </Grid>
  38. <StackPanel Grid.Row="1" VerticalAlignment="Top">
  39. <ListBox ItemsSource="{Binding UnitData.WaferManager.Wafers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled">
  40. <ListBox.ItemTemplate>
  41. <DataTemplate>
  42. <Grid Height="24">
  43. <Grid.ColumnDefinitions>
  44. <ColumnDefinition Width="108"/>
  45. <ColumnDefinition Width="15"/>
  46. </Grid.ColumnDefinitions>
  47. <Rectangle Height="4" Width="30" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" RadiusX="1" RadiusY="1">
  48. <Rectangle.Effect>
  49. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  50. </Rectangle.Effect>
  51. </Rectangle>
  52. <Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" RadiusX="1" RadiusY="1">
  53. <Rectangle.Effect>
  54. <DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
  55. </Rectangle.Effect>
  56. </Rectangle>
  57. <controls:Slot ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,6,0,0">
  58. <i:Interaction.Triggers>
  59. <i:EventTrigger EventName="SlotMouseButtonDown">
  60. <cal:ActionMessage MethodName="OnMouseUp">
  61. <cal:Parameter Value="$source" />
  62. <cal:Parameter Value="$eventargs" />
  63. </cal:ActionMessage>
  64. </i:EventTrigger>
  65. <i:EventTrigger EventName="WaferTransferStarted">
  66. <cal:ActionMessage MethodName="OnWaferTransfer">
  67. <cal:Parameter Value="$eventargs" />
  68. </cal:ActionMessage>
  69. </i:EventTrigger>
  70. </i:Interaction.Triggers>
  71. </controls:Slot>
  72. <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">
  73. </TextBlock>
  74. </Grid>
  75. <DataTemplate.Triggers>
  76. <Trigger Property="IsMouseOver" Value="True">
  77. <Setter TargetName="Foup_Text" Property="Foreground" Value="White"/>
  78. <Setter TargetName="Foup_Text" Property="FontWeight" Value="Bold"/>
  79. <Setter TargetName="Foup_Text" Property="FontSize" Value="11"/>
  80. <Setter TargetName="Foup_Text" Property="Background" Value="Green"/>
  81. </Trigger>
  82. </DataTemplate.Triggers>
  83. </DataTemplate>
  84. </ListBox.ItemTemplate>
  85. </ListBox>
  86. </StackPanel>
  87. </Grid>
  88. </Grid>
  89. </Border>
  90. <StackPanel.Style>
  91. <Style>
  92. <Style.Triggers>
  93. <DataTrigger Binding="{Binding UnitData.IsInstalled, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
  94. <Setter Property ="StackPanel.Visibility" Value="Collapsed"></Setter>
  95. </DataTrigger>
  96. </Style.Triggers>
  97. </Style>
  98. </StackPanel.Style>
  99. </StackPanel>
  100. </Grid>
  101. </UserControl>