WaferHistoryView.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <UserControl x:Class="VirgoUI.Client.Models.DataLog.WaferHistory.WaferHistoryView"
  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:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. xmlns:style="clr-namespace:MECF.Framework.UI.Core.Style;assembly=MECF.Framework.UI.Core"
  8. xmlns:cal="http://www.caliburn.org" IsEnabled="{Binding PageEnabled}"
  9. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity">
  10. <Grid HorizontalAlignment="Left">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="0"/>
  14. <RowDefinition/>
  15. </Grid.RowDefinitions>
  16. <Grid Grid.Row="0" HorizontalAlignment="Left" Height="30">
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="100"/>
  19. <ColumnDefinition />
  20. <ColumnDefinition Width="100"/>
  21. <ColumnDefinition />
  22. <ColumnDefinition Width="Auto"/>
  23. </Grid.ColumnDefinitions>
  24. <Border Grid.Column="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  25. <TextBlock Text="From" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"></TextBlock>
  26. </Border>
  27. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="1" Padding="5,1">
  28. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
  29. <DatePicker Height="24" Margin="5,0,0,0" HorizontalAlignment="Left" Background="White" Name="dateBegin" SelectedDate="{Binding BeginDate, Mode=TwoWay}" VerticalAlignment="Center" Width="155" FontSize="13"/>
  30. </StackPanel>
  31. </Border>
  32. <Border Grid.Column="2" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  33. <TextBlock Text="To" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" VerticalAlignment="Center"></TextBlock>
  34. </Border>
  35. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Column="3" Padding="5,1">
  36. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
  37. <DatePicker Height="24" HorizontalAlignment="Left" Margin="5,0,0,0" Background="White" Name="dateEnd" SelectedDate="{Binding EndDate, Mode=TwoWay}" VerticalAlignment="Top" Width="155" FontSize="13"/>
  38. </StackPanel>
  39. </Border>
  40. <Button Margin="10,0,0,0" Grid.Column="4" Content="Search" Height="25" HorizontalAlignment="Left" Name="buttonQuery" VerticalAlignment="Center" Width="80" IsDefault="True">
  41. <i:Interaction.Triggers>
  42. <i:EventTrigger EventName="Click">
  43. <cal:ActionMessage MethodName="Query">
  44. </cal:ActionMessage>
  45. </i:EventTrigger>
  46. </i:Interaction.Triggers>
  47. </Button>
  48. </Grid>
  49. <Grid Grid.Row="1">
  50. <Grid.RowDefinitions>
  51. <RowDefinition Height="Auto"/>
  52. <RowDefinition />
  53. </Grid.RowDefinitions>
  54. <TextBlock FontSize="16" HorizontalAlignment="Left" Margin="10,5" Text="Process list"></TextBlock>
  55. <DataGrid Grid.Row="1" AutoGenerateColumns="False" Name="GridProcessList"
  56. ItemsSource="{Binding ProcessData}" SelectionUnit="FullRow"
  57. VerticalAlignment="Top" SelectedItem="{Binding SelectedHistoryProcessData}"
  58. AlternatingRowBackground="#74C7F7FF" BorderThickness="1" SelectionMode="Single"
  59. CanUserReorderColumns="False" CanUserAddRows="False" BorderBrush="#5C000000"
  60. ColumnHeaderHeight="25" ClipboardCopyMode="IncludeHeader" CanUserSortColumns="False"
  61. IsReadOnly="True" RowBackground="#FFAFD5D5" Height="670" >
  62. <DataGrid.Columns>
  63. <DataGridTextColumn Width="300" Binding="{Binding RecipeName,Mode=OneWay}" Header="Recipe" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  64. <DataGridTextColumn.CellStyle>
  65. <Style TargetType="DataGridCell">
  66. <Setter Property="ToolTip" Value="{Binding RecipeName}" />
  67. </Style>
  68. </DataGridTextColumn.CellStyle>
  69. </DataGridTextColumn>
  70. <DataGridTextColumn Width="220" Binding="{Binding StartTime,Mode=OneWay}" Header="Start Time" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  71. <DataGridTextColumn.CellStyle>
  72. <Style TargetType="DataGridCell">
  73. <Setter Property="ToolTip" Value="{Binding StartTime}" />
  74. </Style>
  75. </DataGridTextColumn.CellStyle>
  76. </DataGridTextColumn>
  77. <DataGridTextColumn Width="220" Binding="{Binding EndTime,Mode=OneWay}" Header="End Time" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  78. <DataGridTextColumn.CellStyle>
  79. <Style TargetType="DataGridCell">
  80. <Setter Property="ToolTip" Value="{Binding EndTime}" />
  81. </Style>
  82. </DataGridTextColumn.CellStyle>
  83. </DataGridTextColumn>
  84. <!--<DataGridTextColumn Width="*" Binding="{Binding Result,Mode=OneWay}" Header="Result" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  85. <DataGridTextColumn.CellStyle>
  86. <Style TargetType="DataGridCell">
  87. <Setter Property="ToolTip" Value="{Binding Result}" />
  88. </Style>
  89. </DataGridTextColumn.CellStyle>
  90. </DataGridTextColumn>-->
  91. </DataGrid.Columns>
  92. </DataGrid>
  93. </Grid>
  94. <Grid Grid.Row="2">
  95. <Grid.RowDefinitions>
  96. <RowDefinition Height="Auto"/>
  97. <RowDefinition />
  98. </Grid.RowDefinitions>
  99. <TextBlock FontSize="16" HorizontalAlignment="Left" Margin="10,5" Text="Cassette List"></TextBlock>
  100. <DataGrid Grid.Row="2" AutoGenerateColumns="False" Name="GridCarrierList"
  101. ItemsSource="{Binding CarrierData}" SelectionUnit="FullRow" SelectedItem="{Binding SelectedHistoryCarrierData}"
  102. BorderThickness="1" SelectionMode="Single"
  103. CanUserReorderColumns="False" CanUserAddRows="False"
  104. ColumnHeaderHeight="24" ClipboardCopyMode="IncludeHeader" CanUserSortColumns="False"
  105. IsReadOnly="True">
  106. <DataGrid.Columns>
  107. <DataGridTextColumn Width="220" Binding="{Binding LoadTime,Mode=OneWay}" Header="Load Time" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  108. <DataGridTextColumn.CellStyle>
  109. <Style TargetType="DataGridCell">
  110. <Setter Property="ToolTip" Value="{Binding LoadTime}" />
  111. </Style>
  112. </DataGridTextColumn.CellStyle>
  113. </DataGridTextColumn>
  114. <DataGridTextColumn Width="200" Binding="{Binding Rfid,Mode=OneWay}" Header="Carrier ID" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  115. <DataGridTextColumn.CellStyle>
  116. <Style TargetType="DataGridCell">
  117. <Setter Property="ToolTip" Value="{Binding Rfid}" />
  118. </Style>
  119. </DataGridTextColumn.CellStyle>
  120. </DataGridTextColumn>
  121. <DataGridTextColumn Width="180" Binding="{Binding Station,Mode=OneWay}" Header="Station" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  122. <DataGridTextColumn.CellStyle>
  123. <Style TargetType="DataGridCell">
  124. <Setter Property="ToolTip" Value="{Binding Station}" />
  125. </Style>
  126. </DataGridTextColumn.CellStyle>
  127. </DataGridTextColumn>
  128. <DataGridTextColumn Width="220" Binding="{Binding UnloadTime,Mode=OneWay}" Header="Unload Time" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  129. <DataGridTextColumn.CellStyle>
  130. <Style TargetType="DataGridCell">
  131. <Setter Property="ToolTip" Value="{Binding UnloadTime}" />
  132. </Style>
  133. </DataGridTextColumn.CellStyle>
  134. </DataGridTextColumn>
  135. <DataGridTextColumn Width="200" Binding="{Binding LotId,Mode=OneWay}" Header="Lot ID" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  136. <DataGridTextColumn.CellStyle>
  137. <Style TargetType="DataGridCell">
  138. <Setter Property="ToolTip" Value="{Binding LotId}" />
  139. </Style>
  140. </DataGridTextColumn.CellStyle>
  141. </DataGridTextColumn>
  142. <DataGridTextColumn Width="200" Binding="{Binding ProductCategory,Mode=OneWay}" Header="Product Category" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  143. <DataGridTextColumn.CellStyle>
  144. <Style TargetType="DataGridCell">
  145. <Setter Property="ToolTip" Value="{Binding ProductCategory}" />
  146. </Style>
  147. </DataGridTextColumn.CellStyle>
  148. </DataGridTextColumn>
  149. </DataGrid.Columns>
  150. </DataGrid>
  151. </Grid>
  152. </Grid>
  153. </UserControl>