| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <UserControl x:Class="PRSDesktop.FactoryFloorAnalysis"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <!-- ~1~<local:LeaveContentConverter x:Key="LeaveContentConverter"/>@1@ -->
- <!-- <Style x:Key="DataContentCellStyle" TargetType="{x:Type syncfusion:GridCell}"> -->
- <!-- ~1~<Setter Property="TextBlock.Text" Value="{Binding RelativeSource={RelativeSource Self}, Converter={StaticResource LeaveContentConverter}}" />@1@ -->
- <!-- </Style> -->
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="42" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="1" Background="WhiteSmoke"
- Padding="5" Margin="0,0,0,5">
- <DockPanel HorizontalAlignment="Stretch">
- <ComboBox x:Name="Employees" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
- SelectionChanged="Employees_SelectionChanged" VerticalContentAlignment="Center"
- Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
- <ComboBox x:Name="Jobs" DockPanel.Dock="Left" Width="250" SelectedIndex="0"
- SelectionChanged="Jobs_SelectionChanged" VerticalContentAlignment="Center" Margin="0,0,5,0"
- SelectedValuePath="Key" DisplayMemberPath="Value" />
- <ComboBox x:Name="Factories" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
- SelectionChanged="Factories_SelectionChanged" VerticalContentAlignment="Center"
- Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
- <ComboBox x:Name="Templates" DockPanel.Dock="Left" Width="200" SelectedIndex="0"
- SelectionChanged="Templates_SelectionChanged" VerticalContentAlignment="Center"
- Margin="0,0,5,0" SelectedValuePath="Key" DisplayMemberPath="Value" />
- <ComboBox x:Name="DateRange" DockPanel.Dock="Left" Width="120" SelectedIndex="0"
- SelectionChanged="DateRange_SelectionChanged" VerticalContentAlignment="Center"
- Margin="0,0,5,0">
- <ComboBox.Items>
- <ComboBoxItem Content="Week To Date" />
- <ComboBoxItem Content="Last 7 Days" />
- <ComboBoxItem Content="Month To Date" />
- <ComboBoxItem Content="Last 30 Days" />
- <ComboBoxItem Content="Year To Date" />
- <ComboBoxItem Content="Last 12 Months" />
- <ComboBoxItem Content="Custom" />
- </ComboBox.Items>
- </ComboBox>
- <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="From" Margin="0,0,5,0" />
- <DatePicker DockPanel.Dock="Left" x:Name="FromDate" Width="100" Background="LightYellow"
- SelectedDateChanged="FromDate_SelectedDateChanged" VerticalContentAlignment="Center"
- FirstDayOfWeek="Monday" IsEnabled="False" />
- <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="To" Margin="5,0,5,0" />
- <DatePicker DockPanel.Dock="Left" x:Name="ToDate" Width="100" Background="LightYellow"
- SelectedDateChanged="ToDate_SelectedDateChanged" VerticalContentAlignment="Center"
- FirstDayOfWeek="Monday" IsEnabled="False" />
- <Button DockPanel.Dock="Right" x:Name="Export" Content="Export" Click="Export_Click" Margin="5,0,0,0" />
- <Label DockPanel.Dock="Left" VerticalContentAlignment="Center" Content="Search" Margin="0,0,5,0" />
- <TextBox x:Name="Search" HorizontalAlignment="Stretch" VerticalContentAlignment="Center"
- KeyUp="Search_KeyUp" />
- </DockPanel>
- </Border>
- <syncfusion:SfDataGrid
- x:Name="dataGrid"
- Grid.Row="1"
- Grid.Column="0"
- AutoGenerateColumns="True"
- AutoGeneratingColumn="DataGrid_AutoGeneratingColumn"
- RowHeight="30"
- AllowSorting="False"
- SelectionUnit="Cell"
- NavigationMode="Cell"
- SelectionMode="Extended" />
- </Grid>
- </UserControl>
|