123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549 |
- <UserControl x:Class="Aitex.Sorter.UI.Views.RecipeView"
- 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:local="clr-namespace:Aitex.Sorter.UI.Views"
- xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:converter="clr-namespace:Aitex.Sorter.UI.Converter"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common"
- xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- xmlns:equipment="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
- mc:Ignorable="d"
- d:DesignHeight="780" d:DesignWidth="1920">
- <UserControl.Resources>
- <Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- </Style>
- <local:RecipeLayoutConvert x:Key="RecipeLayoutConvert" />
- <Grid x:Key="t" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton Content="Both" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.System}}"/>
- <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1}}" />
- <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2}}" />
- </StackPanel>
- <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
- <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
- <RadioButton Content="Both" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.System}}" />
- <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1}}" />
- <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2}}" />
- </StackPanel>
- <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
- <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
- SelectedValuePath="Key"
- DisplayMemberPath ="Value"
- SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
- ItemsSource="{Binding PlaceMode1To1}"
- />
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- <Label Grid.Row="7" Grid.Column="0" Content="Transfer Table:" />
- <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
- <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
- <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Read Laser Mark" Width="160" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Read T7 Code" Width="160" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Align" Width="60" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Angle" Width="80" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Action" Width="85" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </Grid>
- <Grid x:Key="1To1" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton Content="LP1" Margin="18,0"
- IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1},Mode=TwoWay}"
- Command="{Binding SourceDestinationCommand}" CommandParameter="1"/>
- <RadioButton Content="LP2" Margin="18,0"
- IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2},Mode=TwoWay}"
- Command="{Binding SourceDestinationCommand}" CommandParameter="1"/>
- </StackPanel>
- <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
- <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
- <RadioButton Content="LP1" Margin="18,0"
- IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1},Mode=TwoWay}"
- Command="{Binding SourceDestinationCommand}" CommandParameter="2"/>
- <RadioButton Content="LP2" Margin="18,0"
- IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2},Mode=TwoWay}"
- Command="{Binding SourceDestinationCommand}" CommandParameter="2"/>
- </StackPanel>
- <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
- <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
- SelectedValuePath="Key"
- DisplayMemberPath ="Value"
- SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
- ItemsSource="{Binding PlaceMode1To1}"
- />
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
- <Grid x:Key="NToN" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- <Label Grid.Row="7" Grid.Column="0" Content="Transfer Table:" />
- <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
- <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
- <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
- <GridViewColumn Header="Read Laser Mark" Width="160" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Read T7 Code" Width="160" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Align" Width="60" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Angle" Width="80" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Header="Action" Width="85" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- </Grid>
- <Grid x:Key="Pack" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1}}" />
- <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2}}" />
- </StackPanel>
- <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
- <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
- SelectedValuePath="Key"
- DisplayMemberPath ="Value"
- SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
- ItemsSource="{Binding PlaceModePack}"
- />
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
- <Grid x:Key="Order" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
-
- <Label Grid.Row="0" Grid.Column="0" Content="Order By:" />
- <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton GroupName="order" Margin="18,0" Content="Laser Mark" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:OrderByMode.LaserMarker}}" />
- <RadioButton GroupName="order" Margin="18,0" Content="T7 Code" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:OrderByMode.T7Code}}"/>
- </StackPanel>
- <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1}}" />
- <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2}}" />
- </StackPanel>
- <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
- <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
- SelectedValuePath="Key"
- DisplayMemberPath ="Value"
- SelectedValue="{Binding CurrentRecipe.PlaceModeOrder}"
- ItemsSource="{Binding PlaceModeOrder}"
- />
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
- <Grid x:Key="Host" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="0" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="5" Grid.Column="0" Content="Verify:" />
- <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- <CheckBox Content="Any" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- </StackPanel>
- <Label Grid.Row="4" Grid.Column="0" Content="Read:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- </StackPanel>
-
- <Label Grid.Row="6" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
- <Label Grid.Row="7" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="7" Grid.Column="1" HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" />
- </Grid>
- <Grid x:Key="Default" Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="0" />
- <RowDefinition Height="0" />
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition Height="60" />
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
- <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
- <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP1}}" />
- <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static equipment:ModuleName.LP2}}" />
- </StackPanel>
- <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
- <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
- <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
- <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
- </StackPanel>
- <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
- <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
- <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
- <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
- </UserControl.Resources>
- <Grid x:Name="root">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="450" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <DockPanel x:Name="leftContainer">
- <Grid DockPanel.Dock="Top" Margin="0,10,0,10">
- <WrapPanel Orientation="Horizontal">
- <Button x:Name="btnAdd" Click="btnAdd_Click" Content="Add..." />
- <Button Content="Rename" x:Name="btnRename" Click="btnRename_Click" />
- <Button Content="Save As..." x:Name="btnCopy" Click="btnCopy_Click" />
- <Button Content="Delete" x:Name="btnDelete" Click="btnDelete_Click" />
- </WrapPanel>
- </Grid>
- <ListBox x:Name="lstRecipe" SelectionChanged="lstRecipe_SelectionChanged" Width="{Binding ElementName=leftContainer, Path=ActualWidth, Converter={StaticResource sizeOffsetConvert}, ConverterParameter=30}" ItemsSource="{Binding RecipeList}" Margin="0,0,0,8">
- </ListBox>
- </DockPanel>
- <DockPanel Grid.Column="1" Margin="10,8" x:Name="container">
- <Grid DockPanel.Dock="Top">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="400" />
- </Grid.ColumnDefinitions>
- <Label Content="Recipe Selected:" Margin="20,4,0,0" />
- <Label Margin="200,4,0,0">
- <Run Text="{Binding CurrentRecipe.Name}" />
- </Label>
- <Button x:Name="btnSave" Click="btnSave_Click" Grid.Column="1" Content="Save" HorizontalAlignment="Left" />
- <Button Grid.Column="1" Content="Cancel" HorizontalAlignment="Left" Margin="120,4,0,0" x:Name="btnCancel" Click="btnCancel_Click" />
- </Grid>
- <Border IsEnabled="{Binding CurrentRecipe, Converter={StaticResource valueNotMatchConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="1" BorderBrush="#84a567" Background="#d6f1ff" Width="{Binding ElementName=container, Path=ActualWidth, Converter={StaticResource sizeOffsetConvert}, ConverterParameter=8}" Height="{Binding ElementName=container, Path=ActualHeight, Converter={StaticResource sizeOffsetConvert}, ConverterParameter=50}" Margin="0">
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="188" />
- <ColumnDefinition Width="60" />
- <ColumnDefinition Width="188" />
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <uc:Foup Height="668" Grid.Column="1" x:Name="foup1" Title="Carrier 1" SlotCount="25" Slots="{Binding FoupAWaferInfo}" Station="{Binding Source={x:Static equipment:ModuleName.LP1}}" WaferTransferCommand="{Binding WaferTransferCommand}" WaferTransferOptionCommand="{Binding WaferTransferOptionCommand}" IsEnabled="{Binding CurrentRecipe.RecipeType, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:SorterRecipeType.TransferNToN}}" />
- <uc:Foup Height="668" Grid.Column="3" x:Name="foup2" Title="Carrier 2" SlotCount="25" Slots="{Binding FoupBWaferInfo}" Station="{Binding Source={x:Static equipment:ModuleName.LP2}}" WaferTransferCommand="{Binding WaferTransferCommand}" WaferTransferOptionCommand="{Binding WaferTransferOptionCommand}" IsEnabled="{Binding CurrentRecipe.RecipeType, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:SorterRecipeType.TransferNToN}}" />
- <Grid Grid.Column="5" ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.Resources>
- <Style TargetType="Label">
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="160" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Content="Recipe Type:" />
- <ComboBox Grid.Row="0" Grid.Column="1" x:Name="cbRecipeType" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.RecipeType, Mode=TwoWay}">
- </ComboBox>
- <ContentControl Grid.Row="1" Grid.ColumnSpan ="2">
- <ContentControl.Content>
- <MultiBinding Converter="{StaticResource RecipeLayoutConvert}">
- <Binding ElementName="cbRecipeType" Path="SelectedValue" />
- <Binding ElementName="root" />
- </MultiBinding>
- </ContentControl.Content>
- </ContentControl>
- </Grid>
- </Grid>
- </Border>
- </DockPanel>
- </Grid>
- </UserControl>
-
|