1436 lines
105 KiB
XML
1436 lines
105 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.AdditionalServiceView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converter="clr-namespace:BeWo.Converter"
|
|
xmlns:detail="clr-namespace:BeWo.View.Detail"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v23.2"
|
|
xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
|
|
xmlns:grid="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v23.2.Core"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localViewControls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:localViewModel="clr-namespace:BeWo.ViewModel"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:shared2="clr-namespace:BS.Shared;assembly=BS.Shared"
|
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:t="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
xmlns:ve="http://schemas.devexpress.com/winfx/2008/xaml/docking/visualelements"
|
|
x:Name="_this"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
<localView:BeWoView.Resources>
|
|
<Style x:Key="DockPanelMaximizeButtonStyle" TargetType="{x:Type Button}">
|
|
<Style.Setters>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid
|
|
x:Name="Button"
|
|
Width="18"
|
|
Height="18"
|
|
ve:DockPane.HitTestType="MaximizeButton"
|
|
Background="Transparent">
|
|
<Grid x:Name="hoveredState" Visibility="Collapsed">
|
|
<Border
|
|
Margin="2,2,0,0"
|
|
Background="#FF000000"
|
|
CornerRadius="2,2,2,2"
|
|
Opacity="0.1" />
|
|
<Border
|
|
Margin="1,1,1,1"
|
|
Padding="1,1,1,1"
|
|
Background="#FF666666"
|
|
CornerRadius="2,2,2,2">
|
|
<Border Padding="1,1,1,1" CornerRadius="1,1,1,1">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFD0E3FB" />
|
|
<GradientStop Offset="1" Color="#FFADD0F6" />
|
|
<GradientStop Offset="0.5" Color="#FFD5E6FA" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<Border CornerRadius="1,1,1,1">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFD1E4FC" />
|
|
<GradientStop Offset="1" Color="#FFAED1F6" />
|
|
<GradientStop Offset="0.5" Color="#FFB5D0F1" />
|
|
<GradientStop Offset="0.5" Color="#FFA4C5ED" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
</Border>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Grid x:Name="pressedState" Visibility="Collapsed">
|
|
<Border
|
|
Margin="2,2,1,0"
|
|
Background="#FFFFFFFF"
|
|
CornerRadius="2,2,2,2"
|
|
Opacity="0.15" />
|
|
<Border
|
|
Margin="1,1,1,1"
|
|
Padding="1,1,1,1"
|
|
Background="#FF333333"
|
|
CornerRadius="2,2,2,2">
|
|
<Border
|
|
Padding="1,1,1,1"
|
|
Background="#FF555555"
|
|
CornerRadius="1,1,1,1" />
|
|
</Border>
|
|
</Grid>
|
|
<Border
|
|
x:Name="glyph"
|
|
Width="10"
|
|
Height="10"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="#00FFFEFE">
|
|
<Grid
|
|
x:Name="grid"
|
|
Width="10"
|
|
Height="8">
|
|
<Path
|
|
x:Name="path2"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Data="F1 M 1182,761L 1192,761L 1192,769L 1182,769L 1182,761 Z M 1183,764L 1183,768L 1191,768L 1191,764L 1183,764 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
<Path
|
|
x:Name="path3"
|
|
Height="1"
|
|
Margin="0,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top"
|
|
Data="F1 M 1182,761L 1192,761L 1192,762L 1182,762L 1182,761 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="hoveredState" Property="Visibility" Value="Visible" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style.Setters>
|
|
</Style>
|
|
<Style x:Key="DockPanelRestoreButtonStyle" TargetType="{x:Type Button}">
|
|
<Style.Setters>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid
|
|
x:Name="Button"
|
|
Width="18"
|
|
Height="18"
|
|
ve:DockPane.HitTestType="RestoreButton"
|
|
Background="Transparent">
|
|
<Grid x:Name="hoveredState" Visibility="Collapsed">
|
|
<Border
|
|
Margin="2,2,0,0"
|
|
Background="#FF000000"
|
|
CornerRadius="2,2,2,2"
|
|
Opacity="0.1" />
|
|
<Border
|
|
Margin="1,1,1,1"
|
|
Padding="1,1,1,1"
|
|
Background="#FF666666"
|
|
CornerRadius="2,2,2,2">
|
|
<Border Padding="1,1,1,1" CornerRadius="1,1,1,1">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFD0E3FB" />
|
|
<GradientStop Offset="1" Color="#FFADD0F6" />
|
|
<GradientStop Offset="0.5" Color="#FFD5E6FA" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<Border CornerRadius="1,1,1,1">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#FFD1E4FC" />
|
|
<GradientStop Offset="1" Color="#FFAED1F6" />
|
|
<GradientStop Offset="0.5" Color="#FFB5D0F1" />
|
|
<GradientStop Offset="0.5" Color="#FFA4C5ED" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
</Border>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
<Grid x:Name="pressedState" Visibility="Collapsed">
|
|
<Border
|
|
Margin="2,2,1,0"
|
|
Background="#FFFFFFFF"
|
|
CornerRadius="2,2,2,2"
|
|
Opacity="0.15" />
|
|
<Border
|
|
Margin="1,1,1,1"
|
|
Padding="1,1,1,1"
|
|
Background="#FF333333"
|
|
CornerRadius="2,2,2,2">
|
|
<Border
|
|
Padding="1,1,1,1"
|
|
Background="#FF555555"
|
|
CornerRadius="1,1,1,1" />
|
|
</Border>
|
|
</Grid>
|
|
<Border
|
|
x:Name="glyph"
|
|
Width="10"
|
|
Height="10"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="#00FFFEFE">
|
|
<Grid
|
|
Width="10"
|
|
Height="9"
|
|
Margin="0,1,0,0">
|
|
<Path
|
|
x:Name="path"
|
|
Margin="2,0.001,0,3.999"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Data="F1 M 1142,761.001L 1150,761.001L 1150,766L 1142,766L 1142,761.001 Z M 1143,763.001L 1143,765L 1149,765L 1149,763.001L 1143,763.001 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
<Path
|
|
x:Name="path3"
|
|
Margin="0,3,2,1"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Data="F1 M 1140,764.001L 1148,764L 1148,769L 1140,769.001L 1140,764.001 Z M 1141,766L 1141,768.001L 1147,768L 1147,766L 1141,766 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
<Path
|
|
x:Name="path1"
|
|
Height="1"
|
|
Margin="2,0,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top"
|
|
Data="F1 M 1142,761L 1150,761L 1150,762L 1142,762L 1142,761 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
<Path
|
|
x:Name="path6"
|
|
Height="1"
|
|
Margin="0,3,2,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Top"
|
|
Data="F1 M 1140,764L 1148,764L 1148,765L 1140,765L 1140,764 Z "
|
|
Fill="#FF555555"
|
|
Stretch="Fill" />
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="hoveredState" Property="Visibility" Value="Visible" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style.Setters>
|
|
</Style>
|
|
<ControlTemplate x:Key="ServiceRecordListBoxTemplate" TargetType="{x:Type ListBox}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
SnapsToDevicePixels="True">
|
|
<ScrollViewer
|
|
Padding="{TemplateBinding Padding}"
|
|
Focusable="False"
|
|
HorizontalScrollBarVisibility="Disabled">
|
|
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</ScrollViewer>
|
|
</Border>
|
|
</ControlTemplate>
|
|
<Style x:Key="ServiceRecordListStyle" TargetType="{x:Type ListBox}">
|
|
<Setter Property="Template" Value="{StaticResource ServiceRecordListBoxTemplate}" />
|
|
<Setter Property="Padding" Value="2,0,2,2" />
|
|
</Style>
|
|
|
|
<Style x:Key="serviceRecordListBoxItemStyle" TargetType="{x:Type ListBoxItem}">
|
|
<Setter Property="Background" Value="#00FFFFFF" />
|
|
<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
|
|
<Setter Property="Padding" Value="2,0,0,0" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ListBoxItem}">
|
|
<Border
|
|
x:Name="Bd"
|
|
Padding="{TemplateBinding Padding}"
|
|
Background="{TemplateBinding Background}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
SnapsToDevicePixels="True">
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
Content="{TemplateBinding Content}"
|
|
ContentStringFormat="{TemplateBinding ContentStringFormat}"
|
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
</Border>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<ObjectDataProvider
|
|
x:Key="Monat"
|
|
MethodName="GetValues"
|
|
ObjectType="{x:Type sys:Enum}">
|
|
<ObjectDataProvider.MethodParameters>
|
|
<x:Type TypeName="shared2:Monat" />
|
|
</ObjectDataProvider.MethodParameters>
|
|
</ObjectDataProvider>
|
|
<Style
|
|
x:Key="customCellStyle"
|
|
BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=LightweightCellStyle}}"
|
|
TargetType="dxg:LightweightCellEditor">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<MultiBinding Converter="{converter:CellColorConverter}">
|
|
<Binding />
|
|
<Binding Path="Column.Header" />
|
|
</MultiBinding>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</localView:BeWoView.Resources>
|
|
<Grid x:Name="rootGrid">
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel
|
|
Margin="0,11,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\HistoryDisabled.png">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1.3" ScaleY="1.3" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="-2" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
BorderThickness="0,0,0,0"
|
|
FontSize="22"
|
|
Foreground="{DynamicResource MainGroupBoxForegroundBrush}"
|
|
Text="Ergänzende Dienste" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid>
|
|
<Grid
|
|
x:Name="DetailContentGrid"
|
|
Margin="0,3,0,0"
|
|
Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{DynamicResource ServiceRecordContentBrush}" />
|
|
<Grid
|
|
x:Name="root"
|
|
Grid.Row="1"
|
|
Margin="8,0,8,-8">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Margin="0,3,0,0"
|
|
Orientation="Horizontal"
|
|
Visibility="Collapsed" />
|
|
<Grid
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="0,3,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid>
|
|
<Grid
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0">
|
|
<GroupBox
|
|
x:Name="GroupBoxAdditionalService"
|
|
Width="250"
|
|
Margin="0,0,0,-3"
|
|
Padding="0"
|
|
Header="Ergänzende Dienste"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Content="Bereich: " />
|
|
<ComboBox
|
|
x:Name="Bereichscombobox"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
ItemsSource="{Binding Path=AdditionalServices}"
|
|
SelectedIndex="0"
|
|
SelectionChanged="BereichsComboboxChange" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Angebot: " />
|
|
<ComboBox
|
|
x:Name="Angebotscombobox"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
SelectedIndex="0"
|
|
SelectionChanged="AngebotsComboboxChange" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Datum: " />
|
|
<dxe:DateEdit
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{val:ValidationBinding Mode=TwoWay,
|
|
Path=AdditionalServiceBookings.NewVM.Date}" />
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Content="Startzeit" />
|
|
<Grid Grid.Row="3" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="60" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<dxe:TextEdit
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.StartTimeEditString, UpdateSourceTrigger=PropertyChanged}"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False" />
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Content="Endzeit" />
|
|
<dxe:TextEdit
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.EndTimeEditString, UpdateSourceTrigger=PropertyChanged}"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Content="Dauer (min)" />
|
|
<dxe:SpinEdit
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
AllowNullInput="False"
|
|
EditValue="{Binding Mode=TwoWay, Path=AdditionalServiceBookings.NewVM.RoundedDuration, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"
|
|
Increment="5"
|
|
IsFloatValue="False"
|
|
MinValue="0" />
|
|
</Grid>
|
|
<Grid
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,10,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<localViewControls:MultiEmployeeSelectionControl
|
|
x:Name="MultiEmployeeControlAddServ"
|
|
Grid.Row="0"
|
|
MinHeight="100"
|
|
MaxHeight="200"
|
|
Margin="5,3,0,0"
|
|
VerticalAlignment="Top"
|
|
Visibility="Visible" />
|
|
<localViewControls:MultiAddServGroupOfPeopleSelectionControl
|
|
x:Name="MultiAddServGroupOfPeopleSelectionControl"
|
|
Grid.Row="1"
|
|
MinHeight="100"
|
|
VerticalAlignment="Top"
|
|
HorizontalContentAlignment="Stretch"
|
|
PropertyChanged="MultiAddServGroupOfPeopleSelectionControl_OnPropertyChanged"
|
|
Visibility="Visible" />
|
|
</Grid>
|
|
<Button
|
|
x:Name="button_ADadd"
|
|
Grid.Row="6"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="4"
|
|
HorizontalAlignment="Right"
|
|
BorderThickness="3"
|
|
Click="button_ADadd_Click"
|
|
Content="Buchen"
|
|
FontWeight="Normal" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
<Grid
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Margin="10,10,0,0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button
|
|
Grid.Column="0"
|
|
Click="FLSAnlegenBtn_OnClick"
|
|
Content="FLS anlegen" />
|
|
<Label
|
|
x:Name="MonatsLabel"
|
|
Grid.Column="1"
|
|
Content="Monat" />
|
|
<ComboBox
|
|
x:Name="MonatsCombobox"
|
|
Grid.Column="2"
|
|
MinWidth="90"
|
|
ItemsSource="{Binding Source={StaticResource Monat}}"
|
|
SelectedItem="{Binding Path=SelectedMonth}" />
|
|
<Label
|
|
x:Name="JahresLabel"
|
|
Grid.Column="3"
|
|
Content="Jahr" />
|
|
<ComboBox
|
|
x:Name="JahresCombobox"
|
|
Grid.Column="4"
|
|
MinWidth="75"
|
|
ItemsSource="{Binding Path=Years}"
|
|
SelectedItem="{Binding Path=SelectedYear}" />
|
|
<TextBlock
|
|
x:Name="TextblockLinkPdfexport2"
|
|
Grid.Column="5"
|
|
Margin="5,0,5,3"
|
|
HorizontalAlignment="Right"
|
|
FontSize="14">
|
|
<Hyperlink
|
|
x:Name="LinkPdfExport2"
|
|
Foreground="#FF2B508B"
|
|
RequestNavigate="LinkPdfExport2_OnRequestNavigate"
|
|
TargetName="_NewWindow">
|
|
<Run Text="Drucken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Margin="0,5,0,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid
|
|
x:Name="FLSInfoGrid"
|
|
Grid.Row="0"
|
|
VerticalAlignment="Top"
|
|
Visibility="Collapsed">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<localViewControls:SingleSupportConceptSelectionControl
|
|
x:Name="SupportConceptSelectionControl"
|
|
Width="250"
|
|
Height="62"
|
|
Margin="0,0,10,0"
|
|
VerticalAlignment="Top"
|
|
HorizontalContentAlignment="Stretch"
|
|
ItemSelected="supportConceptSelectionControl_ItemSelected" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
FontSize="14"
|
|
Foreground="{DynamicResource BigInfoTextBrush}"
|
|
Text="{Binding Path=FLSInformationStringLabels, Mode=OneWay}" />
|
|
<TextBlock
|
|
Grid.Column="2"
|
|
Margin="10,0,0,0"
|
|
FontSize="14"
|
|
Foreground="{DynamicResource BigInfoTextBrush}"
|
|
Text="{Binding Path=FLSInformationStringContent, Mode=OneWay}" />
|
|
<StackPanel
|
|
Grid.Column="3"
|
|
Margin="8,-3,0,0"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal"
|
|
Visibility="{Binding Path=IsCustomerWarningActive, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Button
|
|
HorizontalAlignment="Left"
|
|
Content="I"
|
|
Style="{DynamicResource WarningButton}">
|
|
<Button.ToolTip>
|
|
<TextBlock Text="{Binding Path=CustomerWarning}" />
|
|
</Button.ToolTip>
|
|
</Button>
|
|
<TextBlock
|
|
Margin="5,3,0,0"
|
|
FontSize="14"
|
|
Foreground="#B80000"
|
|
Text="{markup:Translate Der Klient ist in dieser Woche abwesened}">
|
|
<TextBlock.ToolTip>
|
|
<TextBlock Text="{Binding Path=CustomerWarning}" />
|
|
</TextBlock.ToolTip>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
<Grid
|
|
x:Name="FLSGrid"
|
|
Grid.Row="1"
|
|
Visibility="Collapsed">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox
|
|
x:Name="GroupBoxNeueLeistung"
|
|
Grid.Column="1"
|
|
Margin="0,0,0,-3"
|
|
Padding="0,0,0,0"
|
|
Header="Neue Leistung hinzufügen"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid x:Name="GridNeueLeistung">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid x:Name="NewObjectInfoGrid">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="1" Grid.Column="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Content="{t:Translate MitarbeiterSingular}" />
|
|
<uc:PopUpEdit
|
|
x:Name="PopupeditEmployee"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_employee_PopUpClick" />
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="0">
|
|
<Label Content="Ziele" Visibility="{Binding Path=PrototypeVM.IsGoalTreeVisible, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Margin="0">
|
|
<StackPanel
|
|
Margin="3,0,3,0"
|
|
Orientation="Horizontal"
|
|
Visibility="{Binding Path=PrototypeVM.IsGoalTreeVisible, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<localViewControls:ComboBoxTreeViewControl
|
|
x:Name="ComboBoxTreeViewControl"
|
|
Margin="-3,0,3,0"
|
|
TreeViewSourceList="{Binding Path=PrototypeVM.GoalTree, Mode=TwoWay}" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Kategorie" />
|
|
<ComboBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
ItemsSource="{Binding Path=PrototypeVM.SortedCategories}"
|
|
SelectedIndex="0"
|
|
SelectedItem="{val:ValidationBinding Path=PrototypeVM.Category}" />
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Content="Leistung" />
|
|
<ComboBox
|
|
x:Name="ComboboxServices"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
ItemsSource="{Binding Path=PrototypeVM.PossibleServiceDescriptions}"
|
|
SelectedIndex="0"
|
|
SelectedItem="{val:ValidationBinding Path=PrototypeVM.ServiceDescription}" />
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Content="Datum" />
|
|
<dxe:DateEdit
|
|
x:Name="DatepickerNewDate"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{val:ValidationBinding Mode=TwoWay,
|
|
Path=PrototypeVM.EditStartDate}" />
|
|
<Label
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Content="Startzeit" />
|
|
<Grid Grid.Row="5" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="60" />
|
|
</Grid.ColumnDefinitions>
|
|
<dxe:TextEdit
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.StartTimeString, UpdateSourceTrigger=PropertyChanged}"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False" />
|
|
<Label Grid.Column="1" Content="Endzeit" />
|
|
<dxe:TextEdit
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
EditValue="{Binding Mode=TwoWay, Path=PrototypeVM.EndTimeString, UpdateSourceTrigger=PropertyChanged}"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False" />
|
|
</Grid>
|
|
<Grid Grid.Row="6" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="60" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Grid.Column="1" Content="Dauer (min)" />
|
|
<dxe:SpinEdit
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3,0,3,3"
|
|
AllowNullInput="False"
|
|
EditValue="{Binding Path=PrototypeVM.Duration, Mode=TwoWay, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"
|
|
Increment="5"
|
|
IsFloatValue="False"
|
|
MinValue="0" />
|
|
</Grid>
|
|
<StackPanel
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="3"
|
|
MaxWidth="320"
|
|
HorizontalAlignment="Left"
|
|
Visibility="Collapsed">
|
|
<Label Content="{Binding Path=PrototypeVM.Date, Converter={StaticResource Date2CalendarWeekStringConverter}}" />
|
|
<WrapPanel x:Name="WrapPanelDays" />
|
|
</StackPanel>
|
|
<Label
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Content="Dokumentation" />
|
|
<TextBox
|
|
Grid.Row="8"
|
|
Grid.RowSpan="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
VerticalAlignment="Stretch"
|
|
AcceptsReturn="True"
|
|
AutoWordSelection="True"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
Text="{val:ValidationBinding Path=PrototypeVM.Notice,
|
|
UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
</Grid>
|
|
</Grid>
|
|
<Grid Grid.Row="1" Margin="0,0,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Margin="0,0,3,0"
|
|
VerticalAlignment="Center"
|
|
Foreground="#FF000000"
|
|
Text="{Binding Path=Information}"
|
|
TextWrapping="Wrap" />
|
|
<Button
|
|
x:Name="ButtonAdd"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="4"
|
|
BorderThickness="3,3,3,3"
|
|
Click="button_add_Click"
|
|
Content="Speichern"
|
|
FontWeight="Normal" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</GroupBox>
|
|
<Grid
|
|
x:Name="ServiceRecordListContent"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
MinWidth="300"
|
|
Margin="0,0,0,25">
|
|
<ListBox
|
|
x:Name="SrListBox"
|
|
HorizontalContentAlignment="Stretch"
|
|
AlternationCount="-1"
|
|
Background="{x:Null}"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemContainerStyle="{DynamicResource serviceRecordListBoxItemStyle}"
|
|
ItemTemplate="{DynamicResource ServiceRecordListBoxItemTemplate}"
|
|
MouseDoubleClick="serviceRecordListBox_MouseDoubleClick"
|
|
ScrollViewer.CanContentScroll="True"
|
|
Style="{DynamicResource ServiceRecordListStyle}"
|
|
TabIndex="1">
|
|
<ListBox.Resources>
|
|
<DataTemplate x:Key="ServiceRecordListBoxItemTemplate" DataType="{x:Type localViewModel:ServiceRecordVM}">
|
|
<Grid
|
|
x:Name="template"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<Border
|
|
x:Name="ItemBorder"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
Margin="0,0,0,3"
|
|
Padding="6"
|
|
Background="{Binding Path=BackgroundBrush}"
|
|
BorderBrush="#FF7E7E7E"
|
|
BorderThickness="1,1,1,1"
|
|
CornerRadius="4,4,4,4">
|
|
<Grid TextBlock.Foreground="{Binding Path=TextBlock.Foreground, RelativeSource={RelativeSource TemplatedParent}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="12" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="12" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="17" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="14" />
|
|
<RowDefinition Height="24" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Text="Minuten (gerundet):" />
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Text="Leistungskategorie:" />
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Text="Leistung:" />
|
|
<TextBlock
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Text="Angelegt von:"
|
|
Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:AdditionalServiceView}}, Path=InsertedOnAndByVisibility}" />
|
|
<TextBlock
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Text="Angelegt am:"
|
|
Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:AdditionalServiceView}}, Path=InsertedOnAndByVisibility}" />
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="5"
|
|
FontSize="13"
|
|
FontWeight="Bold"
|
|
Foreground="#FF494949"
|
|
Text="{Binding Path=LongDateString}" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Background="{x:Null}"
|
|
FontWeight="Bold"
|
|
Foreground="#FF4E7BC4"
|
|
Text="{Binding Path=DurationAndRoundedDuration}" />
|
|
<TextBlock
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Text="{Binding Path=Category}" />
|
|
<TextBlock
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Text="{Binding Path=ServiceDescription}" />
|
|
<TextBlock
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Text="{Binding Path=EmployeeName}"
|
|
Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:AdditionalServiceView}}, Path=InsertedOnAndByVisibility}" />
|
|
<TextBlock
|
|
Grid.Row="5"
|
|
Grid.Column="2"
|
|
Text="{Binding Path=InsertedOn}"
|
|
Visibility="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type detail:AdditionalServiceView}}, Path=InsertedOnAndByVisibility}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.RowSpan="6"
|
|
Grid.Column="4"
|
|
MaxHeight="200"
|
|
Margin="0,0,0,15"
|
|
HorizontalAlignment="Stretch"
|
|
AutoWordSelection="True"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
BorderThickness="0"
|
|
Focusable="True"
|
|
GotFocus="TextBox_GotFocus"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
IsEnabled="True"
|
|
IsReadOnly="True"
|
|
SnapsToDevicePixels="True"
|
|
Tag="{Binding}"
|
|
Text="{Binding Path=Notice}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
<StackPanel
|
|
Grid.Row="6"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="3"
|
|
Margin="0,7,0,0"
|
|
Orientation="Horizontal">
|
|
<TextBlock Text="Ziele:" Visibility="{Binding Path=HasGoals, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
<TextBlock
|
|
Margin="3,0,3,0"
|
|
Text="{Binding Path=GoalString}"
|
|
ToolTip="{Binding Path=GoalString}" />
|
|
</StackPanel>
|
|
|
|
<Button
|
|
x:Name="btnEdit"
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Width="32"
|
|
Height="22"
|
|
Margin="0,0,0,0"
|
|
Padding="1,1,1,1"
|
|
HorizontalAlignment="Left"
|
|
BorderThickness="1,1,1,1"
|
|
Click="btnEdit_Click"
|
|
Style="{DynamicResource GlassButton}"
|
|
Tag="{Binding}"
|
|
Visibility="{Binding Path=EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Image
|
|
Margin="1,1,1,1"
|
|
Source="..\..\Ressources\Icons\Symbol Edit.png"
|
|
Stretch="Uniform" />
|
|
</Button>
|
|
<Button
|
|
x:Name="btnDelete"
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Width="32"
|
|
Height="22"
|
|
Margin="35,0,0,0"
|
|
Padding="1,1,1,1"
|
|
HorizontalAlignment="Left"
|
|
BorderThickness="1,1,1,1"
|
|
Click="btnDelete_Click"
|
|
Style="{DynamicResource GlassButton}"
|
|
Tag="{Binding}"
|
|
Visibility="{Binding Path=EditAllowed, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Image
|
|
Margin="1,1,1,1"
|
|
Source="..\..\Ressources\Icons\Symbol Delete.png"
|
|
Stretch="Uniform" />
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<DataTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="Background" Value="{Binding Path=MouseOverBackgroundBrush}" />
|
|
</Trigger>
|
|
<DataTrigger Binding="{Binding Path=IsSelected, RelativeSource={RelativeSource AncestorType={x:Type ListBoxItem}, Mode=FindAncestor}}" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="Background" Value="{Binding Path=SelectedBackgroundBrush}" />
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</ListBox.Resources>
|
|
</ListBox>
|
|
</Grid>
|
|
<TextBlock
|
|
x:Name="TxtServiceListCount"
|
|
Grid.Column="1"
|
|
Margin="5,0,5,3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
FontSize="14"
|
|
Foreground="#FF2B508B"
|
|
Text="{Binding Path=RecordCountInformationString}" />
|
|
<StackPanel
|
|
x:Name="StackPanelInfoText"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<TextBlock Margin="5,0,5,3" FontSize="14">
|
|
<Hyperlink
|
|
x:Name="LinkPdfExport"
|
|
Foreground="#FF2B508B"
|
|
RequestNavigate="LinkPdfExport_OnRequestNavigate"
|
|
TargetName="_NewWindow">
|
|
<Run Text="Drucken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
<TextBlock Margin="5,0,5,3" FontSize="14">
|
|
<Hyperlink
|
|
x:Name="LinkExcelExport"
|
|
Foreground="#FF2B508B"
|
|
RequestNavigate="linkExcelExport_RequestNavigate"
|
|
TargetName="newWindow">
|
|
<Run Text="Excel Export" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
<Grid x:Name="PunktebogenRootGrid" Grid.Column="2">
|
|
<Border Width="200" BorderBrush="Green" />
|
|
</Grid>
|
|
</Grid>
|
|
<dxg:GridControl
|
|
x:Name="TeilnahmeGrid"
|
|
Grid.Row="1"
|
|
ItemsSource="{Binding TeilnehmerListe}">
|
|
<dxg:GridControl.Resources>
|
|
<Style
|
|
x:Key="CustomCellStyle"
|
|
BasedOn="{StaticResource {dxgt:GridRowThemeKey ResourceKey=LightweightCellStyle}}"
|
|
TargetType="dxg:LightweightCellEditor">
|
|
<Setter Property="Background">
|
|
<Setter.Value>
|
|
<MultiBinding Converter="{converter:CellColorConverter}">
|
|
<Binding />
|
|
<Binding Path="Column.Header" />
|
|
<Binding Path="RowData.Row" />
|
|
</MultiBinding>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</dxg:GridControl.Resources>
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
AllowEditing="False"
|
|
FieldName="Customer.LastNameFirstName"
|
|
Header="{markup:Translate Klient}" />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t0"
|
|
Header="1." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t1"
|
|
Header="2." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t2"
|
|
Header="3." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t3"
|
|
Header="4." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t4"
|
|
Header="5." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t5"
|
|
Header="6." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t6"
|
|
Header="7." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t7"
|
|
Header="8." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t8"
|
|
Header="9." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t9"
|
|
Header="10." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t10"
|
|
Header="11." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t11"
|
|
Header="12." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t12"
|
|
Header="13." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t13"
|
|
Header="14." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t14"
|
|
Header="15." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t15"
|
|
Header="16." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t16"
|
|
Header="17." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t17"
|
|
Header="18." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t18"
|
|
Header="19." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t19"
|
|
Header="20." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t20"
|
|
Header="21." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t21"
|
|
Header="22." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t22"
|
|
Header="23." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t23"
|
|
Header="24." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t24"
|
|
Header="25." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t25"
|
|
Header="26." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t26"
|
|
Header="27." />
|
|
<dxg:GridColumn
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t27"
|
|
Header="28." />
|
|
<dxg:GridColumn
|
|
x:Name="T28"
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t28"
|
|
Header="29." />
|
|
<dxg:GridColumn
|
|
x:Name="T29"
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t29"
|
|
Header="30." />
|
|
<dxg:GridColumn
|
|
x:Name="T30"
|
|
Width="27"
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
EditSettings="{dxe:CheckSettings}"
|
|
FieldName="t30"
|
|
Header="31." />
|
|
<dxg:GridColumn
|
|
x:Name="ColumnNotice"
|
|
Width="300"
|
|
FieldName="Notice.Notice"
|
|
Header="Bemerkungen">
|
|
<dxg:GridColumn.EditSettings>
|
|
<dxe:MemoEditSettings
|
|
AcceptsReturn="True"
|
|
MemoAcceptsReturn="True"
|
|
MemoTextWrapping="Wrap"
|
|
ShowIcon="False"
|
|
ShowTooltipForTrimmedText="True"
|
|
TextWrapping="Wrap" />
|
|
</dxg:GridColumn.EditSettings>
|
|
</dxg:GridColumn>
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
CellValueChanging="GridViewBase_OnCellValueChanging"
|
|
HiddenEditor="GridViewBase_OnHiddenEditor"
|
|
NavigationStyle="Cell"
|
|
PreviewMouseDoubleClick="gridView1_DoubleClick"
|
|
ShowGridMenu="TableView_ShowGridMenu"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="False"
|
|
ShowTotalSummary="False"
|
|
ShowingEditor="TableView_ShowingEditor"
|
|
ShownEditor="pg_ShownEditor"
|
|
Tag="{Binding SelectedBookings}" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid>
|
|
<Grid Grid.Row="2">
|
|
<Button
|
|
x:Name="SaveBtn"
|
|
Margin="4,4,0,4"
|
|
HorizontalAlignment="Right"
|
|
Click="SaveBookingChanges"
|
|
Content="Speichern" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
<Popup
|
|
x:Name="PopupEmployee"
|
|
Width="400"
|
|
Height="400"
|
|
Margin="10"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_CustomerSelected" />
|
|
</Popup>
|
|
</Grid>
|
|
</GroupBox>
|
|
</uc:ShadowChrome>
|
|
<Border x:Name="PopupContent" />
|
|
</Grid>
|
|
</localView:BeWoView> |