1905 lines
128 KiB
XML
1905 lines
128 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.EmployeeView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
|
|
xmlns:detail="clr-namespace:BeWo.View.Detail"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:security="clr-namespace:BeWo.Security"
|
|
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"
|
|
x:Name="EmployeeBeWoView"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True"
|
|
GotFocus="UserControl_GotFocus">
|
|
<Grid x:Name="rootGrid">
|
|
<Grid.Resources>
|
|
<dxg:GridControl
|
|
x:Key="grid_CustomerRelation"
|
|
Margin="0"
|
|
DataSource="{Binding Path=CustomerRelations.VMList}">
|
|
<dxg:GridControl.Columns>
|
|
<!--<dxg:GridColumn FieldName="Notice" Header="" FixedWidth="True" Width="24" ReadOnly="True" >
|
|
<dxg:GridColumn.DisplayTemplate>
|
|
<ControlTemplate>
|
|
<Button Content="r" IsEnabled="{Binding Path=EditValue}" FontFamily="Webdings" Width="18" Height="18" VerticalAlignment="Center"/>
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.DisplayTemplate>
|
|
<dxg:GridColumn.EditTemplate>
|
|
<ControlTemplate>
|
|
<Button Content="r" IsEnabled="{Binding Path=EditValue}" FontFamily="Webdings" Click="button_removeCustomerRelation_Click" Width="18" Height="18" VerticalAlignment="Center"/>
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.EditTemplate>
|
|
</dxg:GridColumn>-->
|
|
<dxg:GridColumn
|
|
Width="180"
|
|
AllowEditing="False"
|
|
AllowSorting="True"
|
|
FieldName="Customer.LastNameFirstName"
|
|
Header="{markup:Translate Klient(in)}"
|
|
SortOrder="Ascending" />
|
|
<dxg:GridColumn
|
|
x:Name="column_role"
|
|
Width="180"
|
|
AllowSorting="True"
|
|
FieldName="Role"
|
|
Header="Rolle" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
FieldName="StartDate"
|
|
Header="{markup:Translate Startdatum}" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
FieldName="EndDate"
|
|
Header="{markup:Translate Enddatum}" />
|
|
<dxg:GridColumn
|
|
Width="180"
|
|
AllowSorting="True"
|
|
FieldName="Notice"
|
|
Header="Erläuterung" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
RowDoubleClick="TableView_OnRowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
<!-- TODO: Entfernen! -->
|
|
<!--<dxg:GridControl VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7" DataSource="{Binding Path=AbsenceTimes.VMList}" HorizontalAlignment="Stretch" x:Key="datagrid_absences">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn FieldName="Notice" Header="" FixedWidth="True" Width="24" ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button Content="r" FontFamily="Webdings" Click="button_removeAbsence_Click" Width="18" Height="18" VerticalAlignment="Center" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="Start" Header="von" Width="150" EditSettings="{dxe:DateSettings DisplayFormat=d}" SortOrder="Ascending" />
|
|
<dxg:GridColumn FieldName="End" Header="bis" Width="150" EditSettings="{dxe:DateSettings DisplayFormat=d}" />
|
|
<dxg:GridColumn x:Name="gridcolumn_absencereason" FieldName="Reason" Header="Kategorie" Width="150" />
|
|
<dxg:GridColumn FieldName="Notice" Header="Erläuterung" Width="250" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>-->
|
|
<dxg:GridControl
|
|
x:Key="datagrid_overtimes"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="7"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
DataSource="{Binding Path=Overtimes.VMList}">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FieldName="Notice"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="18"
|
|
Height="18"
|
|
VerticalAlignment="Center"
|
|
Click="button_removeOvertime_Click"
|
|
Content="r"
|
|
FontFamily="Webdings"
|
|
Tag="{Binding}" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
EditSettings="{dxe:DateSettings DisplayFormat=d}"
|
|
FieldName="Date"
|
|
Header="Datum" />
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
EditSettings="{dxe:TextSettings DisplayFormat=f2,
|
|
Mask=f2,
|
|
MaskType=Numeric}"
|
|
FieldName="Betrag"
|
|
Header="Stunden" />
|
|
<dxg:GridColumn
|
|
x:Name="gridcolumn_auszahlungsart"
|
|
Width="150"
|
|
FieldName="Auszahlungsart"
|
|
Header="Art der Auszahlung" />
|
|
<dxg:GridColumn
|
|
Width="550"
|
|
FieldName="Notice"
|
|
Header="Erläuterung" />
|
|
<dxg:GridColumn
|
|
Width="200"
|
|
FieldName="InsUser"
|
|
Header="Angelegt von" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
<!--<dxg:GridControl x:Key="datagrid_leavedays" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7" HorizontalAlignment="Stretch" >
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn Header="" FixedWidth="True" Width="24" ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button x:Name="button_removeLeaveDay" Content="r" FontFamily="Webdings" Click="button_removeLeaveDay_Click" Width="19" Height="19" VerticalAlignment="Center" Visibility="{Binding Path=Data.IsDeletable, Converter={StaticResource BoolVisibilityConverter}}"/>
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="Erlaeuterung" CellToolTipBinding="{Binding}" Header="Erläuterung" Width="40" AllowEditing="False">
|
|
<dxg:GridColumn.CellToolTipTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Tooltip}" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellToolTipTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="AnzahlTage" Header="Anzahl Tage" Width="100" EditSettings="{dxe:TextSettings DisplayFormat=f2, Mask=f2, MaskType=Numeric, HorizontalContentAlignment=Left}" AllowEditing="False" >
|
|
|
|
</dxg:GridColumn>
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" ShowHorizontalLines="False" ShowVerticalLines="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>-->
|
|
|
|
<DataTemplate x:Key="DropDownItemTemplate">
|
|
<Border
|
|
Height="20"
|
|
MinWidth="20"
|
|
HorizontalAlignment="Stretch"
|
|
Background="{Binding}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1"
|
|
CornerRadius="2" />
|
|
</DataTemplate>
|
|
<DataTemplate x:Key="SelectedItemTemplate">
|
|
<Border
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="{Binding}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1" />
|
|
</DataTemplate>
|
|
<Style x:Key="DisabledTextBoxStyle" TargetType="{x:Type dxe:TextEdit}">
|
|
<Style.Triggers>
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
<Setter Property="BorderTemplate">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
|
<Border CornerRadius="1,1,1,1" Background="#F0F0F0" BorderBrush="#A7A7A7" BorderThickness="1" />
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
|
|
</Grid.Resources>
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel VerticalAlignment="Bottom" Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\UserBusinessMaleDisabled.png"
|
|
Stretch="Uniform">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="5" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
FontSize="22"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding FirstName}" />
|
|
<TextBox
|
|
Margin="3,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
FontSize="22"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding LastName}" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid 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 EmployeeContentBrush}" />
|
|
<TabControl
|
|
x:Name="root"
|
|
Grid.Row="1"
|
|
Padding="4,4,4,4"
|
|
BorderThickness="0,0,0,0"
|
|
Style="{StaticResource ObjectEditTabControl}">
|
|
<TabItem Header="Details" IsSelected="True">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="grid_details">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<GroupBox
|
|
Grid.RowSpan="3"
|
|
Grid.Column="0"
|
|
Margin="8,0,8,8"
|
|
Header="Foto"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<dxe:ImageEdit
|
|
x:Name="Img"
|
|
Height="250"
|
|
MinWidth="250"
|
|
MaxWidth="300"
|
|
MaxHeight="400"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
MouseDoubleClick="Img_OnMouseDoubleClick"
|
|
RenderOptions.BitmapScalingMode="HighQuality"
|
|
Stretch="Uniform" />
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
|
|
<GroupBox
|
|
Grid.RowSpan="3"
|
|
Grid.Column="1"
|
|
Header="Eigenschaften"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<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="Auto" />
|
|
<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="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Personal Nr.
|
|
</Label>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Vorname
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Nachname
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Geburtstag
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Kürzel
|
|
</Label>
|
|
<Label
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Geschlecht
|
|
</Label>
|
|
<Label
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Familienstand
|
|
</Label>
|
|
<Label
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Anzahl Kinder
|
|
</Label>
|
|
<Label
|
|
Grid.Row="8"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Staatsangehörigkeit
|
|
</Label>
|
|
<Label
|
|
Grid.Row="9"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Krankenkasse
|
|
</Label>
|
|
<Label
|
|
Grid.Row="10"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Steuernummer
|
|
</Label>
|
|
<Label
|
|
Grid.Row="11"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Steuerklasse
|
|
</Label>
|
|
<Label
|
|
Grid.Row="12"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Versicherungs Nr.
|
|
</Label>
|
|
<Label
|
|
x:Name="lblArchiviert"
|
|
Grid.Row="13"
|
|
Grid.Column="0"
|
|
Margin="3,0,3,3"
|
|
VerticalAlignment="Center">
|
|
Archiviert
|
|
</Label>
|
|
<Label
|
|
Grid.Row="14"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Farbe im Kalender" />
|
|
|
|
<ComboBox
|
|
Name="combobox_brush"
|
|
Grid.Row="14"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalContentAlignment="Stretch"
|
|
VerticalContentAlignment="Stretch"
|
|
ItemsSource="{Binding Path=AllBrushes, Mode=OneWay}"
|
|
Loaded="Combobox_brush_OnLoaded"
|
|
SelectedItem="{Binding Path=EmployeeBrush, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
|
|
<ComboBox.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<UniformGrid
|
|
Columns="12"
|
|
IsItemsHost="True"
|
|
Rows="12" />
|
|
</ItemsPanelTemplate>
|
|
</ComboBox.ItemsPanel>
|
|
<ComboBox.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ComboBoxItem}">
|
|
<Setter Property="Margin" Value="2" />
|
|
<Setter Property="Padding" Value="0" />
|
|
</Style>
|
|
</ComboBox.ItemContainerStyle>
|
|
</ComboBox>
|
|
|
|
|
|
<TextBox
|
|
Name="textbox_first"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PersonnelNumber, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{val:ValidationBinding Path=FirstName,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{val:ValidationBinding Path=LastName,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:DateEdit
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValue="{Binding Path=DateOfBirth, UpdateSourceTrigger=PropertyChanged}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{val:ValidationBinding Path=Abbreviation,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
<Grid Grid.Row="5" Grid.Column="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="RB1" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="RB1" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<RadioButton
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding Path=IsMale, UpdateSourceTrigger=PropertyChanged}">
|
|
männlich
|
|
</RadioButton>
|
|
<RadioButton
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding Path=IsFemale, UpdateSourceTrigger=PropertyChanged}">
|
|
weiblich
|
|
</RadioButton>
|
|
<RadioButton
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding Path=IsDivers, UpdateSourceTrigger=PropertyChanged}">
|
|
divers
|
|
</RadioButton>
|
|
</Grid>
|
|
<uc:NullItemComboBox
|
|
Grid.Row="6"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
DisplayMemberPath="Value"
|
|
ItemsSource="{x:Static core:EnumTranslations.FamilyStatusTranslations}"
|
|
SelectedValue="{Binding Path=FamilyStatus}"
|
|
SelectedValuePath="Key"
|
|
Style="{DynamicResource {x:Type uc:NullItemComboBox}}" />
|
|
<TextBox
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=ChildCount, UpdateSourceTrigger=PropertyChanged}" />
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_Nationalitaet"
|
|
Grid.Row="8"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
MinWidth="189"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
ItemsSource="{Binding Path=Nationalitaeten, UpdateSourceTrigger=PropertyChanged}"
|
|
SelectedValue="{Binding Path=Nationalitaet, Mode=TwoWay}" />
|
|
|
|
|
|
<TextBox
|
|
Grid.Row="9"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=HealthInsurance, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="10"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=TaxNumber, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="11"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=TaxClass, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="12"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=InsuranceNumber, UpdateSourceTrigger=PropertyChanged}" />
|
|
<CheckBox
|
|
x:Name="chkArchiviert"
|
|
Grid.Row="13"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,6,3,3"
|
|
Checked="ChkArchiviert_OnChecked"
|
|
Unchecked="ChkArchiviert_OnUnchecked" />
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Header="{t:Translate EmployeeViewAdresse}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{t:Translate EmployeeViewAdresszusatz}" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Strasse
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Postleitzahl
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Ort
|
|
</Label>
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=AddressLine1, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Street, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PostalCode, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Town, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Grid.Column="3"
|
|
Margin="0,20,0,0"
|
|
Header="{t:Translate EmployeeViewKontakt}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Handy
|
|
</Label>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Telefon
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Fax
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Mail
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
priv. Mail
|
|
</Label>
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=MobilePhone, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Phone, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Fax, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button
|
|
x:Name="EMailSendBtn"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="21"
|
|
Margin="3"
|
|
Click="ButtonBase_OnClick"
|
|
Content="*"
|
|
FontFamily="Wingdings"
|
|
IsEnabled="{Binding Path=EMail, Converter={StaticResource ObjectBoolConverter}}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=EMail, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button
|
|
x:Name="PrivateEMailSendBtn"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="21"
|
|
Margin="3"
|
|
Click="ButtonBase_OnClick"
|
|
Content="*"
|
|
FontFamily="Wingdings"
|
|
IsEnabled="{Binding Path=PrivateEMail, Converter={StaticResource ObjectBoolConverter}}" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivateEMail, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Grid.Row="2"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="6"
|
|
x:Name="GroupSchwerbehindertenausweis"
|
|
Margin="0,20,0,0"
|
|
Header="Schwerbehindertenausweis"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="Grad der Behinderung" />
|
|
<ComboBox
|
|
x:Name="GdBComboBox"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Width="150"
|
|
Height="23"
|
|
Margin="3"
|
|
SelectionChanged="GdBComboBox_OnSelectionChanged" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Content="Gültig von" />
|
|
<dxe:DateEdit
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="150"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=AusweisGueltigVon, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Content="Gültig bis" />
|
|
<dxe:DateEdit
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Width="150"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=AusweisGueltigBis, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Center"
|
|
Content="Bemerkung" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=AusweisBemerkung, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
x:Name="noticeGroup"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="4"
|
|
Margin="0,0,0,0"
|
|
Header="Kommentar"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox
|
|
Height="170"
|
|
Margin="3"
|
|
VerticalAlignment="Top"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Stretch"
|
|
AcceptsReturn="True"
|
|
AutoWordSelection="True"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
ScrollViewer.CanContentScroll="False"
|
|
Text="{Binding Path=Notice2, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
x:Name="extendedPropertyGroup"
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="0,0,0,0"
|
|
Header="Weitere Eigenschaften"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{t:Translate MitarbeiterSingular}" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Abteilung
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Team
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
ambulant/stationär
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Eingruppierung
|
|
</Label>
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Text1, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Text2, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Text3, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Text4, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Text5, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Name="tabitem_varFields" Header="{markup:Translate EmployeeVarFieldsTitle}">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<localView:VarFieldView VarFieldList="{Binding VarFields}" />
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem
|
|
Name="tabitem_notizen"
|
|
Header="{markup:Translate EmployeeNotizen}"
|
|
Selector.Selected="tabitem_notizen_Selected" />
|
|
<TabItem Name="tabitem_contract" Header="Verträge">
|
|
<GroupBox
|
|
x:Name="groupBox_newContract"
|
|
Grid.Row="0"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<GroupBox.Header>
|
|
<Border Style="{StaticResource ObjectEditGroupBoxHeaderBorderStyle}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Text="Verträge" />
|
|
</Grid>
|
|
</Border>
|
|
</GroupBox.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Button
|
|
Name="button_addContract"
|
|
Margin="10,3,0,0"
|
|
HorizontalAlignment="Left"
|
|
Click="button_addContract_Click"
|
|
ToolTip="Klicken Sie hier um einen weiteren Vertrag hinzuzufügen">
|
|
Weiteren Vertrag hinzufügen
|
|
</Button>
|
|
<TabControl
|
|
x:Name="tabcontrol_contracts"
|
|
Grid.Row="1"
|
|
Margin="5"
|
|
ItemsSource="{Binding Contracts.VMList}">
|
|
<TabControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="{Binding ContractString}" />
|
|
<Button
|
|
Name="btn_deleteContract"
|
|
Height="20"
|
|
Margin="0"
|
|
VerticalAlignment="Center"
|
|
Click="btn_deleteContract_Click"
|
|
Style="{DynamicResource CloseButtonStyle}"
|
|
ToolTip="Vertrag löschen"
|
|
Visibility="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</TabControl.ItemTemplate>
|
|
<TabControl.ContentTemplate>
|
|
<DataTemplate>
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox Margin="5" Style="{DynamicResource ObjectEditGroupBox}">
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="23" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock
|
|
Margin="0,1"
|
|
VerticalAlignment="Bottom"
|
|
Text="Details"
|
|
TextElement.FontFamily="Microsoft Sans Serif"
|
|
TextElement.FontSize="16"
|
|
TextElement.Foreground="{StaticResource TabItemHotTextBrush}" />
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
<Grid Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="20" />
|
|
<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="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Vertragsart
|
|
</Label>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Vertragsbeginn
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Befristet bis
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
beschäftigt als
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Stundensatz}" />
|
|
<Label
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate FLS/Woche}" />
|
|
<Label
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate FLS/Monat}" />
|
|
<Label
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Gesamtstunden/Woche}" />
|
|
<Label
|
|
Grid.Row="8"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Gesamtstunden/Monat}" />
|
|
<Label
|
|
x:Name="lbl_ArbeitstageProWoche"
|
|
Grid.Row="9"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Arbeitstage pro Woche
|
|
</Label>
|
|
<Label
|
|
Grid.Row="10"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Urlaubstage
|
|
</Label>
|
|
<Label
|
|
Grid.Row="11"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Probezeit (Tage)}" />
|
|
<Label
|
|
Grid.Row="12"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Probezeit (Monate)}" />
|
|
<Label
|
|
Grid.Row="13"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Künd.-frist (Tage)}" />
|
|
<Label
|
|
Grid.Row="14"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="{markup:Translate Bruttogehalt}" />
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Bemerkungen
|
|
</Label>
|
|
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_ContractType"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
ItemsSource="{Binding Path=AllContractTypes}"
|
|
SelectedValue="{Binding Path=ContractType, Mode=TwoWay}" />
|
|
<dxe:DateEdit
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=EntryDate, UpdateSourceTrigger=PropertyChanged}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<dxe:DateEdit
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=ContractEndDate, UpdateSourceTrigger=PropertyChanged}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<dxe:ComboBoxEdit
|
|
Name="combobox_employmenttype"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
AutoComplete="True"
|
|
EditValueChanged="combobox_employmenttype_EditValueChanged"
|
|
ItemsSource="{Binding Path=PossibleEmploymentTypes, UpdateSourceTrigger=PropertyChanged}"
|
|
SelectedItem="{Binding Path=EmploymentType}" />
|
|
|
|
<dxe:TextEdit
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValue="{Binding Path=HourlyRate, UpdateSourceTrigger=PropertyChanged}"
|
|
Mask="c"
|
|
MaskType="Numeric"
|
|
MaskUseAsDisplayFormat="True"
|
|
Visibility="{Binding IsHourlyRateTextfieldVisible, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_HourlyRate"
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
DisplayMemberPath="UnitName"
|
|
ItemsSource="{Binding Path=AllHourlyRateCostRatePeriods}"
|
|
SelectedValue="{Binding Path=HourlyRateCostRatePeriod, Mode=TwoWay}"
|
|
Visibility="{Binding IsHourlyRateComboVisible, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.000" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="5" Margin="3" Height="23" AllowNullInput="True" EditValue="{Binding Path=WeeklyFLS, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding WeeklyFlsEnabled}" Style="{StaticResource DisabledTextBoxStyle}"/>
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.000" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="6" Margin="3" Height="23" AllowNullInput="True" EditValue="{Binding Path=MonthlyFLS, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding MonthlyFlsEnabled}" Style="{StaticResource DisabledTextBoxStyle}"/>
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00#" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="7" Margin="3" Height="23" AllowNullInput="True" EditValue="{Binding Path=WeeklyTotalHours, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding WeeklyHoursEnabled}" Style="{StaticResource DisabledTextBoxStyle}"/>
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00#" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="8" Margin="3" Height="23" AllowNullInput="True" EditValue="{Binding Path=MonthlyTotalHours, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding MonthlyHoursEnabled}" Style="{StaticResource DisabledTextBoxStyle}"/>
|
|
<dxe:SpinEdit MinValue="0" MaxValue="7" IsFloatValue="False" Grid.Column="1" Grid.Row="9" Margin="3" Height="23" EditValue="{Binding Path=WeeklyDays, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}"/>
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="10" Margin="3" Height="23" EditValue="{Binding Path=EmploymentType.LeaveDays, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding EmploymentTypeLeaveDaysVisibility, UpdateSourceTrigger=PropertyChanged}" IsEnabled="False" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="10" Margin="3" Height="23" EditValue="{Binding Path=LeaveDays, UpdateSourceTrigger=PropertyChanged}" Visibility="{Binding LeaveDaysVisibility, UpdateSourceTrigger=PropertyChanged}" IsEnabled="True" />
|
|
<dxe:SpinEdit MinValue="0" IsFloatValue="False" Grid.Column="1" Grid.Row="11" Margin="3" Height="23" EditValue="{Binding Path=ProbationPeriod, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:SpinEdit MinValue="0" IsFloatValue="True" Mask="########0.00" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="12" Margin="3" Height="23" EditValue="{Binding Path=ProbationPeriod2, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:SpinEdit MinValue="0" IsFloatValue="False" Grid.Column="1" Grid.Row="13" Margin="3" Height="23" EditValue="{Binding Path=CancellationPeriod, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:TextEdit
|
|
Grid.Row="14"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValue="{Binding Path=GrossSalary, UpdateSourceTrigger=PropertyChanged}"
|
|
Mask="c"
|
|
MaskType="Numeric"
|
|
MaskUseAsDisplayFormat="True" />
|
|
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.RowSpan="14"
|
|
Grid.Column="3"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalContentAlignment="Left"
|
|
VerticalContentAlignment="Stretch"
|
|
AcceptsReturn="True"
|
|
AutoWordSelection="True"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
ScrollViewer.CanContentScroll="False"
|
|
Text="{Binding Path=Notice, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
<TextBlock
|
|
Grid.Row="15"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,15,3,3"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
PreviewMouseLeftButtonDown="PrintContract"
|
|
Tag="{Binding}"
|
|
Visibility="Collapsed">
|
|
<Hyperlink TargetName="_NewWindow">
|
|
<Run Text="Drucken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</DataTemplate>
|
|
</TabControl.ContentTemplate>
|
|
</TabControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
</TabItem>
|
|
<TabItem
|
|
Name="tabitem_arbeitszeit"
|
|
Header="Arbeitszeiten"
|
|
Selector.Selected="tabitem_arbeitszeit_Selected" />
|
|
<TabItem
|
|
Name="tabitem_schuldienst"
|
|
Header="Schulbegleitender Dienst"
|
|
Selector.Selected="tabitem_SchulDienst_Selected" />
|
|
<TabItem Header="Finanzen">
|
|
<GroupBox Header="Finanzen" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="200" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Konto
|
|
</Label>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Bank
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
BLZ
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
BIC
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
IBAN
|
|
</Label>
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=AccountNumber, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=BankName, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=BankCode, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Bic, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=IBAN, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</TabItem>
|
|
<TabItem Header="Qualifikationen">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.Column="0">Fachkraft</Label>
|
|
<CheckBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="80,6,3,3"
|
|
IsChecked="{Binding Path=IsQualified, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
Header="Qualifikationen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid MinHeight="100">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Center"
|
|
Content="mögliche:" />
|
|
<ListBox
|
|
Name="listbox_possibleQualification"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
DisplayMemberPath="TypeDescription"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=PossibleQualifications}" />
|
|
<Button
|
|
Name="button_addQualification"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addQualification_Click"
|
|
Content="<"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding ElementName=listbox_possibleQualification, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" />
|
|
<Button
|
|
Name="button_removeQualificeation"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Top"
|
|
Click="button_removeQualificeation_Click"
|
|
Content=">"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding ElementName=listbox_qualifications, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" />
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Center"
|
|
Content="zugeordnete:" />
|
|
<ListBox
|
|
Name="listbox_qualifications"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
DisplayMemberPath="TypeDescription"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=Qualifications}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
Grid.Row="2"
|
|
Margin="0,20,0,0"
|
|
HorizontalAlignment="Stretch"
|
|
Header="Arbeitsschwerpunkte"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid MinHeight="100">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Center"
|
|
Content="mögliche:" />
|
|
<ListBox
|
|
Name="listbox_possibleFocuses"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
DisplayMemberPath="TypeDescription"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=PossibleFocuses}" />
|
|
<Button
|
|
Name="button_addFocus"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addFocus_Click"
|
|
Content="<"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding ElementName=listbox_possibleFocuses, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" />
|
|
<Button
|
|
x:Name="button_removeFocus"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Top"
|
|
Click="button_removeFocus_Click"
|
|
Content=">"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ElementName=listbox_focuses}" />
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
HorizontalAlignment="Center"
|
|
Content="zugeordnete:" />
|
|
<ListBox
|
|
Name="listbox_focuses"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="0"
|
|
DisplayMemberPath="TypeDescription"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=Focuses}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="Betreuung" Selector.Selected="TabItemCustomers_Selected">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
x:Name="groupbox_newCustomerRel"
|
|
Header="{markup:Translate Klient zuordnen}"
|
|
Style="{StaticResource ObjectEditGroupBox}"
|
|
Visibility="Collapsed">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label VerticalAlignment="Center" Content="{markup:Translate Klient}" />
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_customerRelations"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_customerRelations_PopUpClick"
|
|
Text="{val:ValidationBinding Path=CustomerRelations.NewVM.CustomerString}" />
|
|
<Label
|
|
Grid.Column="2"
|
|
VerticalAlignment="Center"
|
|
Content="Rolle" />
|
|
<uc:NullItemComboBox
|
|
Grid.Column="3"
|
|
Height="23"
|
|
Margin="3"
|
|
ItemsSource="{Binding Path=CustomerRelations.PossibleRoles}"
|
|
SelectedItem="{val:ValidationBinding Path=CustomerRelations.NewVM.Role}" />
|
|
<Label
|
|
Grid.Row="1"
|
|
VerticalAlignment="Top"
|
|
Content="Notiz" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="50"
|
|
Margin="3"
|
|
Text="{Binding Path=CustomerRelations.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Button
|
|
x:Name="button_addCustomerRelation"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="4"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addCustomerRelation_Click"
|
|
Content="Hinzufügen" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
x:Name="GroupBoxCustomers"
|
|
Grid.Row="1"
|
|
Margin="0,20,0,0"
|
|
Header="{markup:Translate Diesem Mitarbeiter zugeordnete Klienten}"
|
|
Style="{StaticResource ObjectEditGroupBox}" />
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
x:Name="textblock_link_pdfexport"
|
|
Margin="5,0,5,3"
|
|
FontSize="14">
|
|
<Hyperlink
|
|
x:Name="linkPdfExport"
|
|
Foreground="#FF2B508B"
|
|
RequestNavigate="LinkPdfExport_OnRequestNavigate"
|
|
TargetName="_NewWindow">
|
|
<Run Text="Drucken" />
|
|
</Hyperlink>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="Abwesenheiten">
|
|
<detail:AbsenceTimesView CheckEnddate="True" AbsenceTimes="{Binding ViewModel.AbsenceTimes, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay, ElementName=EmployeeBeWoView}" />
|
|
</TabItem>
|
|
<TabItem
|
|
x:Name="OvertimeTabItem"
|
|
Header="Überstunden"
|
|
Selector.Selected="TabItemOvertimes_Selected">
|
|
<Grid x:Name="grid_overTimes">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Überstunden hinzufügen -->
|
|
<GroupBox
|
|
x:Name="groupbox_newOvertime"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Header="Überstunden hinzufügen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid Grid.IsSharedSizeScope="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Row="0" Grid.Column="0">Datum</Label>
|
|
<Label Grid.Row="0" Grid.Column="2">Stunden</Label>
|
|
<Label Grid.Row="1" Grid.Column="0">Art der Überstunden</Label>
|
|
<Label Grid.Row="1" Grid.Column="2">Erläuterung</Label>
|
|
<Button
|
|
Name="button_addOvertime"
|
|
Grid.Row="2"
|
|
Grid.Column="3"
|
|
Margin="1,10,0,3"
|
|
HorizontalAlignment="Right"
|
|
Click="button_addOvertime_Click"
|
|
Content="Überstunden hinzufügen"
|
|
Style="{DynamicResource {x:Type Button}}" />
|
|
<dxe:DateEdit
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValue="{val:ValidationBinding Path=Overtimes.NewVM.Date,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
Mode=TwoWay}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<dxe:TextEdit
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValue="{val:ValidationBinding Path=Overtimes.NewVM.Betrag,
|
|
UpdateSourceTrigger=PropertyChanged,
|
|
Mode=TwoWay}"
|
|
MaskType="Numeric" />
|
|
<uc:NullItemComboBox
|
|
Name="combox_art"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
ItemsSource="{Binding Path=PossibleAuszahlungsarten}"
|
|
SelectedItem="{Binding Path=Overtimes.NewVM.Auszahlungsart}">
|
|
<ComboBox.ItemContainerStyle>
|
|
<Style>
|
|
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
|
|
</Style>
|
|
</ComboBox.ItemContainerStyle>
|
|
</uc:NullItemComboBox>
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="3"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Overtimes.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox
|
|
x:Name="GroupBoxOvertimes"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Header="Erfasste Überstunden"
|
|
Style="{StaticResource ObjectEditGroupBox}" />
|
|
</Grid>
|
|
</TabItem>
|
|
|
|
<TabItem
|
|
x:Name="LeaveDaysTabItem"
|
|
Header="Urlaubskonto"
|
|
Selector.Selected="LeaveDaysTabItem_Selected">
|
|
<!-- Grid: datagrid_leavedays -->
|
|
<!--<GroupBox Grid.Column="0" x:Name="groupbox_giftLeaveDays" Grid.Row="1" Grid.ColumnSpan="2" Header="Urlaubskonto" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<dxe:ComboBoxEdit x:Name="_YearPicker" Height="25" PopupMaxHeight="150" Grid.Row="0" Width="100" Margin="0 5 0 5" HorizontalAlignment="Left" EditValueChanged="_YearPicker_EditValueChanged"/>
|
|
<Button Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" Margin="0 5 0 5" Name="button_openLeaveDayDialogue" Click="button_openLeaveDayDialogue_Click" Style="{DynamicResource {x:Type Button}}" Content="Urlaubstag(e) schenken" Visibility="Collapsed"/>
|
|
|
|
<controls:PopupNonTopmost Grid.Row="0" Grid.Column="0" Topmost="False" x:Name="popup_giftLeaveday" Width="350" StaysOpen="True" Placement="MousePoint">
|
|
<Border Background="White" Padding="3" BorderThickness="1" BorderBrush="Gray">
|
|
<GroupBox x:Name="groupbox_addLeaveday" Header="Urlaubstag(e) schenken" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label Content="Tage" Grid.Row="0" Grid.Column="0" />
|
|
<Label Content="Erläuterung" Grid.Row="1" Grid.Column="0" />
|
|
<Label Content="Datum" Grid.Row="2" Grid.Column="0" />
|
|
|
|
<dxe:SpinEdit x:Name="addLeaveDays_anzahlTage" Grid.Column="1" Grid.Row="0" Height="23" Margin="3" MaskType="Numeric" Mask="########0.00" MinValue="0.5" MaxValue="30" Value="1.00" Increment="0.5" />
|
|
<TextBox x:Name="addLeaveDays_erlaeuterung" Grid.Column="1" Grid.Row="1" Height="23" Margin="3" />
|
|
<dxe:DateEdit x:Name="addLeaveDays_datum" Grid.Column="1" Grid.Row="2" Height="23" Margin="3" MaskType="DateTime" Mask="dd.MM.yyyy" />
|
|
<Label x:Name="addLeaveDays_datumswarnung" Content="Datum muss gesetzt werden!" Grid.Column="1" Grid.Row="3" Margin="0 0 3 3" Foreground="Red" />
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Right" Margin="0 10 0 0">
|
|
<Button Name="addLeaveDays_button_cancel" Click="button_cancel_Click" Style="{DynamicResource {x:Type Button}}" Content="Abbrechen" />
|
|
<Button Margin="5,0,0,3" Name="addLeaveDays_button_addLeaveDay" Click="button_addLeaveDay_Click" Style="{DynamicResource {x:Type Button}}" Content="Schenken" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</controls:PopupNonTopmost>
|
|
-->
|
|
<!-- In WPFGridLeaveDays wird Urlaubskontodatagrid eingefügt -->
|
|
<!--
|
|
<Grid x:Name="WPFGridLeaveDays" Grid.Row="1" Grid.Column="0" Margin="0 10 0 0"/>
|
|
</Grid>
|
|
</GroupBox>-->
|
|
</TabItem>
|
|
|
|
<TabItem
|
|
Name="tabitem_chatservice"
|
|
Header="ownChat"
|
|
Selector.Selected="tabitem_chatservice_Selected" />
|
|
<TabItem
|
|
Name="tabitem_documents"
|
|
Header="Dokumente"
|
|
Selector.Selected="tabitem_documents_Selected" />
|
|
</TabControl>
|
|
<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"
|
|
Grid.ColumnSpan="3"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="BtnSave"
|
|
Margin="0,0,2,0"
|
|
Command="ApplicationCommands.Save"
|
|
Content="Speichern"
|
|
Style="{DynamicResource {x:Type Button}}" />
|
|
<Button
|
|
x:Name="BtnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</uc:ShadowChrome>
|
|
<Popup
|
|
Name="PopupCustomer"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:CustomerSearchView ItemSelected="CustomerSearchView_CustomerSelected" />
|
|
</Popup>
|
|
</Grid>
|
|
</localView:BeWoView> |