|
@@ -1,122 +1,149 @@
|
|
|
-<UserControl x:Class="PRSDesktop.JobResourcePlanner"
|
|
|
- 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:local="clr-namespace:PRSDesktop"
|
|
|
- xmlns:Syncfusion="http://schemas.syncfusion.com/wpf"
|
|
|
- xmlns:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
|
|
|
- mc:Ignorable="d"
|
|
|
- d:DesignHeight="800" d:DesignWidth="600">
|
|
|
- <UserControl.Resources>
|
|
|
+<UserControl
|
|
|
+ x:Class="PRSDesktop.JobResourcePlanner"
|
|
|
+ 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:local="clr-namespace:PRSDesktop"
|
|
|
+ xmlns:Syncfusion="http://schemas.syncfusion.com/wpf"
|
|
|
+ xmlns:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
|
|
|
+ mc:Ignorable="d"
|
|
|
+ d:DesignHeight="800"
|
|
|
+ d:DesignWidth="600">
|
|
|
+
|
|
|
+ <UserControl.Resources>
|
|
|
|
|
|
- <Style x:Key="DateHeaderStyle" TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
- <Setter Property="Background" Value="LightSkyBlue"/>
|
|
|
- <Setter Property="Foreground" Value="Black"/>
|
|
|
- <Setter Property="BorderBrush" Value="Black"/>
|
|
|
- <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
- <Setter Property="Padding" Value="5,3"/>
|
|
|
- <Setter Property="FontFamily" Value="Segoe UI"/>
|
|
|
- <Setter Property="FontSize" Value="14"/>
|
|
|
- <Setter Property="FontWeight" Value="Normal"/>
|
|
|
- <Setter Property="IsTabStop" Value="False"/>
|
|
|
- </Style>
|
|
|
- <Style x:Key="ContentHeaderStyle" TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
- <Setter Property="Background" Value="LightSkyBlue"/>
|
|
|
- <Setter Property="Foreground" Value="Black"/>
|
|
|
- <Setter Property="BorderBrush" Value="Black"/>
|
|
|
- <Setter Property="BorderThickness" Value="0.5,0.5,0.5,0.5"/>
|
|
|
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
- <Setter Property="Padding" Value="5,3"/>
|
|
|
- <Setter Property="FontFamily" Value="Segoe UI"/>
|
|
|
- <Setter Property="FontSize" Value="14"/>
|
|
|
- <Setter Property="FontWeight" Value="Normal"/>
|
|
|
- <Setter Property="IsTabStop" Value="False"/>
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
+ <Style x:Key="DateHeaderStyle" TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
+ <Setter Property="Background" Value="LightSkyBlue" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ <Setter Property="BorderBrush" Value="Black" />
|
|
|
+ <Setter Property="BorderThickness" Value="0,0,0.5,0.5" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Padding" Value="5,3" />
|
|
|
+ <Setter Property="IsTabStop" Value="False" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="ContentHeaderStyle" TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
+ <Setter Property="Background" Value="LightSkyBlue" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ <Setter Property="BorderBrush" Value="Black" />
|
|
|
+ <Setter Property="BorderThickness" Value="0,0,0.5,0.5" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
+ <Setter Property="Padding" Value="5,3" />
|
|
|
+ <Setter Property="IsTabStop" Value="False" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
+ <Grid>
|
|
|
+ <Border x:Name="PART_FooterCellBorder" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ Background="{TemplateBinding Background}" />
|
|
|
+ <Border x:Name="PART_HeaderCellBorder" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
|
|
+ <Grid Margin="{TemplateBinding Padding}" SnapsToDevicePixels="True">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
+ Content="{TemplateBinding Content}"
|
|
|
+ ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
|
+ Focusable="False" HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ <Grid x:Name="PART_SortButtonPresenter" Grid.Column="1" SnapsToDevicePixels="True">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*">
|
|
|
+ <ColumnDefinition.MinWidth>
|
|
|
+ <Binding Mode="OneWay" Path="SortDirection"
|
|
|
+ RelativeSource="{RelativeSource TemplatedParent}">
|
|
|
+ <Binding.Converter>
|
|
|
+ <Syncfusion:SortDirectionToWidthConverter />
|
|
|
+ </Binding.Converter>
|
|
|
+ </Binding>
|
|
|
+ </ColumnDefinition.MinWidth>
|
|
|
+ </ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Grid.Column="1" Foreground="{TemplateBinding Foreground}"
|
|
|
+ Margin="0,-4,0,0" SnapsToDevicePixels="True"
|
|
|
+ Text="{TemplateBinding SortNumber}"
|
|
|
+ Visibility="{TemplateBinding SortNumberVisibility}"
|
|
|
+ VerticalAlignment="Bottom" />
|
|
|
+ </Grid>
|
|
|
+ <Syncfusion:FilterToggleButton x:Name="PART_FilterToggleButton" Grid.Column="2"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ Visibility="{TemplateBinding FilterIconVisiblity}"
|
|
|
+ VerticalAlignment="Stretch" />
|
|
|
+ <Border x:Name="PART_FilterPopUpPresenter" />
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="RotatedHeaderStyle" TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
+ <Setter Property="Background" Value="LightSkyBlue" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ <Setter Property="BorderBrush" Value="Black" />
|
|
|
+ <Setter Property="BorderThickness" Value="0.5,0,0.5,0.5" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
|
+ <Setter Property="Padding" Value="5,3" />
|
|
|
+ <Setter Property="IsTabStop" Value="False" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type Syncfusion:GridHeaderCellControl}">
|
|
|
<Grid>
|
|
|
<Grid.LayoutTransform>
|
|
|
- <RotateTransform Angle="270"/>
|
|
|
+ <RotateTransform Angle="270" />
|
|
|
</Grid.LayoutTransform>
|
|
|
- <VisualStateManager.VisualStateGroups>
|
|
|
- <VisualStateGroup x:Name="HiddenColumnsResizingStates">
|
|
|
- <VisualState x:Name="PreviousColumnHidden">
|
|
|
- <Storyboard>
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_HeaderCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="3,0,1,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="HiddenState">
|
|
|
- <Storyboard>
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_HeaderCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="3,0,3,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="NormalState"/>
|
|
|
- <VisualState x:Name="LastColumnHidden">
|
|
|
- <Storyboard>
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_HeaderCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="0,0,3,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="CommonStates">
|
|
|
- <VisualState x:Name="MouseOver"/>
|
|
|
- <VisualState x:Name="Normal"/>
|
|
|
- </VisualStateGroup>
|
|
|
- <VisualStateGroup x:Name="BorderStates">
|
|
|
- <VisualState x:Name="NormalCell"/>
|
|
|
- <VisualState x:Name="FooterColumnCell">
|
|
|
- <Storyboard BeginTime="0">
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_FooterCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="1,0,1,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- <VisualState x:Name="BeforeFooterColumnCell">
|
|
|
- <Storyboard BeginTime="0">
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_FooterCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- <ThicknessAnimationUsingKeyFrames BeginTime="0" Duration="1.0:0:0" Storyboard.TargetProperty="BorderThickness" Storyboard.TargetName="PART_HeaderCellBorder">
|
|
|
- <EasingThicknessKeyFrame KeyTime="0" Value="0,0,0,1"/>
|
|
|
- </ThicknessAnimationUsingKeyFrames>
|
|
|
- </Storyboard>
|
|
|
- </VisualState>
|
|
|
- </VisualStateGroup>
|
|
|
- </VisualStateManager.VisualStateGroups>
|
|
|
- <Border x:Name="PART_FooterCellBorder" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"/>
|
|
|
- <Border x:Name="PART_HeaderCellBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
|
|
+ <Border x:Name="PART_FooterCellBorder" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ Background="{TemplateBinding Background}" />
|
|
|
+ <Border x:Name="PART_HeaderCellBorder" BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
|
|
<Grid Margin="{TemplateBinding Padding}" SnapsToDevicePixels="True">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" Focusable="False" HorizontalAlignment="Left" VerticalAlignment="Center"/>
|
|
|
+ <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
|
+ Content="{TemplateBinding Content}"
|
|
|
+ ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
|
+ Focusable="False" HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
<Grid x:Name="PART_SortButtonPresenter" Grid.Column="1" SnapsToDevicePixels="True">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*">
|
|
|
<ColumnDefinition.MinWidth>
|
|
|
- <Binding Mode="OneWay" Path="SortDirection" RelativeSource="{RelativeSource TemplatedParent}">
|
|
|
+ <Binding Mode="OneWay" Path="SortDirection"
|
|
|
+ RelativeSource="{RelativeSource TemplatedParent}">
|
|
|
<Binding.Converter>
|
|
|
- <Syncfusion:SortDirectionToWidthConverter/>
|
|
|
+ <Syncfusion:SortDirectionToWidthConverter />
|
|
|
</Binding.Converter>
|
|
|
</Binding>
|
|
|
</ColumnDefinition.MinWidth>
|
|
|
</ColumnDefinition>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <TextBlock Grid.Column="1" Foreground="{TemplateBinding Foreground}" FontSize="10" Margin="0,-4,0,0" SnapsToDevicePixels="True" Text="{TemplateBinding SortNumber}" Visibility="{TemplateBinding SortNumberVisibility}" VerticalAlignment="Bottom"/>
|
|
|
+ <TextBlock Grid.Column="1" Foreground="{TemplateBinding Foreground}"
|
|
|
+ Margin="0,-4,0,0" SnapsToDevicePixels="True"
|
|
|
+ Text="{TemplateBinding SortNumber}"
|
|
|
+ Visibility="{TemplateBinding SortNumberVisibility}"
|
|
|
+ VerticalAlignment="Bottom" />
|
|
|
</Grid>
|
|
|
- <Syncfusion:FilterToggleButton x:Name="PART_FilterToggleButton" Grid.Column="2" HorizontalAlignment="Stretch" SnapsToDevicePixels="True" Visibility="{TemplateBinding FilterIconVisiblity}" VerticalAlignment="Stretch"/>
|
|
|
- <Border x:Name="PART_FilterPopUpPresenter"/>
|
|
|
+ <Syncfusion:FilterToggleButton x:Name="PART_FilterToggleButton" Grid.Column="2"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ Visibility="{TemplateBinding FilterIconVisiblity}"
|
|
|
+ VerticalAlignment="Stretch" />
|
|
|
+ <Border x:Name="PART_FilterPopUpPresenter" />
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
</Grid>
|
|
@@ -124,7 +151,7 @@
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
-
|
|
|
+
|
|
|
<ControlTemplate x:Key="HorizontalSplitter">
|
|
|
<Grid Background="{TemplateBinding Background}" Height="4">
|
|
|
<Grid.ColumnDefinitions>
|
|
@@ -155,11 +182,11 @@
|
|
|
</ControlTemplate>
|
|
|
|
|
|
</UserControl.Resources>
|
|
|
-
|
|
|
+
|
|
|
<Grid>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
- <ColumnDefinition Width="250"/>
|
|
|
+ <ColumnDefinition Width="250" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
@@ -186,40 +213,39 @@
|
|
|
CurrentCellActivating="DataGrid_OnCurrentCellActivating"
|
|
|
PreviewMouseDown="DataGrid_OnPreviewMouseDown"
|
|
|
PreviewMouseUp="DataGrid_OnPreviewMouseUp"
|
|
|
- MouseUp="DataGrid_OnMouseUp"
|
|
|
- >
|
|
|
+ MouseUp="DataGrid_OnMouseUp">
|
|
|
</Syncfusion:SfDataGrid>
|
|
|
-
|
|
|
- <dynamicGrid:DynamicTabControl TabStripPlacement="Bottom" Grid.Column="1" Margin="5,0,0,0">
|
|
|
+
|
|
|
+ <dynamicGrid:DynamicTabControl TabStripPlacement="Bottom" Grid.Column="1" Margin="5,0,0,0">
|
|
|
|
|
|
<dynamicGrid:DynamicTabItem Header="Assignments">
|
|
|
- <Grid>
|
|
|
+ <Grid Margin="0,0,0,2">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*" x:Name="AvailableEmployeesRow"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="*" x:Name="AvailableEmployeesRow" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
-
|
|
|
- <local:JobPlannerEmployeeGrid
|
|
|
- x:Name="AvailableEmployees"
|
|
|
- Action="Assign"
|
|
|
- Grid.Row="0"
|
|
|
- SizeChanged="AvailableEmployees_OnSizeChanged"
|
|
|
+
|
|
|
+ <local:JobPlannerEmployeeGrid
|
|
|
+ x:Name="AvailableEmployees"
|
|
|
+ Action="Assign"
|
|
|
+ Grid.Row="0"
|
|
|
+ SizeChanged="AvailableEmployees_OnSizeChanged"
|
|
|
OnAction="AvailableEmployees_OnOnAction"
|
|
|
- AfterRefresh="AvailableEmployees_OnAfterRefresh"/>
|
|
|
-
|
|
|
- <Syncfusion:SfGridSplitter
|
|
|
+ AfterRefresh="AvailableEmployees_OnAfterRefresh" />
|
|
|
+
|
|
|
+ <Syncfusion:SfGridSplitter
|
|
|
Grid.Row="1" Grid.Column="0"
|
|
|
- ResizeBehavior="PreviousAndNext"
|
|
|
- Height="4"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
+ ResizeBehavior="PreviousAndNext"
|
|
|
+ Height="4"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
- Background="Transparent"
|
|
|
+ Background="Transparent"
|
|
|
Template="{StaticResource HorizontalSplitter}">
|
|
|
|
|
|
<Syncfusion:SfGridSplitter.PreviewStyle>
|
|
@@ -238,17 +264,17 @@
|
|
|
</Syncfusion:SfGridSplitter.PreviewStyle>
|
|
|
|
|
|
</Syncfusion:SfGridSplitter>
|
|
|
-
|
|
|
- <local:JobPlannerEmployeeGrid
|
|
|
- x:Name="AssignedEmployees"
|
|
|
- Action="Remove"
|
|
|
- Grid.Row="2"
|
|
|
+
|
|
|
+ <local:JobPlannerEmployeeGrid
|
|
|
+ x:Name="AssignedEmployees"
|
|
|
+ Action="Remove"
|
|
|
+ Grid.Row="2"
|
|
|
OnAction="AssignedEmployees_OnOnAction"
|
|
|
- AfterRefresh="AssignedEmployees_OnAfterRefresh"/>
|
|
|
-
|
|
|
+ AfterRefresh="AssignedEmployees_OnAfterRefresh" />
|
|
|
+
|
|
|
<DockPanel Grid.Row="3" Margin="0,5,0,0">
|
|
|
<Label Content="Activity" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
|
|
|
- <ComboBox x:Name="ActivityType" DockPanel.Dock="Left" Margin="5,0,0,0"
|
|
|
+ <ComboBox x:Name="ActivityType" DockPanel.Dock="Left" Margin="5,0,0,0"
|
|
|
SelectionChanged="ActivityType_OnSelectionChanged" VerticalContentAlignment="Center"
|
|
|
SelectedValuePath="ID" DisplayMemberPath="Name">
|
|
|
</ComboBox>
|
|
@@ -256,37 +282,41 @@
|
|
|
|
|
|
</Grid>
|
|
|
</dynamicGrid:DynamicTabItem>
|
|
|
-
|
|
|
+
|
|
|
<dynamicGrid:DynamicTabItem Header="Settings">
|
|
|
- <Grid>
|
|
|
+ <Grid Margin="0,0,0,2">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="300" x:Name="TeamSelectorRow"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="*"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
- <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="300" x:Name="TeamSelectorRow" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
-
|
|
|
+
|
|
|
<DockPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">
|
|
|
- <Border BorderBrush="Black" BorderThickness="0.75,0.75,0.75,0" DockPanel.Dock="Top" Background="Gainsboro" Padding="0">
|
|
|
- <Label Content="Employees" HorizontalAlignment="Center" Margin="-2"/>
|
|
|
+ <Border BorderBrush="Black" BorderThickness="0.75,0.75,0.75,0" DockPanel.Dock="Top"
|
|
|
+ Background="Gainsboro" Padding="0">
|
|
|
+ <Label Content="Employees" HorizontalAlignment="Center" Margin="-2" />
|
|
|
</Border>
|
|
|
- <local:TeamSelector x:Name="TeamSelector" DockPanel.Dock="Top" SettingsChanged="TeamSelector_OnSettingsChanged" SelectionChanged="TeamSelector_OnSelectionChanged"/>
|
|
|
+ <local:TeamSelector x:Name="TeamSelector" DockPanel.Dock="Top"
|
|
|
+ SettingsChanged="TeamSelector_OnSettingsChanged"
|
|
|
+ SelectionChanged="TeamSelector_OnSelectionChanged" />
|
|
|
</DockPanel>
|
|
|
-
|
|
|
- <Syncfusion:SfGridSplitter
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="0"
|
|
|
+
|
|
|
+ <Syncfusion:SfGridSplitter
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="0"
|
|
|
Grid.ColumnSpan="2"
|
|
|
ResizeBehavior="PreviousAndNext"
|
|
|
Height="4"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="Transparent"
|
|
|
Template="{StaticResource HorizontalSplitter}">
|
|
@@ -308,46 +338,58 @@
|
|
|
|
|
|
</Syncfusion:SfGridSplitter>
|
|
|
|
|
|
- <local:JobSelector
|
|
|
- x:Name="JobSelector"
|
|
|
- Grid.Row="2"
|
|
|
- Grid.Column="0"
|
|
|
- Grid.ColumnSpan="2"
|
|
|
- SettingsChanged="JobSelector_OnSettingsChanged"
|
|
|
+ <local:JobSelector
|
|
|
+ x:Name="JobSelector"
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ SettingsChanged="JobSelector_OnSettingsChanged"
|
|
|
SelectionChanged="JobSelector_OnSelectionChanged"
|
|
|
- SizeChanged="JobSelector_OnSizeChanged"/>
|
|
|
-
|
|
|
+ SizeChanged="JobSelector_OnSizeChanged" />
|
|
|
+
|
|
|
<Label Content="Window" Grid.Row="3" VerticalContentAlignment="Center" Margin="0,5,0,0" Height="25" />
|
|
|
- <ComboBox x:Name="ViewWindow" Grid.Row="3" Grid.Column="1" Margin="5,5,0,0"
|
|
|
+ <ComboBox x:Name="ViewWindow" Grid.Row="3" Grid.Column="1" Margin="5,5,0,0"
|
|
|
SelectionChanged="ViewWindow_OnSelectionChanged" VerticalContentAlignment="Center"
|
|
|
SelectedValuePath="Key" DisplayMemberPath="Value">
|
|
|
</ComboBox>
|
|
|
-
|
|
|
- <Label Content="Hrs / Day" Grid.Row="4" VerticalContentAlignment="Center" Margin="0,5,0,0" Height="25" />
|
|
|
+
|
|
|
+ <Label Content="Hrs / Day" Grid.Row="4" VerticalContentAlignment="Center" Margin="0,5,0,0"
|
|
|
+ Height="25" />
|
|
|
<DockPanel Grid.Row="4" Grid.Column="1" Margin="5,5,0,0">
|
|
|
<Button DockPanel.Dock="Left" Padding="2" BorderThickness="0.75,0.75,0,0.75" Background="White"
|
|
|
BorderBrush="Gray" Click="HoursSelector_Down_Click">
|
|
|
<Image Source="pack://application:,,,/Resources/leftarrow.png" Height="20" Width="20" />
|
|
|
</Button>
|
|
|
- <Button DockPanel.Dock="Right" Padding="2" BorderThickness="0,0.75,0.75,0.75" Background="White"
|
|
|
+ <Button DockPanel.Dock="Right" Padding="2" BorderThickness="0,0.75,0.75,0.75"
|
|
|
+ Background="White"
|
|
|
BorderBrush="Gray" Click="HoursSelector_Up_Click">
|
|
|
<Image Source="pack://application:,,,/Resources/rightarrow.png" Height="20" Width="20" />
|
|
|
</Button>
|
|
|
- <TextBox x:Name="HoursSelector" IsReadOnly="True" DockPanel.Dock="Left" BorderThickness="0,0.75,0,0.75"
|
|
|
- BorderBrush="Gray" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
|
+ <TextBox x:Name="HoursSelector" IsReadOnly="True" DockPanel.Dock="Left"
|
|
|
+ BorderThickness="0,0.75,0,0.75"
|
|
|
+ BorderBrush="Gray" HorizontalContentAlignment="Center"
|
|
|
+ VerticalContentAlignment="Center" />
|
|
|
</DockPanel>
|
|
|
-
|
|
|
- <Label Content="Leave" Margin="0,5,0,0" VerticalContentAlignment="Center" Grid.Row="5"/>
|
|
|
- <ComboBox x:Name="LeaveType" Margin="5,5,0,0" SelectionChanged="LeaveType_OnSelectionChanged" VerticalContentAlignment="Center" Grid.Row="5" Grid.Column="1">
|
|
|
+
|
|
|
+ <Label Content="Leave" Margin="0,5,0,0" VerticalContentAlignment="Center" Grid.Row="5" />
|
|
|
+ <ComboBox x:Name="LeaveType" Margin="5,5,0,0" SelectionChanged="LeaveType_OnSelectionChanged"
|
|
|
+ VerticalContentAlignment="Center" Grid.Row="5" Grid.Column="1">
|
|
|
<ComboBoxItem Content="Approved Only" />
|
|
|
<ComboBoxItem Content="Show All" />
|
|
|
</ComboBox>
|
|
|
-
|
|
|
+
|
|
|
+ <Label Content="Orientation" Margin="0,5,0,0" VerticalContentAlignment="Center" Grid.Row="6" />
|
|
|
+ <ComboBox x:Name="Orientation" Margin="5,5,0,0" SelectionChanged="Orientation_OnSelectionChanged"
|
|
|
+ VerticalContentAlignment="Center" Grid.Row="6" Grid.Column="1">
|
|
|
+ <ComboBoxItem Content="Horizontal" />
|
|
|
+ <ComboBoxItem Content="Vertical" />
|
|
|
+ </ComboBox>
|
|
|
+
|
|
|
</Grid>
|
|
|
</dynamicGrid:DynamicTabItem>
|
|
|
-
|
|
|
- </dynamicGrid:DynamicTabControl>
|
|
|
+
|
|
|
+ </dynamicGrid:DynamicTabControl>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
-</UserControl>
|
|
|
+</UserControl>
|