| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <UserControl x:Class="PRSDesktop.TimesheetPanel"
- 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:prs="clr-namespace:PRSDesktop"
- xmlns:local="clr-namespace:PRSDesktop.Panels.Timesheets"
- xmlns:dg="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
- xmlns:sf="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <dg:DynamicSplitPanel x:Name="SplitPanel" AllowableViews="Master,Combined" MasterCaption="Timesheets" Anchor="Detail"
- DetailCaption="Details"
- OnChanged="SplitPanel_OnChanged">
- <dg:DynamicSplitPanel.Header>
- <Border BorderBrush="Gray" Background="WhiteSmoke" BorderThickness="0.75">
- <Label Content="Timesheets" HorizontalContentAlignment="Center"/>
- </Border>
- </dg:DynamicSplitPanel.Header>
- <dg:DynamicSplitPanel.Master>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" CornerRadius="5,5,0,0" Padding="5" Background="WhiteSmoke" BorderBrush="Gray"
- BorderThickness="0.75">
- <DockPanel>
- <Label Content="Show" VerticalContentAlignment="Center" />
- <ComboBox x:Name="View" MinWidth="100" VerticalContentAlignment="Center"
- SelectedIndex="0" SelectionChanged="View_SelectionChanged">
- <ComboBoxItem Content="Today" />
- <ComboBoxItem Content="Yesterday" />
- <ComboBoxItem Content="This Week" />
- <ComboBoxItem Content="Last Week" />
- <ComboBoxItem Content="This Month" />
- <ComboBoxItem Content="Last Month" />
- <ComboBoxItem Content="This Year" />
- <ComboBoxItem Content="Last Year" />
- <ComboBoxItem Content="Custom" />
- </ComboBox>
- <Label x:Name="StartLabel" Content="Starting" VerticalContentAlignment="Center" />
- <DatePicker x:Name="StartPicker" MinWidth="100" VerticalContentAlignment="Center"
- IsEnabled="False" SelectedDateChanged="SelectedDateChanged" />
- <Label x:Name="EndLabel" Content="Ending" VerticalContentAlignment="Center" />
- <DatePicker x:Name="EndPicker" MinWidth="100" VerticalContentAlignment="Center"
- SelectedDateChanged="SelectedDateChanged" />
- <Label x:Name="FutureLabel" Content="Include Future?" VerticalContentAlignment="Center" />
- <CheckBox x:Name="FutureTimes" VerticalContentAlignment="Center"
- Checked="FutureTimes_Checked" Unchecked="FutureTimes_Checked" IsThreeState="False" />
- <Label x:Name="ApprovedLabel" Content="Approved Only?"
- VerticalContentAlignment="Center" />
- <CheckBox x:Name="ApprovedTimes" VerticalContentAlignment="Center"
- Checked="ApprovedTimes_Checked" Unchecked="ApprovedTimes_Checked" IsThreeState="False" />
- <Label Content="Search" VerticalContentAlignment="Center" />
- <TextBox x:Name="Search" KeyUp="Search_KeyUp" />
- </DockPanel>
- </Border>
- <prs:TimesheetGrid x:Name="TimeSheets" Grid.Row="1" Margin="0,2,0,0"
- OnReconfigure="TimeSheets_OnReconfigure"
- OnSelectItem="TimeSheets_OnSelectItem"/>
- </Grid>
- </dg:DynamicSplitPanel.Master>
- <dg:DynamicSplitPanel.DetailHeader>
- <Border BorderBrush="Gray" Background="WhiteSmoke" BorderThickness="0.75">
- <Label Content="Notes" HorizontalContentAlignment="Center"/>
- </Border>
- </dg:DynamicSplitPanel.DetailHeader>
- <dg:DynamicSplitPanel.Detail>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <local:TimesheetNotesGrid x:Name="Notes"
- Grid.Row="0"/>
- <sf:SfGridSplitter
- Grid.Row="1"
- Height="4"
- HorizontalAlignment="Stretch"
- Background="Transparent"
- ResizeBehavior="PreviousAndNext"
- Template="{StaticResource HorizontalSplitter}"
- PreviewStyle="{StaticResource HorizontalSplitterPreview}"/>
-
- <Border BorderBrush="Gray" Background="WhiteSmoke" BorderThickness="0.75"
- Grid.Row="2" Margin="0,0,0,4">
- <Label Content="Assignments" HorizontalContentAlignment="Center"/>
- </Border>
- <local:TimesheetAssignmentGrid x:Name="Assignments"
- Grid.Row="3"/>
- </Grid>
- </dg:DynamicSplitPanel.Detail>
- </dg:DynamicSplitPanel>
- </UserControl>
|