545 lines
34 KiB
XML
545 lines
34 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.UserView"
|
|
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:t="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Focusable="True">
|
|
<Grid>
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel VerticalAlignment="Bottom" Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\UserBusinessMaleDisabled.png"
|
|
Stretch="Uniform">
|
|
<Image.RenderTransform>
|
|
<TransformGroup>
|
|
<ScaleTransform ScaleX="1" ScaleY="1" />
|
|
<SkewTransform AngleX="0" AngleY="0" />
|
|
<RotateTransform Angle="0" />
|
|
<TranslateTransform X="0" Y="5" />
|
|
</TransformGroup>
|
|
</Image.RenderTransform>
|
|
</Image>
|
|
<TextBox
|
|
Margin="10,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
FontSize="22"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding Path=Employee, Mode=OneWay}" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,3,0,0" Background="{DynamicResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{DynamicResource UserContentBrush}" />
|
|
<TabControl
|
|
x:Name="root"
|
|
Grid.Row="1"
|
|
Padding="4,4,4,4"
|
|
BorderThickness="0,0,0,0"
|
|
Style="{StaticResource ObjectEditTabControl}">
|
|
<TabItem Header="Details" IsSelected="True">
|
|
|
|
<Grid
|
|
Name="grid_root"
|
|
Width="Auto"
|
|
Grid.IsSharedSizeScope="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="450" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label Grid.Row="0" Content="{t:Translate MitarbeiterSingular}" />
|
|
<uc:PopUpEdit
|
|
Name="popupedit_employee"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Width="Auto"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Visible"
|
|
DeleteClick="popupedit_employee_DeleteClick"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_employee_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_employee_OnPreviewMouseDoubleClick"
|
|
Text="{Binding Path=EmployeeString, Mode=OneWay}" />
|
|
|
|
<Label
|
|
x:Name="label_LicenseTypes"
|
|
Grid.Row="1"
|
|
Content="{t:Translate Lizenztyp}" />
|
|
<ComboBox
|
|
x:Name="comboBox_LicenseTypes"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
ItemsSource="{Binding Path=AllLicenseTypes}"
|
|
SelectedValue="{Binding Path=LicenseType, Mode=TwoWay}" />
|
|
</Grid>
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Width="Auto"
|
|
Margin="0,15,0,0"
|
|
Padding="5"
|
|
Header="Zugangsdaten"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Content="Login Name" />
|
|
<TextBox
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
VerticalAlignment="Top"
|
|
Text="{Binding Path=LoginName, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
|
|
<Grid
|
|
Name="grid_passworNewUser"
|
|
Grid.Column="1"
|
|
Visibility="{Binding Path=IsNew, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label Content="Passwort" />
|
|
<PasswordBox
|
|
Name="passwordbox_password"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3" />
|
|
<Label Grid.Row="1" Content="Passwort wiederholen" />
|
|
<PasswordBox
|
|
Name="passwordbox_passwordRepeat"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3" />
|
|
</Grid>
|
|
|
|
<Grid
|
|
Name="grid_passwordExistingUser"
|
|
Grid.Column="1"
|
|
Visibility="Collapsed">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Content="Passwort" IsEnabled="False" />
|
|
<PasswordBox
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
IsEnabled="False"
|
|
Password="xxxxxxxxxx" />
|
|
<Button
|
|
Name="button_changePassword"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
Click="button_changePassword_Click"
|
|
Content="Passwort ändern" />
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="0,15,0,0"
|
|
Padding="5"
|
|
Header="{markup:Translate Benutzergruppen}"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label HorizontalAlignment="Center" Content="gewählte Gruppen" />
|
|
<Label
|
|
Grid.Column="3"
|
|
HorizontalAlignment="Center"
|
|
Content="mögliche Gruppen" />
|
|
<ListBox
|
|
Name="listbox_groups"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
MinHeight="100"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=UserGroups}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Margin="3" HorizontalAlignment="Stretch">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Margin="3,0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"
|
|
Content="{Binding Path=Name}"
|
|
IsHitTestVisible="False" />
|
|
<ToggleButton
|
|
Grid.Column="1"
|
|
Width="14"
|
|
Height="14"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Background="White"
|
|
IsChecked="{Binding Path=Tag, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Grid}}, Mode=OneWayToSource}"
|
|
Template="{StaticResource ExpanderToggleButton}"
|
|
Visibility="{Binding Path=Description, Converter={StaticResource ObjectVisibilityConverter}}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="10,3"
|
|
HorizontalAlignment="Left"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Cursor="Arrow"
|
|
FontSize="10"
|
|
IsHitTestVisible="False"
|
|
IsReadOnly="True"
|
|
Text="{Binding Path=Description}"
|
|
TextWrapping="WrapWithOverflow"
|
|
Visibility="{Binding Path=Tag, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Grid}}, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style>
|
|
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
</ListBox>
|
|
<Button
|
|
Name="button_addGroup"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addGroup_Click"
|
|
Content="<"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding Path=SelectedIndex, ElementName=listbox_possibleGroups, Converter={StaticResource IndexBoolConverter}}" />
|
|
<Button
|
|
Name="button_removeGroup"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="25"
|
|
Height="25"
|
|
Margin="3"
|
|
VerticalAlignment="Top"
|
|
Click="button_removeGroup_Click"
|
|
Content=">"
|
|
FontWeight="Bold"
|
|
IsEnabled="{Binding Path=SelectedIndex, ElementName=listbox_groups, Converter={StaticResource IndexBoolConverter}}" />
|
|
<ListBox
|
|
Name="listbox_possibleGroups"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="2"
|
|
MinHeight="100"
|
|
IsSynchronizedWithCurrentItem="True"
|
|
ItemsSource="{Binding Path=PossibleGroups}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Margin="3" HorizontalAlignment="Stretch">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Label
|
|
Margin="3,0"
|
|
Padding="0"
|
|
VerticalAlignment="Center"
|
|
Content="{Binding Path=Name}"
|
|
IsHitTestVisible="False" />
|
|
<ToggleButton
|
|
Grid.Column="1"
|
|
Width="14"
|
|
Height="14"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Background="White"
|
|
IsChecked="{Binding Path=Tag, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Grid}}, Mode=OneWayToSource}"
|
|
Template="{StaticResource ExpanderToggleButton}"
|
|
Visibility="{Binding Path=Description, Converter={StaticResource ObjectVisibilityConverter}}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
Margin="10,3"
|
|
HorizontalAlignment="Left"
|
|
Background="Transparent"
|
|
BorderThickness="0"
|
|
Cursor="Arrow"
|
|
FontSize="10"
|
|
IsHitTestVisible="False"
|
|
IsReadOnly="True"
|
|
Text="{Binding Path=Description}"
|
|
TextWrapping="WrapWithOverflow"
|
|
Visibility="{Binding Path=Tag, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Grid}}, Converter={StaticResource BoolVisibilityConverter}}" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
<ListBox.ItemContainerStyle>
|
|
<Style>
|
|
<Setter Property="Control.HorizontalContentAlignment" Value="Stretch" />
|
|
</Style>
|
|
</ListBox.ItemContainerStyle>
|
|
</ListBox>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<Popup
|
|
Name="popup_employee"
|
|
Grid.Row="3"
|
|
Grid.ColumnSpan="2"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
FocusManager.IsFocusScope="True"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:EmployeeSearchView x:Name="employeeSearchView" ItemSelected="EmployeeSearchView_EmployeeSelected" />
|
|
</Popup>
|
|
|
|
<Popup
|
|
Name="popup_changePassword"
|
|
Grid.Row="3"
|
|
Grid.ColumnSpan="2"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
FocusManager.IsFocusScope="True"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<Border
|
|
Background="{StaticResource ObjectEditBackgroundBrush}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1">
|
|
<Grid
|
|
Name="grid_passworEditExistingUser"
|
|
Grid.Column="1"
|
|
Margin="20,3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
Name="textblock_editFailures"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,3,3,10"
|
|
FontSize="12"
|
|
Foreground="Red"
|
|
TextWrapping="Wrap" />
|
|
|
|
<Label
|
|
Name="lblOldPassword"
|
|
Grid.Row="1"
|
|
Content="Altes Passwort" />
|
|
<PasswordBox
|
|
Name="passwordbox_editOldPassword"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
MinWidth="180"
|
|
Margin="3" />
|
|
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Margin="0,10,0,0"
|
|
Content="Neues Passwort" />
|
|
<PasswordBox
|
|
Name="passwordbox_editPassword"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,10,3,3"
|
|
PasswordChanged="Passwordbox_editPassword_OnPasswordChanged" />
|
|
<Label Grid.Row="3" Content="Passwort wiederholen" />
|
|
<PasswordBox
|
|
Name="passwordbox_editPasswordRepeat"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3" />
|
|
|
|
<!-- Hier Anzeige Für passwortStärke -->
|
|
<Label
|
|
Name="passwordbox_StaerkeAnzeige"
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
Visibility="Hidden" />
|
|
|
|
<Grid
|
|
Grid.Row="5"
|
|
Grid.ColumnSpan="2"
|
|
Grid.IsSharedSizeScope="True">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="but" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="but" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button
|
|
Name="button_saveEditPassword"
|
|
Height="23"
|
|
Margin="3,20,3,10"
|
|
Padding="3,0"
|
|
HorizontalAlignment="Stretch"
|
|
Click="button_saveEditPassword_Click"
|
|
Content="Änderung speichern" />
|
|
<Button
|
|
Name="button_cancelEditPassword"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3,20,3,10"
|
|
Padding="3,0"
|
|
HorizontalAlignment="Stretch"
|
|
Click="button_cancelEditPassword_Click"
|
|
Content="Abbrechen" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Popup>
|
|
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem
|
|
Name="tabitem_documents"
|
|
Header="Dokumente"
|
|
Selector.Selected="tabitem_documents_Selected" />
|
|
|
|
</TabControl>
|
|
<Border
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="40"
|
|
Margin="0,10,0,0"
|
|
VerticalAlignment="Stretch"
|
|
Background="#FF000000">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0" Color="#19000000" />
|
|
<GradientStop Offset="1" Color="#33FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="3"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="btnSave"
|
|
Height="25"
|
|
Margin="0,0,2,0"
|
|
Command="ApplicationCommands.Save"
|
|
Content="Speichern" />
|
|
<Button
|
|
x:Name="btnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</uc:ShadowChrome>
|
|
</Grid>
|
|
</localView:BeWoView> |