835 lines
50 KiB
XML
835 lines
50 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.PersonView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:core="clr-namespace:BS.Shared.Core;assembly=BS.Shared"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:security="clr-namespace:BeWo.Security"
|
|
xmlns: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 x:Name="rootGrid">
|
|
<Grid.Resources>
|
|
<dxg:GridControl x:Key="grid_Relations" DataSource="{Binding Path=OrganisationRelations.VMList}">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
Width="24"
|
|
FieldName="Notice"
|
|
FixedWidth="True"
|
|
Header=""
|
|
ReadOnly="True">
|
|
<dxg:GridColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
Width="18"
|
|
Height="18"
|
|
VerticalAlignment="Center"
|
|
Click="button_removeOrganisationRelation_Click"
|
|
Content="r"
|
|
FontFamily="Webdings" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
FieldName="OrganisationString"
|
|
Header="Organisation"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
FieldName="RolleInOrganisation"
|
|
Header="Rolle"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn FieldName="Mail" Header="Mail" />
|
|
<dxg:GridColumn FieldName="Phone" Header="Tel." />
|
|
<dxg:GridColumn FieldName="Fax" Header="Fax" />
|
|
<dxg:GridColumn FieldName="Notice" Header="Notiz" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
RowDoubleClick="TableView_OnRowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid.Resources>
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel VerticalAlignment="Bottom" Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\AnonymousUserDisabled.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
|
|
x:Name="firstnameTextBox"
|
|
Margin="10,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
FontSize="22"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding FirstName}" />
|
|
<TextBox
|
|
Margin="3,0,0,0"
|
|
Padding="0,0,0,0"
|
|
VerticalAlignment="Bottom"
|
|
Background="{x:Null}"
|
|
BorderBrush="{x:Null}"
|
|
FontSize="22"
|
|
Foreground="#FFFFFFFF"
|
|
Text="{Binding LastName}" />
|
|
</StackPanel>
|
|
</GroupBox.Header>
|
|
<Grid Margin="0,3,0,0" Background="{StaticResource ObjectEditBackgroundBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Rectangle Height="6" Fill="{StaticResource PersonContentBrush}" />
|
|
<TabControl
|
|
x:Name="root"
|
|
Grid.Row="1"
|
|
Padding="4,4,4,4"
|
|
BorderThickness="0,0,0,0"
|
|
Style="{StaticResource ObjectEditTabControl}">
|
|
<TabItem Header="Details" IsSelected="True">
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="grid_details">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="20" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
Grid.RowSpan="3"
|
|
Header="Eigenschaften"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<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" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Content="Titel" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Vorname" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Nachname" />
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Content="Geburtstag" />
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Content="Geschlecht" />
|
|
<Label
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Content="Familienstand" />
|
|
<Label
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Content="Funktion" />
|
|
<Label
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Content="Staatsangehörigkeit" />
|
|
<Label
|
|
Grid.Row="8"
|
|
Grid.Column="0"
|
|
Content="Migrationshintergrund" />
|
|
<Label
|
|
Grid.Row="9"
|
|
Grid.Column="0"
|
|
Content="Aufenthaltsstatus" />
|
|
<Label
|
|
x:Name="lblArchiviert"
|
|
Grid.Row="10"
|
|
Grid.Column="0"
|
|
Content="Archiviert" />
|
|
<Label
|
|
Grid.Row="11"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Top"
|
|
Content="Notizen" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_Title"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
SelectedValue="{Binding Path=Title, Mode=TwoWay}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=FirstName, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{val:ValidationBinding Path=LastName,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<!--<uc:MaskedTextBox Grid.Column="1" Grid.Row="3" Mask="00/00/0000" Margin="3" Height="23" Text="{Binding Path=DateOfBirth, Converter={StaticResource DateConverter}, UpdateSourceTrigger=PropertyChanged}" Width="Auto" HorizontalAlignment="Left" />-->
|
|
<dxe:DateEdit
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Width="100"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
AllowNullInput="True"
|
|
EditValue="{Binding Path=DateOfBirth, UpdateSourceTrigger=PropertyChanged}"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
<Grid
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="0,3,0,3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="RB1" />
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="RB1" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<RadioButton
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="männlich"
|
|
IsChecked="{Binding Path=IsMale, UpdateSourceTrigger=PropertyChanged}" />
|
|
<RadioButton
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="weiblich"
|
|
IsChecked="{Binding Path=IsFemale, UpdateSourceTrigger=PropertyChanged}" />
|
|
<RadioButton
|
|
Grid.Column="2"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="divers"
|
|
IsChecked="{Binding Path=IsDivers, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
<uc:NullItemComboBox
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
DisplayMemberPath="Value"
|
|
ItemsSource="{x:Static core:EnumTranslations.FamilyStatusTranslations}"
|
|
SelectedValue="{Binding Path=FamilyStatus}"
|
|
SelectedValuePath="Key" />
|
|
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_Function"
|
|
Grid.Row="6"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
SelectedValue="{Binding Path=Function, Mode=TwoWay}" />
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_Nationalitaet"
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
SelectedValue="{Binding Path=Nationalitaet, Mode=TwoWay}" />
|
|
<CheckBox
|
|
x:Name="chkMigration"
|
|
Grid.Row="8"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,5,3,1"
|
|
VerticalAlignment="Center"
|
|
IsChecked="{Binding Path=IsMigrant, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<uc:NullItemComboBox
|
|
x:Name="comboBox_Aufenthalt"
|
|
Grid.Row="9"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
MinWidth="120"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
SelectedValue="{Binding Path=AufenthaltsStatus, Mode=TwoWay}" />
|
|
|
|
<CheckBox
|
|
x:Name="chkArchiviert"
|
|
Grid.Row="10"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3,5,3,1"
|
|
VerticalAlignment="Stretch"
|
|
IsChecked="{Binding Path=IsArchived, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="11"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
VerticalAlignment="Stretch"
|
|
AcceptsReturn="True"
|
|
AutoWordSelection="True"
|
|
HorizontalScrollBarVisibility="Hidden"
|
|
Text="{Binding Path=Notice, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Header="Adresse"
|
|
Style="{DynamicResource 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="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Adresszusatz" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Strasse" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Postleitzahl" />
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Ort" />
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=AddressLine1, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Street, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PostalCode, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=Town, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Header="Rechnungsadresse"
|
|
Style="{DynamicResource 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.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Strasse" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Postleitzahl" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Ort" />
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=InvoiceAddressStreet, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=InvoiceAddressPostalCode, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=InvoiceAddressTown, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Margin="0,20,0,0"
|
|
Header="Kontakt"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Handy" />
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Telefon" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Fax" />
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Mail" />
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center"
|
|
Content="Homepage" />
|
|
|
|
<TextBox
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivateMobilePhone, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivatePhone, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivateFax, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Button
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="21"
|
|
Margin="3"
|
|
Click="EMailButton_OnClick"
|
|
Content="*"
|
|
FontFamily="Wingdings"
|
|
IsEnabled="{Binding Path=PrivateEMail, Converter={StaticResource ObjectBoolConverter}}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivateEMail, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=PrivateHomepage, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem
|
|
Name="tabitem_varFields"
|
|
Header="{markup:Translate PersonVarFieldsTitle}"
|
|
IsSelected="True">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<localView:VarFieldView VarFieldList="{Binding VarFields}" />
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="Organisationen" Selector.Selected="TabItemOrganisations_Selected">
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
x:Name="groupbox_newOrganisation"
|
|
Header="Neue Zuordnung hinzufügen"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<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="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Label Grid.Row="0" Grid.Column="0">Organisation</Label>
|
|
<Label Grid.Row="1" Grid.Column="0">
|
|
Mail
|
|
</Label>
|
|
<Label Grid.Row="2" Grid.Column="0">
|
|
Telefon
|
|
</Label>
|
|
<Label Grid.Row="3" Grid.Column="0">Fax</Label>
|
|
<Label Grid.Row="1" Grid.Column="2">Notiz</Label>
|
|
<Label Grid.Row="0" Grid.Column="2">Rolle in der Organisation</Label>
|
|
|
|
<uc:PopUpEdit
|
|
Name="popupedit_organisation"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
NewButtonVisibility="Visible"
|
|
NewClick="popupedit_organisation_NewClick"
|
|
PopUpClick="popupedit_organisation_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_organisation_OnPreviewMouseDoubleClick"
|
|
Text="{val:ValidationBinding Path=OrganisationRelations.NewVM.OrganisationString,
|
|
UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<TextBox
|
|
Name="textbox_mail"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=OrganisationRelations.NewVM.Mail, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Name="textbox_fax"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=OrganisationRelations.NewVM.Fax, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Name="textbox_phone"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Text="{Binding Path=OrganisationRelations.NewVM.Phone, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Name="textbox_notice"
|
|
Grid.Row="1"
|
|
Grid.RowSpan="2"
|
|
Grid.Column="3"
|
|
Margin="3"
|
|
AcceptsReturn="True"
|
|
Text="{Binding Path=OrganisationRelations.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}"
|
|
VerticalScrollBarVisibility="Auto" />
|
|
|
|
|
|
<!-- neu -->
|
|
<uc:NullItemComboBox
|
|
x:Name="ComboBox_RoleInOrganisation"
|
|
Grid.Row="0"
|
|
Grid.Column="3"
|
|
Height="23"
|
|
Margin="3"
|
|
SelectedItem="{val:ValidationBinding Path=OrganisationRelations.NewVM.RolleInOrganisation}" />
|
|
|
|
<!-- alt -->
|
|
|
|
<Button
|
|
Name="button_addOrganisationRelation"
|
|
Grid.Row="4"
|
|
Grid.ColumnSpan="4"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
Click="button_addOrganisationRelation_Click">
|
|
Zuordnung hinzufügen
|
|
</Button>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
x:Name="GroupBoxOrganisation"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="0,20,0,0"
|
|
Header="zugeordnete Organisationen"
|
|
Style="{DynamicResource ObjectEditGroupBox}" />
|
|
|
|
|
|
<Popup
|
|
Name="popup_organisation"
|
|
Grid.Row="6"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:OrganisationSearchView x:Name="organisationSearchView" ItemSelected="OrganisationSearchView_OrganisationSelected" />
|
|
</Popup>
|
|
|
|
</Grid>
|
|
|
|
</TabItem>
|
|
<TabItem
|
|
Name="tabitem_umfeld"
|
|
Header="Umfeld"
|
|
Selector.Selected="Tabitem_umfeld_OnSelected">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="groupbox_Umfeld">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
x:Name="groupbox_KlientenListe"
|
|
Grid.Row="0"
|
|
Header="{markup:Translate Zugeordnete Klienten}"
|
|
Style="{DynamicResource ObjectEditGroupBox}">
|
|
<dxg:GridControl
|
|
x:Name="KlientGridControl"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<dxg:GridControl.Columns>
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
AllowEditing="False"
|
|
FieldName="Name"
|
|
Header="{markup:Translate Klient}"
|
|
SortOrder="Ascending" />
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
AllowEditing="False"
|
|
FieldName="Rolle"
|
|
Header="Rolle" />
|
|
<dxg:GridColumn
|
|
Width="300"
|
|
AllowEditing="False"
|
|
FieldName="Notice"
|
|
Header="Notiz" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="False"
|
|
NavigationStyle="Cell"
|
|
RowDoubleClick="TableViewUmfeldKlient_OnRowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</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"
|
|
Height="Auto"
|
|
Margin="5,10,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="BtnDeleteForGood"
|
|
Height="25"
|
|
Margin="0,0,2,0"
|
|
security:DemandUserRight.VisibleDemands="Person_Full_Delete"
|
|
Click="BtnDeleteForGood_OnClick"
|
|
Content="Endgültig löschen"
|
|
IsEnabled="{Binding Path=IsNew, Converter={StaticResource BoolReverseConverter}}" />
|
|
</StackPanel>
|
|
<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> |