123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.WaferIDReaderView"
- 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.Maintenance"
- mc:Ignorable="d"
- xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
- xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
- xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
- d:DesignHeight="800" d:DesignWidth="1800">
- <Grid x:Name="root">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
-
- <ScrollViewer Grid.Column="0">
- <ItemsControl ItemsSource="{Binding WaferIDReaderItems}">
- <ItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel />
- </ItemsPanelTemplate>
- </ItemsControl.ItemsPanel>
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <uc:HeaderPanel Grid.Column="0" Grid.Row="0" Width="730" Height="720" HorizontalAlignment="Center" VerticalAlignment="Top" Header="{Binding Name}" Margin="10,20,0,0">
- <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" ctrlCommon:GridHelper.Column2="Transparent" x:Name="item">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="30" />
- <RowDefinition Height="60" />
- <RowDefinition Height="*" />
- <RowDefinition Height="50" />
- <RowDefinition Height="60" />
- <RowDefinition Height="*" />
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Content="Status" />
- <Label Content="{Binding WRIDReaderStatus}" Grid.Row="0" Grid.Column="1" />
- <Label Content="Laser Mark" Grid.Row="1" VerticalAlignment="Center" />
- <TextBox Text="{Binding LaserMaker}" Grid.Row="1" Grid.Column="1" Width="200" IsReadOnly="True" />
- <Label Content="T7 Code" Grid.Row="4" VerticalAlignment="Center" />
- <TextBox Text="{Binding T7Code}" Grid.Row="4" Grid.Column="1" Width="200" IsReadOnly="True" />
- <ListView x:Name="lstFile1" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="4" ItemsSource="{Binding LaserFiles}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Name" Width="200" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Label>
- <Run Text="{Binding Key,Mode=OneTime}" />
- <Label.ToolTip>
- <Run Text="{Binding Value,Mode=OneTime}" />
- </Label.ToolTip>
- </Label>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content=" Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.ReadWaferID}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- <ListView x:Name="lstFile2" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Margin="4" ItemsSource="{Binding T7Files}">
- <ListView.View>
- <GridView>
- <GridViewColumn Header="Name" Width="200" >
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Label>
- <Run Text="{Binding Key,Mode=OneTime}" />
- <Label.ToolTip>
- <Run Text="{Binding Value,Mode=OneTime}" />
- </Label.ToolTip>
- </Label>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content=" Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- <GridViewColumn Width="120">
- <GridViewColumn.CellTemplate>
- <DataTemplate>
- <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.ReadWaferID}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
- </DataTemplate>
- </GridViewColumn.CellTemplate>
- </GridViewColumn>
- </GridView>
- </ListView.View>
- </ListView>
- <Button Content="Add" Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="3" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Add" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
- <Button Content="Add" Grid.Row="8" Grid.Column="2" Grid.ColumnSpan="3" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Add" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
- </Grid>
- </uc:HeaderPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- <uc:HeaderPanel Grid.Column="1" Width="410" Height="450" HorizontalAlignment="Left" VerticalAlignment="Top" Header="Aligner" Margin="10,20,0,0">
- <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" />
- <!--<RowDefinition Height="*" />-->
- </Grid.RowDefinitions>
- <Label Grid.Row="0" Grid.Column="0" Content="Status" />
- <Label Content="{Binding AlignerStatus}" Grid.Row="0" Grid.Column="1" />
- <Label Grid.Row="1" Grid.Column="0" Content="Elapse Time" />
- <Label Content="{Binding ElapseTime}" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="1" />
- <Label Grid.Row="2" Grid.Column="0" Content="Notch" />
- <Label Content="{Binding Notch}" HorizontalAlignment="Center" Grid.Row="2" Grid.Column="1" />
- <Label Grid.Row="3" Grid.Column="0" Content="Is Wafer On" />
- <ctrlCommon:LED On="{Binding WaferOnAligner}" Grid.Row="3" Grid.Column="1" />
- <Label Grid.Row="4" Grid.Column="0" Content="Error Code" />
- <Label Content="{Binding ErrorCode}" HorizontalAlignment="Center" Grid.Row="4" Grid.Column="1" />
- <TextBox Grid.Row="5" Grid.Column="0" Margin="8" Height="30" x:Name="txtAlignAngle" />
- <Button Grid.Row="5" Grid.Column="1" Content="Align" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerAlign}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" ctrlCommon:CommandHelper.Parameter1="{Binding Text, ElementName=txtAlignAngle}"/>
- <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.ColumnSpan="2">
- <Button Content="Home" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerHome}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- <Button Content="Reset" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerReset}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- <Button Content="Stop" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerStop}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.ColumnSpan="2" Visibility="Collapsed">
- <Button Content="Lift Up" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerLiftUp}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- <Button Content="Lift Down" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerLiftDown}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.ColumnSpan="2">
- <Button Content="Init" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerInit}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- <Button Content="Hold" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerGrip}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- <Button Content="Release" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerRelease}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
- </StackPanel>
- </Grid>
- </uc:HeaderPanel>
- </Grid>
- </Grid>
- </UserControl>
|