DataLogView.xaml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <UserControl x:Class="Aitex.Triton160.UI.Views.DataLogView"
  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:control="clr-namespace:Aitex.Core.UI.Control;assembly=Core"
  8. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=Core"
  9. mc:Ignorable="d"
  10. d:DesignHeight="800" d:DesignWidth="1300">
  11. <Grid>
  12. <DataGrid AutoGenerateColumns="False" Margin="5,123,7,0" Name="dataGrid_LotList"
  13. Background="#FFAFD5D5" ItemsSource="{Binding DataLogList}" SelectionUnit="FullRow" Height="184"
  14. VerticalAlignment="Top" SelectionChanged="dataGrid_DataLogList_SelectionChanged"
  15. FontFamily="Arial,SimSun" FontSize="12" AlternatingRowBackground="Beige">
  16. <DataGrid.Style>
  17. <Style TargetType="ItemsControl">
  18. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  19. <Style.Resources>
  20. <!-- Background of selected item when focussed -->
  21. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
  22. </Style.Resources>
  23. </Style>
  24. </DataGrid.Style>
  25. <DataGrid.Columns>
  26. <DataGridTextColumn Width="300" Binding="{Binding LotName,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  27. <DataGridTextColumn.HeaderTemplate >
  28. <DataTemplate>
  29. <TextBlock Text="{DynamicResource GlobalLableDataLogDataLogLotId}" />
  30. </DataTemplate>
  31. </DataGridTextColumn.HeaderTemplate>
  32. <DataGridTextColumn.CellStyle>
  33. <Style TargetType="DataGridCell">
  34. <Setter Property="ToolTip" Value="{Binding LotName}" />
  35. </Style>
  36. </DataGridTextColumn.CellStyle>
  37. </DataGridTextColumn>
  38. <DataGridTextColumn Width="220" Binding="{Binding RecipeName,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  39. <DataGridTextColumn.HeaderTemplate >
  40. <DataTemplate>
  41. <TextBlock Text="{DynamicResource GlobalLableDataLogDataLogRecipeName}" />
  42. </DataTemplate>
  43. </DataGridTextColumn.HeaderTemplate>
  44. <DataGridTextColumn.CellStyle>
  45. <Style TargetType="DataGridCell">
  46. <Setter Property="ToolTip" Value="{Binding RecipeName}" />
  47. </Style>
  48. </DataGridTextColumn.CellStyle>
  49. </DataGridTextColumn>
  50. <DataGridTextColumn Width="155" Binding="{Binding ProcessBeginTime,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  51. <DataGridTextColumn.HeaderTemplate >
  52. <DataTemplate>
  53. <TextBlock Text="{DynamicResource GlobalLableDataLogDataLogStartTime}" />
  54. </DataTemplate>
  55. </DataGridTextColumn.HeaderTemplate>
  56. <DataGridTextColumn.CellStyle>
  57. <Style TargetType="DataGridCell">
  58. <Setter Property="ToolTip" Value="{Binding ProcessBeginTime}" />
  59. </Style>
  60. </DataGridTextColumn.CellStyle>
  61. </DataGridTextColumn>
  62. <DataGridTextColumn Width="155" Binding="{Binding ProcessEndTime,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  63. <DataGridTextColumn.HeaderTemplate >
  64. <DataTemplate>
  65. <TextBlock Text="{DynamicResource GlobalLableDataLogDataLogEndTime}" />
  66. </DataTemplate>
  67. </DataGridTextColumn.HeaderTemplate>
  68. <DataGridTextColumn.CellStyle>
  69. <Style TargetType="DataGridCell">
  70. <Setter Property="ToolTip" Value="{Binding ProcessEndTime}" />
  71. </Style>
  72. </DataGridTextColumn.CellStyle>
  73. </DataGridTextColumn>
  74. <DataGridTextColumn Width="160*" Binding="{Binding RecipeResult,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  75. <DataGridTextColumn.HeaderTemplate >
  76. <DataTemplate>
  77. <TextBlock Text="{DynamicResource GlobalLableDataLogDataLogRunningResult}" />
  78. </DataTemplate>
  79. </DataGridTextColumn.HeaderTemplate>
  80. <DataGridTextColumn.CellStyle>
  81. <Style TargetType="DataGridCell">
  82. <Setter Property="ToolTip" Value="{Binding RecipeResult}" />
  83. </Style>
  84. </DataGridTextColumn.CellStyle>
  85. </DataGridTextColumn>
  86. </DataGrid.Columns>
  87. </DataGrid>
  88. <Label Content="{DynamicResource GlobalLableDataLogDataCharting}" Height="28" HorizontalAlignment="Left" Margin="5,310,0,0" Name="label2" VerticalAlignment="Top" FontSize="13" />
  89. <Grid Margin="5,331,7,0" >
  90. <control:PocketProcessDataChart x:Name="chart" DataContext="{Binding ProcessChartData}" />
  91. </Grid>
  92. <GroupBox Header="{DynamicResource GlobalLableDataLogQueryCondition}" Height="97" Margin="5,4,12,0" Name="groupBox1" VerticalAlignment="Top" FontSize="14">
  93. <Grid Margin="30,1,-30,-1">
  94. <Grid.Resources>
  95. <Style TargetType="Button">
  96. <Setter Property="VerticalAlignment" Value="Top"/>
  97. </Style>
  98. </Grid.Resources>
  99. <Grid.ColumnDefinitions>
  100. <ColumnDefinition Width="84*"/>
  101. <ColumnDefinition Width="1187*"/>
  102. </Grid.ColumnDefinitions>
  103. <Grid.RowDefinitions>
  104. <RowDefinition Height="*"></RowDefinition>
  105. <RowDefinition Height="*"></RowDefinition>
  106. </Grid.RowDefinitions>
  107. <Button Grid.Row="0" Content="{DynamicResource GlobalLableDataLogButtonQuery}" Height="25" HorizontalAlignment="Left" Margin="889,10,0,0" Name="buttonQuery" VerticalAlignment="Top" Width="101" Click="buttonQuery_Click" IsDefault="True" Grid.Column="1" />
  108. <xctk:TimePicker Grid.Row="0" Height="25" HorizontalAlignment="Left" Margin="123,11,0,0" Name="timeBegin" VerticalAlignment="Top" Width="73" ValueChanged="timeBegin_ValueChanged" FontSize="13" Grid.Column="1" />
  109. <DatePicker Grid.Row="0" Height="25" HorizontalAlignment="Left" Margin="4,11,0,0" Name="dateBegin" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateBegin_SelectedDateChanged" FontSize="13" Grid.Column="1" />
  110. <xctk:TimePicker Grid.Row="0" Height="25" HorizontalAlignment="Left" Margin="334,10,0,0" Name="timeEnd" VerticalAlignment="Top" Width="73" ValueChanged="timeEnd_ValueChanged" FontSize="13" Grid.Column="1" />
  111. <DatePicker Grid.Row="0" Height="25" HorizontalAlignment="Left" Margin="215,10,0,0" Name="dateEnd" VerticalAlignment="Top" Width="115" SelectedDateChanged="dateEnd_SelectedDateChanged" FontSize="13" Grid.Column="1" />
  112. <Label Grid.Row="0" Grid.Column="0" Content="{DynamicResource GlobalLableDataLogTimeRange}" Height="28" HorizontalAlignment="Left" Margin="-1,8,0,0" Name="label4" VerticalAlignment="Top" FontSize="13" Width="90" Grid.ColumnSpan="2" />
  113. <Label Grid.Row="0" Content="{DynamicResource GlobalLableDataLogRecipeRun}" Height="28" HorizontalAlignment="Left" Margin="426,13,0,0" Name="label6" VerticalAlignment="Top" FontSize="13" Grid.Column="1" />
  114. <ComboBox Grid.Row="0" Height="25" HorizontalAlignment="Left" IsEditable="True" Margin="505,12,0,0" Name="recipeName" VerticalAlignment="Top" Width="345" FontSize="13" Grid.Column="1" ItemsSource="{Binding RecipeList}" />
  115. <Label Grid.Row="1" Grid.Column="0" Content="{DynamicResource GlobalLableDataLogDataLogLotId}" Height="28" HorizontalAlignment="Left" Margin="-1,8,0,0" VerticalAlignment="Top" FontSize="13" Width="90" Grid.ColumnSpan="2" />
  116. <deviceControl:AITBarcodeTextBox Grid.Row="1" Grid.Column="1" Width="300" HorizontalAlignment="Left" FontSize="17" Foreground="White" MaxScanCount="5" x:Name="LotTextBox" />
  117. </Grid>
  118. </GroupBox>
  119. <Label Content="{DynamicResource GlobalLableDataLogDataLogHistoryList}" Height="28" HorizontalAlignment="Left" Margin="5,103,0,0" Name="label1" VerticalAlignment="Top" FontSize="13" />
  120. <Button Content="{DynamicResource GlobalLableExportList}" FontSize="10" Height="18" Margin="0,104,12,0" x:Name="ButtonExportList" VerticalAlignment="Top" IsEnabled="False" HorizontalAlignment="Right" Width="106" Click="buttonLotListExport_Click" />
  121. <Button Content="{DynamicResource GlobalLableExportData}" FontSize="10" Height="18" Margin="0,312,12,0" x:Name="ButtonExportData" IsEnabled="False" VerticalAlignment="Top" HorizontalAlignment="Right" Width="106" Click="buttonLotDetailsExport_Click" />
  122. </Grid>
  123. </UserControl>