<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:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" 
					xmlns:localView="clr-namespace:BeWo.View" 
					xmlns:localSearchView="clr-namespace:BeWo.View.Search"
                    xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
					xmlns:val="clr-namespace:BeWo.Validation"
					xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
					xmlns:detail="clr-namespace:BeWo.View.Detail"
					Height="Auto" Width="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 FieldName="Customer.LastNameFirstName" AllowEditing="False" Header="Klient(in)" Width="180" AllowSorting="True"/>
					<dxg:GridColumn FieldName="Role" x:Name="column_role" Header="Rolle" Width="180" AllowSorting="True"/>
					<dxg:GridColumn FieldName="Notice" Header="Erläuterung" Width="180" AllowSorting="True"/>
				</dxg:GridControl.Columns>
				<dxg:GridControl.View>
					<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" RowDoubleClick="TableView_OnRowDoubleClick" />
				</dxg:GridControl.View>
			</dxg:GridControl>
			<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}" />
					<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 VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7" DataSource="{Binding Path=Overtimes.VMList}" HorizontalAlignment="Stretch" x:Key="datagrid_overtimes" >
				<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_removeOvertime_Click" Width="18" Height="18" VerticalAlignment="Center" Tag="{Binding}" />
							</DataTemplate>
						</dxg:GridColumn.CellTemplate>
					</dxg:GridColumn>
					<dxg:GridColumn FieldName="Date" Header="Datum" Width="150" EditSettings="{dxe:DateSettings DisplayFormat=d}" />
					<dxg:GridColumn FieldName="Betrag" Header="Betrag" Width="150" EditSettings="{dxe:TextSettings DisplayFormat=f}" />
					<dxg:GridColumn x:Name="gridcolumn_auszahlungsart" FieldName="Auszahlungsart" Header="Art der Auszahlung" Width="150" />
					<dxg:GridColumn FieldName="Notice" Header="Erläuterung" Width="550" />
				</dxg:GridControl.Columns>
				<dxg:GridControl.View>
					<dxg:TableView AutoWidth="true" ShowGroupPanel="False" ShowGroupedColumns="false" ShowTotalSummary="False" NavigationStyle="Cell" />
				</dxg:GridControl.View>
			</dxg:GridControl>

            <DataTemplate x:Key="DropDownItemTemplate">
                <Border Height="20" MinWidth="20" Background="{Binding}" BorderThickness="1" CornerRadius="2" HorizontalAlignment="Stretch" BorderBrush="Black" />
            </DataTemplate>
            <DataTemplate x:Key="SelectedItemTemplate">
                <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="{Binding}" BorderBrush="Black" BorderThickness="1" />
            </DataTemplate>
        </Grid.Resources>
		<uc:ShadowChrome>
			<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
				<GroupBox.Header>
					<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom">
						<Image Source="..\..\Ressources\Icons\UserBusinessMaleDisabled.png" RenderTransformOrigin="0.5,0.5" Stretch="Uniform" Width="32">
							<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 Text="{Binding FirstName}" Margin="10,0,0,0" Background="{x:Null}" Foreground="#FFFFFFFF" FontSize="22" BorderBrush="{x:Null}" VerticalAlignment="Bottom" Padding="0,0,0,0" />
						<TextBox Text="{Binding LastName}" Margin="3,0,0,0" Background="{x:Null}" Foreground="#FFFFFFFF" FontSize="22" BorderBrush="{x:Null}" VerticalAlignment="Bottom" Padding="0,0,0,0" />
					</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 Fill="{DynamicResource EmployeeContentBrush}" Height="6" />
					<TabControl x:Name="root" Grid.Row="1" Style="{StaticResource ObjectEditTabControl}" BorderThickness="0,0,0,0" Padding="4,4,4,4">
						<TabItem Header="Details" IsSelected="True">
							<ScrollViewer VerticalScrollBarVisibility="Auto">
								<Grid x:Name="grid_details">
									<Grid.RowDefinitions>
										<RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
										<RowDefinition Height="*" />
									</Grid.RowDefinitions>
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="*" />
										<ColumnDefinition Width="20" />
										<ColumnDefinition Width="*" />
									</Grid.ColumnDefinitions>
									<GroupBox Header="Eigenschaften" Grid.RowSpan="3" 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" />
											</Grid.RowDefinitions>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="*" />
											</Grid.ColumnDefinitions>

											<Label Grid.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Personal Nr.</Label>
											<Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Vorname</Label>
											<Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">Nachname</Label>
											<Label Grid.Column="0" Grid.Row="3" Margin="3" VerticalAlignment="Center">Geburtstag</Label>
											<Label Grid.Column="0" Grid.Row="4" Margin="3" VerticalAlignment="Center">Kürzel</Label>
											<Label Grid.Column="0" Grid.Row="5" Margin="3" VerticalAlignment="Center">Geschlecht</Label>
											<Label Grid.Column="0" Grid.Row="6" Margin="3" VerticalAlignment="Center">Familienstand</Label>
											<Label Grid.Column="0" Grid.Row="7" Margin="3" VerticalAlignment="Center">Krankenkasse</Label>
											<Label Grid.Column="0" Grid.Row="8" Margin="3" VerticalAlignment="Center">Steuernummer</Label>
											<Label Grid.Column="0" Grid.Row="9" Margin="3" VerticalAlignment="Center">Versicherungs Nr.</Label>
											<Label x:Name="lblArchiviert" Grid.Column="0" Grid.Row="10" Margin="3,0,3,3" VerticalAlignment="Center">Archiviert</Label>

                                            
                                            <Label Content="Farbe im Kalender" Grid.Column="0" Grid.Row="11" VerticalAlignment="Center" />
                                            <ComboBox Grid.Column="1" Grid.Row="11" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" 
                                                      SelectedItem="{Binding Path=EmployeeBrush, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Name="combobox_brush" Height="23" Margin="3" ItemsSource="{Binding Path=AllBrushes, Mode=OneWay}"
                                                      Loaded="Combobox_brush_OnLoaded">
                                                <ComboBox.ItemsPanel>
                                                    <ItemsPanelTemplate>
                                                        <UniformGrid Columns="12" Rows="12" IsItemsHost="True" />
                                                    </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.Column="1" Grid.Row="0" Margin="3" Height="23" Text="{val:ValidationBinding Path=PersonnelNumber, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Text="{val:ValidationBinding Path=FirstName, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="2" Margin="3" Height="23" Text="{val:ValidationBinding Path=LastName, UpdateSourceTrigger=PropertyChanged}" />
											<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="3" Margin="3" Height="23" EditValue="{Binding Path=DateOfBirth, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="4" Margin="3" Height="23" Text="{val:ValidationBinding Path=Abbreviation, UpdateSourceTrigger=PropertyChanged}" />
											<Grid Grid.Column="1" Grid.Row="5">
												<Grid.ColumnDefinitions>
													<ColumnDefinition Width="Auto" SharedSizeGroup="RB1" />
													<ColumnDefinition Width="*" />
												</Grid.ColumnDefinitions>
												<RadioButton Grid.Column="0" Margin="3" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding Path=IsMale, UpdateSourceTrigger=PropertyChanged}">männlich</RadioButton>
												<RadioButton Grid.Column="1" Margin="3" VerticalAlignment="Center" HorizontalAlignment="Left" IsChecked="{Binding Path=IsFemale, UpdateSourceTrigger=PropertyChanged}">weiblich</RadioButton>
											</Grid>
											<uc:NullItemComboBox Margin="3" Grid.Column="1" Grid.Row="6" Height="23" ItemsSource="{x:Static core:EnumTranslations.FamilyStatusTranslations}" SelectedValue="{Binding Path=FamilyStatus}" DisplayMemberPath="Value" SelectedValuePath="Key" Style="{DynamicResource {x:Type uc:NullItemComboBox}}" />
											<TextBox Grid.Column="1" Grid.Row="7" Margin="3" Height="23" Text="{Binding Path=HealthInsurance, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="8" Margin="3" Height="23" Text="{Binding Path=TaxNumber, UpdateSourceTrigger=PropertyChanged}" />
											
											<TextBox Grid.Column="1" Grid.Row="9" Margin="3" Height="23" Text="{Binding Path=InsuranceNumber, UpdateSourceTrigger=PropertyChanged}" />
											<CheckBox x:Name="chkArchiviert" Grid.Column="1" Grid.Row="10" Margin="3,6,3,3" Height="23" Checked="ChkArchiviert_OnChecked" Unchecked="ChkArchiviert_OnUnchecked"/>
                                        </Grid>
									</GroupBox>


									<GroupBox Grid.Column="2" Grid.Row="0" Header="Adresse" Style="{StaticResource ObjectEditGroupBox}">
										<Grid>
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="80"  />
												<ColumnDefinition Width="*" />
											</Grid.ColumnDefinitions>

											<Label Grid.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Strasse</Label>
											<Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Postleitzahl</Label>
											<Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">Ort</Label>

											<TextBox Grid.Column="1" Grid.Row="0" Margin="3" Height="23" Text="{Binding Path=Street, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Text="{Binding Path=PostalCode, UpdateSourceTrigger=PropertyChanged}" />
											<TextBox Grid.Column="1" Grid.Row="2" Margin="3" Height="23" Text="{Binding Path=Town, UpdateSourceTrigger=PropertyChanged}" />
										</Grid>
									</GroupBox>
									<GroupBox Grid.Column="2" Grid.Row="1" Header="Kontakt" Style="{StaticResource ObjectEditGroupBox}" Margin="0,20,0,0">
										<Grid>
											<Grid.RowDefinitions>
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
												<RowDefinition Height="Auto" />
											</Grid.RowDefinitions>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="80" />
                                                <ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="*" />
											</Grid.ColumnDefinitions>

											<Label Grid.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Handy</Label>
											<Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Telefon</Label>
											<Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">Fax</Label>
											<Label Grid.Column="0" Grid.Row="3" Margin="3" VerticalAlignment="Center">Mail</Label>
											<Label Grid.Column="0" Grid.Row="4" Margin="3" VerticalAlignment="Center">priv. Mail</Label>

											<TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="0" Margin="3" Height="23" Text="{Binding Path=MobilePhone, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Margin="3" Height="23" Text="{Binding Path=Phone, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2" Margin="3" Height="23" Text="{Binding Path=Fax, UpdateSourceTrigger=PropertyChanged}" />
                                            <Button x:Name="EMailSendBtn" Grid.Column="1" Grid.Row="3" Margin="3" Height="21" Content="*" FontFamily="Wingdings" Click="ButtonBase_OnClick" IsEnabled="{Binding Path=EMail, Converter={StaticResource ObjectBoolConverter}}" />
											<TextBox Grid.Column="2" Grid.Row="3" Margin="3" Height="23" Text="{Binding Path=EMail, UpdateSourceTrigger=PropertyChanged}" />
                                            <Button x:Name="PrivateEMailSendBtn" Grid.Column="1" Grid.Row="4" Margin="3" Height="21" Content="*" FontFamily="Wingdings" Click="ButtonBase_OnClick" IsEnabled="{Binding Path=PrivateEMail, Converter={StaticResource ObjectBoolConverter}}" />
                                            <TextBox Grid.Column="2" Grid.Row="4" Margin="3" Height="23" Text="{Binding Path=PrivateEMail, UpdateSourceTrigger=PropertyChanged}" />

										</Grid>
									</GroupBox>
                                    <GroupBox x:Name="noticeGroup" Grid.ColumnSpan="3" Grid.Column="0"  Grid.Row="3" Header="Kommentar" Style="{StaticResource ObjectEditGroupBox}" Margin="0,20,0,0">
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="*" />
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"    />
                                            </Grid.ColumnDefinitions>

                                            <TextBox Height="170" Margin="3" Text="{Binding Path=Notice2, UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Top" VerticalContentAlignment="Stretch" 
                                                     HorizontalContentAlignment="Left" ScrollViewer.CanContentScroll="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap" AcceptsReturn="True" AutoWordSelection="True"  />

                                        </Grid>
                                    </GroupBox>
                                    <GroupBox x:Name="extendedPropertyGroup" Grid.Column="0" Grid.Row="3" Header="Weitere Eigenschaften" Style="{StaticResource ObjectEditGroupBox}" Margin="0,20,0,0">
                                        <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.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Mitarbeiter</Label>
                                            <Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Abteilung</Label>
                                            <Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">Team</Label>
                                            <Label Grid.Column="0" Grid.Row="3" Margin="3" VerticalAlignment="Center">ambulant/stationär</Label>
                                            <Label Grid.Column="0" Grid.Row="4" Margin="3" VerticalAlignment="Center">Eingruppierung</Label>

                                            <TextBox Grid.Column="1" Grid.Row="0" Margin="3" Height="23" Text="{Binding Path=Text1, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Text="{Binding Path=Text2, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.Row="2" Margin="3" Height="23" Text="{Binding Path=Text3, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.Row="3" Margin="3" Height="23" Text="{Binding Path=Text4, UpdateSourceTrigger=PropertyChanged}" />
                                            <TextBox Grid.Column="1" Grid.Row="4" Margin="3" Height="23" Text="{Binding Path=Text5, UpdateSourceTrigger=PropertyChanged}" />

                                        </Grid>
                                    </GroupBox>

                                </Grid>
							</ScrollViewer>
						</TabItem>

                        <TabItem Header="Verträge" Name="tabitem_contract">
                            <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 Text="Verträge" VerticalAlignment="Center" Margin="3" />
                                        </Grid>
                                    </Border>
                                </GroupBox.Header>
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="*" />
                                    </Grid.RowDefinitions>
                                    <Button Margin="10 3 0 0"
                                            ToolTip="Klicken Sie hier um einen weiteren Vertrag hinzuzufügen"
                                            Name="button_addContract" Click="button_addContract_Click"
                                            HorizontalAlignment="Left">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 Visibility="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}, Converter={StaticResource BoolVisibilityConverter}}"
                                                            VerticalAlignment="Center" Height="20" Name="btn_deleteContract"
                                                            Click="btn_deleteContract_Click"
                                                            ToolTip="Vertrag löschen"
                                                            Style="{DynamicResource CloseButtonStyle}" Margin="0" />
                                                </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 Text="Details" Margin="0 1"
                                                                            VerticalAlignment="Bottom"
                                                                            TextElement.FontSize="16"
                                                                            TextElement.Foreground="{StaticResource TabItemHotTextBrush}"
                                                                            TextElement.FontFamily="Microsoft Sans Serif"
                                                                            />
                                                                </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" />
                                                                </Grid.RowDefinitions>
                                                                <Label Grid.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Vertragsbeginn</Label>
                                                                <Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Befristet bis</Label>
                                                                <Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">beschäftigt als</Label>
                                                                <Label Grid.Column="0" Grid.Row="3" Margin="3" VerticalAlignment="Center">Stundensatz</Label>
                                                                <Label Grid.Column="0" Grid.Row="4" Margin="3" VerticalAlignment="Center">FLS/Woche</Label>
                                                                <Label Grid.Column="0" Grid.Row="5" Margin="3" VerticalAlignment="Center">Gesamtstunden/Woche</Label>
                                                                <Label Grid.Column="0" Grid.Row="6" Margin="3" VerticalAlignment="Center">Arbeitstage pro Woche</Label>
                                                                <Label Grid.Column="0" Grid.Row="7" Margin="3" VerticalAlignment="Center">Urlaubstage</Label>
                                                                <Label Grid.Column="0" Grid.Row="8" Margin="3" VerticalAlignment="Center">Probezeit (Tage)</Label>
                                                                <Label Grid.Column="0" Grid.Row="9" Margin="3" VerticalAlignment="Center">Künd.-frist (Tage)</Label>

                                                                <Label Grid.Column="3" Grid.Row="0" Margin="3" VerticalAlignment="Center">Bemerkungen</Label>

                                                                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="0" Margin="3" Height="23" EditValue="{Binding Path=EntryDate, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="1" Margin="3" Height="23" EditValue="{Binding Path=ContractEndDate, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:ComboBoxEdit Grid.Column="1" Grid.Row="2" Margin="3" Height="23" Name="combobox_employmenttype" ItemsSource="{Binding Path=PossibleEmploymentTypes, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding Path=EmploymentType}" AutoComplete="True" />
                                                                <dxe:TextEdit MaskType="Numeric" Mask="c" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="3" Height="23" Margin="3" EditValue="{Binding Path=HourlyRate, UpdateSourceTrigger=PropertyChanged}"/>
                                                                <dxe:TextEdit MaskType="Numeric" Mask="########0.000" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="4" Margin="3" Height="23" EditValue="{Binding Path=WeeklyFLS, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True" Grid.Column="1" Grid.Row="5" Margin="3" Height="23" EditValue="{Binding Path=WeeklyTotalHours, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:SpinEdit MinValue="0" MaxValue="7" IsFloatValue="False" Grid.Column="1" Grid.Row="6" 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="7" Margin="3" Height="23" EditValue="{Binding Path=LeaveDays, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:SpinEdit MinValue="0" IsFloatValue="False" Grid.Column="1" Grid.Row="8" Margin="3" Height="23" EditValue="{Binding Path=ProbationPeriod, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}" />
                                                                <dxe:SpinEdit MinValue="0" IsFloatValue="False" Grid.Column="1" Grid.Row="9" Margin="3" Height="23" EditValue="{Binding Path=CancellationPeriod, Converter={StaticResource Int2DecimalConverter}, UpdateSourceTrigger=PropertyChanged}" />
                                                                
                                                                <TextBox  Grid.Column="3" Grid.Row="1" Grid.RowSpan="8"  Margin="3" Text="{Binding Path=Notice, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch" 
                                                                    HorizontalContentAlignment="Left" ScrollViewer.CanContentScroll="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden" TextWrapping="Wrap" AcceptsReturn="True" AutoWordSelection="True"  />
                                                            </Grid>
                                                        </GroupBox>
                                                    </Grid>
                                                </ScrollViewer>
                                            </DataTemplate>
                                        </TabControl.ContentTemplate>
                                    </TabControl>
                                </Grid>
                            </GroupBox>
                        </TabItem>
                        
                        <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.Column="0" Grid.Row="0" Margin="3" VerticalAlignment="Center">Konto</Label>
									<Label Grid.Column="0" Grid.Row="1" Margin="3" VerticalAlignment="Center">Bank</Label>
									<Label Grid.Column="0" Grid.Row="2" Margin="3" VerticalAlignment="Center">BLZ</Label>
									<Label Grid.Column="0" Grid.Row="3" Margin="3" VerticalAlignment="Center">BIC</Label>
									<Label Grid.Column="0" Grid.Row="4" Margin="3" VerticalAlignment="Center">IBAN</Label>

									<TextBox Grid.Column="1" Grid.Row="0" Margin="3" Height="23" Text="{Binding Path=AccountNumber, UpdateSourceTrigger=PropertyChanged}" />
									<TextBox Grid.Column="1" Grid.Row="1" Margin="3" Height="23" Text="{Binding Path=BankName, UpdateSourceTrigger=PropertyChanged}" />
									<TextBox Grid.Column="1" Grid.Row="2" Margin="3" Height="23" Text="{Binding Path=BankCode, UpdateSourceTrigger=PropertyChanged}" />
									<TextBox Grid.Column="1" Grid.Row="3" Margin="3" Height="23" Text="{Binding Path=Bic, UpdateSourceTrigger=PropertyChanged}" />
									<TextBox Grid.Column="1" Grid.Row="4" Margin="3" Height="23" 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.Column="0" Grid.Row="0">Fachkraft</Label>
								<CheckBox Grid.Column="1" Grid.Row="0" Margin="80,6,3,3" Height="23" IsChecked="{Binding Path=IsQualified, UpdateSourceTrigger=PropertyChanged}" />

								<GroupBox HorizontalAlignment="Stretch" Grid.Row="1" 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.Column="2" Grid.Row="0" Content="mögliche:" HorizontalAlignment="Center" />
										<ListBox Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Name="listbox_possibleQualification" DisplayMemberPath="TypeDescription" ItemsSource="{Binding Path=PossibleQualifications}" IsSynchronizedWithCurrentItem="True" />
										<Button Name="button_addQualification" Click="button_addQualification_Click" Grid.Column="1" Margin="3" Grid.Row="1" VerticalAlignment="Bottom" Content="&lt;" FontWeight="Bold" Width="25" IsEnabled="{Binding ElementName=listbox_possibleQualification, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" Height="25" />
										<Button Name="button_removeQualificeation" Click="button_removeQualificeation_Click" Grid.Column="1" Margin="3" Grid.Row="2" VerticalAlignment="Top" Content="&gt;" FontWeight="Bold" Width="25" IsEnabled="{Binding ElementName=listbox_qualifications, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" Height="25" />
										<Label Grid.Column="0" Grid.Row="0" Content="zugeordnete:" HorizontalAlignment="Center" />
										<ListBox Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Name="listbox_qualifications" DisplayMemberPath="TypeDescription" ItemsSource="{Binding Path=Qualifications}" IsSynchronizedWithCurrentItem="True" />
									</Grid>
								</GroupBox>
								<GroupBox HorizontalAlignment="Stretch" Grid.Row="2" Header="Arbeitsschwerpunkte" Style="{StaticResource ObjectEditGroupBox}" Margin="0,20,0,0">
									<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.Column="2" Grid.Row="0" Content="mögliche:" HorizontalAlignment="Center" />
										<ListBox Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Name="listbox_possibleFocuses" DisplayMemberPath="TypeDescription" ItemsSource="{Binding Path=PossibleFocuses}" IsSynchronizedWithCurrentItem="True" />
										<Button Name="button_addFocus" Click="button_addFocus_Click" Grid.Column="1" Margin="3" Grid.Row="1" VerticalAlignment="Bottom" Content="&lt;" FontWeight="Bold" Width="25" IsEnabled="{Binding ElementName=listbox_possibleFocuses, Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}}" Height="25" />
										<Button x:Name="button_removeFocus" Click="button_removeFocus_Click" Grid.Column="1" Margin="3" Grid.Row="2" VerticalAlignment="Top" Content="&gt;" FontWeight="Bold" Width="25" IsEnabled="{Binding Path=SelectedIndex, Converter={StaticResource IndexBoolConverter}, ElementName=listbox_focuses}" Height="25" />
										<Label Grid.Column="0" Grid.Row="0" Content="zugeordnete:" HorizontalAlignment="Center" />
										<ListBox Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Name="listbox_focuses" DisplayMemberPath="TypeDescription" ItemsSource="{Binding Path=Focuses}" IsSynchronizedWithCurrentItem="True" />
									</Grid>
								</GroupBox>
							</Grid>
						</TabItem>
						<TabItem Header="Betreuung" Selector.Selected="TabItemCustomers_Selected">
							<Grid>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>

								<GroupBox Visibility="Collapsed" x:Name="groupbox_newCustomerRel" Header="Klient zuordnen" Style="{StaticResource ObjectEditGroupBox}">
									<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="Klient" />
										<uc:PopUpEdit IsReadOnly="True" DeleteButtonVisibility="Collapsed" Grid.Column="1" Margin="3" Height="23" x:Name="popupedit_customerRelations" Text="{val:ValidationBinding Path=CustomerRelations.NewVM.CustomerString}" PopUpClick="popupedit_customerRelations_PopUpClick" />
										<Label Content="Rolle" Grid.Column="2" VerticalAlignment="Center" />
										<ComboBox Grid.Column="3" Margin="3" Height="23" ItemsSource="{Binding Path=CustomerRelations.PossibleRoles}" SelectedItem="{val:ValidationBinding Path=CustomerRelations.NewVM.Role}" />
										<Label Content="Notiz" Grid.Row="1" VerticalAlignment="Top" />
										<TextBox Grid.Row="1" Grid.Column="1" Height="50" Margin="3" Text="{Binding Path=CustomerRelations.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
										<Button Grid.Row="1" Grid.ColumnSpan="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" Height="25" Margin="3" Content="Hinzufügen" x:Name="button_addCustomerRelation" Click="button_addCustomerRelation_Click" />
									</Grid>
								</GroupBox>
								<GroupBox x:Name="GroupBoxCustomers" Header="Diesem Mitarbeiter zugeordnete Klienten" Grid.Row="1" Style="{StaticResource ObjectEditGroupBox}" Margin="0 20 0 0"></GroupBox>
							</Grid>
						</TabItem>
						<TabItem Header="Abwesenheiten" Selector.Selected="TabItemAbsenceTimes_Selected">
							<Grid x:Name="grid_absenceTimes">
								<Grid.Resources>
									<DataTemplate x:Key="DropDownItemTemplate">
										<Grid>
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="*" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="combo1" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="combo2" />
												<ColumnDefinition Width="Auto" SharedSizeGroup="combo3" />
											</Grid.ColumnDefinitions>
											<Label Content="{Binding Path=Description}" />
											<Label VerticalAlignment="Center" Content="max. abrechenbar:" Grid.Column="1" IsEnabled="False" Padding="0" />
											<Label VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" IsEnabled="False" Margin="3 0" Content="{Binding Path=Hours}" Padding="0" />
											<Label VerticalAlignment="Center" Grid.Column="3" IsEnabled="False" Margin="0" Content="h" Padding="0" />
										</Grid>
									</DataTemplate>
									<DataTemplate x:Key="SelectedItemTemplate">
										<Label Content="{Binding Path=Description}" Margin="3 0" Padding="0" />
									</DataTemplate>

								</Grid.Resources>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
									<RowDefinition Height="*" />
									<RowDefinition Height="Auto" />
								</Grid.RowDefinitions>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>


								<GroupBox Grid.Column="0" x:Name="groupbox_newAbsenceTime" Grid.Row="1" Grid.ColumnSpan="2" Header="Abwesenheit 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.Column="0" Grid.Row="0">Startdatum</Label>
										<Label Grid.Column="2" Grid.Row="0">Enddatum</Label>
										<Label Grid.Column="0" Grid.Row="1">Kategorie</Label>
										<Label Grid.Column="2" Grid.Row="1">Erläuterung</Label>
										<Button Grid.Row="2" Grid.ColumnSpan="4" HorizontalAlignment="Right" Height="25" Margin="1,10,0,3" Name="button_addAbsence" Click="button_addAbsence_Click" Style="{DynamicResource {x:Type Button}}">
											Abwesenheit hinzufügen
										</Button>

                                        <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="0" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=AbsenceTimes.NewVM.Start, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
                                        <dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="3" Grid.Row="0" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=AbsenceTimes.NewVM.End, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />

										<ComboBox Name="combox_reasons" Grid.Column="1" Grid.Row="1" Height="23" Margin="3" ItemsSource="{Binding Path=AbsenceTimes.PossibleReasons}" SelectedItem="{val:ValidationBinding Path=AbsenceTimes.NewVM.Reason}">
											<ComboBox.ItemContainerStyle>
												<Style>
													<Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
												</Style>
											</ComboBox.ItemContainerStyle>
										</ComboBox>
										<TextBox Grid.Column="3" Grid.Row="1" Height="23" Margin="3" Text="{Binding Path=AbsenceTimes.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />

									</Grid>
								</GroupBox>

								<GroupBox x:Name="GroupBoxAbsenceTimes" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Header="Erfasste Abwesenheiten" Style="{StaticResource ObjectEditGroupBox}"></GroupBox>
							</Grid>
						</TabItem>
						<TabItem Header="Überstunden" Selector.Selected="TabItemOvertimes_Selected" x:Name="OvertimeTabItem">
							<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 Grid.Column="0" x:Name="groupbox_newOvertime" Grid.Row="1" 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.Column="0" Grid.Row="0">Datum</Label>
										<Label Grid.Column="2" Grid.Row="0">Stunden</Label>
										<Label Grid.Column="0" Grid.Row="1">Art der Überstunden</Label>
										<Label Grid.Column="2" Grid.Row="1">Erläuterung</Label>
										<Button Grid.Column="3" Grid.Row="2" HorizontalAlignment="Right" Height="25" Margin="1,10,0,3" Name="button_addOvertime" Click="button_addOvertime_Click" Style="{DynamicResource {x:Type Button}}" Content="Überstunden hinzufügen" />

										<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Grid.Column="1" Grid.Row="0" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=Overtimes.NewVM.Date, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
										<dxe:TextEdit MaskType="Numeric" Grid.Column="3" Grid.Row="0" Height="23" Margin="3" EditValue="{val:ValidationBinding Path=Overtimes.NewVM.Betrag, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" />
										<ComboBox Name="combox_art" Grid.Column="1" Grid.Row="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>
										</ComboBox>
										<TextBox Grid.Column="3" Grid.Row="1" Height="23" Margin="3" Text="{Binding Path=Overtimes.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />

									</Grid>
								</GroupBox>

								<GroupBox x:Name="GroupBoxOvertimes" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Header="Erfasste Überstunden" Style="{StaticResource ObjectEditGroupBox}" />
							</Grid>
						</TabItem>
						<TabItem Header="Dokumente" Name="tabitem_documents" Selector.Selected="tabitem_documents_Selected" />
            
            <TabItem Header="Chat Service" Name="tabitem_chatservice" Selector.Selected="tabitem_chatservice_Selected" />

					</TabControl>
					<Border Grid.Row="2" Grid.ColumnSpan="3" Height="40" Margin="0,10,0,0" VerticalAlignment="Stretch" Background="#FF000000">
						<Border.OpacityMask>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#19000000" Offset="0" />
								<GradientStop Color="#33FFFFFF" Offset="1" />
							</LinearGradientBrush>
						</Border.OpacityMask>

					</Border>
					<StackPanel Grid.ColumnSpan="3" Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" Height="Auto" Margin="5,10,0,0" HorizontalAlignment="Right">
						<Button x:Name="btnSave" Content="Speichern" Margin="0,0,2,0" Command="ApplicationCommands.Save" Height="25" Style="{DynamicResource {x:Type Button}}" />
						<Button x:Name="btnClose" Content="Schließen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
					</StackPanel>
				</Grid>
			</GroupBox>
		</uc:ShadowChrome>
		<Popup Margin="10" Name="popup_customer" StaysOpen="False" Placement="MousePoint" Width="370" Height="250" Closed="popup_Closed" Opened="popup_Opened">
			<localSearchView:CustomerSearchView ItemSelected="CustomerSearchView_CustomerSelected" />
		</Popup>
	</Grid>
</localView:BeWoView>