123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <UserControl x:Class="EfemDualSimulator.Views.EfemView"
- 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:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
- xmlns:simulator="clr-namespace:MECF.Framework.Simulator.Core.Commons;assembly=MECF.Framework.Simulator.Core"
- xmlns:Magpower="clr-namespace:MECF.Framework.Simulator.Core.Pumps.Magpower;assembly=MECF.Framework.Simulator.Core"
- Width="1850">
- <UserControl.Resources>
- <DataTemplate x:Key="DataTemplate1">
- <StackPanel Orientation="Horizontal" Width="200" Height="15">
- <TextBox Text="{Binding Index}"></TextBox>
- <TextBox Text="{Binding State}"></TextBox>
- <Button Content="{Binding State}" Margin="0" Width="100" Height="15" Background="LightBlue" VerticalAlignment="Center"></Button>
- <TextBox Text="{Binding Index}"></TextBox>
- </StackPanel>
- </DataTemplate>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- </Grid.RowDefinitions>
- <Canvas Grid.Row="0" Height="400" Width="1800">
- <Label Content="{Binding LP1WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="10" Canvas.Top="50"></Label>
- <Label Content="{Binding LP2WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="320" Canvas.Top="50"></Label>
- <Label Content="{Binding LP3WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="640" Canvas.Top="50"></Label>
- <StackPanel Canvas.Top="240" Orientation="Horizontal">
- <Label Content="LP1 InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
- <Label Content="{Binding LP1InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
- <!--<TextBox Text="{Binding LP1InfoPadSet}" IsReadOnly ="False" Width="100" Height="38" Margin="10,0,0,0" RenderTransformOrigin="0.471,-0.188" Canvas.Left="285" Canvas.Top="198"></TextBox>-->
- <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP1" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
- </StackPanel>
- <StackPanel Canvas.Top="300" Orientation="Horizontal">
- <Label Content="LP2InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
- <Label Content="{Binding LP2InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
- <!--<TextBox Text="{Binding LP2InfoPadSet}" IsReadOnly ="False" Width="100" Height="38" Margin="10,0,0,0" RenderTransformOrigin="0.471,-0.188" Canvas.Left="285" Canvas.Top="198"></TextBox>-->
- <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP2" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
- </StackPanel>
- <StackPanel Canvas.Top="360" Orientation="Horizontal">
- <Label Content="LP3InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
- <Label Content="{Binding LP3InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
- <!--<TextBox Text="{Binding LP3InfoPadSet}" IsReadOnly ="False" Width="100" Height="38" Margin="10,0,0,0" RenderTransformOrigin="0.471,-0.188" Canvas.Left="285" Canvas.Top="198"></TextBox>-->
- <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP3" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
- </StackPanel>
- <Button Content="LP1 Place" Width="100" Height="35" Command="{Binding PlaceCommand}" CommandParameter="P1" Canvas.Left="10" Margin="0" Canvas.Top="100"></Button>
- <Button Content="LP1 Remove" Width="100" Height="35" Command="{Binding RemoveCommand}" CommandParameter="P1" Canvas.Left="141" Margin="0" Canvas.Top="100"></Button>
- <Button Content="LP2 Place" Width="100" Height="35" Command="{Binding PlaceCommand}" CommandParameter="P2" Canvas.Left="340" Margin="0" Canvas.Top="100" RenderTransformOrigin="2.05,0.686"></Button>
- <Button Content="LP2 Remove" Width="107" Height="35" Command="{Binding RemoveCommand}" CommandParameter="P2" Canvas.Left="460" Margin="0" Canvas.Top="100" RenderTransformOrigin="2.34,0.543"></Button>
- <Button Content="LP3 Place" Width="100" Height="35" Command="{Binding PlaceCommand}" CommandParameter="P3" Canvas.Left="660" Margin="0" Canvas.Top="100" RenderTransformOrigin="2.05,0.686"></Button>
- <Button Content="LP3 Remove" Width="107" Height="35" Command="{Binding RemoveCommand}" CommandParameter="P3" Canvas.Left="780" Margin="0" Canvas.Top="100" RenderTransformOrigin="2.34,0.543"></Button>
- <ItemsControl Width="300" Height="300" Background="LightGray" Canvas.Left="1200" ItemsSource="{Binding WaferList}" Visibility="Hidden" ItemTemplate="{DynamicResource DataTemplate1}" >
- </ItemsControl>
- <Button Content="LP1 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
- CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP1 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
- CommandParameter="LP1" Canvas.Left="141" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP1 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
- CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="200"></Button>
- <Button Content="LP2 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
- CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP2 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
- CommandParameter="LP2" Canvas.Left="460" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP2 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
- CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="200"></Button>
- <Button Content="LP3 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
- CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP3 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
- CommandParameter="LP3" Canvas.Left="780" Margin="0" Canvas.Top="150"></Button>
- <Button Content="LP3 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
- CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="200"></Button>
- </Canvas>
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="25,0,0,0">
- <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}" HorizontalAlignment="Left"/>
- </StackPanel>
- <DataGrid Grid.Row="2" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
- ScrollViewer.CanContentScroll="True"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- ScrollViewer.HorizontalScrollBarVisibility="Auto"
- Width="1800">
- <DataGrid.Columns>
- <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
- <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
- <DataGridTextColumn.ElementStyle>
- <Style TargetType="TextBlock">
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Height" Value="auto"/>
- </Style>
- </DataGridTextColumn.ElementStyle>
- </DataGridTextColumn>
- <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
- <DataGridTextColumn.ElementStyle>
- <Style TargetType="TextBlock">
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Height" Value="auto"/>
- </Style>
- </DataGridTextColumn.ElementStyle>
- </DataGridTextColumn>
- </DataGrid.Columns>
- </DataGrid>
- <Label Grid.Row="3"/>
- </Grid>
- </UserControl>
|