WaferIDReaderView.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <UserControl x:Class="Aitex.Sorter.UI.Views.Maintenance.WaferIDReaderView"
  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:local="clr-namespace:Aitex.Sorter.UI.Views.Maintenance"
  7. mc:Ignorable="d"
  8. xmlns:uc="clr-namespace:Aitex.Sorter.UI.Controls"
  9. xmlns:Common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  10. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common"
  11. d:DesignHeight="800" d:DesignWidth="1800">
  12. <Grid x:Name="root">
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="*" />
  16. <ColumnDefinition Width="auto" />
  17. </Grid.ColumnDefinitions>
  18. <ScrollViewer Grid.Column="0">
  19. <ItemsControl ItemsSource="{Binding WaferIDReaderItems}">
  20. <ItemsControl.ItemsPanel>
  21. <ItemsPanelTemplate>
  22. <WrapPanel />
  23. </ItemsPanelTemplate>
  24. </ItemsControl.ItemsPanel>
  25. <ItemsControl.ItemTemplate>
  26. <DataTemplate>
  27. <uc:HeaderPanel Grid.Column="0" Grid.Row="0" Width="730" Height="720" HorizontalAlignment="Center" VerticalAlignment="Top" Header="{Binding Name}" Margin="10,20,0,0">
  28. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent" ctrlCommon:GridHelper.Column2="Transparent" x:Name="item">
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="*"/>
  31. <ColumnDefinition Width="*"/>
  32. <ColumnDefinition Width="*"/>
  33. </Grid.ColumnDefinitions>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="30" />
  36. <RowDefinition Height="60" />
  37. <RowDefinition Height="*" />
  38. <RowDefinition Height="50" />
  39. <RowDefinition Height="60" />
  40. <RowDefinition Height="*" />
  41. <RowDefinition Height="50" />
  42. </Grid.RowDefinitions>
  43. <Label Grid.Row="0" Grid.Column="0" Content="Status" />
  44. <Label Content="{Binding WRIDReaderStatus}" Grid.Row="0" Grid.Column="1" />
  45. <Label Content="Laser Mark" Grid.Row="1" VerticalAlignment="Center" />
  46. <TextBox Text="{Binding LaserMaker}" Grid.Row="1" Grid.Column="1" Width="200" IsReadOnly="True" />
  47. <Label Content="T7 Code" Grid.Row="4" VerticalAlignment="Center" />
  48. <TextBox Text="{Binding T7Code}" Grid.Row="4" Grid.Column="1" Width="200" IsReadOnly="True" />
  49. <ListView x:Name="lstFile1" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" Margin="4" ItemsSource="{Binding LaserFiles}">
  50. <ListView.View>
  51. <GridView>
  52. <GridViewColumn Header="Name" Width="200" >
  53. <GridViewColumn.CellTemplate>
  54. <DataTemplate>
  55. <Label>
  56. <Run Text="{Binding Key,Mode=OneTime}" />
  57. <Label.ToolTip>
  58. <Run Text="{Binding Value,Mode=OneTime}" />
  59. </Label.ToolTip>
  60. </Label>
  61. </DataTemplate>
  62. </GridViewColumn.CellTemplate>
  63. </GridViewColumn>
  64. <GridViewColumn Width="120">
  65. <GridViewColumn.CellTemplate>
  66. <DataTemplate>
  67. <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"/>
  68. </DataTemplate>
  69. </GridViewColumn.CellTemplate>
  70. </GridViewColumn>
  71. <GridViewColumn Width="120">
  72. <GridViewColumn.CellTemplate>
  73. <DataTemplate>
  74. <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"/>
  75. </DataTemplate>
  76. </GridViewColumn.CellTemplate>
  77. </GridViewColumn>
  78. <GridViewColumn Width="120">
  79. <GridViewColumn.CellTemplate>
  80. <DataTemplate>
  81. <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"/>
  82. </DataTemplate>
  83. </GridViewColumn.CellTemplate>
  84. </GridViewColumn>
  85. <GridViewColumn Width="120">
  86. <GridViewColumn.CellTemplate>
  87. <DataTemplate>
  88. <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"/>
  89. </DataTemplate>
  90. </GridViewColumn.CellTemplate>
  91. </GridViewColumn>
  92. </GridView>
  93. </ListView.View>
  94. </ListView>
  95. <ListView x:Name="lstFile2" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3" Margin="4" ItemsSource="{Binding T7Files}">
  96. <ListView.View>
  97. <GridView>
  98. <GridViewColumn Header="Name" Width="200" >
  99. <GridViewColumn.CellTemplate>
  100. <DataTemplate>
  101. <Label>
  102. <Run Text="{Binding Key,Mode=OneTime}" />
  103. <Label.ToolTip>
  104. <Run Text="{Binding Value,Mode=OneTime}" />
  105. </Label.ToolTip>
  106. </Label>
  107. </DataTemplate>
  108. </GridViewColumn.CellTemplate>
  109. </GridViewColumn>
  110. <GridViewColumn Width="120">
  111. <GridViewColumn.CellTemplate>
  112. <DataTemplate>
  113. <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"/>
  114. </DataTemplate>
  115. </GridViewColumn.CellTemplate>
  116. </GridViewColumn>
  117. <GridViewColumn Width="120">
  118. <GridViewColumn.CellTemplate>
  119. <DataTemplate>
  120. <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"/>
  121. </DataTemplate>
  122. </GridViewColumn.CellTemplate>
  123. </GridViewColumn>
  124. <GridViewColumn Width="120">
  125. <GridViewColumn.CellTemplate>
  126. <DataTemplate>
  127. <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"/>
  128. </DataTemplate>
  129. </GridViewColumn.CellTemplate>
  130. </GridViewColumn>
  131. <GridViewColumn Width="120">
  132. <GridViewColumn.CellTemplate>
  133. <DataTemplate>
  134. <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"/>
  135. </DataTemplate>
  136. </GridViewColumn.CellTemplate>
  137. </GridViewColumn>
  138. </GridView>
  139. </ListView.View>
  140. </ListView>
  141. <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"/>
  142. <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"/>
  143. </Grid>
  144. </uc:HeaderPanel>
  145. </DataTemplate>
  146. </ItemsControl.ItemTemplate>
  147. </ItemsControl>
  148. </ScrollViewer>
  149. <uc:HeaderPanel Grid.Column="1" Width="410" Height="450" HorizontalAlignment="Left" VerticalAlignment="Top" Header="Aligner" Margin="10,20,0,0">
  150. <Grid ctrlCommon:GridHelper.Column0="LightBlue" ctrlCommon:GridHelper.Column1="Transparent">
  151. <Grid.ColumnDefinitions>
  152. <ColumnDefinition Width="*" />
  153. <ColumnDefinition Width="*"/>
  154. </Grid.ColumnDefinitions>
  155. <Grid.RowDefinitions>
  156. <RowDefinition Height="*" />
  157. <RowDefinition Height="*" />
  158. <RowDefinition Height="*" />
  159. <RowDefinition Height="*" />
  160. <RowDefinition Height="*" />
  161. <RowDefinition Height="*" />
  162. <RowDefinition Height="*" />
  163. <RowDefinition Height="*" />
  164. <!--<RowDefinition Height="*" />-->
  165. </Grid.RowDefinitions>
  166. <Label Grid.Row="0" Grid.Column="0" Content="Status" />
  167. <Label Content="{Binding AlignerStatus}" Grid.Row="0" Grid.Column="1" />
  168. <Label Grid.Row="1" Grid.Column="0" Content="Elapse Time" />
  169. <Label Content="{Binding ElapseTime}" HorizontalAlignment="Center" Grid.Row="1" Grid.Column="1" />
  170. <Label Grid.Row="2" Grid.Column="0" Content="Notch" />
  171. <Label Content="{Binding Notch}" HorizontalAlignment="Center" Grid.Row="2" Grid.Column="1" />
  172. <Label Grid.Row="3" Grid.Column="0" Content="Is Wafer On" />
  173. <ctrlCommon:LED On="{Binding WaferOnAligner}" Grid.Row="3" Grid.Column="1" />
  174. <Label Grid.Row="4" Grid.Column="0" Content="Error Code" />
  175. <Label Content="{Binding ErrorCode}" HorizontalAlignment="Center" Grid.Row="4" Grid.Column="1" />
  176. <TextBox Grid.Row="5" Grid.Column="0" Margin="8" Height="30" x:Name="txtAlignAngle" />
  177. <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}"/>
  178. <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.ColumnSpan="2">
  179. <Button Content="Home" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerHome}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  180. <Button Content="Reset" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerReset}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  181. <Button Content="Stop" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerStop}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}"/>
  182. </StackPanel>
  183. <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.ColumnSpan="2" Visibility="Collapsed">
  184. <Button Content="Lift Up" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerLiftUp}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  185. <Button Content="Lift Down" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerLiftDown}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  186. </StackPanel>
  187. <StackPanel Orientation="Horizontal" Grid.Row="7" Grid.ColumnSpan="2">
  188. <Button Content="Init" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerInit}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  189. <Button Content="Hold" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerGrip}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  190. <Button Content="Release" Command="{Binding Command}" ctrlCommon:CommandHelper.CommandName="{x:Static Common:DeviceOperationName.AlignerRelease}" ctrlCommon:CommandHelper.Target="{x:Static Common:DeviceName.Aligner}" />
  191. </StackPanel>
  192. </Grid>
  193. </uc:HeaderPanel>
  194. </Grid>
  195. </Grid>
  196. </UserControl>