357 lines
20 KiB
XML
357 lines
20 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.GroupOfPeopleView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
<Grid>
|
|
<GroupBox Style="{StaticResource PopUpWindowStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel
|
|
Margin="0"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Image
|
|
Width="Auto"
|
|
Height="28"
|
|
Margin="0,0,0,0"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\UserGroupBusinessDisabled.png">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="0" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBlock
|
|
Margin="10,4,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="{x:Null}"
|
|
FontSize="20"
|
|
Foreground="#FFFFFFFF"
|
|
Text="Gruppe bearbeiten" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,0,0,0" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{DynamicResource TeamContentBrush}" />
|
|
<Grid
|
|
Name="grid_root"
|
|
Grid.Row="1"
|
|
Margin="10,10,10,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
Width="180"
|
|
Header="Alle Gruppen"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btnAddGroup"
|
|
Height="21"
|
|
Margin="0,0,0,3"
|
|
HorizontalAlignment="Right"
|
|
Click="btnAddGroup_Click"
|
|
ToolTip="Neue Gruppe hinzufügen">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid
|
|
Width="18"
|
|
Margin="0,-2,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
<Line
|
|
Width="16"
|
|
Height="16"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Fill="{x:Null}"
|
|
Stroke="#FFFFFFFF"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="2"
|
|
X1="4"
|
|
X2="12"
|
|
Y1="8"
|
|
Y2="8" />
|
|
<Line
|
|
Width="16"
|
|
Height="16"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Fill="{x:Null}"
|
|
Stroke="#FFFFFFFF"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="2"
|
|
X1="8"
|
|
X2="8"
|
|
Y1="4"
|
|
Y2="12" />
|
|
</Grid>
|
|
<TextBlock Grid.Column="1" Text="Neue Gruppe" />
|
|
</Grid>
|
|
|
|
</Button>
|
|
</StackPanel>
|
|
<ListBox
|
|
Grid.Row="1"
|
|
ItemsSource="{Binding VMList}"
|
|
SelectedItem="{Binding EditVM}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
|
|
Height="18"
|
|
Margin="3,0,0,0"
|
|
Padding="0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Click="button_removegroup_Click"
|
|
Style="{StaticResource {x:Type Button}}"
|
|
Tag="{Binding}"
|
|
ToolTip="Entfernen">
|
|
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Path
|
|
Data="M -3,-3 L 3, 3"
|
|
Stroke="White"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="1.5" />
|
|
<Path
|
|
Data="M 3,-3 L -3, 3"
|
|
Stroke="White"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="1.5" />
|
|
</Canvas>
|
|
</Button>
|
|
<Label
|
|
Margin="3,0,0,3"
|
|
Padding="0"
|
|
Content="{Binding Path=Name}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
|
|
<Grid
|
|
Grid.Column="1"
|
|
Margin="10,0,0,0"
|
|
DataContext="{Binding EditVM}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="0" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}">Name der Gruppe</Label>
|
|
|
|
<TextBox
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,0,3,0"
|
|
IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}"
|
|
Text="{val:ValidationBinding Path=Name,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<GroupBox
|
|
Grid.Row="3"
|
|
Grid.ColumnSpan="4"
|
|
Margin="3,15,0,0"
|
|
Header="Mitglieder hinzufügen"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="220" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label
|
|
VerticalAlignment="Bottom"
|
|
Content="{markup:Translate Zugeordnete Hilfepläne}"
|
|
IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}" />
|
|
|
|
<ListBox
|
|
Name="listbox_teamMember"
|
|
Grid.Row="1"
|
|
IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}"
|
|
ItemsSource="{Binding Path=SupportConceptList}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<Button
|
|
Width="{Binding RelativeSource={RelativeSource Self}, Path=ActualHeight}"
|
|
Height="18"
|
|
Margin="3,0,0,0"
|
|
Padding="0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Click="button_remove_Click"
|
|
Style="{StaticResource {x:Type Button}}"
|
|
Tag="{Binding}"
|
|
ToolTip="Entfernen">
|
|
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
|
<Path
|
|
Data="M -3,-3 L 3, 3"
|
|
Stroke="White"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="1.5" />
|
|
<Path
|
|
Data="M 3,-3 L -3, 3"
|
|
Stroke="White"
|
|
StrokeEndLineCap="Round"
|
|
StrokeStartLineCap="Round"
|
|
StrokeThickness="1.5" />
|
|
</Canvas>
|
|
</Button>
|
|
<Label
|
|
Margin="3,0,0,3"
|
|
Padding="0"
|
|
Content="{Binding Path=LastName}" />
|
|
<Label
|
|
Margin="0"
|
|
Padding="0"
|
|
Content=", " />
|
|
<Label
|
|
Margin="0"
|
|
Padding="0"
|
|
Content="{Binding Path=FirstName}" />
|
|
<Label
|
|
Margin="0"
|
|
Padding="0"
|
|
Content=", " />
|
|
<Label
|
|
Margin="0"
|
|
Padding="0"
|
|
Content="{Binding Path=FirstCostBearerDetailString}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
|
|
<Button
|
|
Name="button_add"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
MinWidth="30"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Click="button_add_Click"
|
|
Content="<"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}"
|
|
ToolTip="Neues Gruppenmitglied hinzufügen" />
|
|
|
|
<Label
|
|
Grid.Column="2"
|
|
VerticalAlignment="Bottom"
|
|
Content="{markup:Translate Verfügbare Hilfepläne}"
|
|
IsEnabled="{Binding Converter={StaticResource ObjectBoolConverter}}" />
|
|
<localSearchView:SupportConceptSearchView
|
|
x:Name="SupportConceptSearchView"
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
IsMultiSelect="True"
|
|
SearchMode="ActiveCostbearer2SupportConcepts"
|
|
ShowFilterPanel="True" />
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btnSave"
|
|
Height="25"
|
|
Margin="0,0,2,0"
|
|
Command="ApplicationCommands.Save"
|
|
Content="Speichern und schließen" />
|
|
<Button
|
|
x:Name="btnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</localView:BeWoView> |