EfemView.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <UserControl x:Class="EfemDualSimulator.Views.EfemView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
  7. xmlns:simulator="clr-namespace:MECF.Framework.Simulator.Core.Commons;assembly=MECF.Framework.Simulator.Core"
  8. xmlns:Magpower="clr-namespace:MECF.Framework.Simulator.Core.Pumps.Magpower;assembly=MECF.Framework.Simulator.Core"
  9. Width="1850">
  10. <UserControl.Resources>
  11. <DataTemplate x:Key="DataTemplate1">
  12. <StackPanel Orientation="Horizontal" Width="200" Height="15">
  13. <TextBox Text="{Binding Index}"></TextBox>
  14. <TextBox Text="{Binding State}"></TextBox>
  15. <Button Content="{Binding State}" Margin="0" Width="100" Height="15" Background="LightBlue" VerticalAlignment="Center"></Button>
  16. <TextBox Text="{Binding Index}"></TextBox>
  17. </StackPanel>
  18. </DataTemplate>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="auto"></RowDefinition>
  23. <RowDefinition Height="auto"></RowDefinition>
  24. <RowDefinition Height="*"></RowDefinition>
  25. <RowDefinition Height="auto"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <Canvas Grid.Row="0" Height="400" Width="1800">
  28. <Label Content="{Binding LP1WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="10" Canvas.Top="50"></Label>
  29. <Label Content="{Binding LP2WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="320" Canvas.Top="50"></Label>
  30. <Label Content="{Binding LP3WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="640" Canvas.Top="50"></Label>
  31. <StackPanel Canvas.Top="240" Orientation="Horizontal">
  32. <Label Content="LP1 InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
  33. <Label Content="{Binding LP1InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  34. <!--<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>-->
  35. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP1" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
  36. <ComboBox SelectedItem="{Binding SelectEFEM, Mode=TwoWay}" ItemsSource="{Binding EFEMList}" VerticalContentAlignment="Center" Width="140" Margin="20,0,0,0" Height="35" />
  37. </StackPanel>
  38. <StackPanel Canvas.Top="300" Orientation="Horizontal">
  39. <Label Content="LP2InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
  40. <Label Content="{Binding LP2InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  41. <!--<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>-->
  42. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP2" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
  43. </StackPanel>
  44. <StackPanel Canvas.Top="360" Orientation="Horizontal">
  45. <Label Content="LP3InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
  46. <Label Content="{Binding LP3InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  47. <!--<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>-->
  48. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP3" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
  49. </StackPanel>
  50. <Button Content="LP1 Place" Width="100" Height="35" Command="{Binding PlaceCommand}" CommandParameter="P1" Canvas.Left="10" Margin="0" Canvas.Top="100"></Button>
  51. <Button Content="LP1 Remove" Width="100" Height="35" Command="{Binding RemoveCommand}" CommandParameter="P1" Canvas.Left="141" Margin="0" Canvas.Top="100"></Button>
  52. <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>
  53. <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>
  54. <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>
  55. <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>
  56. <ItemsControl Width="300" Height="300" Background="LightGray" Canvas.Left="1200" ItemsSource="{Binding WaferList}" Visibility="Hidden" ItemTemplate="{DynamicResource DataTemplate1}" >
  57. </ItemsControl>
  58. <Button Content="LP1 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  59. CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="150"></Button>
  60. <Button Content="LP1 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  61. CommandParameter="LP1" Canvas.Left="141" Margin="0" Canvas.Top="150"></Button>
  62. <Button Content="LP1 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  63. CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="200"></Button>
  64. <Button Content="LP2 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  65. CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="150"></Button>
  66. <Button Content="LP2 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  67. CommandParameter="LP2" Canvas.Left="460" Margin="0" Canvas.Top="150"></Button>
  68. <Button Content="LP2 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  69. CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="200"></Button>
  70. <Button Content="LP3 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  71. CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="150"></Button>
  72. <Button Content="LP3 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  73. CommandParameter="LP3" Canvas.Left="780" Margin="0" Canvas.Top="150"></Button>
  74. <Button Content="LP3 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  75. CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="200"></Button>
  76. </Canvas>
  77. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="25,0,0,0">
  78. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}" HorizontalAlignment="Left"/>
  79. </StackPanel>
  80. <DataGrid Grid.Row="2" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  81. ScrollViewer.CanContentScroll="True"
  82. ScrollViewer.VerticalScrollBarVisibility="Auto"
  83. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  84. Width="1800">
  85. <DataGrid.Columns>
  86. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  87. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  88. <DataGridTextColumn.ElementStyle>
  89. <Style TargetType="TextBlock">
  90. <Setter Property="TextWrapping" Value="Wrap"/>
  91. <Setter Property="Height" Value="auto"/>
  92. </Style>
  93. </DataGridTextColumn.ElementStyle>
  94. </DataGridTextColumn>
  95. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  96. <DataGridTextColumn.ElementStyle>
  97. <Style TargetType="TextBlock">
  98. <Setter Property="TextWrapping" Value="Wrap"/>
  99. <Setter Property="Height" Value="auto"/>
  100. </Style>
  101. </DataGridTextColumn.ElementStyle>
  102. </DataGridTextColumn>
  103. </DataGrid.Columns>
  104. </DataGrid>
  105. <Label Grid.Row="3"/>
  106. </Grid>
  107. </UserControl>