diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index dd7591b84..aa599c87b 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -43,12 +43,12 @@ de-DE BeWoPlaner ownSoft GmbH - 2.0.1.273 + 2.0.1.274 true publish.htm false true - 274 + 275 2.0.1.%2a false true diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 44973a464..e46464ded 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -56,9 +56,9 @@ namespace BeWo public static LoginControl LoginControl; public static MainControl MainControl; - public static string ShortVersion = "3.26"; + public static string ShortVersion = "3.27"; - public static string Version = "Version 3.26.3"; + public static string Version = "Version 3.27"; public static int RenderTier = 0; public static bool IsInDesignMode = DesignerProperties.GetIsInDesignMode(new DependencyObject()); @@ -320,6 +320,12 @@ namespace BeWo anzTageZeiterfassErfolgt = resultzeitplan; } + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.AnzTageUnterschriftErfolgt); + if (Int32.TryParse(val, out resultzeitplan)) + { + AppSettings.AnzTageUnterschriftErfolgt = resultzeitplan; + } + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ZeiterfassungsSchwellwert); int resultschwell; if (Int32.TryParse(val, out resultschwell)) @@ -550,6 +556,12 @@ namespace BeWo val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowWohnhilfe); AppSettings.ShowWohnhilfe = val != null && val.Equals("1"); + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowVorlagen); + AppSettings.ShowVorlagen = val != null && val.Equals("1"); + + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowMitarbeiterSchwerbehindertenInfos); + AppSettings.ShowMitarbeiterSchwerbehindertenInfos = val != null && val.Equals("1"); + val = UserSettingsUtils.GetSettingValue(_Mandator.Settings, SettingsKeys.ShowImportAbschlagszahlungen); AppSettings.ShowImportAbschlagszahlungen = val != null && val.Equals("1"); diff --git a/BeWo/Core/Config/AppSettings.cs b/BeWo/Core/Config/AppSettings.cs index aadbe5fa1..fe1cee77d 100644 --- a/BeWo/Core/Config/AppSettings.cs +++ b/BeWo/Core/Config/AppSettings.cs @@ -135,6 +135,7 @@ namespace BeWo.Core.Config public int LastSelectedStundenkontoIntervall { get; set; } public int AnzTageZeiterfassErfolgt { get; set; } + public int AnzTageUnterschriftErfolgt { get; set; } public int ZeiterfassungsSchwellwert { get; set; } @@ -490,6 +491,9 @@ namespace BeWo.Core.Config public bool ModuleAiSettingsEnabled { get; set; } public bool ShowWohnhilfe { get; set; } + + public bool ShowVorlagen { get; set; } + public bool ShowMitarbeiterSchwerbehindertenInfos { get; set; } public bool ShowImportAbschlagszahlungen { get; set; } public bool ShowPersehImport { get; set; } diff --git a/BeWo/MainControl.xaml.cs b/BeWo/MainControl.xaml.cs index 8434fb235..fee6846ac 100644 --- a/BeWo/MainControl.xaml.cs +++ b/BeWo/MainControl.xaml.cs @@ -178,7 +178,7 @@ namespace BeWo } - if (BeWoApp.LoggedOnUser != null && BeWoApp.LoggedOnUser.HasRight(UserRightType.DocumentsAllowViewAll) && BeWoApp.AppSettings.ShowWohnhilfe) + if (BeWoApp.LoggedOnUser != null && BeWoApp.LoggedOnUser.HasRight(UserRightType.DocumentsAllowViewAll) && BeWoApp.AppSettings.ShowVorlagen) { this.button_Dokumente.Visibility = Visibility.Visible; } diff --git a/BeWo/View/Detail/EmployeeView.xaml b/BeWo/View/Detail/EmployeeView.xaml index f538dfeed..7812dbb31 100644 --- a/BeWo/View/Detail/EmployeeView.xaml +++ b/BeWo/View/Detail/EmployeeView.xaml @@ -778,6 +778,90 @@ + + + + + + + + + + + + + + + + + + + + + + @@ -413,14 +414,6 @@ Foreground="Black" Text="{markup:Translate Anzahl Tage\, in der die Zeiterfassung erfolgen muss (0 für unbegrenzt)}" TextWrapping="Wrap" /> - + + + + + + _UrlaubskontoDarstellungDCs; @@ -457,6 +461,65 @@ namespace BeWo.ViewModel } } + public DateTime? AusweisGueltigVon + { + get { return _AusweisGueltigVon; } + + set + { + if (AreDifferent(_AusweisGueltigVon, value)) + { + _AusweisGueltigVon = value; + StoreDirtyInformation(AreDifferent(DataContract.AusweisGueltigVon, value), nameof(AusweisGueltigVon)); + FirePropertyChanged(nameof(AusweisGueltigVon)); + } + } + } + public DateTime? AusweisGueltigBis + { + get { return _AusweisGueltigBis; } + + set + { + if (AreDifferent(_AusweisGueltigBis, value)) + { + _AusweisGueltigBis = value; + StoreDirtyInformation(AreDifferent(DataContract.AusweisGueltigBis, value), nameof(AusweisGueltigBis)); + FirePropertyChanged(nameof(AusweisGueltigBis)); + } + } + } + + public string GradDerBehinderung + { + get { return _GradDerBehinderung; } + + set + { + if (AreDifferent(_GradDerBehinderung, value)) + { + _GradDerBehinderung = value; + StoreDirtyInformation(AreDifferent(DataContract.GradDerBehinderung, value), nameof(GradDerBehinderung)); + FirePropertyChanged(nameof(GradDerBehinderung)); + } + } + } + + public string AusweisBemerkung + { + get { return _AusweisBemerkung; } + + set + { + if (AreDifferent(_AusweisBemerkung, value)) + { + _AusweisBemerkung = value; + StoreDirtyInformation(AreDifferent(DataContract.AusweisBemerkung, value), nameof(AusweisBemerkung)); + FirePropertyChanged(nameof(AusweisBemerkung)); + } + } + } + [Validation(ValidationRule = ValidationRules.NotNullOrStringEmpty)] public DateTime? DateOfBirth { @@ -1353,6 +1416,10 @@ namespace BeWo.ViewModel _BemerkungenSbd = pDataContract.BemerkungenSbd; _Hygienebelehrung = pDataContract.Hygienebelehrung; _Nationalitaet = pDataContract.Nationalitaet; + _AusweisGueltigVon = pDataContract.AusweisGueltigVon; + _AusweisGueltigBis = pDataContract.AusweisGueltigBis; + _GradDerBehinderung = pDataContract.GradDerBehinderung; + _AusweisBemerkung = pDataContract.AusweisBemerkung; if (pDataContract.Images != null && pDataContract.Images.Count > 0) { @@ -1468,6 +1535,10 @@ namespace BeWo.ViewModel pDataContract.BemerkungenSbd = _BemerkungenSbd; pDataContract.ActivationType = _IsArchived ? ActivationTypeId.Archived : ActivationTypeId.Active; pDataContract.Nationalitaet = _Nationalitaet; + pDataContract.AusweisGueltigVon = _AusweisGueltigVon; + pDataContract.AusweisGueltigBis = _AusweisGueltigBis; + pDataContract.GradDerBehinderung = _GradDerBehinderung; + pDataContract.AusweisBemerkung = _AusweisBemerkung; if (pDataContract.Images != null) { diff --git a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs index dc6c15e56..f15f011ab 100644 --- a/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs +++ b/BeWo/ViewModel/ListViewModel/ServiceRecordListVM.cs @@ -1768,6 +1768,8 @@ namespace BeWo.ViewModel.ListViewModel { foreach (var goal in info.SupportConceptGoals) { + goal.Prefix = info.CustomerName; + if (goal.ParentOid != null && goalCategoryDict.ContainsKey(goal.ParentOid.Value)) { var path = GetAllParentGoalCategoies(goalCategoryDict, goal); diff --git a/BeWo/ViewModel/MandatorVM.cs b/BeWo/ViewModel/MandatorVM.cs index 6ab55824b..360866541 100644 --- a/BeWo/ViewModel/MandatorVM.cs +++ b/BeWo/ViewModel/MandatorVM.cs @@ -408,6 +408,22 @@ namespace BeWo.ViewModel } } } + + public int AnzTageUnterschriftErfolgt + { + get { return BeWoApp.AppSettings.AnzTageUnterschriftErfolgt; } + + set + { + if (this.AreDifferent(BeWoApp.AppSettings.AnzTageUnterschriftErfolgt, value)) + { + BeWoApp.AppSettings.AnzTageUnterschriftErfolgt = value; + + this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "AnzTageUnterschriftErfolgt", value.ToString()); + } + } + } + public int ZeiterfassungsSchwellwert { get { return BeWoApp.AppSettings.ZeiterfassungsSchwellwert; } diff --git a/BeWo/ownChat/ChatDokumentationsView.xaml.cs b/BeWo/ownChat/ChatDokumentationsView.xaml.cs index f06231573..d7a3e96f5 100644 --- a/BeWo/ownChat/ChatDokumentationsView.xaml.cs +++ b/BeWo/ownChat/ChatDokumentationsView.xaml.cs @@ -354,9 +354,15 @@ namespace BeWo.ownChat if(vm.PrototypeVM.SortedCategories?.Any() ?? false) { - var cat1 = vm.PrototypeVM.SortedCategories[0]; + foreach (var cat in vm.PrototypeVM.SortedCategories) + { + if (vm.PrototypeVM.Category2Services.ContainsKey(cat) && vm.PrototypeVM.Category2Services[cat].Count > 0) + { + serviceRecordList[0].ServiceDescription = vm.PrototypeVM.Category2Services[cat][0]; + break; + } + } - serviceRecordList[0].ServiceDescription = vm.PrototypeVM.Category2Services[cat1][0]; } _ServiceRecord = new ServiceRecordVM(serviceRecordList[0], vm.PrototypeVM.Category2Services, vm.PrototypeVM.AllGoalCategories, vm.PrototypeVM.AllGoals) {Notice = notice}; diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user index e261725c0..197827697 100644 --- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user +++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU ProjectFiles 600 MvcControllerEmptyScaffolder diff --git a/BeWoPlanerMobil/Controllers/MainController.cs b/BeWoPlanerMobil/Controllers/MainController.cs index 25d85aaf1..716efe299 100644 --- a/BeWoPlanerMobil/Controllers/MainController.cs +++ b/BeWoPlanerMobil/Controllers/MainController.cs @@ -248,8 +248,8 @@ namespace BeWoPlanerMobil.Controllers Model.SelectedSupportConceptListObject = Model.SupportConceptListObjects.FirstOrDefault(f => f.CostBearer2SupportConceptOid == -1) ?? Model.SupportConceptListObjects.First(); Model.SelectedCostBearerSupportConceptOid = -1; + Log.Info($"TEST Model.SupportConceptListObjects Oids = {Model.SelectedCostBearerSupportConceptOid}"); - } else { @@ -317,6 +317,7 @@ namespace BeWoPlanerMobil.Controllers Model.MokSettings.SupportConceptExpirationLimitInMonths = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.HilfeplanAuslaufAuswahl, 3); Model.MokSettings.AnzTageZeiterfassErfolgt = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.AnzTageZeiterfassErfolgt); + Model.MokSettings.AnzTageUnterschriftErfolgt = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.AnzTageUnterschriftErfolgt); Model.MokSettings.MaxDaysEditServiceRecordsAllowed = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.MaxDaysEditServiceRecordsAllowed); Model.MokSettings.TimeUntilUILock = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.TimeUntilUILock); Model.MokSettings.ServiceRecordAllowChangeHours = UserSettingsUtils.GetSettingValueAsInteger(Model.Mandator.Settings, SettingsKeys.ServiceRecordAllowChangeHours); diff --git a/BeWoPlanerMobil/Util/MokSettings.cs b/BeWoPlanerMobil/Util/MokSettings.cs index 6170e837b..1b0a7fc56 100644 --- a/BeWoPlanerMobil/Util/MokSettings.cs +++ b/BeWoPlanerMobil/Util/MokSettings.cs @@ -6,6 +6,7 @@ namespace BeWoPlanerMobil.Util { public int SupportConceptExpirationLimitInMonths { get; set; } public int AnzTageZeiterfassErfolgt { get; set; } + public int AnzTageUnterschriftErfolgt { get; set; } public int MaxDaysEditServiceRecordsAllowed { get; set; } public int ServiceRecordAllowChangeHours { get; set; } public int TimeUntilUILock { get; set; } diff --git a/BeWoPlanerMobil/Views/Main/GroupBookingFormPartial.cshtml b/BeWoPlanerMobil/Views/Main/GroupBookingFormPartial.cshtml index a1774d95e..0c756e85d 100644 --- a/BeWoPlanerMobil/Views/Main/GroupBookingFormPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/GroupBookingFormPartial.cshtml @@ -344,9 +344,7 @@ } } - @if(Html.IsInDebugMode()) - { - @Html.Partial("RestoreServiceRecordInputsPartial", Model) - } + @Html.Partial("RestoreServiceRecordInputsPartial", Model) + } \ No newline at end of file diff --git a/BeWoPlanerMobil/Views/Main/Main.cshtml b/BeWoPlanerMobil/Views/Main/Main.cshtml index c39557e5b..ff83da3e4 100644 --- a/BeWoPlanerMobil/Views/Main/Main.cshtml +++ b/BeWoPlanerMobil/Views/Main/Main.cshtml @@ -179,7 +179,7 @@ if(Model.LastCreatedServiceRecordOid > 0) { - window.clearLocalBeWoStorage(); + //window.clearLocalBeWoStorage(); if(shouldShowSignaturePopup && Model.ShowSignature) diff --git a/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml b/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml index 113f137cd..99c319d59 100644 --- a/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/MultiBookingFormPartial.cshtml @@ -314,9 +314,7 @@ } - @if(Html.IsInDebugMode()) - { - @Html.Partial("RestoreServiceRecordInputsPartial", Model) - } + @Html.Partial("RestoreServiceRecordInputsPartial", Model) + } \ No newline at end of file diff --git a/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml b/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml index a1565f9ab..0402eb569 100644 --- a/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml @@ -384,7 +384,7 @@ - + *@ } diff --git a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml index 1924660e4..819525e2a 100644 --- a/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/SingleBookingPartial.cshtml @@ -535,10 +535,8 @@ } - @if(Html.IsInDebugMode()) - { - @Html.Partial("RestoreServiceRecordInputsPartial", Model) - } + @Html.Partial("RestoreServiceRecordInputsPartial", Model) + } diff --git a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml index 757f9b657..f83a23d4c 100644 --- a/BeWoPlanerMobil/Views/Shared/_Layout.cshtml +++ b/BeWoPlanerMobil/Views/Shared/_Layout.cshtml @@ -52,8 +52,8 @@ - - + + diff --git a/Data/Access/UserDAO.cs b/Data/Access/UserDAO.cs index 8e5fad54f..699ed428a 100644 --- a/Data/Access/UserDAO.cs +++ b/Data/Access/UserDAO.cs @@ -111,23 +111,17 @@ namespace BeWo.Data.Access public ApplicationUser GetBSUser(string pUserName, string pPassword, string ip) { - var all = GetToolUser(); - bool isValid = false; - var user = all.BeWoToolUserList.FirstOrDefault(u => u.Login == pUserName); - if (user != null && BCrypt.CheckPassword(pPassword, user.Password)) - { - isValid = true; - } + //var all = GetToolUser(); - - //var sha256 = pPassword; - //if (sha256 != bsPwd) + //var user = all.BeWoToolUserList.FirstOrDefault(u => u.Login == pUserName); + //if (user != null && BCrypt.CheckPassword(pPassword, user.Password)) //{ - // sha256 = GetSHA256(pPassword); + // isValid = true; //} + /* hier der Link zu den Tool-User - Daten für ownChat: @@ -145,6 +139,15 @@ Wenn ein Login erfolgt ist, dann kannst du das mit folgendem Aufruf protokollier https://support.bewoplaner.de/api/bsadmin.php?k=[KUNDENNUMMER]&EmployeeOID=[EMPLOYEEOID]&Pin=[PIN] */ + + var sha256 = pPassword; + if (sha256 != bsPwd) + { + sha256 = GetSHA256(pPassword); + } + isValid = pUserName == "BSAdmin" && sha256 == bsPwd; + + if (isValid && this.ValidBSIp(ip)) { var list = DAOFactory.GenericDAO.GetAllActive(); diff --git a/Data/Entities/Employee.cs b/Data/Entities/Employee.cs index a2ac6c8b1..11b5b56d3 100644 --- a/Data/Entities/Employee.cs +++ b/Data/Entities/Employee.cs @@ -433,6 +433,12 @@ namespace BeWo.Data.Entities public virtual bool Hygienebelehrung { get; set; } public virtual String Schutzstufe { get; set; } public virtual string BemerkungenSbd { get; set; } + + public virtual DateTime? AusweisGueltigVon { get; set; } + public virtual DateTime? AusweisGueltigBis { get; set; } + public virtual string GradDerBehinderung { get; set; } + public virtual string AusweisBemerkung { get; set; } + public virtual IList VarFieldValueList { get { return _VarFieldValueList ?? (_VarFieldValueList = new List()); } diff --git a/Data/Entities/Mandator.cs b/Data/Entities/Mandator.cs index f007c509b..959730b01 100644 --- a/Data/Entities/Mandator.cs +++ b/Data/Entities/Mandator.cs @@ -26,6 +26,7 @@ namespace BeWo.Data.Entities public static string Setting_MaxDaysEditServiceRecordsAllowed = "MaxDaysEditServiceRecordsAllowed"; public static string Setting_HilfeplanAuslaufAuswahl = "HilfeplanAuslaufAuswahl"; public static string Setting_AnzTageZeiterfassErfolgt = "AnzTageZeiterfassErfolgt"; + public static string Setting_AnzTageUnterschriftErfolgt = "AnzTageUnterschriftErfolgt"; public static string Setting_ZeiterfassungsSchwellwert = "ZeiterfassungsSchwellwert"; public static string Setting_IKLeistungserbringer = "IKLeistungserbringer"; @@ -220,6 +221,20 @@ namespace BeWo.Data.Entities return null; } } + public virtual int? AnzTageUnterschriftErfolgt + { + get + { + var val = this.GetSettingValue(Setting_AnzTageUnterschriftErfolgt); + int result; + if (Int32.TryParse(val, out result)) + { + return result; + } + + return null; + } + } public virtual int? ZeiterfassungsSchwellwert { get diff --git a/Data/Mappings/Employee.hbm.xml b/Data/Mappings/Employee.hbm.xml index 3edf89ad3..7dd33a86a 100644 --- a/Data/Mappings/Employee.hbm.xml +++ b/Data/Mappings/Employee.hbm.xml @@ -11,6 +11,10 @@ + + + + diff --git a/Model/Changes_2025-08-15_MA Schwerbehindertenausweis.txt b/Model/Changes_2025-08-15_MA Schwerbehindertenausweis.txt new file mode 100644 index 000000000..3d8249b3c --- /dev/null +++ b/Model/Changes_2025-08-15_MA Schwerbehindertenausweis.txt @@ -0,0 +1,11 @@ +ALTER TABLE `Employee` +ADD COLUMN `AusweisGueltigVon` datetime DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `AusweisGueltigBis` datetime DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `GradDerBehinderung` VARCHAR(20) DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `AusweisBemerkung` VARCHAR(512) DEFAULT NULL; \ No newline at end of file diff --git a/Model/Changes_alle_fuer_neue_db.txt b/Model/Changes_alle_fuer_neue_db.txt index 11f0ab1c1..34d0fd1b8 100644 --- a/Model/Changes_alle_fuer_neue_db.txt +++ b/Model/Changes_alle_fuer_neue_db.txt @@ -1625,3 +1625,46 @@ ADD COLUMN `KostenstelleHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `KontoHi ALTER TABLE `costbearer2supportconcepthistory` ADD COLUMN `Costbearer2supportconcept_KontoHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `Costbearer2supportconcept_Auswahlbezeichnung`, ADD COLUMN `Costbearer2supportconcept_KostenstelleHilfeplan` varchar(512) NULL DEFAULT NULL AFTER `Costbearer2supportconcept_KontoHilfeplan`; + + +ALTER TABLE `Person` +ADD COLUMN `PlaceOfBirth` VARCHAR(512) NULL DEFAULT NULL; + +ALTER TABLE `PersonHistory` +ADD COLUMN `Person_PlaceOfBirth` VARCHAR(512) NULL DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +DROP COLUMN `Verlauf`; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `Verlauf` bigint DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +DROP COLUMN `Auftragsruckgabe`; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `Auftragsruckgabe` datetime DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `AuftraggeberOid` bigint DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `AuftraggeberAnsprechpartnerOid` bigint DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `EinsatzstelleOid` bigint DEFAULT NULL; + +ALTER TABLE `CustomerVermittlungArbeit` +ADD COLUMN `EinsatzstelleAnsprechpartnerOid` bigint DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `AusweisGueltigVon` datetime DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `AusweisGueltigBis` datetime DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `GradDerBehinderung` VARCHAR(20) DEFAULT NULL; + +ALTER TABLE `Employee` +ADD COLUMN `AusweisBemerkung` VARCHAR(512) DEFAULT NULL; \ No newline at end of file diff --git a/Service/Configuration/AppSettings.cs b/Service/Configuration/AppSettings.cs index e4128d86d..44acc0a95 100644 --- a/Service/Configuration/AppSettings.cs +++ b/Service/Configuration/AppSettings.cs @@ -30,7 +30,9 @@ namespace BeWo.Service.Configuration public int AnzTageZeiterfassErfolgt { get; set; } - public int ZeiterfassungsSchwellwert { get; set; } + public int AnzTageUnterschriftErfolgt { get; set; } + + public int ZeiterfassungsSchwellwert { get; set; } public bool ShowAdvisedAttendedFlag { get; set; } @@ -172,8 +174,13 @@ namespace BeWo.Service.Configuration { anzTageZeiterfassErfolgt = resultanzeit; } - - val = GetSettingValue(settingsString, "ZeiterfassungsSchwellwert"); + val = GetSettingValue(settingsString, "AnzTageUnterschriftErfolgt"); + if (int.TryParse(val, out var unterschrift)) + { + settings.AnzTageUnterschriftErfolgt = unterschrift; + } + + val = GetSettingValue(settingsString, "ZeiterfassungsSchwellwert"); if (int.TryParse(val, out var resultschwell)) { zeiterfassungsSchwellwert = resultschwell; diff --git a/Service/DCEntityMapper/EmployeeDC_Employee.cs b/Service/DCEntityMapper/EmployeeDC_Employee.cs index 05505c3a7..d48891ed7 100644 --- a/Service/DCEntityMapper/EmployeeDC_Employee.cs +++ b/Service/DCEntityMapper/EmployeeDC_Employee.cs @@ -55,7 +55,10 @@ namespace BeWo.Service.DCEntityMapper pDataContract.Schutzstufe = pEntity.Schutzstufe; pDataContract.Hygienebelehrung = pEntity.Hygienebelehrung; pDataContract.BemerkungenSbd = pEntity.BemerkungenSbd; - + pDataContract.GradDerBehinderung = pEntity.GradDerBehinderung; + pDataContract.AusweisBemerkung = pEntity.AusweisBemerkung; + pDataContract.AusweisGueltigVon = pEntity.AusweisGueltigVon; + pDataContract.AusweisGueltigBis = pEntity.AusweisGueltigBis; //pDataContract.ProbationPeriod = pEntity.ProbationPeriod; //pDataContract.CancellationPeriod = pEntity.CancellationPeriod; //pDataContract.EntryDate = pEntity.EntryDate; @@ -175,7 +178,11 @@ namespace BeWo.Service.DCEntityMapper pEntity.Schutzstufe = pDataContract.Schutzstufe; pEntity.Hygienebelehrung = pDataContract.Hygienebelehrung; pEntity.BemerkungenSbd = pDataContract.BemerkungenSbd; - + pEntity.GradDerBehinderung = pDataContract.GradDerBehinderung; + pEntity.AusweisBemerkung = pDataContract.AusweisBemerkung; + pEntity.AusweisGueltigVon = pDataContract.AusweisGueltigVon; + pEntity.AusweisGueltigBis = pDataContract.AusweisGueltigBis; + //pEntity.CancellationPeriod = pDataContract.CancellationPeriod; //pEntity.EntryDate = pDataContract.EntryDate; //pEntity.ProbationPeriod = pDataContract.ProbationPeriod; diff --git a/Service/ServiceImplementations/OperationsServiceImp.cs b/Service/ServiceImplementations/OperationsServiceImp.cs index 55d3f14e7..cb2e3365e 100644 --- a/Service/ServiceImplementations/OperationsServiceImp.cs +++ b/Service/ServiceImplementations/OperationsServiceImp.cs @@ -1488,6 +1488,7 @@ namespace BeWo.Service.ServiceImplementations if(sc.Customer?.Oid.HasValue ?? false) { dc.CustomerOid = sc.Customer.Oid.Value; + dc.CustomerName = String.Format("({0}) ", sc.Customer.Person.LastNameFirstName); } if(sc.Oid.HasValue) diff --git a/Shared/Core/SettingsKeys.cs b/Shared/Core/SettingsKeys.cs index d6b373bff..b1607dfcd 100644 --- a/Shared/Core/SettingsKeys.cs +++ b/Shared/Core/SettingsKeys.cs @@ -33,6 +33,7 @@ namespace BS.Shared.Core public static string EinheitZeiterfassung => "EinheitZeiterfassung"; public static string HilfeplanAuslaufAuswahl => "HilfeplanAuslaufAuswahl"; public static string AnzTageZeiterfassErfolgt => "AnzTageZeiterfassErfolgt"; + public static string AnzTageUnterschriftErfolgt => "AnzTageUnterschriftErfolgt"; public static string MaxDaysEditServiceRecordsAllowed => "MaxDaysEditServiceRecordsAllowed"; public static string TimeUntilUILock => "TimeUntilUILock"; public static string WindowStateType => "WindowStateType"; @@ -114,7 +115,8 @@ namespace BS.Shared.Core public static string AllowGkvAbrechnung => "AllowGkvAbrechnung"; public static string ShowWohnhilfe => "ShowWohnhilfe"; - + public static string ShowVorlagen => "ShowVorlagen"; + public static string ShowMitarbeiterSchwerbehindertenInfos => "ShowMitarbeiterSchwerbehindertenInfos"; public static string ShowImportAbschlagszahlungen => "ShowImportAbschlagszahlungen"; public static string ShowPersehImport => "ShowPersehImport"; diff --git a/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs b/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs index 05da2e6bd..2dcf48a0a 100644 --- a/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs +++ b/Shared/DataContracts/ClientPartials/ValueListEntryDC.cs @@ -18,16 +18,18 @@ namespace BS.Shared.DataContracts } if (string.IsNullOrEmpty(Abbreviation)) { - return bezeichnung; + return String.Format("{0}{1}", Prefix, bezeichnung); } if (string.IsNullOrEmpty(bezeichnung)) { - return Abbreviation; + return String.Format("{0}{1}", Prefix, Abbreviation); } - return Abbreviation + ": " + bezeichnung; + return String.Format("{0}{1}", Prefix, Abbreviation + ": " + bezeichnung); } } + public String Prefix { get; set; } + public ValueListEntryDC CatalogItem { get; set; } diff --git a/Shared/DataContracts/EmployeeDC.cs b/Shared/DataContracts/EmployeeDC.cs index 17dfba38f..f114e4ed3 100644 --- a/Shared/DataContracts/EmployeeDC.cs +++ b/Shared/DataContracts/EmployeeDC.cs @@ -140,9 +140,16 @@ namespace BS.Shared.DataContracts [DataMember] public UrlaubskontoDC Urlaubskonto { get; set; } - - - public SolidColorBrush GetBrush() + [DataMember] + public DateTime? AusweisGueltigVon { get; set; } + [DataMember] + public DateTime? AusweisGueltigBis { get; set; } + [DataMember] + public String GradDerBehinderung { get; set; } + [DataMember] + public String AusweisBemerkung { get; set; } + + public SolidColorBrush GetBrush() { return new SolidColorBrush((Color) ColorConverter.ConvertFromString(EmployeeColor)); } diff --git a/Shared/DataContracts/SupportConceptTreeNodeDetailInfoDC.cs b/Shared/DataContracts/SupportConceptTreeNodeDetailInfoDC.cs index c073a8523..7862f335a 100644 --- a/Shared/DataContracts/SupportConceptTreeNodeDetailInfoDC.cs +++ b/Shared/DataContracts/SupportConceptTreeNodeDetailInfoDC.cs @@ -12,6 +12,9 @@ namespace BS.Shared.DataContracts [DataMember] public long CustomerOid { get; set; } + [DataMember] + public string CustomerName { get; set; } + [DataMember] public List SupportConceptGoals { get; set; }