NewWaferAssociationUnit.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <UserControl x:Class="Venus_MainPages.Views.NewWaferAssociationUnit"
  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:userControls="clr-namespace:Venus_Themes.UserControls;assembly=Venus_Themes"
  11. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  12. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  13. d:DesignHeight="450" d:DesignWidth="600" x:Name="WaferUnit">
  14. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition/>
  17. <ColumnDefinition/>
  18. </Grid.ColumnDefinitions>
  19. <Grid VerticalAlignment="Top">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto"></RowDefinition>
  22. <RowDefinition></RowDefinition>
  23. </Grid.RowDefinitions>
  24. <Grid unity:GridOptions.ShowBorder="True" unity:GridOptions.LineBrush="#E0E4E7" unity:GridOptions.LineThickness="2" Background="#F5F7FA">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="27"></RowDefinition>
  27. <RowDefinition Height="27"></RowDefinition>
  28. <RowDefinition Height="27"></RowDefinition>
  29. <RowDefinition Height="27"></RowDefinition>
  30. <RowDefinition Height="27"></RowDefinition>
  31. <RowDefinition Height="27"></RowDefinition>
  32. <RowDefinition Height="27"></RowDefinition>
  33. <RowDefinition Height="27"></RowDefinition>
  34. <RowDefinition Height="Auto"></RowDefinition>
  35. <RowDefinition Height="Auto"></RowDefinition>
  36. </Grid.RowDefinitions>
  37. <StackPanel Grid.Row="0" Orientation="Horizontal">
  38. <TextBlock Text="Lot ID:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="75"></TextBlock>
  39. <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" Margin="5 0 0 0"></TextBox>
  40. </StackPanel>
  41. <StackPanel Grid.Row="1" Orientation="Horizontal">
  42. <TextBlock Text="Sequence:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  43. <customControls:CustomComBobox Width="200" x:Name="cb" DropDownOpened="cb_DropDownOpened" SelectionChanged="cb_SelectionChanged" Margin="0 2 0 2" SelectedValue="{Binding ElementName=WaferUnit,Path=SequenceName}"/>
  44. </StackPanel>
  45. <StackPanel Grid.Row="2" Orientation="Horizontal">
  46. <TextBlock Text="Pre Clean:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  47. <customControls:CustomComBobox Width="200" x:Name="preComboBox" DropDownOpened="preComboBox_DropDownOpened" SelectionChanged="preComboBox_SelectionChanged" Margin="0 2 0 2" SelectedValue="{Binding ElementName=WaferUnit,Path=WAInfo.PreCleanRecipeName}"/>
  48. </StackPanel>
  49. <StackPanel Grid.Row="3" Orientation="Horizontal">
  50. <TextBlock Text="Post Clean:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  51. <customControls:CustomComBobox Width="200" x:Name="postComboBox" DropDownOpened="postComboBox_DropDownOpened" SelectionChanged="postComboBox_SelectionChanged" Margin="0 3 0 3" SelectedValue="{Binding ElementName=WaferUnit,Path=WAInfo.PostCleanRecipeName}"/>
  52. </StackPanel>
  53. <StackPanel Grid.Row="4" Orientation="Horizontal">
  54. <TextBlock Text="Cycle Set:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  55. <CheckBox x:Name="IsEnableCycleCheckBox" Content="IsEnable" VerticalAlignment="Center" Padding="0 1 0 0" IsChecked="{Binding ElementName=WaferUnit,Path=WAInfo.IsEnableCycle}" Unchecked="IsEnableCycleCheckBox_Unchecked" Checked="IsEnableCycleCheckBox_Checked"/>
  56. <TextBlock Text="Cycle Num:" TextBlock.TextAlignment="Center" VerticalAlignment="Center" Margin="10 0 5 0"/>
  57. <TextBox x:Name="CycleNumTextbox" Width="50" VerticalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Height="20" BorderThickness="0 0 0 1" Text="{Binding ElementName=WaferUnit,Path=WAInfo.CycleNumber}" IsEnabled="False">
  58. </TextBox>
  59. </StackPanel>
  60. <StackPanel Grid.Row="5" Orientation="Horizontal">
  61. <TextBlock Text="Cycle Info:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center" Width="80"></TextBlock>
  62. <TextBlock Text="{Binding ElementName=WaferUnit,Path=CycleInfo}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center"/>
  63. </StackPanel>
  64. <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  65. <Button Content="Select All" Height="25" Command="{Binding SelectAllCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}" Width="125" Click="SelectAllButton_Click"/>
  66. <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"/>
  67. </StackPanel>
  68. <Grid Grid.Row="7">
  69. <Grid.ColumnDefinitions>
  70. <ColumnDefinition Width="1*"/>
  71. <ColumnDefinition Width="2*"/>
  72. <ColumnDefinition Width="1*"/>
  73. <ColumnDefinition Width="2*"/>
  74. </Grid.ColumnDefinitions>
  75. <TextBlock Grid.Column="0" Text="Name:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
  76. <TextBox Grid.Column="1" Text="{Binding WAInfo.JobID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" TextAlignment="Center" VerticalContentAlignment="Center" Margin="0 3 5 3" IsEnabled="False"/>
  77. <TextBlock Grid.Column="2" Text="Status:" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="15" FontFamily="Arial" VerticalAlignment="Center"></TextBlock>
  78. <TextBox Grid.Column="3" Text="{Binding WAInfo.JobStatus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" TextAlignment="Center" VerticalContentAlignment="Center" Margin="0 3 0 3" IsEnabled="False"/>
  79. </Grid>
  80. <StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
  81. <Button Content="Create Job" Width="120" Height="25" Command="{Binding CreateJobCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  82. <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"/>
  83. </StackPanel>
  84. <StackPanel Grid.Row="9" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  85. <Button Content="Start" Width="70" Height="25" Command="{Binding StartCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  86. <Button Content="Stop" Width="70" Height="25" Margin="20,0,0,0" Command="{Binding StopCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  87. <Button Content="Abort" Width="70" Height="25" Margin="20,0,0,0" Command="{Binding AbortCommand}" CommandParameter="{Binding ElementName=WaferUnit,Path=WAInfo}"/>
  88. </StackPanel>
  89. </Grid>
  90. <ListBox Grid.Row="1"
  91. BorderThickness="0"
  92. ItemsSource="{Binding ElementName=WaferUnit,Path=WAInfo.ModuleData.WaferManager.Wafers}" Name="list1">
  93. <ListBox.ItemContainerStyle>
  94. <Style TargetType="ListBoxItem">
  95. <Setter Property="Template">
  96. <Setter.Value>
  97. <ControlTemplate TargetType="ListBoxItem">
  98. <Border Name="Border"
  99. Background="{TemplateBinding Background}"
  100. BorderBrush="{TemplateBinding BorderBrush}"
  101. BorderThickness="{TemplateBinding BorderThickness}">
  102. <ContentPresenter HorizontalAlignment="Stretch"
  103. VerticalAlignment="Stretch"
  104. ContentSource="Content" />
  105. </Border>
  106. <ControlTemplate.Triggers>
  107. <Trigger Property="IsSelected" Value="True">
  108. <!-- 设置选中项的背景为透明或者你想要的颜色 -->
  109. <Setter TargetName="Border" Property="Background" Value="Transparent" />
  110. </Trigger>
  111. </ControlTemplate.Triggers>
  112. </ControlTemplate>
  113. </Setter.Value>
  114. </Setter>
  115. </Style>
  116. </ListBox.ItemContainerStyle>
  117. <ListBox.Resources>
  118. <Style TargetType="ListBoxItem" BasedOn="{StaticResource ResourceKey={x:Type ListBoxItem}}">
  119. <Setter Property="Rectangle.StrokeThickness" Value="0"/>
  120. <Style.Triggers>
  121. <Trigger Property="IsMouseOver" Value="True">
  122. <Setter Property="Background" Value="Red"/>
  123. </Trigger>
  124. </Style.Triggers>
  125. </Style>
  126. <!--<Style TargetType="ListBoxItem">
  127. </Style>-->
  128. </ListBox.Resources>
  129. <ListBox.ItemTemplate>
  130. <DataTemplate>
  131. <Grid Height="16" Background="#F5F7FA">
  132. <Grid.ColumnDefinitions>
  133. <ColumnDefinition Width="Auto"></ColumnDefinition>
  134. <ColumnDefinition Width="Auto"></ColumnDefinition>
  135. <!--<ColumnDefinition Width="Auto"></ColumnDefinition>-->
  136. </Grid.ColumnDefinitions>
  137. <Border Grid.Column="0" BorderBrush="#E0E4E7" BorderThickness="0,0,1,1" Width="95">
  138. <ctrl:Slot Grid.Column="1" ViewType="Front" AllowDrop="True" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0 2.5 0 0" SlotMouseButtonDown="Slot_SlotMouseButtonDown" WaferTransferStarted="Slot_WaferTransferStarted" Cursor="Hand" IsEnabled="{Binding ElementName=WaferUnit,Path=ButtonIsEnable}">
  139. </ctrl:Slot>
  140. </Border>
  141. <Border Grid.Column="1" BorderBrush="#E0E4E7" BorderThickness="0,0,1,1" Width="190" >
  142. <Button Cursor="Hand" Content="{Binding SequenceName}" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" HorizontalAlignment="Center" VerticalAlignment="Center" Width="184" Background="White" Style="{x:Null}" BorderThickness="0" Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ElementName=WaferUnit,Path=ButtonIsEnable}"/>
  143. </Border>
  144. <!--<Border Grid.Column="2" BorderBrush="Silver" BorderThickness="0 1 1 0" Width="56" Padding="5,1" >
  145. <Button Width="40" Height="14" Command="{Binding Path=DataContext.SetSequenceCommand, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=ListBox}}" CommandParameter="{Binding}" IsEnabled="{Binding ElementName=WaferUnit,Path=ButtonIsEnable}">
  146. <Button.Style>
  147. <Style TargetType="{x:Type Button}" BasedOn="{StaticResource ResourceKey={x:Type Button}}">
  148. <Setter Property="Button.Content" Value="Remove"/>
  149. <Setter Property="FontSize" Value="10" />
  150. <Style.Triggers>
  151. <DataTrigger Binding="{Binding SequenceName}" Value="{x:Static sys:String.Empty}">
  152. <Setter Property="Button.Content" Value="Set"/>
  153. </DataTrigger>
  154. <DataTrigger Binding="{Binding WaferStatus}" Value="0">
  155. <Setter Property="Button.IsEnabled" Value="False"/>
  156. </DataTrigger>
  157. </Style.Triggers>
  158. </Style>
  159. </Button.Style>
  160. </Button>
  161. </Border>-->
  162. </Grid>
  163. </DataTemplate>
  164. </ListBox.ItemTemplate>
  165. </ListBox>
  166. </Grid>
  167. </Grid>
  168. </UserControl>