244 lines
14 KiB
XML
244 lines
14 KiB
XML
<localView:BeWoView
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler"
|
|
xmlns:dxschv="http://schemas.devexpress.com/winfx/2008/xaml/scheduling/visual"
|
|
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:dxschi="http://schemas.devexpress.com/winfx/2008/xaml/scheduler/internal"
|
|
xmlns:XtraScheduler="clr-namespace:DevExpress.XtraScheduler;assembly=DevExpress.XtraScheduler.v17.1.Core"
|
|
xmlns:controls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:report="clr-namespace:BeWo.View.Detail.Report"
|
|
x:Class="BeWo.View.Detail.Report.AbwesenheitstabelleView"
|
|
Height="Auto" Width="Auto" HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch" Focusable="True">
|
|
<localView:BeWoView.Resources>
|
|
<Style x:Key="VerticalResourceHeaderStyle" TargetType="{x:Type dxschi:VisualResourceHeader}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type dxschi:VisualResourceHeader}">
|
|
<Grid>
|
|
<dxschi:VerticalHeaderControl SnapsToDevicePixels="True" MouseDown="VerticalHeaderControl_MouseDown"
|
|
ResourceColor="{Binding ResourceHeader.Brushes.ResourceHeader}"
|
|
Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
dxschi:SchedulerItemsControl.ElementPosition="{Binding (dxschi:SchedulerItemsControl.ElementPosition), RelativeSource={RelativeSource TemplatedParent}}"
|
|
/>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="ContentTemplate">
|
|
<Setter.Value>
|
|
<DataTemplate>
|
|
<Grid>
|
|
<report:AbwesenheitsEmployeeHeader AbwesenheitsInformationDC="{Binding CustomFields[AbwesenheitsInformationDC]}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<ControlTemplate x:Key="SelectionTemplate">
|
|
<Grid IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Path Opacity="0.7" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Path.Fill>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
|
<GradientStop Color="#F3ECA5" Offset="0" />
|
|
</LinearGradientBrush>
|
|
</Path.Fill>
|
|
<Path.Data>
|
|
<PathGeometry x:Name="Geometry" FillRule="Nonzero" />
|
|
</Path.Data>
|
|
</Path>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
<Style x:Key="TimelineViewCellStyle" TargetType="{x:Type dxschi:VisualSingleTimelineCell}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate x:Name="CellStyleControlTemplate" TargetType="{x:Type dxschi:VisualSingleTimelineCell}">
|
|
<Grid x:Name="cell" SnapsToDevicePixels="True" Background="#FFFFFF">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" SnapsToDevicePixels="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<ContentControl Grid.Row="1"
|
|
x:Name="PART_CONTENT"
|
|
Content="{Binding}" HorizontalContentAlignment="Stretch"
|
|
VerticalContentAlignment="Stretch"
|
|
dxsch:SchedulerControl.HitTestType="Cell"
|
|
IsHitTestVisible="True">
|
|
<ContentControl.ContentTemplate>
|
|
<DataTemplate>
|
|
<Rectangle Fill="Transparent" />
|
|
</DataTemplate>
|
|
</ContentControl.ContentTemplate>
|
|
</ContentControl>
|
|
|
|
</Grid>
|
|
<Rectangle x:Name="bottomBorder" Fill="Gray" Height="1" SnapsToDevicePixels="True" Grid.Row="1" />
|
|
</Grid>
|
|
<Rectangle x:Name="rightBorder" Fill="Gray" Width="1" SnapsToDevicePixels="True" Grid.Column="1" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding IsWorkTime}" Value="False">
|
|
<Setter TargetName="cell" Property="Background" Value="LightGray" />
|
|
<Setter TargetName="rightBorder" Property="Fill" Value="Gray" />
|
|
<Setter TargetName="bottomBorder" Property="Fill" Value="Gray" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding IsHoliday}" Value="True">
|
|
<Setter TargetName="cell" Property="Background" Value="LightPink" />
|
|
<Setter TargetName="rightBorder" Property="Fill" Value="Gray" />
|
|
<Setter TargetName="bottomBorder" Property="Fill" Value="Gray" />
|
|
</DataTrigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
<DataTemplate x:Key="AppointmentTooltipContentTemplate">
|
|
|
|
</DataTemplate>
|
|
|
|
</localView:BeWoView.Resources>
|
|
<Grid>
|
|
<GroupBox Header="Abwesenheiten" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" MinWidth="10"/>
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal">
|
|
<Label Grid.Column="2" Margin="3,3,0,3" Content="Datum:" />
|
|
<controls:MonthPicker Grid.Column="3" x:Name="_MonthPicker" Margin="0,3,3,3" MinWidth="100" HorizontalContentAlignment="Stretch" />
|
|
<dxe:ComboBoxEdit Grid.Column="4" x:Name="_YearPicker" Margin="0,3,3,3" IsManipulationEnabled="False" IsTextEditable="False" MinWidth="55" HorizontalContentAlignment="Stretch"/>
|
|
<Button Content="Erstellen" Margin="3" MinWidth="100" Click="Button_Click"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="2" Grid.Row="0" Orientation="Horizontal">
|
|
<Label Content="Anzahl der angezeigten Tage" Margin="3,3,0,3"/>
|
|
<dxe:SpinEdit x:Name="_SpinEdit" Margin="3" AllowNullInput="False" Height="23" Width="50" IsFloatValue="False" EditValueChanged="SpinEdit_EditValueChanged"/>
|
|
</StackPanel>
|
|
|
|
<StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal">
|
|
<Label Content="Abwesenheitskategorie: " Margin="3,3,0,3" />
|
|
<dxe:ComboBoxEdit x:Name="FilterAbwesenheit" Margin="0,3,3,3" DisplayMember="Description" Width="180">
|
|
<dxe:ComboBoxEdit.StyleSettings>
|
|
<dxe:CheckedComboBoxStyleSettings />
|
|
</dxe:ComboBoxEdit.StyleSettings>
|
|
</dxe:ComboBoxEdit>
|
|
|
|
<Label Content="Beschäftigungsart: " Margin="3,3,0,3"/>
|
|
<dxe:ComboBoxEdit x:Name="FilterBeschaftigungsart" Margin="0,3,3,3" DisplayMember="Name" Width="180">
|
|
<dxe:ComboBoxEdit.StyleSettings>
|
|
<dxe:CheckedComboBoxStyleSettings />
|
|
</dxe:ComboBoxEdit.StyleSettings>
|
|
</dxe:ComboBoxEdit>
|
|
|
|
<Label Content="Team: " Margin="3,3,0,3"/>
|
|
<dxe:ComboBoxEdit x:Name="FilterTeams" Margin="0,3,3,3" DisplayMember="Name" Width="180">
|
|
<dxe:ComboBoxEdit.StyleSettings>
|
|
<dxe:CheckedComboBoxStyleSettings />
|
|
</dxe:ComboBoxEdit.StyleSettings>
|
|
</dxe:ComboBoxEdit>
|
|
</StackPanel>
|
|
|
|
<dxsch:SchedulerControl dx:ThemeManager.ThemeName="Office2010Black" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="3"
|
|
x:Name="_SchedulerControl" ActiveViewType="Timeline" Visibility="Collapsed" GroupType="Resource"
|
|
IsManipulationEnabled="True" AllowDrop="False" IsTabStop="False" EditAppointmentFormShowing="SchedularControl_EditAppointmentFormShowing"
|
|
EditRecurrentAppointmentFormShowing="SchedularControl_EditRecurrentAppointmentFormShowing" FormCustomizationUsingMVVMLocal="False"
|
|
AppointmentViewInfoCustomizing="SchedulerControl_AppointmentViewInfoCustomizing" PopupMenuShowing="SchedulerControl_PopupMenuShowing">
|
|
|
|
<dxsch:SchedulerControl.DefaultMenuCustomizations>
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="NewAllDayEvent" />
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="NewRecurringAppointment" />
|
|
<dxb:RemoveBarItemAndLinkAction ItemName="NewRecurringEvent" />
|
|
</dxsch:SchedulerControl.DefaultMenuCustomizations>
|
|
<dxsch:SchedulerControl.OptionsCustomization>
|
|
<dxsch:OptionsCustomization AllowAppointmentCopy="None" AllowAppointmentCreate="All" AllowAppointmentDelete="None" AllowAppointmentDrag="None"
|
|
AllowAppointmentDragBetweenResources="None" AllowAppointmentEdit="All" AllowAppointmentResize="None" AllowInplaceEditor="None"
|
|
AllowAppointmentMultiSelect="False"/>
|
|
</dxsch:SchedulerControl.OptionsCustomization>
|
|
<dxsch:SchedulerControl.OptionsView>
|
|
<dxsch:OptionsView/>
|
|
</dxsch:SchedulerControl.OptionsView>
|
|
<dxsch:SchedulerControl.OptionsBehavior>
|
|
<dxsch:OptionsBehavior/>
|
|
</dxsch:SchedulerControl.OptionsBehavior>
|
|
<dxsch:SchedulerControl.DayView >
|
|
<dxsch:DayView Enabled="false"/>
|
|
</dxsch:SchedulerControl.DayView>
|
|
<dxsch:SchedulerControl.FullWeekView >
|
|
<dxsch:FullWeekView Enabled="false"/>
|
|
</dxsch:SchedulerControl.FullWeekView>
|
|
<dxsch:SchedulerControl.MonthView >
|
|
<dxsch:MonthView Enabled="False"/>
|
|
</dxsch:SchedulerControl.MonthView>
|
|
<dxsch:SchedulerControl.WeekView >
|
|
<dxsch:WeekView Enabled="false"/>
|
|
</dxsch:SchedulerControl.WeekView>
|
|
<dxsch:SchedulerControl.WorkWeekView>
|
|
<dxsch:WorkWeekView Enabled="false"/>
|
|
</dxsch:SchedulerControl.WorkWeekView>
|
|
<dxsch:SchedulerControl.TimelineView>
|
|
<dxsch:TimelineView ResourcesPerPage="10" IntervalCount="31" TimelineScrollBarVisibility="Auto" AppointmentToolTipVisibility="Never" >
|
|
<dxsch:TimelineView.Scales>
|
|
<XtraScheduler:TimeScaleYear/>
|
|
<XtraScheduler:TimeScaleMonth/>
|
|
<XtraScheduler:TimeScaleDay/>
|
|
</dxsch:TimelineView.Scales>
|
|
<dxsch:TimelineView.AppointmentDisplayOptions>
|
|
<dxsch:SchedulerTimelineViewAppointmentDisplayOptions SnapToCellsMode="Auto" EndTimeVisibility="Never" StartTimeVisibility="Never"/>
|
|
</dxsch:TimelineView.AppointmentDisplayOptions>
|
|
</dxsch:TimelineView>
|
|
</dxsch:SchedulerControl.TimelineView>
|
|
</dxsch:SchedulerControl>
|
|
|
|
<StackPanel Grid.Row="3" Grid.ColumnSpan="3" Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right">
|
|
<TextBlock x:Name="textblock_link_gift_leaveday" Margin="5,0,5,3" FontSize="14">
|
|
<Hyperlink x:Name="linkGiftLeaveday" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="LinkGiftLeaveday_OnRequestNavigate">
|
|
<Run Text="Urlaub schenken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock x:Name="textblock_link_show_as_table" Margin="5,0,5,3" FontSize="14">
|
|
<Hyperlink x:Name="linkShowAsTable" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="LinkShowAsTable_RequestNavigate">
|
|
<Run Text="Tabellarische Ansicht" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock x:Name="textblock_link_pdfexport" Margin="5,0,5,3" FontSize="14">
|
|
<Hyperlink x:Name="linkPdfExport" TargetName="_NewWindow" Foreground="#FF2B508B" RequestNavigate="LinkPdfExport_OnRequestNavigate">
|
|
<Run Text="Drucken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</localView:BeWoView> |