BoatModifyView.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <UserControl x:Class="FurnaceUI.Views.Operations.BoatModifyView"
  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:FurnaceUI.Views.Operations"
  7. xmlns:parts="clr-namespace:FurnaceUI.Controls.Parts"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  9. xmlns:cal="http://www.caliburn.org"
  10. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  11. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  12. mc:Ignorable="d"
  13. Height="768" Width="1024">
  14. <UserControl.Resources>
  15. <Style BasedOn="{StaticResource ExScrollViewer}" TargetType="ScrollViewer"/>
  16. <Style BasedOn="{StaticResource ExScrollBar}" TargetType="ScrollBar"/>
  17. <Style x:Key="BoatMapTextBlock" TargetType="TextBlock">
  18. <Setter Property="FontSize" Value="16"/>
  19. <Setter Property="Padding" Value="5"/>
  20. </Style>
  21. </UserControl.Resources>
  22. <Grid Margin="5">
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="auto"></RowDefinition>
  25. <RowDefinition Height="*"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <Border Background="#DAE5F1">
  28. <Grid>
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="300"></ColumnDefinition>
  31. <ColumnDefinition></ColumnDefinition>
  32. </Grid.ColumnDefinitions>
  33. <Border>
  34. <Canvas >
  35. <parts:BoatElevatorMap BoatWafers="{Binding BoatMapWafers,UpdateSourceTrigger=PropertyChanged}" Canvas.Top="-60" Canvas.Left="100" Height="500" Width="158">
  36. </parts:BoatElevatorMap>
  37. <Border BorderBrush="LightGray" BorderThickness="2,2,0,0" Canvas.Left="10" Canvas.Top="48" SnapsToDevicePixels="True" Visibility="{Binding IstBoatMapLogicalVisibility}">
  38. <Border BorderBrush="LightGray" BorderThickness="0,0,2,2" Background="#A1C9F5" SnapsToDevicePixels="True" >
  39. <Grid Width="92" Height="500" Margin="4">
  40. <Grid.RowDefinitions>
  41. <RowDefinition/>
  42. <RowDefinition/>
  43. <RowDefinition Height="3"/>
  44. <RowDefinition/>
  45. <RowDefinition/>
  46. <RowDefinition Height="3"/>
  47. <RowDefinition/>
  48. <RowDefinition/>
  49. <RowDefinition Height="3"/>
  50. <RowDefinition/>
  51. <RowDefinition/>
  52. <RowDefinition Height="3"/>
  53. <RowDefinition/>
  54. <RowDefinition/>
  55. </Grid.RowDefinitions>
  56. <TextBlock Text="SD" Style="{StaticResource BoatMapTextBlock}" />
  57. <WrapPanel Grid.Row="1">
  58. <TextBlock Style="{StaticResource BoatMapTextBlock}" >
  59. <Run Text="{Binding UpperSDNum,UpdateSourceTrigger=PropertyChanged}"></Run>
  60. <Run Text="(Num)"></Run>
  61. </TextBlock>
  62. </WrapPanel>
  63. <Line Grid.Row="2" X1="-4" Y1="0" X2="96" Y2="0" Margin="0,0,-4,0" StrokeThickness="2" Stroke="LightGray"/>
  64. <TextBlock Grid.Row="3" Text="P" Style="{StaticResource BoatMapTextBlock}" />
  65. <WrapPanel Grid.Row="4">
  66. <TextBlock Style="{StaticResource BoatMapTextBlock}" >
  67. <Run Text="{Binding ProductNum,UpdateSourceTrigger=PropertyChanged}"></Run>
  68. <Run Text="(Num)"></Run>
  69. </TextBlock>
  70. </WrapPanel>
  71. <Line Grid.Row="5" X1="-4" Y1="0" X2="96" Y2="0" Margin="0,0,-4,0" StrokeThickness="2" Stroke="LightGray"/>
  72. <TextBlock Grid.Row="6" Text="M1" Style="{StaticResource BoatMapTextBlock}" />
  73. <WrapPanel Grid.Row="7">
  74. <TextBlock Style="{StaticResource BoatMapTextBlock}" >
  75. <Run Text="{Binding MonitorNum1,UpdateSourceTrigger=PropertyChanged}"></Run>
  76. <Run Text="(Num)"></Run>
  77. </TextBlock>
  78. </WrapPanel>
  79. <Line Grid.Row="8" X1="-4" Y1="0" X2="96" Y2="0" Margin="0,0,-4,0" StrokeThickness="2" Stroke="LightGray"/>
  80. <TextBlock Grid.Row="9" Text="M2" Style="{StaticResource BoatMapTextBlock}" />
  81. <WrapPanel Grid.Row="10">
  82. <TextBlock Style="{StaticResource BoatMapTextBlock}" >
  83. <Run Text="{Binding MonitorNum2,UpdateSourceTrigger=PropertyChanged}"></Run>
  84. <Run Text="(Num)"></Run>
  85. </TextBlock>
  86. </WrapPanel>
  87. <Line Grid.Row="11" X1="-4" Y1="0" X2="96" Y2="0" Margin="0,0,-4,0" StrokeThickness="2" Stroke="LightGray"/>
  88. <TextBlock Grid.Row="12" Text="ED" Style="{StaticResource BoatMapTextBlock}" />
  89. <WrapPanel Grid.Row="13">
  90. <TextBlock Style="{StaticResource BoatMapTextBlock}" >
  91. <Run Text="{Binding LowerSDNum,UpdateSourceTrigger=PropertyChanged}"></Run>
  92. <Run Text="(Num)"></Run>
  93. </TextBlock>
  94. </WrapPanel>
  95. </Grid>
  96. </Border>
  97. </Border>
  98. </Canvas>
  99. </Border>
  100. <Border Grid.Column="1">
  101. <ListView Height="583" IsEnabled="{ Binding IsPermission}" HorizontalContentAlignment="Stretch" ItemsSource="{Binding BoatWaferInfoItems}">
  102. <ListView.View>
  103. <GridView>
  104. <GridView.Columns>
  105. <GridViewColumn Width="100" Header="Slot">
  106. <GridViewColumn.CellTemplate>
  107. <DataTemplate>
  108. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  109. <TextBlock Width="100" TextWrapping="Wrap" Text="{Binding SlotID, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
  110. </Border>
  111. </DataTemplate>
  112. </GridViewColumn.CellTemplate>
  113. </GridViewColumn>
  114. <GridViewColumn Width="150" Header="Wafer Info">
  115. <GridViewColumn.CellTemplate>
  116. <DataTemplate>
  117. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  118. <ctrl:Slot Width="150" ViewType="Front" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,2,0,0"/>
  119. </Border>
  120. </DataTemplate>
  121. </GridViewColumn.CellTemplate>
  122. </GridViewColumn>
  123. <GridViewColumn Width="100" Header="Wafer Type">
  124. <GridViewColumn.CellTemplate>
  125. <DataTemplate>
  126. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  127. <TextBlock Width="100" TextWrapping="Wrap" Text="{Binding WaferType, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
  128. </Border>
  129. </DataTemplate>
  130. </GridViewColumn.CellTemplate>
  131. </GridViewColumn>
  132. <GridViewColumn Width="100" Header="Use Count">
  133. <GridViewColumn.CellTemplate>
  134. <DataTemplate>
  135. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  136. <TextBlock Width="100" TextWrapping="Wrap" Text="{Binding UseCount, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
  137. </Border>
  138. </DataTemplate>
  139. </GridViewColumn.CellTemplate>
  140. </GridViewColumn>
  141. <GridViewColumn Width="100" Header="Use Time">
  142. <GridViewColumn.CellTemplate>
  143. <DataTemplate>
  144. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  145. <TextBlock Width="100" TextWrapping="Wrap" Text="{Binding UseTime, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
  146. </Border>
  147. </DataTemplate>
  148. </GridViewColumn.CellTemplate>
  149. </GridViewColumn>
  150. <GridViewColumn Width="100" Header="Use Thick">
  151. <GridViewColumn.CellTemplate>
  152. <DataTemplate>
  153. <Border HorizontalAlignment="Center" Margin="-8,0,-5,0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,0,0">
  154. <TextBlock Width="100" TextWrapping="Wrap" Text="{Binding UseThick, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" TextAlignment="Center"/>
  155. </Border>
  156. </DataTemplate>
  157. </GridViewColumn.CellTemplate>
  158. </GridViewColumn>
  159. </GridView.Columns>
  160. </GridView>
  161. </ListView.View>
  162. </ListView>
  163. </Border>
  164. </Grid>
  165. </Border>
  166. <Border Grid.Row="1" >
  167. <Grid>
  168. <Grid.RowDefinitions>
  169. <RowDefinition Height="20"></RowDefinition>
  170. <RowDefinition Height="50"></RowDefinition>
  171. <RowDefinition Height="50"></RowDefinition>
  172. <RowDefinition ></RowDefinition>
  173. </Grid.RowDefinitions>
  174. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Grid.Column="0" Grid.ColumnSpan="2" Padding="5,1">
  175. <TextBlock Text="Wafer" TextWrapping="Wrap" TextAlignment="Center" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  176. </Border>
  177. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" IsEnabled="{Binding IsEnableA}" Grid.Row="1" Grid.ColumnSpan="2" Padding="2,1,1,1" RenderTransformOrigin="0.492,0.581">
  178. <UniformGrid Columns="5" Rows="1" Margin="0,5,0,5" >
  179. <RadioButton Content="SD" GroupName="WaferType" IsChecked="{Binding SDIsChecked}" Width="80"/>
  180. <RadioButton Content="ED" GroupName="WaferType" IsChecked="{Binding EDIsChecked}" Width="80"/>
  181. <RadioButton Content="P" GroupName="WaferType" IsChecked="{Binding PIsChecked}" Width="80"/>
  182. <RadioButton Content="M1" GroupName="WaferType" IsChecked="{Binding M1IsChecked}" Width="80"/>
  183. <RadioButton Content="M2" GroupName="WaferType" IsChecked="{Binding M2IsChecked}" Width="80"/>
  184. </UniformGrid>
  185. </Border>
  186. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.ColumnSpan="2" Padding="2,1,1,1">
  187. <UniformGrid Columns="2" Rows="1" >
  188. <StackPanel Orientation="Horizontal" Margin="7,0">
  189. <!--<TextBlock Text="Boat Slot" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" Margin="27,5,0,0"/>-->
  190. <Label Content="From" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" Width="80" HorizontalContentAlignment="Center" VerticalAlignment="Center" Margin="0,5,0,0"/>
  191. <TextBox TextChanged="Slot_TextChanged" BorderThickness="1" Text="{Binding BoatSlotFrom,TargetNullValue={x:Static sys:String.Empty},UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" Width="120" Margin="5,2" Tag="Number"/>
  192. <Label Content="To" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" Width="80" HorizontalContentAlignment="Center" VerticalAlignment="Center" Margin="0,5,0,0"/>
  193. <TextBox TextChanged="Slot_TextChanged" BorderThickness="1" Text="{Binding BoatSlotTo,TargetNullValue={x:Static sys:String.Empty},UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" Width="120" Margin="5,2" Tag="Number"/>
  194. </StackPanel>
  195. <StackPanel Orientation="Horizontal" >
  196. <TextBlock Text="Origin Module" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" Margin="5,5,0,0"/>
  197. <ComboBox ItemsSource="{Binding OriginModuleItems}" SelectedItem="{Binding OriginSelectModule,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" Width="120" Margin="5,2"/>
  198. <TextBlock Text="Origin Slot" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" Margin="25,5,0,0"/>
  199. <TextBox Text="{Binding OriginSlot,TargetNullValue={x:Static sys:String.Empty},UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" Width="120" Margin="5,2" Tag="Number"/>
  200. </StackPanel>
  201. </UniformGrid>
  202. </Border>
  203. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.ColumnSpan="2" Padding="5">
  204. <UniformGrid Columns="3" Rows="1" >
  205. <Button Content="Create Wafer" Width="120" Height="50" Margin="85,0,0,0" IsEnabled="{Binding IsEnableWaferManualOperation}">
  206. <i:Interaction.Triggers>
  207. <i:EventTrigger EventName="Click">
  208. <cal:ActionMessage MethodName="CreateWafer"></cal:ActionMessage>
  209. </i:EventTrigger>
  210. </i:Interaction.Triggers>
  211. </Button>
  212. <Button Content="Delete Wafer" Width="120" Height="50" Margin="90,0,0,0" IsEnabled="{Binding IsEnableWaferManualOperation}">
  213. <i:Interaction.Triggers>
  214. <i:EventTrigger EventName="Click">
  215. <cal:ActionMessage MethodName="DeleteWafer"></cal:ActionMessage>
  216. </i:EventTrigger>
  217. </i:Interaction.Triggers>
  218. </Button>
  219. <Button Content="Close" Width="120" Height="50" Style="{StaticResource CommandButton}">
  220. <i:Interaction.Triggers>
  221. <i:EventTrigger EventName="Click">
  222. <cal:ActionMessage MethodName="CassetteClose"></cal:ActionMessage>
  223. </i:EventTrigger>
  224. </i:Interaction.Triggers>
  225. </Button>
  226. </UniformGrid>
  227. </Border>
  228. </Grid>
  229. </Border>
  230. </Grid>
  231. </UserControl>