FactoryFloorAnalysis.xaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <UserControl x:Class="PRSDesktop.FactoryFloorAnalysis"
  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. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <UserControl.Resources>
  10. <!-- ~1~<local:LeaveContentConverter x:Key="LeaveContentConverter"/>@1@ -->
  11. <!-- <Style x:Key="DataContentCellStyle" TargetType="{x:Type syncfusion:GridCell}"> -->
  12. <!-- ~1~<Setter Property="TextBlock.Text" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource LeaveContentConverter}}" />@1@ -->
  13. <!-- </Style> -->
  14. </UserControl.Resources>
  15. <Grid>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="*" />
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="42" />
  21. <RowDefinition Height="*" />
  22. </Grid.RowDefinitions>
  23. <Border Grid.Row="0" CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="1" Background="WhiteSmoke"
  24. Padding="5" Margin="0,0,0,5">
  25. <DockPanel HorizontalAlignment="Stretch">
  26. <ComboBox x:Name="Employees" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
  27. SelectionChanged="Employees_SelectionChanged" VerticalContentAlignment="Center"
  28. Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
  29. <ComboBox x:Name="Jobs" DockPanel.Dock="Left" Width="250" SelectedIndex="0"
  30. SelectionChanged="Jobs_SelectionChanged" VerticalContentAlignment="Center" Margin="0,0,5,0"
  31. SelectedValuePath="Key" DisplayMemberPath="Value" />
  32. <ComboBox x:Name="Factories" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
  33. SelectionChanged="Factories_SelectionChanged" VerticalContentAlignment="Center"
  34. Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
  35. <ComboBox x:Name="Templates" DockPanel.Dock="Left" Width="200" SelectedIndex="0"
  36. SelectionChanged="Templates_SelectionChanged" VerticalContentAlignment="Center"
  37. Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
  38. <ComboBox x:Name="DateRange" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
  39. SelectionChanged="DateRange_SelectionChanged" VerticalContentAlignment="Center"
  40. Margin="0,0,5,0">
  41. <ComboBox.Items>
  42. <ComboBoxItem Content="Week To Date" />
  43. <ComboBoxItem Content="Last 7 Days" />
  44. <ComboBoxItem Content="Month To Date" />
  45. <ComboBoxItem Content="Last 30 Days" />
  46. <ComboBoxItem Content="Year To Date" />
  47. <ComboBoxItem Content="Last 12 Months" />
  48. <ComboBoxItem Content="Custom" />
  49. </ComboBox.Items>
  50. </ComboBox>
  51. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="From" Margin="0,0,5,0" />
  52. <DatePicker DockPanel.Dock="Left" x:Name="FromDate" Width="100" Background="LightYellow"
  53. SelectedDateChanged="FromDate_SelectedDateChanged" VerticalContentAlignment="Center"
  54. FirstDayOfWeek="Monday" IsEnabled="False" />
  55. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="To" Margin="5,0,5,0" />
  56. <DatePicker DockPanel.Dock="Left" x:Name="ToDate" Width="100" Background="LightYellow"
  57. SelectedDateChanged="ToDate_SelectedDateChanged" VerticalContentAlignment="Center"
  58. FirstDayOfWeek="Monday" IsEnabled="False" />
  59. <Button DockPanel.Dock="Right" x:Name="Export" Content="Export" Click="Export_Click" Margin="5,0,0,0" />
  60. <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Search" Margin="0,0,5,0" />
  61. <TextBox x:Name="Search" HorizontalAlignment="Stretch" VerticalContentAlignment="Center"
  62. KeyUp="Search_KeyUp" />
  63. </DockPanel>
  64. </Border>
  65. <syncfusion:SfDataGrid
  66. x:Name="dataGrid"
  67. Grid.Row="1"
  68. Grid.Column="0"
  69. AutoGenerateColumns="True"
  70. AutoGeneratingColumn="DataGrid_AutoGeneratingColumn"
  71. RowHeight="30"
  72. AllowSorting="False"
  73. SelectionUnit="Cell"
  74. NavigationMode="Cell"
  75. SelectionMode="Extended" />
  76. </Grid>
  77. </UserControl>