1162 lines
90 KiB
XML
1162 lines
90 KiB
XML
<localView:BeWoView x:Class="BeWo.View.Detail.SupportConceptView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
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:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:Core="clr-namespace:BeWo.Core"
|
|
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
|
|
xmlns:view="clr-namespace:BeWo.View.Detail"
|
|
xmlns:security="clr-namespace:BeWo.Security"
|
|
xmlns:controls="clr-namespace:BeWo.View.Controls"
|
|
xmlns:converter="clr-namespace:BeWo.Converter"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
Height="Auto" Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Focusable="True">
|
|
<localView:BeWoView.Resources>
|
|
<ResourceDictionary>
|
|
<view:ValueListEntryTypeToFontWeightConverter x:Key="ValueListEntryTypeToFontWeightConverter" />
|
|
<view:ValueListEntryTypeToColorConverter x:Key="ValueListEntryTypeToColorConverter" />
|
|
<converter:CollectionCountToVisibilityConverter x:Key="CollectionCountToVisibilityConverter"/>
|
|
|
|
<DataTemplate x:Key="DeleteBtnBetreuungsschluesselDataTemplate">
|
|
<Button Content="r" Click="DeleteBetreuungsschluesselButton_Click" Tag="{Binding}"
|
|
FontFamily="Webdings" Width="18" Height="18" VerticalAlignment="Center"
|
|
security:DemandUserRight.VisibleDemands="DeleteAll, Betreuungsschluessel_Delete" />
|
|
</DataTemplate>
|
|
</ResourceDictionary>
|
|
</localView:BeWoView.Resources>
|
|
<Grid x:Name="rootGrid">
|
|
<Grid.Resources>
|
|
<ContextMenu x:Key="cm" MenuItem.Click="ContextMenu_Click" Opened="ContextMenu_Opened">
|
|
<MenuItem Header="Neue Leistung" >
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Add24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="Umbenennen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Rename24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<Separator />
|
|
<MenuItem Header="Löschen" >
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Delete24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
<ContextMenu x:Key="cmGoals" MenuItem.Click="ContextMenuGoals_Click" Opened="ContextMenuGoals_Opened">
|
|
<MenuItem Header="Neues individuelles Ziel" >
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Add24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="Neue individuelle Maßnahme" >
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Add24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<MenuItem Header="Umbenennen">
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Rename24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
<Separator />
|
|
<MenuItem Header="Löschen" >
|
|
<MenuItem.Icon>
|
|
<Image Source="..\..\Ressources\Icons\Delete24.png"/>
|
|
</MenuItem.Icon>
|
|
</MenuItem>
|
|
</ContextMenu>
|
|
</Grid.Resources>
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{DynamicResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Bottom">
|
|
<Image Source="..\..\Ressources\Icons\IDBadgeDisabled.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 Path=Customer, Converter={StaticResource StringFormatConverter}, ConverterParameter='{}{0}', Mode=OneWay}"
|
|
Margin="10,0,0,0" Background="{x:Null}" Foreground="#FFFFFFFF" FontSize="22"
|
|
BorderBrush="{x:Null}" VerticalAlignment="Bottom" Padding="0,0,0,0" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Grid.IsSharedSizeScope="True" Margin="0,3,0,0" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Rectangle Fill="{DynamicResource SupportConceptContentBrush}" 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" Name="tabitem_details">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="grid_details" Grid.IsSharedSizeScope="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="0" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Header="Eigenschaften" Name="groupbox_details"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="col1" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="col3" />
|
|
<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" Content="{markup:Translate Klient}"/>
|
|
<uc:PopUpEdit IsReadOnly="True" Margin="3" Grid.Column="1"
|
|
Text="{val:ValidationBinding Path=CustomerString}"
|
|
DeleteButtonVisibility="Collapsed"
|
|
HorizontalAlignment="Stretch"
|
|
Name="popupedit_customer" PopUpClick="popupedit_customer_PopUpClick"
|
|
Cursor="Arrow" PreviewMouseDoubleClick="Popupedit_customer_OnPreviewMouseDoubleClick" />
|
|
<Label Grid.Column="2" Grid.Row="0">Ersteller</Label>
|
|
<uc:PopUpEdit Margin="3" Grid.Column="3" DeleteButtonVisibility="Collapsed"
|
|
HorizontalAlignment="Stretch"
|
|
IsReadOnly="True" Name="popupedit_employee"
|
|
PopUpClick="popupedit_employee_PopUpClick"
|
|
Cursor="Arrow" PreviewMouseDoubleClick="Popupedit_employee_OnPreviewMouseDoubleClick"/>
|
|
<Label Grid.Row="1" Content="Kommentar" />
|
|
<TextBox Height="100"
|
|
Text="{Binding Path=Notice, UpdateSourceTrigger=PropertyChanged}" Margin="3"
|
|
Grid.Row="1" Grid.Column="1"
|
|
Grid.ColumnSpan="3" TextWrapping="Wrap"
|
|
AcceptsReturn="True" AutoWordSelection="True"
|
|
VerticalScrollBarVisibility="Visible" />
|
|
<Grid Margin="0 5" Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="4">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Content="{markup:Translate Teilnahme an Hilfeplankonferenz}"/>
|
|
<RadioButton Grid.Column="1" Margin="5 0" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" IsChecked="{Binding Path=IsConferenceYes, UpdateSourceTrigger=PropertyChanged}">Ja</RadioButton>
|
|
<RadioButton Grid.Column="2" Margin="5 0" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" IsChecked="{Binding Path=IsConferenceNo, UpdateSourceTrigger=PropertyChanged}">Nein</RadioButton>
|
|
<RadioButton Grid.Column="3" Margin="5 0" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" IsChecked="{Binding Path=IsConferenceOpen, UpdateSourceTrigger=PropertyChanged}">noch Offen</RadioButton>
|
|
</Grid>
|
|
<Label Grid.Column="0" Grid.Row="3" Content="{markup:Translate Hilfeplan beantragt am}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="3"
|
|
EditValue="{Binding Mode=TwoWay, Path=RequisitionSendDate}" Height="23"
|
|
Margin="3,3,3,3"
|
|
Width="100"
|
|
HorizontalAlignment="Left" />
|
|
<Label Grid.Column="0" Grid.Row="4" Content="{markup:Translate Hilfeplan eingereicht am}"/>
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="4"
|
|
EditValue="{Binding Mode=TwoWay, Path=SupportConceptSendDate}" Height="23"
|
|
Margin="3,3,3,3"
|
|
Width="100"
|
|
HorizontalAlignment="Left" />
|
|
<Label Grid.Column="0" Grid.Row="5" Content="{markup:Translate Hilfeplankonferenz}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="5" x:Name="datepicker_ConferenceDate"
|
|
EditValue="{val:ValidationBinding Mode=TwoWay, Path=ConferenceDate}"
|
|
Height="23"
|
|
Margin="3,3,3,3"
|
|
Width="100"
|
|
HorizontalAlignment="Left" />
|
|
<Label Grid.Row="6" Content="{markup:Translate Ort des Hilfeplangesprächs}" />
|
|
<TextBox Height="23"
|
|
Text="{Binding Path=ConferenceVenue, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="3"
|
|
HorizontalAlignment="Left" Grid.Row="6" Grid.Column="1"
|
|
Width="200" />
|
|
<Label Grid.Column="0" Grid.Row="7" Content="{markup:Translate Ohne Beratungsbedarf}" />
|
|
<CheckBox Grid.Column="1" Grid.Row="7" Margin="3,6,3,3" Height="23"
|
|
IsChecked="{Binding Path=ConsultingNeeded, UpdateSourceTrigger=PropertyChanged}" />
|
|
<Label Grid.Column="0" Grid.Row="8" Content="{markup:Translate Bewilligung eingetroffen am}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="8" x:Name="datepicker_ApprovalDate"
|
|
EditValue="{val:ValidationBinding Mode=TwoWay, Path=ApprovalDate}"
|
|
Height="23"
|
|
Margin="3,3,3,3"
|
|
Width="100"
|
|
HorizontalAlignment="Left" />
|
|
<Label Grid.Column="0" Grid.Row="9" Content="{markup:Translate Verlängerung beantragt am}"/>
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" Grid.Column="1" Grid.Row="9"
|
|
EditValue="{Binding Mode=TwoWay, Path=RenewalSendDate}" Height="23"
|
|
Margin="3,3,3,3"
|
|
Width="100"
|
|
HorizontalAlignment="Left" />
|
|
<Label x:Name="lblArchiviert" Grid.Column="0" Grid.Row="10">Archiviert</Label>
|
|
<CheckBox x:Name="chkArchiviert" Grid.Column="1" Grid.Row="10" Margin="3,6,3,3" Height="23"
|
|
IsChecked="{Binding Path=IsArchived, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</GroupBox>
|
|
<Popup Margin="10" Grid.Row="2" Name="popup_customer" StaysOpen="False"
|
|
Placement="MousePoint" Width="370" Height="250" Closed="popup_Closed"
|
|
Opened="popup_Opened">
|
|
<localSearchView:CustomerSearchView ItemSelected="CustomerSearchView_CustomerSelected"
|
|
FetchReferenceNumbers="True" x:Name="customersearchview" />
|
|
</Popup>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{markup:Translate Kostenträger}" Name="tabitem_costbearer">
|
|
<GroupBox x:Name="groupBox_newCostBearer" 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="{markup:Translate Kostenträger}" 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="{markup:Translate Klicken Sie hier um einen weiteren Kostenträger hinzuzufügen}"
|
|
Name="button_addCostBearer" Click="button_addCostBearer_Click"
|
|
HorizontalAlignment="Left" Content="{markup:Translate Weiteren Kostenträger hinzufügen}" />
|
|
<TabControl x:Name="tabcontrol_costbearers" Grid.Row="1" Margin="5" ItemsSource="{Binding CostBearerRelations.VMList}">
|
|
<TabControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" IsEnabled="{Binding Path=IsAllowedToEditCostbearers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}">
|
|
<Label Content="{Binding CostBearerString}" />
|
|
<Button VerticalAlignment="Center" Height="20" Width="20" Name="ChangeCostbearerBtn"
|
|
Tag="{Binding}"
|
|
Click="ChangeCostbearerBtn_Click"
|
|
ToolTip="{markup:Translate Kostenträger tauschen}"
|
|
Margin="0">
|
|
<Button.Visibility>
|
|
<MultiBinding Converter="{StaticResource BoolVisibilityMultiConverter }">
|
|
<Binding Path="IsSelected" RelativeSource="{RelativeSource AncestorType={x:Type TabItem}}" />
|
|
<Binding Path="IsAllowedToChangeCostbeaerer" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}" />
|
|
</MultiBinding>
|
|
</Button.Visibility>
|
|
<Border Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" >
|
|
<Canvas VerticalAlignment="Center" HorizontalAlignment="Center" Width="20" Height="20" Margin="0,0,0,0" >
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="4" Canvas.Top="6" Y1="0" Y2="0" X1="0" X2="11" />
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="4" Canvas.Top="3" Y1="3" Y2="0" X1="0" X2="4" />
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="4" Canvas.Top="6" Y1="0" Y2="3" X1="0" X2="4" />
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="4" Canvas.Top="12" Y1="0" Y2="0" X1="0" X2="11" />
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="10" Canvas.Top="9" Y1="0" Y2="3" X1="0" X2="4" />
|
|
<Line Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" StrokeThickness="2" Canvas.Left="10" Canvas.Top="12" Y1="3" Y2="0" X1="0" X2="4" />
|
|
</Canvas>
|
|
</Border>
|
|
</Button>
|
|
<Button Visibility="{Binding IsSelected, RelativeSource={RelativeSource AncestorType={x:Type TabItem}}, Converter={StaticResource BoolVisibilityConverter}}"
|
|
VerticalAlignment="Center" Height="20" Name="btn_deleteCBRel"
|
|
Click="btn_deleteCBRel_Click"
|
|
ToolTip="{markup:Translate Kostenträger entfernen}"
|
|
Style="{DynamicResource CloseButtonStyle}" Margin="3,0,0,0" />
|
|
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</TabControl.ItemTemplate>
|
|
<TabControl.ContentTemplate>
|
|
<DataTemplate>
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
<Grid IsEnabled="{Binding Path=IsAllowedToEditCostbearers, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</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="*" MinWidth="125" MaxWidth="250"/>
|
|
</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" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="1"
|
|
Text="{markup:Translate Bezeichnung}" Visibility="{Binding Path=ShowHilfeplanBezeichnung, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}, Converter={StaticResource BoolVisibilityConverter}}"/>
|
|
<TextBox Grid.Column="1" Grid.Row="1" Margin="3"
|
|
Height="23" Visibility="{Binding Path=ShowHilfeplanBezeichnung, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}, Converter={StaticResource BoolVisibilityConverter}}"
|
|
Text="{val:ValidationBinding Path=AuswahlBezeichnung, UpdateSourceTrigger=PropertyChanged}"/>
|
|
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="2"
|
|
Text="{markup:Translate Aktenzeichen Klient}" />
|
|
<TextBox Grid.Column="1" Grid.Row="2" Margin="3"
|
|
Height="23"
|
|
Text="{val:ValidationBinding Path=CustomerReferenceNumber, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="3"
|
|
Text="{markup:Translate Beantragt von}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" x:Name="dtpRequestedStartDate"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=RequestedStartDate, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"
|
|
Grid.Column="1" Grid.Row="3"
|
|
Margin="3" Height="23"
|
|
/>
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="4"
|
|
Text="{markup:Translate Beantragt bis}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" EditValue="{Binding Path=RequestedEndDate, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"
|
|
Grid.Column="1" Grid.Row="4"
|
|
Margin="3" Height="23"/>
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="5"
|
|
Text="{markup:Translate Bewilligt von}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" EditValue="{Binding Path=ApprovedStartDate, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"
|
|
Grid.Column="1" Grid.Row="5"
|
|
Margin="3" Height="23"/>
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="6"
|
|
Text="{markup:Translate Bewilligt bis}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" AllowNullInput="True" EditValue="{Binding Path=ApprovedEndDate, Mode=TwoWay, UpdateSourceTrigger=LostFocus}"
|
|
Grid.Column="1" Grid.Row="6" Margin="3" Height="23"/>
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="7"
|
|
Text="{markup:Translate Notiz}" />
|
|
<TextBox Name="textbox_newCostBearerNotice"
|
|
Text="{Binding Path=Notice, UpdateSourceTrigger=PropertyChanged}" Grid.Row="7" Margin="3"
|
|
Height="23"
|
|
Grid.Column="1" />
|
|
<TextBlock VerticalAlignment="Center" Margin="3" Grid.Row="8"
|
|
Text="{markup:Translate Kostenträger Kontakt}" />
|
|
<uc:PopUpEdit NewButtonVisibility="Visible"
|
|
NewClick="popupedit_costBearerContactPersonSearch_NewClick"
|
|
IsReadOnly="True"
|
|
x:Name="popupedit_costBearerContactPersonSearch"
|
|
Grid.Column="1" Margin="3" Height="23" Grid.Row="8"
|
|
DeleteButtonVisibility="Collapsed"
|
|
PopUpClick="popupedit_costBearerContactPersonSearch_PopUpClick"
|
|
Text="{Binding Path=CostBearerContactPerson.FullName, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Cursor="Arrow" PreviewMouseDoubleClick="Popupedit_costBearerContactPersonSearch_OnPreviewMouseDoubleClick"/>
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox Grid.Column="1" Margin="5"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<!--<GroupBox.Visibility>
|
|
<MultiBinding
|
|
Converter="{StaticResource ObjectVisibilityMultiConverter}"
|
|
UpdateSourceTrigger="PropertyChanged">
|
|
<MultiBinding.Bindings>
|
|
<Binding Path="ApprovedStartDate" />
|
|
<Binding Path="ApprovedEndDate" />
|
|
</MultiBinding.Bindings>
|
|
</MultiBinding>
|
|
</GroupBox.Visibility>-->
|
|
<GroupBox.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="23" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{markup:Translate Bewilligungen}" TextElement.FontSize="16"
|
|
VerticalAlignment="Bottom"
|
|
TextElement.Foreground="{StaticResource TabItemHotTextBrush}"
|
|
TextElement.FontFamily="Microsoft Sans Serif"
|
|
Margin="0 1"
|
|
/>
|
|
<Button Margin="5,0,0,0" x:Name="button_addApprovalPeriod" Tag="{Binding}"
|
|
Click="button_addApprovalPeriod_Click"
|
|
HorizontalAlignment="Center" Grid.Column="1"
|
|
Width="21" Height="21" VerticalAlignment="Top">
|
|
<Grid Width="18" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
<Line X1="4" X2="12" Y1="8" Y2="8"
|
|
Fill="{x:Null}" Stroke="#FFFFFFFF"
|
|
StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round"
|
|
StrokeThickness="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Width="16"
|
|
Height="16" />
|
|
<Line X1="8" X2="8" Y1="4" Y2="12"
|
|
Fill="{x:Null}" Stroke="#FFFFFFFF"
|
|
StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round"
|
|
StrokeThickness="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Width="16"
|
|
Height="16" />
|
|
</Grid>
|
|
</Button>
|
|
</Grid>
|
|
</GroupBox.Header>
|
|
<ListView Name="listViewCostBearer" Grid.Row="1"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
|
|
ItemsSource="{Binding ApprovalPeriodList.VMList}"
|
|
Background="Transparent" BorderBrush="Transparent"
|
|
HorizontalAlignment="Left">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListBoxItem}">
|
|
<Setter Property="Focusable" Value="false" />
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<Border BorderBrush="#FF6A6A6A" Margin="3 3 3 5"
|
|
CornerRadius="2" VerticalAlignment="Top"
|
|
BorderThickness="1">
|
|
<Grid Margin="3" Loaded="ListItemGrid_OnLoaded">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto" MinWidth="100" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" MinWidth="100" />
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="0" />
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.ColumnSpan="6">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Margin="3" VerticalAlignment="Center"
|
|
FontWeight="Bold"
|
|
Text="{markup:Translate Gültig ab:}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" HorizontalAlignment="Stretch"
|
|
EditValue="{Binding Path=StartDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="1" Margin="3" Width="85"
|
|
Height="23"/>
|
|
<TextBlock Margin="3" VerticalAlignment="Center"
|
|
FontWeight="Bold"
|
|
Grid.Column="2"
|
|
Text="{markup:Translate Gültig bis:}" />
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" HorizontalAlignment="Stretch"
|
|
EditValue="{Binding Path=EndDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="3" Margin="3" Width="85"
|
|
Height="23"/>
|
|
<Label Grid.Column="4" VerticalAlignment="Center" Content="{markup:Translate Kategorie}" />
|
|
<dxe:ComboBoxEdit x:Name="cboServiceCategory"
|
|
Grid.Column="5"
|
|
Initialized="CboServiceCategory_OnInitialized"
|
|
EditValue="{Binding Path=ServiceCategory, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="3" Height="23" IsTextEditable="False" Width="150" >
|
|
<dxe:ComboBoxEdit.Buttons>
|
|
<dxe:ButtonInfo GlyphKind="Cancel" Click="ButtonInfo_OnClick" Tag="{Binding}"></dxe:ButtonInfo>
|
|
</dxe:ComboBoxEdit.Buttons>
|
|
</dxe:ComboBoxEdit>
|
|
|
|
<Button VerticalAlignment="Center"
|
|
Grid.Column="6" Width="20"
|
|
Height="20" Tag="{Binding}"
|
|
Name="btn_deleteApprovalPeriod"
|
|
Click="btn_deleteApprovalPeriod_Click"
|
|
HorizontalAlignment="Right"
|
|
Style="{DynamicResource CloseButtonStyle}"
|
|
Margin="3 0 0 2" />
|
|
<Border BorderBrush="#FF6A6A6A"
|
|
Grid.Row="1"
|
|
VerticalAlignment="Bottom"
|
|
Grid.ColumnSpan="7" Margin="0 2"
|
|
BorderThickness="0 0 0 1" />
|
|
|
|
</Grid>
|
|
<TextBlock VerticalAlignment="Center"
|
|
Grid.Row="1" Grid.Column="0"
|
|
Margin="3"
|
|
Text="{Binding TranslatedServiceUnitName, Mode=OneWay, UpdateSourceTrigger=PropertyChanged, StringFormat={markup:Translate \{0\} genehmigt}}" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
|
Grid.Row="1"
|
|
AllowNullInput="True"
|
|
Name="textbox_newCostBearerApprovedHours"
|
|
EditValue="{Binding Path=ApprovedBEPerInterval, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
Height="23" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Column="2" Text="pro"
|
|
Grid.Row="1" />
|
|
<ComboBox x:Name="combo_approvedIntervall"
|
|
Margin="3" Grid.Row="1"
|
|
ItemsSource="{x:Static core:EnumTranslations.SupportConceptApprovalInterval2Translations}"
|
|
SelectedValue="{Binding ApprovedBEInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
SelectedValuePath="Key"
|
|
DisplayMemberPath="Value"
|
|
Height="23"
|
|
Grid.Column="3" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Row="1"
|
|
Grid.Column="4" Text="{markup:Translate Übertragbar}" />
|
|
<CheckBox Height="23" Margin="3 8 0 0"
|
|
Grid.Column="5"
|
|
Grid.Row="1"
|
|
IsChecked="{Binding IsApprovedBEShifting, UpdateSourceTrigger=PropertyChanged}"
|
|
ToolTip="{markup:Translate Übertragung von Reststunden in den nachfolgenden Bewilligungsabschnitt möglich}" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Text="{Binding TranslatedServiceUnitName, Mode=OneWay, UpdateSourceTrigger=PropertyChanged, StringFormat={markup:Translate \{0\} Gesamt}}" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
|
AllowNullInput="True"
|
|
Grid.Row="2" Grid.Column="1"
|
|
Name="textbox_newCostBearerApprovedFLSTotal"
|
|
EditValue="{Binding Path=ApprovedBETotal, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="3"
|
|
Height="23"/>
|
|
<TextBlock VerticalAlignment="Center"
|
|
Grid.Row="3" Grid.Column="0"
|
|
Margin="3"
|
|
Text="{markup:Translate Betrag pauschal}" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
|
AllowNullInput="True"
|
|
Name="textbox_newCostBearerApprovedAllowance"
|
|
Grid.Row="3"
|
|
EditValue="{Binding ApprovedFixedAmount, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
Height="23"/>
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Row="3"
|
|
Grid.Column="2" Text="pro"
|
|
/>
|
|
<ComboBox x:Name="combo_approvedAllowanceIntervall"
|
|
ItemsSource="{x:Static core:EnumTranslations.SupportConceptApprovalInterval2Translations}"
|
|
SelectedValuePath="Key"
|
|
SelectedValue="{Binding ApprovedFixedAmountInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
DisplayMemberPath="Value"
|
|
Grid.Row="3" Margin="3" Height="23"
|
|
Grid.Column="3" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Row="3"
|
|
Grid.Column="4" Text="{markup:Translate Übertragbar}" />
|
|
<CheckBox Height="23" Margin="3 8 0 0"
|
|
Grid.Row="3" Grid.Column="5"
|
|
IsChecked="{Binding IsApprovedFixedAmountShifting, UpdateSourceTrigger=PropertyChanged}"
|
|
ToolTip="{markup:Translate Übertragung von Rest Budget in den nachfolgenden Bewilligungsabschnitt möglich}" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Text="{markup:Translate Monatlicher Abschlag}" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
|
AllowNullInput="True"
|
|
Grid.Row="4" Grid.Column="1"
|
|
Name="textbox_monthlyAmount"
|
|
EditValue="{Binding Path=MonthlyPayment, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="3"
|
|
Height="23" />
|
|
|
|
<TextBlock VerticalAlignment="Center"
|
|
Grid.Column="0"
|
|
Grid.Row="5"
|
|
Margin="3"
|
|
Text="Max. Kontakte" x:Name="lblContactCountPerInterval" />
|
|
<dxe:TextEdit MaskType="Numeric" Mask="########0.00" MaskUseAsDisplayFormat="True"
|
|
Grid.Row="5"
|
|
AllowNullInput="True"
|
|
Name="txtContactCountPerInterval"
|
|
EditValue="{Binding Path=ContactCountPerInterval, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
Height="23" />
|
|
<TextBlock VerticalAlignment="Center"
|
|
Margin="3"
|
|
Grid.Column="2" Text="pro"
|
|
Grid.Row="5" x:Name="lblContactCountInterval" />
|
|
<ComboBox x:Name="cboContactCountInterval"
|
|
Margin="3" Grid.Row="5"
|
|
ItemsSource="{x:Static core:EnumTranslations.SupportConceptApprovalInterval2Translations}"
|
|
SelectedValue="{Binding ContactCountInterval, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
SelectedValuePath="Key"
|
|
DisplayMemberPath="Value"
|
|
Height="23"
|
|
Grid.Column="3" />
|
|
<Button Grid.Row="6" Grid.Column="0" Height="25"
|
|
Grid.ColumnSpan="6"
|
|
Visibility="{Binding Path=SupportConceptApprovalEmployeeRelations.AddButtonVisibility}"
|
|
HorizontalAlignment="Left"
|
|
Margin="3" Content="{markup:Translate Betreuer hinzufügen}" x:Name="button_openAddBetreuungsschluessel"
|
|
Click="button_openAddBetreuungsschluessel_Click"
|
|
/>
|
|
</Grid>
|
|
</Border>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</DataTemplate>
|
|
</TabControl.ContentTemplate>
|
|
</TabControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
</TabItem>
|
|
<TabItem Header="Leistungen" Name="tabitem_serviceaccountings">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="grid_serviceaccountings">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Header="Definierte Leistungen" Style="{DynamicResource ObjectEditGroupBox}">
|
|
<TreeView x:Name="treeview_serviceAccountings" Margin="3 3 7 3" Grid.Row="1" Padding="5 5 10 5"
|
|
ItemContainerStyle="{DynamicResource treeitemstyle}"
|
|
ItemTemplate="{DynamicResource servicecat_treeitemtemplate}" Grid.RowSpan="1">
|
|
<!--MaxHeight="300" MinHeight="200"-->
|
|
<TreeView.Resources>
|
|
<Style x:Key="treeitemstyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
|
|
</Style>
|
|
|
|
<HierarchicalDataTemplate x:Key="servicecat_treeitemtemplate" DataType="{x:Type Core:ServiceCategoryTreeItem}" ItemsSource="{Binding Path=Children}">
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<CheckBox Tag="{Binding}" IsChecked="{Binding Path=IsChecked}" Grid.Column="0" Margin="3 2" VerticalAlignment="Center" />
|
|
<TextBlock Tag="{Binding}" Grid.Column="1" Margin="3 2" Text="{Binding Path=Name}" VerticalAlignment="Center" />
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
</GroupBox>
|
|
<!--<GroupBox Grid.Row="1" Header="Individuelle Leistungen" Style="{DynamicResource ObjectEditGroupBox}">
|
|
<TreeView x:Name="treeview_individualServiceAccountings" Margin="3 3 7 3" Grid.Row="1" Padding="0 5 10 5"
|
|
ItemContainerStyle="{DynamicResource treeitemstyle}"
|
|
ItemTemplate="{DynamicResource servicecat_treeitemtemplate}" Grid.RowSpan="1" ContextMenu="{StaticResource cm}"
|
|
PreviewMouseDown="TreeViewItem_PreviewMouseRightButtonDown" ItemsSource="{Binding IndividualServiceTree}" >
|
|
<TreeView.Resources>
|
|
<Style x:Key="treeitemstyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
|
|
</Style>
|
|
<HierarchicalDataTemplate x:Key="servicecat_treeitemtemplate" DataType="{x:Type Core:ServiceCategoryTreeItem}" ItemsSource="{Binding Path=Children}">
|
|
<Grid >
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
-->
|
|
<!--<CheckBox Tag="{Binding}" IsChecked="{Binding Path=IsChecked}" Grid.Column="0" Margin="3 2" VerticalAlignment="Center" />-->
|
|
<!--
|
|
-->
|
|
<!--<TextBlock Tag="{Binding}" Grid.Column="1" Margin="3 2" Text="{Binding Path=Name}" VerticalAlignment="Center" />-->
|
|
<!--
|
|
<TextBox Margin="0,0,0,0" Cursor="Arrow" Background="Transparent" Height="21" Padding="1,3,1,3" VerticalAlignment="Center" LostFocus="TextBox_LostFocus" KeyDown="TextBox_KeyDown" BorderThickness="0" IsReadOnly="True" Text="{Binding Path=Name, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
</GroupBox>-->
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_checkAllLeistungen" Click="button_checkAllLeistungen_Click"
|
|
HorizontalAlignment="Left">Alle auswählen</Button>
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_uncheckAllLeistungen" Click="button_uncheckAllLeistungen_Click"
|
|
HorizontalAlignment="Left">Alle abwählen</Button>
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_aufklappenAllLeistungen" Click="button_aufklappenAllLeistungen_Click"
|
|
HorizontalAlignment="Left">Alle aufklappen</Button>
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_zuklappenAllLeistungen" Click="button_zuklappenAllLeistungen_Click"
|
|
HorizontalAlignment="Left">Alle zuklappen</Button>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="Ziele" Name="tabitem_goals">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox Header="Definierte Ziele" Style="{DynamicResource ObjectEditGroupBox}">
|
|
<TreeView x:Name="treeview_Goals" Margin="3 3 7 3" Grid.Row="1" Padding="5 5 10 5"
|
|
ItemContainerStyle="{DynamicResource goal_treeitemstyle}"
|
|
ItemTemplate="{DynamicResource goal_treeitemtemplate}" Grid.RowSpan="1" MinHeight="100"
|
|
ContextMenu="{StaticResource cmGoals}"
|
|
PreviewMouseDown="GoalTreeViewItem_PreviewMouseRightButtonDown">
|
|
<TreeView.Resources>
|
|
<Style x:Key="goal_treeitemstyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
|
|
</Style>
|
|
<HierarchicalDataTemplate x:Key="goal_treeitemtemplate"
|
|
DataType="{x:Type Core:SupportConceptGoalTreeItem}"
|
|
ItemsSource="{Binding Path=Items}">
|
|
<Grid IsEnabled="{Binding Path=IsAllowedToEditGoals, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--IsThreeState="{Binding Path=IsGoal,Converter={StaticResource BoolReverseConverter}}"-->
|
|
|
|
<CheckBox x:Name="Bd" Tag="{Binding}"
|
|
IsThreeState="False"
|
|
IsChecked="{Binding Path=IsChecked, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="0" Margin="3 2" VerticalAlignment="Center"
|
|
Visibility="{Binding Path=GoalType, Converter={StaticResource IndividualGoalMassnahmeUncheckPreventConverter}}"/>
|
|
<TextBox x:Name="BdText" Tag="{Binding}" Grid.Column="1" Margin="0, 0, 0, 0"
|
|
Text="{Binding Path=ItemName, UpdateSourceTrigger=PropertyChanged}" IsReadOnly="True" Cursor="Arrow" Background="Transparent" Height="21" Padding="1,3,1,3" VerticalAlignment="Center"
|
|
LostFocus="TextBox_LostFocus" KeyDown="TextBox_KeyDown" BorderThickness="0"
|
|
FontWeight="{Binding Path=IsGoal, Converter={StaticResource ValueListEntryTypeToFontWeightConverter}}"
|
|
Foreground="{Binding Path=GoalType, Converter={StaticResource ValueListEntryTypeToColorConverter}}"/>
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
</GroupBox>
|
|
<!--<GroupBox Grid.Row="1" Header="Individuelle Ziele" Style="{DynamicResource ObjectEditGroupBox}" Visibility="Collapsed">
|
|
<TreeView x:Name="treeview_individualGoals" Margin="3 3 7 3" Grid.Row="1" Padding="0 5 10 5"
|
|
ItemContainerStyle="{DynamicResource igoal_treeitemstyle}"
|
|
ItemTemplate="{DynamicResource igoal_treeitemtemplate}" Grid.RowSpan="1" ContextMenu="{StaticResource cmGoals}"
|
|
PreviewMouseDown="GoalTreeViewItem_PreviewMouseRightButtonDown" ItemsSource="{Binding IndividualGoalTree}" >
|
|
<TreeView.Resources>
|
|
<Style x:Key="igoal_treeitemstyle" TargetType="TreeViewItem">
|
|
<Setter Property="IsExpanded" Value="{Binding Path=IsExpanded, Mode=TwoWay}" />
|
|
</Style>
|
|
<HierarchicalDataTemplate x:Key="igoal_treeitemtemplate" DataType="{x:Type Core:SupportConceptGoalTreeItem}" ItemsSource="{Binding Path=Items}">
|
|
<Grid IsEnabled="{Binding Path=IsAllowedToEditGoals, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
--><!--<CheckBox Tag="{Binding}" IsChecked="{Binding Path=IsChecked}" Grid.Column="0" Margin="3 2" VerticalAlignment="Center" />-->
|
|
<!--<TextBlock Tag="{Binding}" Grid.Column="1" Margin="3 2" Text="{Binding Path=Name}" VerticalAlignment="Center" />--><!--
|
|
<TextBox Margin="0,0,0,0" Cursor="Arrow" Background="Transparent" Height="21" Padding="1,3,1,3" VerticalAlignment="Center" LostFocus="TextBox_LostFocus" KeyDown="TextBox_KeyDown" BorderThickness="0" IsReadOnly="True" Text="{Binding Path=ItemName, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
</HierarchicalDataTemplate>
|
|
</TreeView.Resources>
|
|
</TreeView>
|
|
</GroupBox>-->
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<Button Margin="10 3 0 0" IsEnabled="{Binding Path=IsAllowedToEditGoals, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}"
|
|
Name="button_checkAllGoals" Click="button_checkAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle auswählen</Button>
|
|
<Button Margin="10 3 0 0" IsEnabled="{Binding Path=IsAllowedToEditGoals, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type view:SupportConceptView}}}"
|
|
Name="button_uncheckAllGoals" Click="button_uncheckAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle abwählen</Button>
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_aufklappenAllGoals" Click="button_aufklappenAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle aufklappen</Button>
|
|
<Button Margin="10 3 0 0"
|
|
Name="button_zuklappenAllGoals" Click="button_zuklappenAllGoals_Click"
|
|
HorizontalAlignment="Left">Alle zuklappen</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="Aufgaben" Name="tabitem_tasks">
|
|
<Grid x:Name="tabitem_grid_tasks">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox x:Name="groupbox_newTask" Header="Aufgabe hinzufügen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid Grid.IsSharedSizeScope="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="c1" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Column="0" Grid.Row="0">Titel</Label>
|
|
<Label Grid.Column="0" Grid.Row="2">Beschreibung</Label>
|
|
<TextBox Margin="3"
|
|
Height="23"
|
|
Grid.Column="1"
|
|
Text="{val:ValidationBinding Path=Tasks.NewVM.Title}" />
|
|
<TextBox Margin="3"
|
|
VerticalAlignment="Stretch" Grid.Row="2" Grid.Column="1"
|
|
AcceptsReturn="True" Text="{Binding Tasks.NewVM.Description}" />
|
|
<Grid Grid.Row="1" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="c1" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label>zu erledigen bis</Label>
|
|
<dxe:DateEdit MaskType="DateTimeAdvancingCaret" Margin="3" Height="23" Grid.Column="1" Grid.Row="0"
|
|
EditValue="{Binding Path=Tasks.NewVM.DueDate, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"/>
|
|
<Label Grid.Column="2">um</Label>
|
|
<dxe:TextEdit MaskType="DateTime" Mask="t" MaskUseAsDisplayFormat="True" Margin="3" Height="23"
|
|
EditValue="{Binding Mode=TwoWay, Path=Tasks.NewVM.DueTime, UpdateSourceTrigger=PropertyChanged}"
|
|
Grid.Column="3" x:Name="endTime" />
|
|
</Grid>
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal">
|
|
<Label Margin="3" Height="23" Content="{markup:Translate für Mitarbeiter}" />
|
|
<Button x:Name="button_addemployee" HorizontalAlignment="Right"
|
|
VerticalAlignment="Top" Click="button_addemployee_Click" Height="21"
|
|
Width="21" Margin="3" ToolTip="{markup:Translate Mitarbeiter hinzufügen}">
|
|
<Grid Width="18" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Line X1="4" X2="12" Y1="8" Y2="8" Fill="{x:Null}" Stroke="#FFFFFFFF"
|
|
StrokeStartLineCap="Round" StrokeEndLineCap="Round"
|
|
StrokeThickness="2" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Width="16" Height="16" />
|
|
<Line X1="8" X2="8" Y1="4" Y2="12" Fill="{x:Null}" Stroke="#FFFFFFFF"
|
|
StrokeStartLineCap="Round" StrokeEndLineCap="Round"
|
|
StrokeThickness="2" HorizontalAlignment="Center"
|
|
VerticalAlignment="Center" Width="16" Height="16" />
|
|
</Grid>
|
|
</Button>
|
|
</StackPanel>
|
|
<ListView Grid.Row="1" Grid.Column="2" Grid.RowSpan="2" Margin="3"
|
|
HorizontalAlignment="Stretch" Height="100"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
ItemsSource="{Binding Tasks.NewVM.Employees}" x:Name="taskEmployeeListView">
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="{x:Type ListBoxItem}">
|
|
<EventSetter Event="MouseDoubleClick" Handler="DoubleClickHandler" />
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" Margin="1">
|
|
<Button Style="{StaticResource {x:Type Button}}"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Height="18" Padding="0"
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
|
|
Margin="3 0 0 0" Click="button_remove_employee_Click"
|
|
Tag="{Binding}" ToolTip="Entfernen">
|
|
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Path Stroke="White" StrokeThickness="1.5"
|
|
Data="M -3,-3 L 3, 3" StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round" />
|
|
<Path Stroke="White" StrokeThickness="1.5"
|
|
Data="M 3,-3 L -3, 3" StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round" />
|
|
</Canvas>
|
|
</Button>
|
|
<Label VerticalAlignment="Center" Margin="3 0 0 0" Padding="0"
|
|
Content="{Binding Path=LastName}" />
|
|
<Label VerticalAlignment="Center" Margin="0" Padding="0"
|
|
Content=", " />
|
|
<Label VerticalAlignment="Center" Margin="0" Padding="0"
|
|
Content="{Binding Path=FirstName}" />
|
|
<Label VerticalAlignment="Center" Margin="0" Padding="0"
|
|
Content=" (" />
|
|
<Label VerticalAlignment="Center" Margin="0" Padding="0"
|
|
Content="{Binding Path=PersonnelNumber}" />
|
|
<Label VerticalAlignment="Center" Margin="0" Padding="0"
|
|
Content=")" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
<Button Grid.Row="3" Grid.ColumnSpan="3" HorizontalAlignment="Right" Height="25"
|
|
Margin="1,10,0,3" Name="button_addTask" Click="button_addTask_Click"
|
|
Style="{DynamicResource {x:Type Button}}">Aufgabe hinzufügen</Button>
|
|
</Grid>
|
|
</GroupBox>
|
|
<GroupBox x:Name="GroupBoxTasks" Grid.Row="1" Header="Aufgaben"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<dxg:GridControl x:Name="grid_tasks" Margin="3" VerticalAlignment="Stretch"
|
|
Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="7"
|
|
DataSource="{Binding Path=Tasks.VMList}" HorizontalAlignment="Stretch">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn FieldName="Notice" Header="" FixedWidth="True" Width="24"
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button Content="r" Click="button_removeTask_Click"
|
|
FontFamily="Webdings" Width="18" Height="18"
|
|
VerticalAlignment="Center" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="Title" Header="Titel" />
|
|
<dxg:GridColumn FieldName="Description" Header="Beschreibung">
|
|
<dxg:GridColumn.EditSettings>
|
|
<dxe:TextEditSettings AcceptsReturn="True"></dxe:TextEditSettings>
|
|
</dxg:GridColumn.EditSettings>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="Employees" Header="{markup:Translate für Mitarbeiter}" AllowEditing="True">
|
|
<dxg:GridColumn.DisplayTemplate>
|
|
<ControlTemplate>
|
|
<ListView BorderThickness="0" ItemsSource="{Binding Value}">
|
|
<ListView.Resources>
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
|
|
Color="Transparent" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
|
|
Color="Transparent" />
|
|
</ListView.Resources>
|
|
</ListView>
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.DisplayTemplate>
|
|
<dxg:GridColumn.EditTemplate>
|
|
<ControlTemplate>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Button Cursor="Hand" Foreground="Blue"
|
|
HorizontalAlignment="Left" Margin="3 1 0 0"
|
|
Loaded="Button_Loaded" Content="{markup:Translate Mitarbeiter hinzufügen}">
|
|
<Button.Template>
|
|
<ControlTemplate TargetType="Button">
|
|
<TextBlock>
|
|
<ContentPresenter /></TextBlock>
|
|
</ControlTemplate>
|
|
</Button.Template>
|
|
</Button>
|
|
<ListView Name="PART_Editor" BorderThickness="0" Grid.Row="1"
|
|
MaxHeight="100"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
ItemsSource="{Binding Value}">
|
|
<ListView.Resources>
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
|
|
Color="Transparent" />
|
|
<SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}"
|
|
Color="Transparent" />
|
|
</ListView.Resources>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal" Margin="1">
|
|
<Button Style="{StaticResource {x:Type Button}}"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Height="18" Padding="0"
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
|
|
Margin="1 0 0 0"
|
|
Click="button_remove_edit_employee_Click"
|
|
Tag="{Binding}" ToolTip="Entfernen">
|
|
<Canvas HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<Path Stroke="White"
|
|
StrokeThickness="1.5"
|
|
Data="M -3,-3 L 3, 3"
|
|
StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round" />
|
|
<Path Stroke="White"
|
|
StrokeThickness="1.5"
|
|
Data="M 3,-3 L -3, 3"
|
|
StrokeStartLineCap="Round"
|
|
StrokeEndLineCap="Round" />
|
|
</Canvas>
|
|
</Button>
|
|
<Label VerticalAlignment="Center"
|
|
Margin="3 0 0 0" Padding="0"
|
|
Content="{Binding Path=LastName}" PreviewMouseDoubleClick="Control_OnPreviewMouseDoubleClick" />
|
|
<Label VerticalAlignment="Center"
|
|
Margin="0"
|
|
Padding="0"
|
|
Content=", " PreviewMouseDoubleClick="Control_OnPreviewMouseDoubleClick" />
|
|
<Label VerticalAlignment="Center"
|
|
Margin="0"
|
|
Padding="0"
|
|
Content="{Binding Path=FirstName}" PreviewMouseDoubleClick="Control_OnPreviewMouseDoubleClick" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</dxg:GridColumn.EditTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="DueDate" Header="Erledigen zum">
|
|
<dxg:GridColumn.EditSettings>
|
|
<dxe:DateSettings DisplayFormat="d" MaskType="DateTimeAdvancingCaret" ></dxe:DateSettings>
|
|
</dxg:GridColumn.EditSettings>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="DueTime" Header="Um">
|
|
<dxg:GridColumn.EditSettings>
|
|
<dxe:TextEditSettings MaskType="DateTime"
|
|
MaskUseAsDisplayFormat="True" Mask="t"></dxe:TextEditSettings>
|
|
</dxg:GridColumn.EditSettings>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="CompletedDate"
|
|
Header="Erledigt am">
|
|
<dxg:GridColumn.EditSettings>
|
|
<dxe:DateSettings DisplayFormat="d" MaskType="DateTimeAdvancingCaret" ></dxe:DateSettings>
|
|
</dxg:GridColumn.EditSettings>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn FieldName="CompletedNotice" Header="Notiz" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView x:Name="gridViewTasks" AutoWidth="true" ShowGroupPanel="False"
|
|
ShowGroupedColumns="false" ShowTotalSummary="False"
|
|
NavigationStyle="Cell" MultiSelectMode="None" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="Dokumente" Name="tabitem_documents" 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 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" />
|
|
<Button x:Name="btnClose" Content="Schließen" Margin="0,0,3,0" Command="ApplicationCommands.Close" Height="25" />
|
|
</StackPanel>
|
|
<Popup Margin="10" Grid.Row="7" Grid.ColumnSpan="4" Name="popup_costbearer" StaysOpen="False"
|
|
Placement="MousePoint"
|
|
Width="370"
|
|
Height="250" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:OrganisationSearchView SearchMode="CostBearer" ItemSelected="CostBearerSearchView_OrganisationSelected" x:Name="costbearersearchview" />
|
|
</Popup>
|
|
<Popup Margin="10" Grid.Row="2" Name="popup_employee" StaysOpen="False"
|
|
Placement="MousePoint"
|
|
Width="370"
|
|
Height="250" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_EmployeeSelected" x:Name="employeesearchview" />
|
|
</Popup>
|
|
<Popup Margin="10" x:Name="popup_person" StaysOpen="False"
|
|
Placement="MousePoint"
|
|
Width="370"
|
|
Height="250" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:PersonSearchView x:Name="personsearchview" />
|
|
</Popup>
|
|
|
|
<Popup Margin="10" Grid.Row="2" Name="popup_employee2" StaysOpen="False"
|
|
Placement="MousePoint"
|
|
Width="370"
|
|
Height="250" Closed="popup_Closed" Opened="popup_Opened">
|
|
<localSearchView:EmployeeSearchView ItemSelected="EmployeeSearchView_EmployeeSelected2" x:Name="employeesearchview2" />
|
|
</Popup>
|
|
<controls:PopupNonTopmost Topmost="False" x:Name="popup_newBetreuungsschluessel" Width="350" StaysOpen="True" Placement="MousePoint">
|
|
<Border Background="White" Padding="3" BorderThickness="1" BorderBrush="Gray">
|
|
<GroupBox x:Name="groupbox_newBetreuungsschluessel" Header="{markup:Translate Neuen Betreuer hinzufügen}" Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label VerticalAlignment="Center" Content="{markup:Translate Mitarbeiter}" />
|
|
<uc:PopUpEdit IsReadOnly="True"
|
|
DeleteButtonVisibility="Collapsed"
|
|
Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="2" Margin="3" Height="23" x:Name="popupedit_betreuungsschluessel"
|
|
Text="{val:ValidationBinding Path=SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations.NewVM.EmployeeString, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type view:SupportConceptView}, Mode=FindAncestor}}"
|
|
PopUpClick="popupedit_betreuungsschluessel_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_betreuungsschluessel_OnPreviewMouseDoubleClick"
|
|
Cursor="Arrow" />
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="1" x:Name="RadioAbsolPro" Visibility="Collapsed" Margin="3">
|
|
<RadioButton x:Name="RadioProzent" GroupName="ProAbso" Content="Prozentual" IsChecked="{Binding Path=SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations.IsProzentual}" Click="ToggledProz_OnChecked"/>
|
|
<RadioButton GroupName="ProAbso" Content="Absolut" IsChecked="{Binding Path=SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations.IsAbsolut}" Margin="5,0,0,0" Click="ToggledAbsol_OnChecked"/>
|
|
</StackPanel>
|
|
|
|
<Label Content="Anteil an der Betreuung (%)" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Visibility="Visible" x:Name="LabelProzentual"/>
|
|
<dxe:SpinEdit IsFloatValue="True" MinValue="0" MaxValue="100" Increment="10" Grid.Column="1" Grid.Row="2" Margin="3" Height="23"
|
|
Grid.ColumnSpan="2" Visibility="Visible" x:Name="editProzentual"
|
|
EditValue="{Binding Path=SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations.NewVM.Betreuungsschluessel, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type view:SupportConceptView}, Mode=FindAncestor}}" />
|
|
|
|
<Label Content="Anteil an der Betreuung (Minuten)" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" Visibility="Collapsed" x:Name="LabelAbsolut"/>
|
|
<dxe:SpinEdit IsFloatValue="False" MinValue="0" Increment="1" Grid.Column="1" Grid.Row="2" Margin="3" Height="23" MaskUseAsDisplayFormat="True" Mask="########0" MaskType="Numeric"
|
|
Grid.ColumnSpan="2" Visibility="Collapsed" x:Name="editAbsolut"
|
|
EditValue="{Binding Path=SelectedApprovalPeriodVM.SupportConceptApprovalEmployeeRelations.NewVM.Betreuungsschluessel, UpdateSourceTrigger=PropertyChanged, RelativeSource={RelativeSource AncestorLevel=1, AncestorType={x:Type view:SupportConceptView}, Mode=FindAncestor}}" />
|
|
|
|
<Button Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" Height="25"
|
|
Margin="3" Content="Hinzufügen" x:Name="button_addBetreuungsschluessel"
|
|
Click="button_addBetreuungsschluessel_Click" />
|
|
<Button Grid.Row="3" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="25"
|
|
Margin="3" Content="Abbrechen" x:Name="button_cancelBetreuungsschluessel"
|
|
Click="button_cancelBetreuungsschluessel_Click" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</controls:PopupNonTopmost>
|
|
</Grid>
|
|
</GroupBox>
|
|
</uc:ShadowChrome>
|
|
</Grid>
|
|
</localView:BeWoView> |