123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <Window x:Class="Aitex.Sorter.UI.Controls.TransferSelectionDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- mc:Ignorable="d"
- Title="TransferSelectionDialog" Height="900" Width="1500" WindowStartupLocation="CenterScreen" Closed="Window_Closed">
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="580"/>
- <RowDefinition Height="210"/>
- <RowDefinition Height="120"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Grid.Column="0">
- <TextBlock Text="original" FontSize="24"/>
- <StackPanel>
- <ComboBox x:Name="CboOriginal" Margin="20,20,20,20" Height="40" ItemsSource="{Binding LoadPortList}" SelectedValue="{Binding OriginalSelectedValue}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBox}}}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- </StackPanel>
- <Border BorderBrush="#0086cd" BorderThickness="2" Margin="20,20,0,20" HorizontalAlignment="Center" CornerRadius="8">
- <Viewbox Stretch="Fill" Height="400" Margin="20" VerticalAlignment="Top">
- <local:FoupItemPro x:Name="OriginalFoupItem" Title="{Binding OriginalName}" SlotCount="25" Slots="{Binding OriginalWaferInfos}" Station="{Binding OriginalStation}" CarrierMode="{Binding OriginalCarrierMode}" WaferTransferOptionCommand="{Binding DataContext.WaferTransferOptionCommand, ElementName=root}" WaferTransferCommand="{Binding WaferTransferCommand}" ></local:FoupItemPro>
- </Viewbox>
- </Border>
- </StackPanel>
- <StackPanel Grid.Row="0" Grid.Column="2">
- <StackPanel>
- <TextBlock Text="destination" FontSize="24"/>
- <ComboBox x:Name="CboDestination" Margin="20,20,20,20" Height="40" ItemsSource="{Binding LoadPortList}" SelectedValue="{Binding DestinationSelectedValue}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBox}}}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- </StackPanel>
- <Border BorderBrush="#0086cd" BorderThickness="2" Margin="0,20,20,20" HorizontalAlignment="Center" CornerRadius="8">
- <Viewbox Stretch="Fill" Height="400" Margin="20" VerticalAlignment="Top">
- <local:FoupItemPro x:Name="DestinationFoupItem" Title="{Binding DestinationName}" SlotCount="25" Slots="{Binding DestinationWaferInfos}" Station="{Binding DestinationStation}" CarrierMode="{Binding DestinationCarrierMode}" WaferTransferOptionCommand="{Binding DataContext.WaferTransferOptionCommand, ElementName=root}" WaferTransferCommand="{Binding WaferTransferCommand}" ></local:FoupItemPro>
- </Viewbox>
- </Border>
- </StackPanel>
- <Border Grid.Row="0" Grid.Column="1" Width="400" BorderBrush="#0086cd" BorderThickness="2" Margin="0,84,0,32" HorizontalAlignment="Center" CornerRadius="8">
- <StackPanel >
- <GroupBox Height="460">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="180"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="40"/>
- <RowDefinition Height="60"/>
- </Grid.RowDefinitions>
- <Label Content="CyclePlaceMode:"/>
- <ComboBox Grid.Row="0" Grid.Column="1" x:Name="CmbPlaceMode" Margin="5" >
- <ComboBoxItem Content="Opposite"></ComboBoxItem>
- <ComboBoxItem Content="Same"></ComboBoxItem>
- <ComboBoxItem Content="FromTop"></ComboBoxItem>
- <ComboBoxItem Content="FromButtom"></ComboBoxItem>
- </ComboBox>
- <Label Grid.Row="1" Grid.Column="0" Content="Aligner" />
- <CheckBox Grid.Row="1" x:Name="chkAligner" VerticalContentAlignment="Center" Grid.Column="1" />
- <Label Grid.Row="2" Grid.Column="0" Content="Read Laser Marker" />
- <CheckBox Grid.Row="2" x:Name="chkReadID" VerticalContentAlignment="Center" Grid.Column="1" />
- <Label Grid.Row="3" Grid.Column="0" Content="Read T7 Code" />
- <CheckBox Grid.Row="3" x:Name="chkReadID2" VerticalContentAlignment="Center" Grid.Column="1" />
- <Label Grid.Row="4" Grid.Column="0" Content="Blade" />
- <WrapPanel Grid.Row="4" Grid.Column="1" VerticalAlignment="Center">
- <RadioButton x:Name="chkBlade1" Content="1" IsChecked="True" />
- <RadioButton x:Name="chkBlade2" Margin="8,0" Content="2" />
- </WrapPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Aligner Angle" />
- <TextBox Grid.Row="5" x:Name="tbAngle" Grid.Column="1" Text="0" Height="30" Margin="4" />
- <Label Grid.Row="6" Grid.Column="0" Content="Turn Over" />
- <CheckBox Grid.Row="6" x:Name="chkTurnOver" VerticalContentAlignment="Center" Grid.Column="1" />
- <Button Grid.Row="7" Grid.Column="0" Content="Qselect" HorizontalAlignment="Right" Grid.ColumnSpan="2" Margin="0,6,10,0" Command="{Binding QselectCommand}"></Button>
- </Grid>
- </GroupBox>
- </StackPanel>
- </Border>
- <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
- <GroupBox Height="210">
- <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding TransferItems}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Source" Width="130" DisplayMemberBinding="{Binding SourceStation}" />
- <GridViewColumn Header="Slot" Width="100" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Destination" Width="130" DisplayMemberBinding="{Binding DestinationStation}" />
- <GridViewColumn Header="Slot" Width="100" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Read Laser Mark" Width="0" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Read T7 Code" Width="0" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Align" Width="0" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Angle" Width="0" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Action" Width="130" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Remove" Height="28" ToolTip="Remove" Width="100" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </GroupBox>
- </StackPanel>
- <StackPanel Margin="0,0,20,20" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Right" Orientation="Horizontal">
- <Button x:Name="BtnOK" Content="OK" Command="{Binding OKCommand}"></Button>
- <Button x:Name="BtnClose" Content="Close" Command="{Binding CloseCommand}"></Button>
- </StackPanel>
-
- </Grid>
- </Window>
|