123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225 |
- <UserControl x:Class="Aitex.Sorter.UI.Controls.FoupListControlPro"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
- xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- xmlns:ctrl="clr-namespace:Aitex.Sorter.UI.Controls"
- mc:Ignorable="d"
- d:DesignHeight="800" d:DesignWidth="900">
- <UserControl.Resources>
- <DataTemplate x:Key="opencassette">
- <ctrl:HeaderPanel VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <ctrl:HeaderPanel.Header >
- <StackPanel Orientation="Horizontal">
- <Label Style="{StaticResource Rfid16Digits}" Height="40" Content="{Binding FoupID}" />
- </StackPanel>
- </ctrl:HeaderPanel.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="3,3,0,0" Text="{Binding FoupIDSetPoint}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.SetManualScanCode}" ctrlCommon:CommandHelper.Target="{Binding Station}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, RelativeSource={RelativeSource Self}}" ctrlCommon:TextBoxBehavior.SelectAllTextOnFocus="True">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding DataContext.LoadPortCommand, ElementName=root}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}" Key="Return" />
- </TextBox.InputBindings>
- </TextBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <Button Margin="8,0,0,0" Height="30" Width="80" Content="ReadID" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="8,0,0,0" Height="30" Width="80" Content="Map" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.MapWafer}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <!--<Button Height="30" Width="80" Grid.Row="1" Grid.ColumnSpan="2" Content="Offline" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Offline}" ctrlCommon:CommandHelper.Target="{Binding Station}" />-->
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
- <DataTemplate x:Key="opencassettenoreadid">
- <ctrl:HeaderPanel VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <ctrl:HeaderPanel.Header >
- <StackPanel Orientation="Horizontal">
- <Label Height="40" Content="{Binding FoupID}" />
- </StackPanel>
- </ctrl:HeaderPanel.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="3,3,0,0" Text="" IsEnabled="False"/>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <Button Margin="0" Height="30" Width="60" Content="Map" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.MapWafer}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="2,0" Height="30" Width="60" Content="Open" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.OpenDoor}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="60" Content="Close" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.CloseDoor}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
-
- <DataTemplate x:Key="opencassetteonlymap">
- <ctrl:HeaderPanel VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <ctrl:HeaderPanel.Header >
- <StackPanel Orientation="Horizontal">
- <Label Height="40" Content="{Binding FoupID}" />
- </StackPanel>
- </ctrl:HeaderPanel.Header>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="3,3,0,0" Text="" IsEnabled="False"/>
- <StackPanel Grid.Row="1" HorizontalAlignment="Center">
- <Button Margin="0" Height="30" Width="60" Content="Map" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.MapWafer}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
-
- <DataTemplate x:Key="loadport">
- <ctrl:HeaderPanel Header="{Binding FoupID}" VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="0" Text="{Binding FoupIDSetPoint}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.SetManualScanCode}" ctrlCommon:CommandHelper.Target="{Binding Station}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, RelativeSource={RelativeSource Self}}" ctrlCommon:TextBoxBehavior.SelectAllTextOnFocus="True">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding DataContext.LoadPortCommand, ElementName=root}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}" Key="Return" />
- </TextBox.InputBindings>
- </TextBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <Button Margin="0" Height="30" Width="60" Content="ReadID" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="2,0" Height="30" Width="60" Content="Load" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.LoadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="60" Content="Unload" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.UnloadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
- <DataTemplate x:Key="SMIF">
- <ctrl:HeaderPanel Header="{Binding FoupID}" VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="0" Text="{Binding FoupIDSetPoint}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.SetManualScanCode}" ctrlCommon:CommandHelper.Target="{Binding Station}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, RelativeSource={RelativeSource Self}}" ctrlCommon:TextBoxBehavior.SelectAllTextOnFocus="True">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding DataContext.LoadPortCommand, ElementName=root}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}" Key="Return" />
- </TextBox.InputBindings>
- </TextBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Margin="0" Height="30" Width="45" Content="ReadID" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Load" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.LoadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Map" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.MapWafer}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Unload" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.UnloadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
- <DataTemplate x:Key="LoadportMapButtonControl">
- <ctrl:HeaderPanel Header="{Binding FoupID}" VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="0" Text="{Binding FoupIDSetPoint}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.SetManualScanCode}" ctrlCommon:CommandHelper.Target="{Binding Station}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, RelativeSource={RelativeSource Self}}" ctrlCommon:TextBoxBehavior.SelectAllTextOnFocus="True">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding DataContext.LoadPortCommand, ElementName=root}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}" Key="Return" />
- </TextBox.InputBindings>
- </TextBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Margin="0" Height="30" Width="45" Content="ReadID" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Load" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.LoadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Map" FontSize="12" Command="{Binding DataContext.MapCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.MapWafer}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="45" Content="Unload" FontSize="12" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.UnloadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
- <DataTemplate x:Key="SMIFNOMAP">
- <ctrl:HeaderPanel Header="{Binding FoupID}" VerticalAlignment="Top" HorizontalAlignment="Left" Height="116" Width="188" Visibility="{Binding DataContext.ShowAction, ElementName=root,Converter={StaticResource boolVisibilityConverter},ConverterParameter={StaticResource True}}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45" />
- <RowDefinition Height="30" />
- </Grid.RowDefinitions>
- <TextBox Height="40" Width="180" Margin="0" Text="{Binding FoupIDSetPoint}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.SetManualScanCode}" ctrlCommon:CommandHelper.Target="{Binding Station}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, RelativeSource={RelativeSource Self}}" ctrlCommon:TextBoxBehavior.SelectAllTextOnFocus="True">
- <TextBox.InputBindings>
- <KeyBinding Command="{Binding DataContext.LoadPortCommand, ElementName=root}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type TextBox}}}" Key="Return" />
- </TextBox.InputBindings>
- </TextBox>
- <StackPanel Grid.Row="1" Orientation="Horizontal">
- <Button Margin="0" Height="30" Width="60" Content="ReadID" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.Scan}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="2,0" Height="30" Width="60" Content="Load" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.LoadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- <Button Margin="0" Height="30" Width="60" Content="Unload" Command="{Binding DataContext.LoadPortCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:OperationName.UnloadFoup}" ctrlCommon:CommandHelper.Target="{Binding Station}" />
- </StackPanel>
- </Grid>
- </ctrl:HeaderPanel>
- </DataTemplate>
-
- <DataTemplate x:Key="NoButton">
- </DataTemplate>
-
- </UserControl.Resources>
- <Grid x:Name="root">
- <ItemsControl ItemsSource="{Binding FoupList}" >
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" MinWidth="400" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"/>
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid Width="188" Margin="4">
- <Grid.RowDefinitions>
- <RowDefinition Height="276" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <ctrl:FoupItemPro Title="{Binding CarrierName}" FoupCount="{Binding DataContext.FoupCount, ElementName=root}" SlotCount="{Binding SlotCount}" Slots="{Binding WaferInfos}" Station="{Binding Station}" CarrierMode="{Binding CarrierMode}" WaferTransferOptionCommand="{Binding DataContext.WaferTransferOptionCommand, ElementName=root}" WaferTransferCommand="{Binding DataContext.WaferTransferCommand, ElementName=root}" ShowControl="{Binding DataContext.ShowControl, ElementName=root}"></ctrl:FoupItemPro>
- <ContentControl Content="{Binding}" Grid.Column="1" Grid.Row="1">
- <ContentControl.Style>
- <Style TargetType="ContentControl">
- <Style.Triggers>
- <DataTrigger Binding="{Binding FoupType}" Value="SMIF">
- <Setter Property="ContentTemplate" Value="{StaticResource SMIF}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="LoadportMapButtonControl">
- <Setter Property="ContentTemplate" Value="{StaticResource LoadportMapButtonControl}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="SMIFNOMAP">
- <Setter Property="ContentTemplate" Value="{StaticResource SMIFNOMAP}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="Loadport">
- <Setter Property="ContentTemplate" Value="{StaticResource loadport}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="OpenCassette">
- <Setter Property="ContentTemplate" Value="{StaticResource opencassette}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="OpenCassetteOnlyMap">
- <Setter Property="ContentTemplate" Value="{StaticResource opencassetteonlymap}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="OpenCassetteNoReadID">
- <Setter Property="ContentTemplate" Value="{StaticResource opencassettenoreadid}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding FoupType}" Value="NoButton">
- <Setter Property="ContentTemplate" Value="{StaticResource NoButton}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </ContentControl.Style>
- </ContentControl>
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </Grid>
- </UserControl>
|