537 lines
23 KiB
XML
537 lines
23 KiB
XML
<Window
|
|
x:Class="BeWo.SchulbegleitenderDienst.VertretenderKlientSearchView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:controls="clr-namespace:BeWo.Controls;assembly=BeWo.Controls"
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup"
|
|
xmlns:search="clr-namespace:BeWo.View.Search"
|
|
xmlns:view="clr-namespace:BeWo.View"
|
|
Title="Vertretung auswählen"
|
|
Width="750"
|
|
Height="650"
|
|
Background="Transparent"
|
|
ResizeMode="CanResizeWithGrip"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None">
|
|
|
|
<GroupBox
|
|
x:Name="rootGroupBox"
|
|
Header="{markup:Translate Vertretenden auswählen}"
|
|
MouseLeftButtonDown="RootGroupBox_OnMouseLeftButtonDown"
|
|
Style="{DynamicResource MainContentGroupBoxWithoutMaximizeBtnStyle}">
|
|
<Grid>
|
|
|
|
<Grid x:Name="rootGroupBoxMitarbeiter" Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="225" />
|
|
<RowDefinition Height="125" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- ############################### Oberes 1/3 auswahl Kriterien ################################################ -->
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="100" />
|
|
<RowDefinition Height="125" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,3,3,3"
|
|
Header="{markup:Translate Mitarbeiter Wunsch Kriterien}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<!-- Ready machen für teilweise funktion / Combobox zur auswahl der tokens und TextBox zur anzeige der ausgewählten tokens -->
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<!-- <controls:NullItemComboBox Grid.Row="0" Grid.Column="0" x:Name="MitarbeiterWunschAuswahl" SelectionChanged="MitarbeiterWunschAuswahl_OnSelectionChanged" Width="200" Height="23" Visibility="Collapsed" /> -->
|
|
|
|
<TextBox
|
|
x:Name="MitarbeiterWunschAnzeige"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
MinHeight="50"
|
|
Margin="3"
|
|
IsReadOnly="True"
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,3,3,3"
|
|
Header="{markup:Translate Mitarbeiter Ausschluss Kriterien}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<!-- Ready machen für teilweise funktion <ColumnDefinition Width="Auto"/>
|
|
<ColumnDefinition Width="Auto"/> <RowDefinition Height="Auto"/>-->
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<!-- <controls:NullItemComboBox Grid.Row="0" Grid.Column="0" x:Name="MitarbeiterAussschlussAuswahl" SelectionChanged="MitarbeiterAussschlussAuswahl_OnSelectionChanged" Width="200" Height="23" Visibility="Collapsed"/> -->
|
|
|
|
<TextBox
|
|
x:Name="MitarbeiterAussschlussAnzeige"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
MinHeight="50"
|
|
Margin="3"
|
|
IsReadOnly="True"
|
|
TextWrapping="Wrap" />
|
|
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,3,3,3"
|
|
Header="{markup:Translate Klient Wunsch Kriterien}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
|
|
<!-- ############### wird durch Token Combobox mit devexpress vers. 17 ersetzt ################################## -->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<controls:NullItemComboBox
|
|
x:Name="KlientWunschAuswahl"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
Height="23"
|
|
SelectionChanged="KlientWunschAuswahl_OnSelectionChanged" />
|
|
|
|
<TextBox
|
|
x:Name="KlientWunschAnzeige"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
MinHeight="50"
|
|
Margin="3"
|
|
IsReadOnly="True"
|
|
TextWrapping="Wrap" />
|
|
|
|
</Grid>
|
|
|
|
<!-- ############################################################################################################## -->
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3,3,3,3"
|
|
Header="{markup:Translate Klient Ausschluss Kriterien}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
|
|
<!-- ############### wird durch Token Combobox mit devexpress vers. 17 ersetzt ################################## -->
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<controls:NullItemComboBox
|
|
x:Name="KlientAussschlussAuswahl"
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
Height="23"
|
|
SelectionChanged="KlientAussschlussAuswahl_OnSelectionChanged" />
|
|
|
|
<TextBox
|
|
x:Name="KlientAussschlussAnzeige"
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Width="200"
|
|
MinHeight="50"
|
|
Margin="3"
|
|
IsReadOnly="True"
|
|
TextWrapping="Wrap" />
|
|
|
|
</Grid>
|
|
<!-- ############################################################################################################## -->
|
|
</GroupBox>
|
|
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Grid.Column="4"
|
|
Margin="3,3,3,3"
|
|
Header="Geschlecht"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<WrapPanel Orientation="Horizontal">
|
|
<CheckBox
|
|
x:Name="RBMaennlich"
|
|
Margin="3,3,3,3"
|
|
Click="RBMaennlich_OnClick"
|
|
Content="männlich"
|
|
IsChecked="True" />
|
|
<CheckBox
|
|
x:Name="RBWeiblich"
|
|
Margin="3,3,3,3"
|
|
Click="RBWeiblich_OnClick"
|
|
Content="weiblich"
|
|
IsChecked="True" />
|
|
</WrapPanel>
|
|
</GroupBox>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid
|
|
Grid.Row="1"
|
|
Margin="3,3,3,3"
|
|
Column="4">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="60" />
|
|
<RowDefinition Height="60" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<GroupBox
|
|
Grid.Row="0"
|
|
Margin="1"
|
|
Header="{markup:Translate Klienten PLZ}"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<WrapPanel
|
|
Grid.Column="0"
|
|
Margin="1"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal">
|
|
<Label Content="Plz:" />
|
|
<Label x:Name="LabelPlzMitarbeiter" Width="50" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel
|
|
Grid.Column="1"
|
|
Margin="1"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Label Content="Ort:" />
|
|
<Label x:Name="LabelOrtMitarbeiter" Width="100" />
|
|
</WrapPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Margin="1"
|
|
Header="Suche nach"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<WrapPanel
|
|
Grid.Column="0"
|
|
Margin="1"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal">
|
|
<Label Content="Plz:" />
|
|
<dxe:TextEdit
|
|
x:Name="PlzMitarbeiter"
|
|
Width="50"
|
|
Height="23"
|
|
VerticalContentAlignment="Center"
|
|
EditValueChanged="PlzMitarbeiter_OnEditValueChanged"
|
|
Mask="\d{1,5}"
|
|
MaskType="RegEx"
|
|
ShowError="False" />
|
|
</WrapPanel>
|
|
|
|
<WrapPanel
|
|
Grid.Column="1"
|
|
Margin="1"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Label Content="Ort:" />
|
|
<TextBox
|
|
x:Name="OrtMitarbeiter"
|
|
Width="100"
|
|
Height="23"
|
|
VerticalContentAlignment="Center"
|
|
TextChanged="OrtMitarbeiter_OnTextChanged" />
|
|
</WrapPanel>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<!-- ##################################################################################################################### -->
|
|
|
|
|
|
|
|
<!-- Bereich einfügen um auszuwählen ob ganzen tag oder nur teilweise -->
|
|
<GroupBox
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Margin="3,3,3,3"
|
|
Header="Vertretungs Zeitraum"
|
|
Style="{StaticResource ObjectEditGroupBox}">
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<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" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<CheckBox
|
|
x:Name="KVCheckBox"
|
|
Grid.Row="0"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
HorizontalAlignment="Left"
|
|
Checked="KVCheckBox_OnChecked"
|
|
Content="ganztägig"
|
|
Unchecked="KVCheckBox_OnUnchecked" />
|
|
|
|
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Content="Vertretung ab" />
|
|
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Content="Vertretung bis" />
|
|
|
|
<Label
|
|
x:Name="KVLabelUhrzeitVon"
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Content="Uhrzeit von" />
|
|
|
|
<Label
|
|
x:Name="KVLabelUhrzeitBis"
|
|
Grid.Row="2"
|
|
Grid.Column="2"
|
|
Content="Uhrzeit bis" />
|
|
|
|
|
|
<dxe:DateEdit
|
|
x:Name="KVDatepickerVon"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="125"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValueChanged="KVDatepickerVon_OnEditValueChanged"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
|
|
<dxe:DateEdit
|
|
x:Name="KVDatepickerBis"
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Width="125"
|
|
Height="23"
|
|
Margin="3"
|
|
EditValueChanged="KVDatepickerBis_OnEditValueChanged"
|
|
MaskType="DateTimeAdvancingCaret" />
|
|
|
|
|
|
<dxe:TextEdit
|
|
x:Name="KVDatepicker_UhrzeitVon"
|
|
Grid.Row="1"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="2"
|
|
Width="75"
|
|
Height="23"
|
|
Margin="3,3,3,3"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False"
|
|
Visibility="Visible" />
|
|
|
|
<dxe:TextEdit
|
|
x:Name="KVDatepicker_UhrzeitBis"
|
|
Grid.Row="2"
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="2"
|
|
Width="75"
|
|
Height="23"
|
|
Margin="3,3,3,3"
|
|
InvalidValueBehavior="AllowLeaveEditor"
|
|
Mask="(0?\d|1\d|2[0-3]):[0-5]\d"
|
|
MaskShowPlaceHolders="True"
|
|
MaskType="RegEx"
|
|
MaskUseAsDisplayFormat="True"
|
|
ShowError="False"
|
|
Visibility="Visible" />
|
|
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
<!-- ################################################################## -->
|
|
|
|
|
|
<!-- ##################################### unterer 2/3 Mitarbeiter Controll ####################################### -->
|
|
|
|
<!--<search:EmployeeSearchView Grid.Row="2" Grid.Column="0" x:Name="MitarbeiterVertretungsearchview" Margin="3,3,3,3" ItemSelected="MitarbeiterVertretungsearchview_OnItemSelected" />-->
|
|
|
|
<!-- Aus der SearchView ein Grid Bauen das mehr Informationen Enthält / zurzeit Name Adresse Arbeitszeit -->
|
|
|
|
<dxg:GridControl
|
|
x:Name="GridDataControlKlientVertretungsearchview"
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Margin="3,3,3,3"
|
|
VerticalContentAlignment="Center"
|
|
AllowDrop="true"
|
|
Visibility="Visible">
|
|
<dxg:GridControl.Columns>
|
|
|
|
<dxg:GridColumn
|
|
Width="155"
|
|
FieldName="Name"
|
|
Header="Name"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="75"
|
|
FieldName="Postleitzahl"
|
|
Header="Postleitzahl"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="100"
|
|
FieldName="Strasse"
|
|
Header="Strasse"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="105"
|
|
FieldName="Stadt"
|
|
Header="Stadt"
|
|
ReadOnly="True" />
|
|
<dxg:GridColumn
|
|
Width="75"
|
|
FieldName="Geschlecht"
|
|
Header="Geschlecht"
|
|
ReadOnly="True" />
|
|
|
|
|
|
</dxg:GridControl.Columns>
|
|
<dxg:GridControl.View>
|
|
<dxg:TableView
|
|
AllowPerPixelScrolling="True"
|
|
AutoWidth="True"
|
|
ShowTotalSummary="False" />
|
|
</dxg:GridControl.View>
|
|
</dxg:GridControl>
|
|
|
|
|
|
|
|
<!-- ################################################################################################## Margin="3,3,3,3" -->
|
|
|
|
<StackPanel Grid.Row="3" Grid.Column="0">
|
|
|
|
|
|
<WrapPanel
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="90"
|
|
Margin="3,3,3,3"
|
|
Click="ButtonBase_OnClick"
|
|
Content="Übernehmen" />
|
|
<Button
|
|
Width="90"
|
|
Margin="3,3,3,3"
|
|
Click="ButtonClose_OnClick"
|
|
Content="Schließen" />
|
|
</WrapPanel>
|
|
</StackPanel>
|
|
|
|
<!-- ####################### Closed="popup_Closed" Opened="popup_Opened"###StaysOpen="False"Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" #################################################################################### -->
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
</Window>
|
|
|
|
|