WaferAssociationUnit.xaml 12 KB

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