WaferAssociationUnit.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <UserControl x:Class="Venus_MainPages.Views.WaferAssociationUnit"
  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:unity="clr-namespace:Venus_MainPages.Unity"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. mc:Ignorable="d"
  9. xmlns:customControls="clr-namespace:Venus_Themes.CustomControls;assembly=Venus_Themes"
  10. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  11. d:DesignHeight="450" d:DesignWidth="800" x:Name="WaferUnit">
  12. <Grid>
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition/>
  15. <ColumnDefinition/>
  16. </Grid.ColumnDefinitions>
  17. <Grid VerticalAlignment="Top">
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="Auto"></RowDefinition>
  20. <RowDefinition></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Grid unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="#E0E4E7" unity:GridOptions.LineThickness="2" Background="#F5F7FA">
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="30"></RowDefinition>
  25. <RowDefinition Height="30"></RowDefinition>
  26. <RowDefinition Height="30"></RowDefinition>
  27. <RowDefinition Height="30"></RowDefinition>
  28. <RowDefinition Height="30"></RowDefinition>
  29. <RowDefinition Height="30"></RowDefinition>
  30. <RowDefinition Height="Auto"></RowDefinition>
  31. <RowDefinition Height="Auto"></RowDefinition>
  32. </Grid.RowDefinitions>
  33. <StackPanel Grid.Row="0" Orientation="Horizontal">
  34. <TextBlock Text="Lot ID:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="75"></TextBlock>
  35. <TextBox Text="{Binding WAInfo.LotId, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="300" IsEnabled="False" Margin="5 0 0 0"></TextBox>
  36. </StackPanel>
  37. <StackPanel Grid.Row="1" Orientation="Horizontal">
  38. <TextBlock Text="Sequence:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  39. <customControls:CustomComBobox Width="300" x:Name="cb" DropDownOpened="cb_DropDownOpened" SelectionChanged="cb_SelectionChanged" Margin="0 2 0 2"/>
  40. </StackPanel>
  41. <StackPanel Grid.Row="2" Orientation="Horizontal">
  42. <TextBlock Text="Pre Clean:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  43. <customControls:CustomComBobox Width="300" x:Name="preComboBox" DropDownOpened="preComboBox_DropDownOpened" SelectionChanged="preComboBox_SelectionChanged" Margin="0 2 0 2"/>
  44. </StackPanel>
  45. <StackPanel Grid.Row="3" Orientation="Horizontal">
  46. <TextBlock Text="Post Clean:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  47. <customControls:CustomComBobox Width="300" x:Name="postComboBox" DropDownOpened="postComboBox_DropDownOpened" SelectionChanged="postComboBox_SelectionChanged" Margin="0 3 0 3"/>
  48. </StackPanel>
  49. <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  50. <Button Content="Select All" Height="25" Command="{Binding SelectAllCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}" Width="125" Click="SelectAllButton_Click"/>
  51. <Button Content="DeSelect All" Height="25" Command="{Binding UnSelectAllCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}" Width="125" Click="UnSelectAllButton_Click" Margin="1 0 0 0"/>
  52. </StackPanel>
  53. <Grid Grid.Row="5">
  54. <Grid.ColumnDefinitions>
  55. <ColumnDefinition Width="1*"/>
  56. <ColumnDefinition Width="2*"/>
  57. <ColumnDefinition Width="1*"/>
  58. <ColumnDefinition Width="2*"/>
  59. </Grid.ColumnDefinitions>
  60. <TextBlock Grid.Column="0" Text="Name:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
  61. <TextBox Grid.Column="1" IsEnabled="True" Text="{Binding WAInfo.JobID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" TextAlignment="Center" VerticalContentAlignment="Center" Margin="-10 3 5 3"/>
  62. <TextBlock Grid.Column="2" Text="Status:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
  63. <TextBox Grid.Column="3" IsEnabled="True" Text="{Binding WAInfo.JobStatus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" TextAlignment="Center" VerticalContentAlignment="Center" Margin="-10 3 0 3"/>
  64. </Grid>
  65. <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
  66. <Button Content="Create Job" Width="120" Height="25" Command="{Binding CreateJobCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  67. <Button Content="Abort Job" Width="120" Height="25" Command="{Binding AbortJobCommand}" CommandParameter="{Binding WAInfo.JobID,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Margin="1 0 0 0"/>
  68. </StackPanel>
  69. <StackPanel Grid.Row="7" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  70. <Button Content="Start" Width="100" Height="25" Command="{Binding StartCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  71. <Button Content="Stop" Width="100" Height="25" Margin="30,0,0,0" Command="{Binding StopCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  72. <Button Content="Abort" Width="100" Height="25" Margin="30,0,0,0" Command="{Binding AbortCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  73. </StackPanel>
  74. </Grid>
  75. <ListBox Grid.Row="1"
  76. ItemsSource="{Binding ElementName=WaferUnit,Path=WAInfo.ModuleData.WaferManager.Wafers}" Name="list1">
  77. <ListBox.Resources>
  78. <Style TargetType="ListBoxItem" BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}">
  79. <Setter Property="Rectangle.StrokeThickness" Value="1"/>
  80. </Style>
  81. </ListBox.Resources>
  82. <ListBox.ItemTemplate>
  83. <DataTemplate>
  84. <Grid Height="18" Background="#F5F7FA">
  85. <Grid.ColumnDefinitions>
  86. <ColumnDefinition Width="Auto"></ColumnDefinition>
  87. <ColumnDefinition Width="Auto"></ColumnDefinition>
  88. <ColumnDefinition Width="Auto"></ColumnDefinition>
  89. </Grid.ColumnDefinitions>
  90. <Border BorderBrush="#E0E4E7" BorderThickness="1 1 1 0" Width="30" Padding="5,1">
  91. <TextBlock Name="txtSlotIndex" Text="{Binding SlotIndex}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
  92. </Border>
  93. <Border Grid.Column="1" BorderBrush="#E0E4E7" BorderThickness="0,0,1,1" Width="250" >
  94. <Border.Style>
  95. <Style>
  96. <Style.Triggers>
  97. <DataTrigger Binding="{Binding WaferStatus}" Value="0">
  98. <Setter Property="Border.Background" Value="#F5F7FA"/>
  99. </DataTrigger>
  100. <DataTrigger Binding="{Binding WaferStatus}" Value="1">
  101. <Setter Property="Border.Background" Value="SkyBlue"/>
  102. </DataTrigger>
  103. </Style.Triggers>
  104. </Style>
  105. </Border.Style>
  106. <TextBlock Name="txtSeqName" ToolTip="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Text="{Binding SequenceName}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
  107. </Border>
  108. <Border Grid.Column="2" BorderBrush="Silver" BorderThickness="0 1 1 0" Width="110" Padding="5,1" >
  109. <Button Width="60" Height="14" Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ElementName=WaferUnit,Path=ButtonIsEnable}">
  110. <Button.Style>
  111. <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ResourceKey={x:Type Button}}">
  112. <Setter Property="Button.Content" Value="Remove"/>
  113. <Setter Property="FontSize" Value="10" />
  114. <Style.Triggers>
  115. <DataTrigger Binding="{Binding ElementName=txtSeqName, Path=Text}" Value="{x:Static sys:String.Empty}">
  116. <Setter Property="Button.Content" Value="Set"/>
  117. </DataTrigger>
  118. <DataTrigger Binding="{Binding WaferStatus}" Value="0">
  119. <Setter Property="Button.IsEnabled" Value="False"/>
  120. </DataTrigger>
  121. </Style.Triggers>
  122. </Style>
  123. </Button.Style>
  124. </Button>
  125. </Border>
  126. </Grid>
  127. </DataTemplate>
  128. </ListBox.ItemTemplate>
  129. </ListBox>
  130. </Grid>
  131. </Grid>
  132. </UserControl>