TransferSelectionDialog.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <Window x:Class="Aitex.Sorter.UI.Controls.TransferSelectionDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Aitex.Sorter.UI.Controls" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  7. mc:Ignorable="d"
  8. Title="TransferSelectionDialog" Height="900" Width="1500" WindowStartupLocation="CenterScreen" Closed="Window_Closed">
  9. <Grid >
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*"/>
  12. <ColumnDefinition Width="*"/>
  13. <ColumnDefinition Width="*"/>
  14. </Grid.ColumnDefinitions>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="580"/>
  17. <RowDefinition Height="210"/>
  18. <RowDefinition Height="120"/>
  19. </Grid.RowDefinitions>
  20. <StackPanel Grid.Row="0" Grid.Column="0">
  21. <TextBlock Text="original" FontSize="24"/>
  22. <StackPanel>
  23. <ComboBox x:Name="CboOriginal" Margin="20,20,20,20" Height="40" ItemsSource="{Binding LoadPortList}" SelectedValue="{Binding OriginalSelectedValue}">
  24. <i:Interaction.Triggers>
  25. <i:EventTrigger EventName="SelectionChanged">
  26. <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBox}}}"/>
  27. </i:EventTrigger>
  28. </i:Interaction.Triggers>
  29. </ComboBox>
  30. </StackPanel>
  31. <Border BorderBrush="#0086cd" BorderThickness="2" Margin="20,20,0,20" HorizontalAlignment="Center" CornerRadius="8">
  32. <Viewbox Stretch="Fill" Height="400" Margin="20" VerticalAlignment="Top">
  33. <local:FoupItemPro x:Name="OriginalFoupItem" Title="{Binding OriginalName}" SlotCount="25" Slots="{Binding OriginalWaferInfos}" Station="{Binding OriginalStation}" CarrierMode="{Binding OriginalCarrierMode}" WaferTransferOptionCommand="{Binding DataContext.WaferTransferOptionCommand, ElementName=root}" WaferTransferCommand="{Binding WaferTransferCommand}" ></local:FoupItemPro>
  34. </Viewbox>
  35. </Border>
  36. </StackPanel>
  37. <StackPanel Grid.Row="0" Grid.Column="2">
  38. <StackPanel>
  39. <TextBlock Text="destination" FontSize="24"/>
  40. <ComboBox x:Name="CboDestination" Margin="20,20,20,20" Height="40" ItemsSource="{Binding LoadPortList}" SelectedValue="{Binding DestinationSelectedValue}">
  41. <i:Interaction.Triggers>
  42. <i:EventTrigger EventName="SelectionChanged">
  43. <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ComboBox}}}"/>
  44. </i:EventTrigger>
  45. </i:Interaction.Triggers>
  46. </ComboBox>
  47. </StackPanel>
  48. <Border BorderBrush="#0086cd" BorderThickness="2" Margin="0,20,20,20" HorizontalAlignment="Center" CornerRadius="8">
  49. <Viewbox Stretch="Fill" Height="400" Margin="20" VerticalAlignment="Top">
  50. <local:FoupItemPro x:Name="DestinationFoupItem" Title="{Binding DestinationName}" SlotCount="25" Slots="{Binding DestinationWaferInfos}" Station="{Binding DestinationStation}" CarrierMode="{Binding DestinationCarrierMode}" WaferTransferOptionCommand="{Binding DataContext.WaferTransferOptionCommand, ElementName=root}" WaferTransferCommand="{Binding WaferTransferCommand}" ></local:FoupItemPro>
  51. </Viewbox>
  52. </Border>
  53. </StackPanel>
  54. <Border Grid.Row="0" Grid.Column="1" Width="400" BorderBrush="#0086cd" BorderThickness="2" Margin="0,84,0,32" HorizontalAlignment="Center" CornerRadius="8">
  55. <StackPanel >
  56. <GroupBox Height="460">
  57. <Grid>
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition Width="180"/>
  60. <ColumnDefinition Width="*"/>
  61. </Grid.ColumnDefinitions>
  62. <Grid.RowDefinitions>
  63. <RowDefinition Height="40"/>
  64. <RowDefinition Height="40"/>
  65. <RowDefinition Height="40"/>
  66. <RowDefinition Height="40"/>
  67. <RowDefinition Height="40"/>
  68. <RowDefinition Height="40"/>
  69. <RowDefinition Height="40"/>
  70. <RowDefinition Height="60"/>
  71. </Grid.RowDefinitions>
  72. <Label Content="CyclePlaceMode:"/>
  73. <ComboBox Grid.Row="0" Grid.Column="1" x:Name="CmbPlaceMode" Margin="5" >
  74. <ComboBoxItem Content="Opposite"></ComboBoxItem>
  75. <ComboBoxItem Content="Same"></ComboBoxItem>
  76. <ComboBoxItem Content="FromTop"></ComboBoxItem>
  77. <ComboBoxItem Content="FromButtom"></ComboBoxItem>
  78. </ComboBox>
  79. <Label Grid.Row="1" Grid.Column="0" Content="Aligner" />
  80. <CheckBox Grid.Row="1" x:Name="chkAligner" VerticalContentAlignment="Center" Grid.Column="1" />
  81. <Label Grid.Row="2" Grid.Column="0" Content="Read Laser Marker" />
  82. <CheckBox Grid.Row="2" x:Name="chkReadID" VerticalContentAlignment="Center" Grid.Column="1" />
  83. <Label Grid.Row="3" Grid.Column="0" Content="Read T7 Code" />
  84. <CheckBox Grid.Row="3" x:Name="chkReadID2" VerticalContentAlignment="Center" Grid.Column="1" />
  85. <Label Grid.Row="4" Grid.Column="0" Content="Blade" />
  86. <WrapPanel Grid.Row="4" Grid.Column="1" VerticalAlignment="Center">
  87. <RadioButton x:Name="chkBlade1" Content="1" IsChecked="True" />
  88. <RadioButton x:Name="chkBlade2" Margin="8,0" Content="2" />
  89. </WrapPanel>
  90. <Label Grid.Row="5" Grid.Column="0" Content="Aligner Angle" />
  91. <TextBox Grid.Row="5" x:Name="tbAngle" Grid.Column="1" Text="0" Height="30" Margin="4" />
  92. <Label Grid.Row="6" Grid.Column="0" Content="Turn Over" />
  93. <CheckBox Grid.Row="6" x:Name="chkTurnOver" VerticalContentAlignment="Center" Grid.Column="1" />
  94. <Button Grid.Row="7" Grid.Column="0" Content="Qselect" HorizontalAlignment="Right" Grid.ColumnSpan="2" Margin="0,6,10,0" Command="{Binding QselectCommand}"></Button>
  95. </Grid>
  96. </GroupBox>
  97. </StackPanel>
  98. </Border>
  99. <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
  100. <GroupBox Height="210">
  101. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding TransferItems}">
  102. <ListView.View>
  103. <GridView>
  104. <GridViewColumn Header="Source" Width="130" DisplayMemberBinding="{Binding SourceStation}" />
  105. <GridViewColumn Header="Slot" Width="100" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  106. <GridViewColumn Header="Destination" Width="130" DisplayMemberBinding="{Binding DestinationStation}" />
  107. <GridViewColumn Header="Slot" Width="100" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  108. <GridViewColumn Header="Read Laser Mark" Width="0" >
  109. <GridViewColumn.CellTemplate>
  110. <DataTemplate>
  111. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  112. </DataTemplate>
  113. </GridViewColumn.CellTemplate>
  114. </GridViewColumn>
  115. <GridViewColumn Header="Read T7 Code" Width="0" >
  116. <GridViewColumn.CellTemplate>
  117. <DataTemplate>
  118. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  119. </DataTemplate>
  120. </GridViewColumn.CellTemplate>
  121. </GridViewColumn>
  122. <GridViewColumn Header="Align" Width="0" >
  123. <GridViewColumn.CellTemplate>
  124. <DataTemplate>
  125. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  126. </DataTemplate>
  127. </GridViewColumn.CellTemplate>
  128. </GridViewColumn>
  129. <GridViewColumn Header="Angle" Width="0" >
  130. <GridViewColumn.CellTemplate>
  131. <DataTemplate>
  132. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  133. </DataTemplate>
  134. </GridViewColumn.CellTemplate>
  135. </GridViewColumn>
  136. <GridViewColumn Header="Action" Width="130" >
  137. <GridViewColumn.CellTemplate>
  138. <DataTemplate>
  139. <Button Content="Remove" Height="28" ToolTip="Remove" Width="100" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  140. </DataTemplate>
  141. </GridViewColumn.CellTemplate>
  142. </GridViewColumn>
  143. </GridView>
  144. </ListView.View>
  145. </ListView>
  146. </GroupBox>
  147. </StackPanel>
  148. <StackPanel Margin="0,0,20,20" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" HorizontalAlignment="Right" Orientation="Horizontal">
  149. <Button x:Name="BtnOK" Content="OK" Command="{Binding OKCommand}"></Button>
  150. <Button x:Name="BtnClose" Content="Close" Command="{Binding CloseCommand}"></Button>
  151. </StackPanel>
  152. </Grid>
  153. </Window>