AuditTrailPage.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <Page x:Class="CCDCountWpf.WpfPage.AuditTrailPage"
  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:CCDCountWpf.WpfPage" xmlns:wpf="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="AuditTrailPage" Loaded="Page_Loaded">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="40" />
  13. <RowDefinition Height="*" />
  14. </Grid.RowDefinitions>
  15. <Grid Grid.Row="0">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="*" />
  18. <ColumnDefinition Width="*" />
  19. <ColumnDefinition Width="*" />
  20. <ColumnDefinition Width="*" />
  21. </Grid.ColumnDefinitions>
  22. <Button x:Name="BatchRecordBtn" Content="{DynamicResource BatchRecord}" Grid.Column="0" Click="BatchRecordBtn_Click"></Button>
  23. <Button x:Name="FormulationRecordBtn" Content="{DynamicResource FormulationRecord}" Grid.Column="1" Click="FormulationRecordBtn_Click"></Button>
  24. <Button x:Name="ValueChangeRecordBtd" Content="{DynamicResource ValueChangeRecord}" Grid.Column="2" Click="ValueChangeRecordBtd_Click"></Button>
  25. <Button x:Name="ErrorRecordBtn" Content="{DynamicResource ErrorRecord}" Grid.Column="3" Click="ErrorRecordBtn_Click"></Button>
  26. </Grid>
  27. <Grid Grid.Row="1">
  28. <Grid x:Name="BatchRecordGrid" Visibility="Visible">
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="50" />
  31. <RowDefinition Height="*" />
  32. </Grid.RowDefinitions>
  33. <Label Content="{DynamicResource DateFilter}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="White" />
  34. <DatePicker x:Name="BatchMinTime" Width="120" Height="25" HorizontalAlignment="Left" VerticalAlignment="Center" SelectedDateChanged="BatchMinTime_SelectedDateChanged" Margin="75,0,0,0" Language="en-US"/>
  35. <Label Content="-" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="195,0,0,0" Foreground="White"/>
  36. <DatePicker x:Name="BatchMaxTime" Width="120" Height="25" HorizontalAlignment="Left" Margin="210,0,0,0" VerticalAlignment="Center" SelectedDateChanged="BatchMaxTime_SelectedDateChanged" Language="en-US"/>
  37. <Label Content="{DynamicResource RecordingInterval}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,355,0" Foreground="White" />
  38. <ComboBox x:Name="TimeIntervalComBox" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,275,0" Width="80" SelectionChanged="TimeIntervalComBox_SelectionChanged" />
  39. <Label Content="{DynamicResource BatchFilter}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,200,0" Foreground="White" />
  40. <ComboBox Grid.Row="0" x:Name="BatchNumComBox" ItemsSource="{Binding BatchItems}" MaxDropDownHeight="100" Background="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Center" Height="30" Width="180" FontSize="12" HorizontalContentAlignment="Center" Padding="6,6,5,3" Margin="0,0,10,0" SelectionChanged="BatchNumComBox_SelectionChanged"/>
  41. <wpf:WebView2 x:Name="BatchRecordWebBrowser" Grid.Row="1" />
  42. </Grid>
  43. <Grid x:Name="FormulationRecordGrid" Visibility="Collapsed">
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="50" />
  46. <RowDefinition Height="*" />
  47. </Grid.RowDefinitions>
  48. <Label Content="{DynamicResource FormulationFilter}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,200,0" Foreground="White"/>
  49. <ComboBox Grid.Row="0" x:Name="FormulationRecordComBox" ItemsSource="{Binding FormulationItems}" MaxDropDownHeight="100" Background="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Center" Height="30" Width="180" FontSize="12" HorizontalContentAlignment="Center" Padding="6,6,5,3" Margin="0,0,10,0" SelectionChanged="FormulationRecordComBox_SelectionChanged"/>
  50. <wpf:WebView2 x:Name="FormulationRecordWebBrowser" Grid.Row="1" />
  51. </Grid>
  52. <Grid x:Name="ValueChangeRecordGrid" Visibility="Collapsed">
  53. <Grid.RowDefinitions>
  54. <RowDefinition Height="50" />
  55. <RowDefinition Height="*" />
  56. </Grid.RowDefinitions>
  57. <Label Content="{DynamicResource DateFilter}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="White"/>
  58. <DatePicker x:Name="ValueChangeRecordMinTime" Width="120" Height="25" HorizontalAlignment="Left" VerticalAlignment="Center" SelectedDateChanged="ValueChangeRecordMinTime_SelectedDateChanged" Margin="75,0,0,0" Language="en-US"/>
  59. <Label Content="-" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="195,0,0,0" Foreground="White"/>
  60. <DatePicker x:Name="ValueChangeRecordMaxTime" Width="120" Height="25" HorizontalAlignment="Left" Margin="210,0,0,0" VerticalAlignment="Center" SelectedDateChanged="ValueChangeRecordMaxTime_SelectedDateChanged" Language="en-US"/>
  61. <Label Content="{DynamicResource DateFilter}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,200,0" Foreground="White"/>
  62. <ComboBox Grid.Row="0" x:Name="ValueChangeDateComBox" ItemsSource="{Binding ValueChangeItems}" MaxDropDownHeight="100" Background="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Center" Height="30" Width="180" FontSize="12" HorizontalContentAlignment="Center" Padding="6,6,5,3" Margin="0,0,10,0" SelectionChanged="ValueChangeRecordComBox_SelectionChanged"/>
  63. <wpf:WebView2 x:Name="ValueChangeRecordWebBrowser" Grid.Row="1" />
  64. </Grid>
  65. <Grid x:Name="ErrorRecordGrid" Visibility="Collapsed">
  66. <Grid.RowDefinitions>
  67. <RowDefinition Height="50" />
  68. <RowDefinition Height="*" />
  69. </Grid.RowDefinitions>
  70. <Label Content="{DynamicResource DateFilter}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="White"/>
  71. <DatePicker x:Name="ErrorMessageRecordMinTime" Width="120" Height="25" HorizontalAlignment="Left" VerticalAlignment="Center" SelectedDateChanged="ErrorMessageRecordMinTime_SelectedDateChanged" Margin="75,0,0,0" Language="en-US"/>
  72. <Label Content="-" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="195,0,0,0" Foreground="White"/>
  73. <DatePicker x:Name="ErrorMessageRecordMaxTime" Width="120" Height="25" HorizontalAlignment="Left" Margin="210,0,0,0" VerticalAlignment="Center" SelectedDateChanged="ErrorMessageRecordMaxTime_SelectedDateChanged" Language="en-US"/>
  74. <Label Content="{DynamicResource DateFilter}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,200,0" Foreground="White"/>
  75. <ComboBox Grid.Row="0" x:Name="ErrorMessageDateComBox" ItemsSource="{Binding ErrorMessItems}" MaxDropDownHeight="100" Background="{x:Null}" HorizontalAlignment="Right" VerticalAlignment="Center" Height="30" Width="180" FontSize="12" HorizontalContentAlignment="Center" Padding="6,6,5,3" Margin="0,0,10,0" SelectionChanged="ErrorMessageRecordComBox_SelectionChanged"/>
  76. <wpf:WebView2 x:Name="ErrorMessageRecordWebBrowser" Grid.Row="1" />
  77. </Grid>
  78. </Grid>
  79. </Grid>
  80. </Page>