WaferRobotView.xaml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <UserControl x:Class="FurnaceUI.Views.Maintenances.WaferRobotView"
  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:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core"
  10. xmlns:local="clr-namespace:FurnaceUI.Views.Maintenances"
  11. mc:Ignorable="d"
  12. d:DesignHeight="600" d:DesignWidth="900" x:Name="self">
  13. <UserControl.Resources>
  14. <DataTemplate x:Key="IndexTemplate">
  15. <Label Content="{Binding Index}" Width="30" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>
  16. </DataTemplate>
  17. <DataTemplate x:Key="NameTemplate">
  18. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,0">
  19. <Label Content="{Binding DisplayName}" Width="350" Height="36" VerticalAlignment="Center" HorizontalAlignment="Left"></Label>
  20. </Border>
  21. </DataTemplate>
  22. <DataTemplate x:Key="ValueTemplate">
  23. <deviceControl:AITSensor LightOnValue="{Binding Value}" GreenColor="True" Width="100" Height="36" VerticalAlignment="Center" HorizontalAlignment="Center">
  24. </deviceControl:AITSensor>
  25. </DataTemplate>
  26. </UserControl.Resources>
  27. <Grid Margin="10,0,10,0">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="Auto"/>
  30. <RowDefinition Height="Auto"/>
  31. <RowDefinition Height="50"/>
  32. </Grid.RowDefinitions>
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition Width="350"/>
  35. <ColumnDefinition Width="300"/>
  36. <ColumnDefinition Width="*"/>
  37. </Grid.ColumnDefinitions>
  38. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="0" Grid.Column="0" Padding="5,1">
  39. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  40. </Border>
  41. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="0" Grid.Column="1" Padding="5,1">
  42. <TextBlock Text="{Binding WaferRobotStatus}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  43. </Border>
  44. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="0" Grid.Column="2" Padding="5,1">
  45. <StackPanel Orientation="Vertical">
  46. <Button Content="Initialize" Width="150" Height="40" Margin="0,10,0,10" FontSize="13" IsEnabled="{Binding IsSelectButtonEnable}" >
  47. <i:Interaction.Triggers>
  48. <i:EventTrigger EventName="Click">
  49. <cal:ActionMessage MethodName="Home">
  50. </cal:ActionMessage>
  51. </i:EventTrigger>
  52. </i:Interaction.Triggers>
  53. </Button>
  54. <Button Content="Online" Width="150" Height="40" Margin="0,10,0,10" FontSize="13" IsEnabled="{Binding IsWaferRobotOnlineButtonEnable}" >
  55. <i:Interaction.Triggers>
  56. <i:EventTrigger EventName="Click">
  57. <cal:ActionMessage MethodName="SetOnline">
  58. <cal:Parameter Value="WaferRobot"/>
  59. </cal:ActionMessage>
  60. </i:EventTrigger>
  61. </i:Interaction.Triggers>
  62. </Button>
  63. <Button Content="Offline" Width="150" Height="40" Margin="0,10,0,10" FontSize="13" IsEnabled="{Binding IsWaferRobotOfflineButtonEnable}" >
  64. <i:Interaction.Triggers>
  65. <i:EventTrigger EventName="Click">
  66. <cal:ActionMessage MethodName="SetOffline">
  67. <cal:Parameter Value="WaferRobot"/>
  68. </cal:ActionMessage>
  69. </i:EventTrigger>
  70. </i:Interaction.Triggers>
  71. </Button>
  72. </StackPanel>
  73. </Border>
  74. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.ColumnSpan="3" Padding="5" Margin="0,5,0,5">
  75. <StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
  76. <StackPanel Orientation="Horizontal" Height="50">
  77. <ComboBox Margin="0,0,3,0" Height="45" Width="260" ItemsSource="{Binding ModulesTMRobot}" SelectedItem="{Binding PickSelectedModuleTMRobot}" />
  78. <ComboBox Margin="3,0,3,0" Height="45" Width="200" ItemsSource="{Binding PickSlotsTMRobot}" SelectedItem="{Binding PickSelectedSlotTMRobot}" />
  79. <ComboBox Margin="3,0,3,0" Height="45" Width="200" ItemsSource="{Binding BladesTMRobot}" SelectedItem="{Binding PickSelectedBladeTMRobot}" />
  80. <Button Content="Pick" Width="100" Height="40" Margin="3,0,0,0" IsEnabled="{Binding IsSelectButtonEnable}">
  81. <i:Interaction.Triggers>
  82. <i:EventTrigger EventName="Click">
  83. <cal:ActionMessage MethodName="TMRobot_Pick"/>
  84. </i:EventTrigger>
  85. </i:Interaction.Triggers>
  86. </Button>
  87. </StackPanel>
  88. <StackPanel Orientation="Horizontal" Height="50">
  89. <ComboBox Margin="0,0,3,0" Height="45" Width="260" ItemsSource="{Binding ModulesTMRobot}" SelectedItem="{Binding PlaceSelectedModuleTMRobot}" />
  90. <ComboBox Margin="3,0,3,0" Height="45" Width="200" ItemsSource="{Binding PlaceSlotsTMRobot}" SelectedItem="{Binding PlaceSelectedSlotTMRobot}" />
  91. <ComboBox Margin="3,0,3,0" Height="45" Width="200" ItemsSource="{Binding BladesTMRobot}" SelectedItem="{Binding PlaceSelectedBladeTMRobot}" />
  92. <Button Content="Place" Width="100" Height="40" Margin="3,0,0,0" IsEnabled="{Binding IsSelectButtonEnable}">
  93. <i:Interaction.Triggers>
  94. <i:EventTrigger EventName="Click">
  95. <cal:ActionMessage MethodName="TMRobot_Place"/>
  96. </i:EventTrigger>
  97. </i:Interaction.Triggers>
  98. </Button>
  99. </StackPanel>
  100. <StackPanel Orientation="Horizontal" Height="50">
  101. <ComboBox Margin="0,0,3,0" Height="45" Width="260" ItemsSource="{Binding ModulesTMRobot}" SelectedItem="{Binding MappingSelectedModuleTMRobot}" />
  102. <Button Content="Mapping" Width="100" Height="40" Margin="3,0,0,0" IsEnabled="{Binding IsSelectButtonEnable}">
  103. <i:Interaction.Triggers>
  104. <i:EventTrigger EventName="Click">
  105. <cal:ActionMessage MethodName="TMRobot_Mapping"/>
  106. </i:EventTrigger>
  107. </i:Interaction.Triggers>
  108. </Button>
  109. </StackPanel>
  110. <StackPanel Orientation="Horizontal" Height="50">
  111. <TextBlock Text="From" VerticalAlignment="Center" Padding="3"/>
  112. <ComboBox Margin="0,0,3,0" Height="45" Width="260" ItemsSource="{Binding ModulesTMRobot}" SelectedItem="{Binding SwapFromSelectedModuleTMRobot}" />
  113. <ComboBox Margin="0,0,3,0" Height="45" Width="235" ItemsSource="{Binding SwapFromSlotsTMRobot}" SelectedItem="{Binding SwapFromSelectedSlotTMRobot}" />
  114. <ComboBox Margin="3,0,3,0" Height="45" Width="235" ItemsSource="{Binding BladesTMRobot}" SelectedItem="{Binding SwapSelectedBladeTMRobot}" />
  115. </StackPanel>
  116. <StackPanel Orientation="Horizontal" Height="50">
  117. <TextBlock Text="To " VerticalAlignment="Center" Padding="3"/>
  118. <ComboBox Margin="0,0,3,0" Height="45" Width="260" ItemsSource="{Binding ModulesTMRobot}" SelectedItem="{Binding SwapToSelectedModuleTMRobot}" />
  119. <ComboBox Margin="0,0,3,0" Height="45" Width="235" ItemsSource="{Binding SwapToSlotsTMRobot}" SelectedItem="{Binding SwapToSelectedSlotTMRobot}" />
  120. <Button Content="Swap" Width="100" Height="40" Margin="3,0,0,0" IsEnabled="{Binding IsSelectButtonEnable}">
  121. <i:Interaction.Triggers>
  122. <i:EventTrigger EventName="Click">
  123. <cal:ActionMessage MethodName="WaferRobot_Swap"/>
  124. </i:EventTrigger>
  125. </i:Interaction.Triggers>
  126. </Button>
  127. </StackPanel>
  128. </StackPanel>
  129. </Border>
  130. <DockPanel Grid.Row="2" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,0,5">
  131. <Border>
  132. <Button Content="Close" Style="{StaticResource CommandButton}" Margin="0,0,20,0" Width="120" Height="40">
  133. <i:Interaction.Triggers>
  134. <i:EventTrigger EventName="Click">
  135. <cal:ActionMessage MethodName="ClosedCmd">
  136. </cal:ActionMessage>
  137. </i:EventTrigger>
  138. </i:Interaction.Triggers>
  139. </Button>
  140. </Border>
  141. </DockPanel>
  142. </Grid>
  143. </UserControl>