855 lines
56 KiB
XML
855 lines
56 KiB
XML
<localView:BeWoView
|
|
x:Class="BeWo.View.Detail.WohnheimView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
xmlns:dxa="http://schemas.devexpress.com/winfx/2008/xaml/accordion"
|
|
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
|
|
xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon"
|
|
xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduling"
|
|
xmlns:localSearchView="clr-namespace:BeWo.View.Search"
|
|
xmlns:localView="clr-namespace:BeWo.View"
|
|
xmlns:localWohneinheit="clr-namespace:BeWo.View.Detail.Wohneinheit"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:t="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:uvc="clr-namespace:BeWo.View.Controls"
|
|
xmlns:val="clr-namespace:BeWo.Validation"
|
|
xmlns:viewmodel="clr-namespace:BeWo.ViewModel"
|
|
x:Name="rootView"
|
|
Width="Auto"
|
|
Height="Auto"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
d:DataContext="{d:DesignInstance Type=viewmodel:WohnheimVM,
|
|
IsDesignTimeCreatable=true}"
|
|
d:DesignHeight="800"
|
|
d:DesignWidth="1400"
|
|
Focusable="True"
|
|
GotFocus="UserControl_GotFocus"
|
|
mc:Ignorable="d">
|
|
<Grid x:Name="rootGrid">
|
|
<uc:ShadowChrome>
|
|
<GroupBox Style="{StaticResource MainContentGroupBoxStyle}">
|
|
<GroupBox.Header>
|
|
<StackPanel VerticalAlignment="Bottom" Orientation="Horizontal">
|
|
<Image
|
|
Width="32"
|
|
RenderTransformOrigin="0.5,0.5"
|
|
Source="..\..\Ressources\Icons\OfficeBulidingBlackDisabled.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 WohnheimName}" />
|
|
</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="{DynamicResource WohnheimContentBrush}" />
|
|
<TabControl
|
|
x:Name="root"
|
|
Grid.Row="1"
|
|
Padding="0"
|
|
BorderThickness="0,0,0,0"
|
|
Style="{StaticResource ObjectEditTabControl}">
|
|
<TabItem Header="Details" IsSelected="True">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<Grid x:Name="grid_details">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="1"
|
|
Header="Details"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="130" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Name
|
|
</Label>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Strasse
|
|
</Label>
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Postleitzahl
|
|
</Label>
|
|
<Label
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Ort
|
|
</Label>
|
|
<Label
|
|
Grid.Row="4"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Top">
|
|
Bemerkung
|
|
</Label>
|
|
<Label
|
|
Grid.Row="5"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Top">
|
|
Kernzeitanzeige
|
|
</Label>
|
|
<Label
|
|
Grid.Row="6"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Kernzeit Start
|
|
</Label>
|
|
<Label
|
|
Grid.Row="7"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Kernzeit Ende
|
|
</Label>
|
|
<Label
|
|
Grid.Row="8"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Standardanzahl Zeilen
|
|
</Label>
|
|
<Label
|
|
Grid.Row="9"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Sortierung
|
|
</Label>
|
|
<Label
|
|
Grid.Row="10"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Absteigend sortieren
|
|
</Label>
|
|
<Label
|
|
x:Name="lblArchiviert"
|
|
Grid.Row="11"
|
|
Grid.Column="0"
|
|
Margin="3"
|
|
VerticalAlignment="Center">
|
|
Archiviert
|
|
</Label>
|
|
|
|
<TextBox
|
|
x:Name="textbox_first"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Text="{Binding Path=WohnheimName, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Text="{Binding Path=Strasse, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Text="{Binding Path=PLZ, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Text="{Binding Path=Ort, UpdateSourceTrigger=PropertyChanged}" />
|
|
<TextBox
|
|
Grid.Row="4"
|
|
Grid.Column="1"
|
|
Width="500"
|
|
Height="100"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
AcceptsReturn="True"
|
|
Text="{Binding Path=Bemerkung, UpdateSourceTrigger=PropertyChanged}"
|
|
TextWrapping="Wrap"
|
|
VerticalScrollBarVisibility="Visible" />
|
|
<dxe:CheckEdit
|
|
x:Name="chkStatuszeile"
|
|
Grid.Row="5"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
Checked="chkStatuszeile_Checked"
|
|
EditValueChanged="chkStatuszeile_EditValueChanged"
|
|
IsChecked="{Binding Path=PflichtbesetzungEinblenden, UpdateSourceTrigger=PropertyChanged}"
|
|
Unchecked="chkStatuszeile_Unchecked" />
|
|
<dxe:TextEdit
|
|
x:Name="textedit_pflichtStart"
|
|
Grid.Row="6"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskType="RegEx"
|
|
Text="{Binding Path=PflichtbesetzungStart, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:TextEdit
|
|
x:Name="textedit_pflichtEnde"
|
|
Grid.Row="7"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskType="RegEx"
|
|
Text="{Binding Path=PflichtbesetzungEnde, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:SpinEdit
|
|
x:Name="spinedit_zeilenanzahl"
|
|
Grid.Row="8"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
Increment="1"
|
|
Mask="##"
|
|
MaskType="Numeric"
|
|
MaxValue="20"
|
|
MinValue="1"
|
|
Text="{Binding Path=StandardZeilenanzahl, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:ComboBoxEdit
|
|
x:Name="combobox_Sortierungsarten"
|
|
Grid.Row="9"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="23"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
IsTextEditable="False"
|
|
SelectedIndex="{Binding Path=Sortierungsart, UpdateSourceTrigger=PropertyChanged}" />
|
|
<dxe:CheckEdit
|
|
x:Name="checkedit_absteigend"
|
|
Grid.Row="10"
|
|
Grid.Column="1"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
IsChecked="{Binding Path=AbsteigendeSortierung, UpdateSourceTrigger=PropertyChanged}" />
|
|
<!--<WrapPanel Grid.Row="10" Grid.ColumnSpan="3" Grid.Column="1" HorizontalAlignment="Left" Margin="3">
|
|
<RadioButton x:Name="radiobutton_aufsteigend" GroupName="Reihenfolge" Margin="0 0 0 0" >Aufsteigend</RadioButton>
|
|
<RadioButton x:Name="radiobutton_absteigend" GroupName="Reihenfolge" Margin="10 0 0 0" >Absteigend</RadioButton>
|
|
</WrapPanel>-->
|
|
<CheckBox
|
|
x:Name="chkArchiviert"
|
|
Grid.Row="11"
|
|
Grid.Column="1"
|
|
Height="23"
|
|
Margin="3"
|
|
IsChecked="{Binding Path=IsArchived, UpdateSourceTrigger=PropertyChanged}" />
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
</Grid>
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Name="tabitem_varFields" Header="{markup:Translate WohnheimVarFieldsTitle}">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<localView:VarFieldView VarFieldList="{Binding VarFields}" />
|
|
</ScrollViewer>
|
|
</TabItem>
|
|
<TabItem Header="{t:Translate Klienten}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="40*" />
|
|
<ColumnDefinition Width="183*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox
|
|
x:Name="groupbox_newWohnheimRel"
|
|
Grid.ColumnSpan="2"
|
|
Header="{t:Translate Zugeordnete Klienten}"
|
|
Style="{StaticResource ObjectEditGroupBox}"
|
|
Visibility="Visible">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Button
|
|
x:Name="button_addKlientRelation"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addKlientRelation_Klick"
|
|
Content="{t:Translate Klient hinzufügen}" />
|
|
|
|
<dxg:GridControl
|
|
x:Name="grid_CustomerRelation"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
DataSource="{Binding Path=WohnheimCustomerRelations.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_RemoveCustomerRelation_Click"
|
|
Content="r"
|
|
FontFamily="Webdings" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
AllowEditing="False"
|
|
FieldName="Customer"
|
|
Header="{t:Translate Klient}" />
|
|
<dxg:GridColumn
|
|
Width="250"
|
|
FieldName="Notice"
|
|
Header="Bemerkung" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
RowDoubleClick="TableViewCustomer_OnRowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
<Popup
|
|
x:Name="popup_newKlientRel"
|
|
Grid.Row="0"
|
|
Width="350"
|
|
Placement="MousePoint"
|
|
StaysOpen="True">
|
|
<Border
|
|
Padding="3"
|
|
Background="White"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1">
|
|
<GroupBox
|
|
x:Name="groupbox_newKlientRel"
|
|
Header="{t:Translate Klienten zuordnen}"
|
|
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="{t:Translate Klient}" />
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_KlientRelations"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_KlientRelations_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_KlientRelations_OnPreviewMouseDoubleClick"
|
|
Text="{val:ValidationBinding Path=WohnheimCustomerRelations.NewVM.CustomerString}" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Top"
|
|
Content="Notiz" />
|
|
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="50"
|
|
Margin="3"
|
|
Text="{Binding Path=WohnheimCustomerRelations.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Button
|
|
x:Name="button_addklientRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addKlientRelation_Click"
|
|
Content="Hinzufügen" />
|
|
|
|
<Button
|
|
x:Name="button_cancelKlientRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_cancelKlientRelation_Click"
|
|
Content="Abbrechen" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</Popup>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem Header="{t:Translate MitarbeiterPlural}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<GroupBox
|
|
x:Name="groupbox_newMitarbeiterRel"
|
|
Header="{t:Translate Zugeordnete Mitarbeiter}"
|
|
Style="{StaticResource ObjectEditGroupBox}"
|
|
Visibility="Visible">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="26*" />
|
|
<ColumnDefinition Width="29*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<WrapPanel
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
x:Name="button_addMitarbeiterRelation_Click"
|
|
Height="25"
|
|
Margin="3"
|
|
Click="button_addMitarbeiterRelation_Klick"
|
|
Content="{t:Translate Mitarbeiter hinzufügen}" />
|
|
<Button
|
|
x:Name="button_openTeamRelation"
|
|
Height="25"
|
|
Margin="3"
|
|
Click="button_openTeamRelation_Click"
|
|
Content="Ganzes Team hinzufügen" />
|
|
</WrapPanel>
|
|
|
|
<Popup
|
|
x:Name="popup_newEmployeeRel"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
Width="350"
|
|
Margin="45,0"
|
|
Placement="MousePoint"
|
|
StaysOpen="True">
|
|
<Border
|
|
Padding="3"
|
|
Background="White"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1">
|
|
<GroupBox
|
|
x:Name="groupbox_newEmployeeRel"
|
|
Header="{t:Translate Mitarbeiter zuordnen}"
|
|
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="{t:Translate MitarbeiterSingular}" />
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_EmployeeRelations"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_EmployeeRelations_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_EmployeeRelations_OnPreviewMouseDoubleClick"
|
|
Text="{val:ValidationBinding Path=WohnheimEmployeeRelations.NewVM.EmployeeString}" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Top"
|
|
Content="Notiz" />
|
|
|
|
<TextBox
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="50"
|
|
Margin="3"
|
|
Text="{Binding Path=WohnheimEmployeeRelations.NewVM.Notice, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<Button
|
|
x:Name="button_addEmployeeRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addEmployeeRelation_Click"
|
|
Content="Hinzufügen" />
|
|
|
|
<Button
|
|
x:Name="button_cancelEmployeeRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_cancelEmployeeRelation_Click"
|
|
Content="Abbrechen" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</Popup>
|
|
|
|
<Popup
|
|
x:Name="popup_newTeamRel"
|
|
Grid.Row="0"
|
|
Grid.ColumnSpan="2"
|
|
Width="350"
|
|
Margin="45,0"
|
|
Placement="MousePoint"
|
|
StaysOpen="True">
|
|
<Border
|
|
Padding="3"
|
|
Background="White"
|
|
BorderBrush="Gray"
|
|
BorderThickness="1">
|
|
<GroupBox
|
|
x:Name="groupbox_newTeamRel"
|
|
Header="Team zuordnen"
|
|
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="Teams" />
|
|
<uc:PopUpEdit
|
|
x:Name="popupedit_TeamRelations"
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="23"
|
|
Margin="3"
|
|
Cursor="Arrow"
|
|
DeleteButtonVisibility="Collapsed"
|
|
IsReadOnly="True"
|
|
PopUpClick="popupedit_TeamRelations_PopUpClick"
|
|
PreviewMouseDoubleClick="Popupedit_TeamRelations_OnPreviewMouseDoubleClick"
|
|
SelectionChanged="popupedit_TeamRelations_SelectionChanged"
|
|
Text="{val:ValidationBinding Path=WohnheimTeamRelations.Name}" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
VerticalAlignment="Top"
|
|
Content="Notiz" />
|
|
|
|
<TextBox
|
|
x:Name="textbox_teamRelations_Notice"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Grid.ColumnSpan="2"
|
|
Height="50"
|
|
Margin="3" />
|
|
|
|
<Button
|
|
x:Name="button_addTeamRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="1"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_addTeamRelation_Click"
|
|
Content="Hinzufügen" />
|
|
|
|
<Button
|
|
x:Name="button_cancelTeamRelation"
|
|
Grid.Row="3"
|
|
Grid.Column="2"
|
|
Height="25"
|
|
Margin="3"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
Click="button_cancelTeamRelation_Click"
|
|
Content="Abbrechen" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</Border>
|
|
</Popup>
|
|
|
|
<dxg:GridControl
|
|
x:Name="grid_EmployeeRelation"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
DataSource="{Binding Path=WohnheimEmployeeRelations.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_removeEmployeeRelation_Click"
|
|
Content="r"
|
|
FontFamily="Webdings" />
|
|
</DataTemplate>
|
|
</dxg:GridColumn.CellTemplate>
|
|
</dxg:GridColumn>
|
|
<dxg:GridColumn
|
|
Width="150"
|
|
AllowEditing="False"
|
|
FieldName="Employee"
|
|
Header="{t:Translate Betreuer(in)}" />
|
|
<dxg:GridColumn
|
|
Width="250"
|
|
FieldName="Notice"
|
|
Header="Bemerkung" />
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AutoWidth="true"
|
|
NavigationStyle="Cell"
|
|
RowDoubleClick="TableViewEmployee_OnRowDoubleClick"
|
|
ShowGroupPanel="False"
|
|
ShowGroupedColumns="false"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</TabItem>
|
|
<TabItem
|
|
x:Name="tabitem_wohneinheit"
|
|
Foreground="{Binding Path=IsNew, Converter={StaticResource IsNewToTabitemBackground}}"
|
|
Header="{t:Translate Wohneinheit}"
|
|
IsEnabled="{Binding Path=IsNew, Converter={StaticResource BoolReverseConverter}}"
|
|
ToolTip="{Binding Path=IsNew, Converter={StaticResource IsNewToTooltip}, ConverterParameter='Sie müssen zuerst das Wohnheim speichern'}"
|
|
ToolTipService.InitialShowDelay="0"
|
|
ToolTipService.ShowOnDisabled="True"
|
|
Visibility="{Binding Path=PermissionWohneinheitTabitemView, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<TabControl
|
|
x:Name="root_wohneinheit"
|
|
Grid.Row="1"
|
|
Margin="-15"
|
|
Padding="0"
|
|
BorderThickness="0,0,0,0"
|
|
SelectionChanged="root_wohneinheit_SelectionChanged"
|
|
Style="{StaticResource ObjectEditTabControl}">
|
|
<TabItem Header="{t:Translate Verwaltung}" Visibility="{Binding Path=PermissionWohneinheitView, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<localWohneinheit:WohneinheitVerwaltungViewV1 />
|
|
</TabItem>
|
|
<TabItem Header="{t:Translate VerwaltungV2}" Visibility="{Binding Path=PermissionWohneinheitView, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<localWohneinheit:WohneinheitVerwaltungViewV2 />
|
|
</TabItem>
|
|
<TabItem Header="{t:Translate Buchungen}" Visibility="{Binding Path=PermissionWohneinheitBelegungView, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<localWohneinheit:WohneinheitBelegungTableView />
|
|
</TabItem>
|
|
<TabItem Header="{t:Translate Buchungsplan}" Visibility="{Binding Path=PermissionWohneinheitBelegungView, Converter={StaticResource BoolVisibilityConverter}}">
|
|
<localWohneinheit:WohneinheitBelegungSchedulerView />
|
|
</TabItem>
|
|
</TabControl>
|
|
</TabItem>
|
|
</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"
|
|
Style="{DynamicResource {x:Type Button}}" />
|
|
<Button
|
|
x:Name="btnClose"
|
|
Height="25"
|
|
Margin="0,0,3,0"
|
|
Command="ApplicationCommands.Close"
|
|
Content="Schließen" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
</uc:ShadowChrome>
|
|
<Popup
|
|
x:Name="popup_klient"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:CustomerSearchView x:Name="klientsearchview" />
|
|
</Popup>
|
|
<Popup
|
|
x:Name="popup_employee"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:EmployeeSearchView x:Name="employeesearchview" />
|
|
</Popup>
|
|
<Popup
|
|
x:Name="popup_team"
|
|
Width="370"
|
|
Height="250"
|
|
Margin="10"
|
|
Closed="popup_Closed"
|
|
Opened="popup_Opened"
|
|
Placement="MousePoint"
|
|
StaysOpen="False">
|
|
<localSearchView:TeamSearchView x:Name="teamsearchview" />
|
|
</Popup>
|
|
</Grid>
|
|
</localView:BeWoView> |