EfemView.xaml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. </StackPanel>
  37. <StackPanel Canvas.Top="300" Orientation="Horizontal">
  38. <Label Content="LP2InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
  39. <Label Content="{Binding LP2InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  40. <!--<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>-->
  41. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP2" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
  42. </StackPanel>
  43. <StackPanel Canvas.Top="360" Orientation="Horizontal">
  44. <Label Content="LP3InfoPad Status" Width="193" Height="39" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Top="197"/>
  45. <Label Content="{Binding LP3InfoPadStatus}" Width="100" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  46. <!--<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>-->
  47. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}" CommandParameter="LP3" Canvas.Left="400" Margin="10,0,0,0" Canvas.Top="194" ></Button>
  48. </StackPanel>
  49. <Button Content="LP1 Place" Width="100" Height="35" Command="{Binding PlaceCommand}" CommandParameter="P1" Canvas.Left="10" Margin="0" Canvas.Top="100"></Button>
  50. <Button Content="LP1 Remove" Width="100" Height="35" Command="{Binding RemoveCommand}" CommandParameter="P1" Canvas.Left="141" Margin="0" Canvas.Top="100"></Button>
  51. <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>
  52. <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>
  53. <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>
  54. <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>
  55. <ItemsControl Width="300" Height="300" Background="LightGray" Canvas.Left="1200" ItemsSource="{Binding WaferList}" Visibility="Hidden" ItemTemplate="{DynamicResource DataTemplate1}" >
  56. </ItemsControl>
  57. <Button Content="LP1 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  58. CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="150"></Button>
  59. <Button Content="LP1 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  60. CommandParameter="LP1" Canvas.Left="141" Margin="0" Canvas.Top="150"></Button>
  61. <Button Content="LP1 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  62. CommandParameter="LP1" Canvas.Left="10" Margin="0" Canvas.Top="200"></Button>
  63. <Button Content="LP2 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  64. CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="150"></Button>
  65. <Button Content="LP2 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  66. CommandParameter="LP2" Canvas.Left="460" Margin="0" Canvas.Top="150"></Button>
  67. <Button Content="LP2 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  68. CommandParameter="LP2" Canvas.Left="340" Margin="0" Canvas.Top="200"></Button>
  69. <Button Content="LP3 SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}"
  70. CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="150"></Button>
  71. <Button Content="LP3 Random" Width="100" Height="35" Command="{Binding RandomCommand}"
  72. CommandParameter="LP3" Canvas.Left="780" Margin="0" Canvas.Top="150"></Button>
  73. <Button Content="LP3 Clear" Width="100" Height="35" Command="{Binding ClearCommand}"
  74. CommandParameter="LP3" Canvas.Left="660" Margin="0" Canvas.Top="200"></Button>
  75. </Canvas>
  76. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="25,0,0,0">
  77. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}" HorizontalAlignment="Left"/>
  78. </StackPanel>
  79. <DataGrid Grid.Row="2" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  80. ScrollViewer.CanContentScroll="True"
  81. ScrollViewer.VerticalScrollBarVisibility="Auto"
  82. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  83. Width="1800">
  84. <DataGrid.Columns>
  85. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  86. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  87. <DataGridTextColumn.ElementStyle>
  88. <Style TargetType="TextBlock">
  89. <Setter Property="TextWrapping" Value="Wrap"/>
  90. <Setter Property="Height" Value="auto"/>
  91. </Style>
  92. </DataGridTextColumn.ElementStyle>
  93. </DataGridTextColumn>
  94. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  95. <DataGridTextColumn.ElementStyle>
  96. <Style TargetType="TextBlock">
  97. <Setter Property="TextWrapping" Value="Wrap"/>
  98. <Setter Property="Height" Value="auto"/>
  99. </Style>
  100. </DataGridTextColumn.ElementStyle>
  101. </DataGridTextColumn>
  102. </DataGrid.Columns>
  103. </DataGrid>
  104. <Label Grid.Row="3"/>
  105. </Grid>
  106. </UserControl>