From 5ce2cf425c23ef2600060bd0b3d9c5e075a20bf4 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Mon, 23 Sep 2024 18:14:35 +0200 Subject: [PATCH] Customer Wohnhilfe --- BeWo/DebugConfig.cs | 13 +- .../CustomerVermittlungArbeitControl.xaml | 4 +- .../Detail/CustomerVermittlungArbeitView.xaml | 4 +- BeWo/View/Detail/CustomerView.xaml.cs | 15 +- BeWo/ViewModel/CustomerVM.cs | 2 +- BeWo/ViewModel/CustomerWohnhilfeVM.cs | 14 +- .../ListViewModel/CustomerWohnhilfeListVM.cs | 18 +- .../CustomerWohnhilfeBereichBundVM.cs | 2 +- ...merWohnhilfeBereichEinkommenUndArbeitVM.cs | 2 +- ...stomerWohnhilfeBereichSozialeKontakteVM.cs | 5 +- ...ustomerWohnhilfeBereichSozialstrukturVM.cs | 4 +- Data/Data.csproj | 4 + Data/Entities/Customer.cs | 1 + Data/Entities/CustomerWohnhilfe.cs | 131 +++++++++++++ Data/Mappings/Customer.hbm.xml | 4 + Data/Mappings/CustomerWohnhilfe.hbm.xml | 74 ++++++++ ...nges_2024_09_22 CustomerFalldatenDrop.txt} | 4 +- ...2024_09_23 Customer Vermittlung Arbeit.txt | 8 +- .../Changes_2024_09_23 Customer Wohnhilfe.txt | 70 +++++++ Service/DCEntityMapper/CustomerDC_Customer.cs | 10 +- .../CustomerWohnhilfeDC_CustomerWohnhilfe.cs | 174 ++++++++++++++++++ Service/DCEntityMapper/MapperFactory.cs | 5 + Service/Service.csproj | 1 + Shared/Core/Utils.cs | 21 +++ .../CustomerWohnhilfeBereichBundDC.cs | 2 +- ...merWohnhilfeBereichEinkommenUndArbeitDC.cs | 2 +- ...stomerWohnhilfeBereichSozialeKontakteDC.cs | 2 +- ...ustomerWohnhilfeBereichSozialstrukturDC.cs | 2 +- .../Wohnhilfe/CustomerWohnhilfeDC.cs | 2 +- 29 files changed, 565 insertions(+), 35 deletions(-) create mode 100644 Data/Entities/CustomerWohnhilfe.cs create mode 100644 Data/Mappings/CustomerWohnhilfe.hbm.xml rename Model/{Changes_2024_09_23 CustomerFalldatenDrop.txt => Changes_2024_09_22 CustomerFalldatenDrop.txt} (97%) create mode 100644 Model/Changes_2024_09_23 Customer Wohnhilfe.txt create mode 100644 Service/DCEntityMapper/CustomerWohnhilfeDC_CustomerWohnhilfe.cs diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index fcf3a8142..0ab92130f 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -35,6 +35,16 @@ namespace BeWo public bool AutoLogin { get; set; } public UIContext? SelectView { get; set; } + /// + /// Customer: + /// - Details: 0 + /// - ...: 1 + /// - ...: 2 + /// - ...: 3 + /// - VermittlungArbeit: 4 + /// - Wohnhilfe: 5 + /// + public int? SelectIndex { get; set; } public static DebugConfig SimpleAutoLogin => new DebugConfig() { @@ -46,7 +56,8 @@ namespace BeWo { DebugConfigMode = DebugConfigMode.FeatureCustomerWohnhilfe, AutoLogin = true, - SelectView = UIContext.Customer + SelectView = UIContext.Customer, + SelectIndex = 5 }; public static DebugConfig Feature_Wohnheim_Wohneinheit => new DebugConfig() diff --git a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml index 24697f5da..9388b5fe9 100644 --- a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml +++ b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml @@ -113,7 +113,7 @@ IsEnabled="{Binding PermissionCustomerGemeinnutzigeArbeitManage, Mode=OneTime, ElementName=root}" ItemsSource="{Binding Path=DataContext.Auftragsherkunfte, RelativeSource={RelativeSource AncestorType={x:Type GroupBox}, AncestorLevel=2, Mode=FindAncestor}}" SelectedValue="{Binding Path=Auftragsherkunft, Mode=TwoWay}" - Style="{StaticResource PrimaryNullItemComboBox}"/> + Style="{StaticResource PrimaryNullItemComboBox}" />