QADashboard.xaml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <UserControl x:Class="PRSDesktop.QADashboard"
  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:syncfusion="http://schemas.syncfusion.com/wpf"
  7. xmlns:dynamicgrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.DynamicGrid"
  8. xmlns:wpf="clr-namespace:InABox.WPF;assembly=InABox.Wpf"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="1500">
  11. <UserControl.Resources>
  12. <!-- ~1~<local:LeaveContentConverter x:Key="LeaveContentConverter"/>@1@ -->
  13. <!-- <Style x:Key="DataContentCellStyle" TargetType="{x:Type syncfusion:GridCell}"> -->
  14. <!-- ~1~<Setter Property="TextBlock.Text" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource LeaveContentConverter}}" />@1@ -->
  15. <!-- </Style> -->
  16. </UserControl.Resources>
  17. <Grid Background="WhiteSmoke">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="*" />
  20. </Grid.ColumnDefinitions>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="42" />
  23. <RowDefinition Height="*" />
  24. </Grid.RowDefinitions>
  25. <Border Grid.Row="0" CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke"
  26. Padding="5" Margin="0,0,0,2">
  27. <DockPanel HorizontalAlignment="Stretch">
  28. <ComboBox x:Name="Category" DockPanel.Dock="Left" Width="150" SelectedIndex="0"
  29. SelectionChanged="Category_SelectionChanged" VerticalContentAlignment="Center"
  30. Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
  31. <ComboBox x:Name="Form" DockPanel.Dock="Left" Width="250" SelectedIndex="0"
  32. SelectionChanged="Form_SelectionChanged" VerticalContentAlignment="Center" Margin="0,0,5,0"
  33. SelectedValuePath="Key" DisplayMemberPath="Value" />
  34. <ComboBox x:Name="Jobs" DockPanel.Dock="Left" Width="250" SelectedIndex="0"
  35. SelectionChanged="Jobs_SelectionChanged" VerticalContentAlignment="Center" Margin="0,0,5,0"
  36. SelectedValuePath="Key" DisplayMemberPath="Value" />
  37. <ComboBox x:Name="DateRange" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
  38. SelectionChanged="DateRange_SelectionChanged" VerticalContentAlignment="Center"
  39. Margin="0,0,5,0">
  40. <ComboBox.Items>
  41. <ComboBoxItem Content="Today" />
  42. <ComboBoxItem Content="Yesterday" />
  43. <ComboBoxItem Content="Week To Date" />
  44. <ComboBoxItem Content="Last 7 Days" />
  45. <ComboBoxItem Content="Month To Date" />
  46. <ComboBoxItem Content="Last 30 Days" />
  47. <ComboBoxItem Content="Year To Date" />
  48. <ComboBoxItem Content="Last 12 Months" />
  49. <ComboBoxItem Content="Custom" />
  50. </ComboBox.Items>
  51. </ComboBox>
  52. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="From" Margin="0,0,5,0" />
  53. <DatePicker DockPanel.Dock="Left" x:Name="FromDate" Width="100" Background="LightYellow"
  54. SelectedDateChanged="FromDate_SelectedDateChanged" VerticalContentAlignment="Center"
  55. FirstDayOfWeek="Monday" IsEnabled="False" />
  56. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="To" Margin="5,0,5,0" />
  57. <DatePicker DockPanel.Dock="Left" x:Name="ToDate" Width="100" Background="LightYellow"
  58. SelectedDateChanged="ToDate_SelectedDateChanged" VerticalContentAlignment="Center"
  59. FirstDayOfWeek="Monday" IsEnabled="False" />
  60. <Button DockPanel.Dock="Right" x:Name="Export" Content="Export" Click="Export_Click" Margin="5,0,0,0"
  61. Padding="5,0,5,0" Width="60" />
  62. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Search" Margin="0,0,5,0" />
  63. <TextBox x:Name="Search" HorizontalAlignment="Stretch" VerticalContentAlignment="Center"
  64. KeyUp="Search_KeyUp" />
  65. </DockPanel>
  66. </Border>
  67. <Border Grid.Row="1" CornerRadius="0" BorderBrush="Gray" BorderThickness="0.75" Background="WhiteSmoke"
  68. Padding="0" Margin="0">
  69. <Grid>
  70. <Grid.ColumnDefinitions>
  71. <ColumnDefinition Width="Auto" />
  72. <ColumnDefinition Width="*" />
  73. </Grid.ColumnDefinitions>
  74. <wpf:QAGrid x:Name="qaGrid" Grid.Column="0" BorderThickness="0" MaxWidth="500" />
  75. <DockPanel x:Name="DigitalFormsDock" Grid.Column="1" MaxWidth="500">
  76. <DockPanel DockPanel.Dock="Bottom" Margin="0,5,0,0">
  77. <Label Content="Layout Type" DockPanel.Dock="Left" />
  78. <ComboBox DockPanel.Dock="Left" />
  79. </DockPanel>
  80. <dynamicgrid:DynamicFormDesignGrid DockPanel.Dock="Top" />
  81. </DockPanel>
  82. <syncfusion:SfDataGrid
  83. Background="White"
  84. x:Name="dataGrid"
  85. Grid.Column="1"
  86. AutoGenerateColumns="True"
  87. AutoGeneratingColumn="DataGrid_AutoGeneratingColumn"
  88. RowHeight="30"
  89. AllowSorting="False"
  90. SelectionUnit="Row"
  91. NavigationMode="Cell"
  92. SelectionMode="Extended"
  93. Margin="0,5,5,5"
  94. CellDoubleTapped="DataGrid_CellDoubleTapped"
  95. CellTapped="DataGrid_CellTapped" />
  96. </Grid>
  97. </Border>
  98. </Grid>
  99. </UserControl>