From b9ac06c0ce6d74ce5f26ee103f98b999e91550f8 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 25 Sep 2024 11:02:02 +0200 Subject: [PATCH] Entity List null --- Data/Entities/Customer.cs | 606 +++++++++++++++++++------------------- 1 file changed, 308 insertions(+), 298 deletions(-) diff --git a/Data/Entities/Customer.cs b/Data/Entities/Customer.cs index 4fbfc0d91..00e4d643b 100644 --- a/Data/Entities/Customer.cs +++ b/Data/Entities/Customer.cs @@ -8,115 +8,117 @@ namespace BeWo.Data.Entities { public class Customer : BeWoEntityBase { - public static string PropertyName_AbsenceTimes = "AbsenceTimes"; - public static string PropertyName_Ansprechpartner = "Ansprechpartner"; - public static string PropertyName_AssessmentSheetCategoryList = "AssessmentSheetCategoryList"; - public static string PropertyName_Childs = "Childs"; - public static string PropertyName_Customer2CostBearerList = "Customer2CostBearerList"; - public static string PropertyName_Customer2PersonList = "Customer2PersonList"; - public static string PropertyName_Customer2OrganisationList = "Customer2OrganisationList"; - public static string PropertyName_DebitorNumber = "DebitorNumber"; - public static string PropertyName_CostCenter = "CostCenter"; - public static string PropertyName_Diagnosis = "Diagnosis"; - public static string PropertyName_Diagnosis2CustomerList = "Diagnosis2CustomerList"; - public static string PropertyName_Employee2CustomerList = "Employee2CustomerList"; - public static string PropertyName_FamilyData = "FamilyData"; - public static string PropertyName_Team2CustomerList = "Team2CustomerList"; - public static string PropertyName_EquityContribution = "EquityContribution"; - public static string PropertyName_ICD10Diagnosis = "ICD10Diagnosis"; - public static string PropertyName_IsAdvisedOrAttended = "IsAdvisedOrAttended"; - public static string PropertyName_Medication = "Medication"; - public static string PropertyName_Jugendamt = "Jugendamt"; - public static string PropertyName_Person = "Person"; - public static string PropertyName_PlacementList = "PlacementList"; - public static string PropertyName_ReferenceNumber = "ReferenceNumber"; - public static string PropertyName_ServiceRecordList = "ServiceRecordList"; - public static string PropertyName_SupportConcepts = "SupportConcepts"; - public static string PropertyName_TerminationDate = "TerminationDate"; - public static string PropertyName_TerminationReason = "TerminationReason"; - public static string PropertyName_ValueList = "ValueList"; - public static string PropertyName_VarFieldValueList = "VarFieldValueList"; - public static string PropertyName_Medikamentenverordnungslisten = "Medikamentenverordnungslisten"; - public static string PropertyName_AssistanceBegin = "AssistanceBegin"; - public static string PropertyName_AusstVersAmt = "AusstVersAmt"; - public static string PropertyName_AusweisGueltigVon = "AusweisGueltigVon"; - public static string PropertyName_AusweisGueltigBis = "AusweisGueltigBis"; - public static string PropertyName_AusweisUnbefristetGueltig = "AusweisUnbefristetGueltig"; - public static string PropertyName_AusweisAktenzeichen = "AusweisAktenzeichen"; - public static string PropertyName_BeiblattGueltigBis = "BeiblattGueltigBis"; - public static string PropertyName_GradDerBehinderung = "GradDerBehinderung"; - public static string PropertyName_MerkzeichenListe = "MerkzeichenListe"; - public static string PropertyName_BehinderungsartenListe = "BehinderungsartenListe"; - public static string PropertyName_CustomerAlias = "CustomerAlias"; - public static string PropertyName_Pflegegrad = "Pflegegrad"; - public static string PropertyName_IsMigrant = "IsMigrant"; - public static string PropertyName_Nationalitaet = "Nationalitaet"; - public static string PropertyName_AufenthaltsStatus = "AufenthaltsStatus"; - public static string PropertyName_VertretungGewuenscht = "VertretungGewuenscht"; - public static string PropertyName_AbWelchemKrankheitsTag = "AbWelchemKrankheitsTag "; - public static string PropertyName_VertretungDringendErforderlich = "VertretungGewuenscht"; - public static string PropertyName_Arbeitszeit = "Arbeitszeit"; - public static string PropertyName_HealthInsurance = "Krankenkasse"; - public static string PropertyName_InsuranceNumber = "InsuranceNumber"; - public static string PropertyName_VersichertenStatus = "Versichertenstatus"; + public static string PropertyName_AbsenceTimes = "AbsenceTimes"; + public static string PropertyName_Ansprechpartner = "Ansprechpartner"; + public static string PropertyName_AssessmentSheetCategoryList = "AssessmentSheetCategoryList"; + public static string PropertyName_Childs = "Childs"; + public static string PropertyName_Customer2CostBearerList = "Customer2CostBearerList"; + public static string PropertyName_Customer2PersonList = "Customer2PersonList"; + public static string PropertyName_Customer2OrganisationList = "Customer2OrganisationList"; + public static string PropertyName_DebitorNumber = "DebitorNumber"; + public static string PropertyName_CostCenter = "CostCenter"; + public static string PropertyName_Diagnosis = "Diagnosis"; + public static string PropertyName_Diagnosis2CustomerList = "Diagnosis2CustomerList"; + public static string PropertyName_Employee2CustomerList = "Employee2CustomerList"; + public static string PropertyName_FamilyData = "FamilyData"; + public static string PropertyName_Team2CustomerList = "Team2CustomerList"; + public static string PropertyName_EquityContribution = "EquityContribution"; + public static string PropertyName_ICD10Diagnosis = "ICD10Diagnosis"; + public static string PropertyName_IsAdvisedOrAttended = "IsAdvisedOrAttended"; + public static string PropertyName_Medication = "Medication"; + public static string PropertyName_Jugendamt = "Jugendamt"; + public static string PropertyName_Person = "Person"; + public static string PropertyName_PlacementList = "PlacementList"; + public static string PropertyName_ReferenceNumber = "ReferenceNumber"; + public static string PropertyName_ServiceRecordList = "ServiceRecordList"; + public static string PropertyName_SupportConcepts = "SupportConcepts"; + public static string PropertyName_TerminationDate = "TerminationDate"; + public static string PropertyName_TerminationReason = "TerminationReason"; + public static string PropertyName_ValueList = "ValueList"; + public static string PropertyName_VarFieldValueList = "VarFieldValueList"; + public static string PropertyName_Medikamentenverordnungslisten = "Medikamentenverordnungslisten"; + public static string PropertyName_AssistanceBegin = "AssistanceBegin"; + public static string PropertyName_AusstVersAmt = "AusstVersAmt"; + public static string PropertyName_AusweisGueltigVon = "AusweisGueltigVon"; + public static string PropertyName_AusweisGueltigBis = "AusweisGueltigBis"; + public static string PropertyName_AusweisUnbefristetGueltig = "AusweisUnbefristetGueltig"; + public static string PropertyName_AusweisAktenzeichen = "AusweisAktenzeichen"; + public static string PropertyName_BeiblattGueltigBis = "BeiblattGueltigBis"; + public static string PropertyName_GradDerBehinderung = "GradDerBehinderung"; + public static string PropertyName_MerkzeichenListe = "MerkzeichenListe"; + public static string PropertyName_BehinderungsartenListe = "BehinderungsartenListe"; + public static string PropertyName_CustomerAlias = "CustomerAlias"; + public static string PropertyName_Pflegegrad = "Pflegegrad"; + public static string PropertyName_IsMigrant = "IsMigrant"; + public static string PropertyName_Nationalitaet = "Nationalitaet"; + public static string PropertyName_AufenthaltsStatus = "AufenthaltsStatus"; + public static string PropertyName_VertretungGewuenscht = "VertretungGewuenscht"; + public static string PropertyName_AbWelchemKrankheitsTag = "AbWelchemKrankheitsTag "; + public static string PropertyName_VertretungDringendErforderlich = "VertretungGewuenscht"; + public static string PropertyName_Arbeitszeit = "Arbeitszeit"; + public static string PropertyName_HealthInsurance = "Krankenkasse"; + public static string PropertyName_InsuranceNumber = "InsuranceNumber"; + public static string PropertyName_VersichertenStatus = "Versichertenstatus"; - private IList _AbsenceTimes; - private Person _Ansprechpartner; - private IList _AssessmentSheetCategoryList; - private string _Childs; - private string _CostCenter; - private IList _Customer2CostBearerList; - private IList _Customer2OrganisationList; - private IList _Customer2PersonList; - private string _DebitorNumber; - private string _Diagnosis; - private IList _Diagnosis2CustomerList; - private IList _Employee2CustomerList; - private string _Environment; - private decimal? _EquityContribution; - private FamilyData _FamilyData; - private string _ICD10Diagnosis; - private bool? _IsAdvisedOrAttended; - private Organisation _Jugendamt; - private string _Medication; + private IList _AbsenceTimes; + private Person _Ansprechpartner; + private IList _AssessmentSheetCategoryList; + private string _Childs; + private string _CostCenter; + private IList _Customer2CostBearerList; + private IList _Customer2OrganisationList; + private IList _Customer2PersonList; + private string _DebitorNumber; + private string _Diagnosis; + private IList _Diagnosis2CustomerList; + private IList _Employee2CustomerList; + private string _Environment; + private decimal? _EquityContribution; + private FamilyData _FamilyData; + private string _ICD10Diagnosis; + private bool? _IsAdvisedOrAttended; + private Organisation _Jugendamt; + private string _Medication; private IList _Medikamentenverordnungslisten; - private Person _Person; - private IList _PlacementList; - private string _ReferenceNumber; - private IList _ServiceRecordList; - private IList _SupportConcepts; - private IList _Team2CustomerList; - private DateTime? _TerminationDate; - private ValueListEntry _TerminationReason; - private IList _ValueList; - private IList _VarFieldValueList; - private DateTime? _AssistanceBegin; - private string _AusstVersAmt; - private DateTime? _AusweisGueltigVon; - private DateTime? _AusweisGueltigBis; - private bool? _AusweisUnbefristetGueltig; - private string _AusweisAktenzeichen; - private DateTime? _BeiblattGueltigBis; - private string _GradDerBehinderung; - private IList _MerkzeichenListe; - private IList _BehinderungsartenListe; - private string _CustomerAlias; - private Pflegegrad? _Pflegegrad; - private bool _VertretungGewuenscht; - private int _AbWelchemKrankheitsTag; - private bool _VertretungDringendErforderlich; - private IList _Arbeitszeit; - private SubstitutionNeed _SubstitutionNeed; - private string _HealthInsurance; - private string _InsuranceNumber; - private string _VersichertenStatus; + private Person _Person; + private IList _PlacementList; + private string _ReferenceNumber; + private IList _ServiceRecordList; + private IList _SupportConcepts; + private IList _Team2CustomerList; + private DateTime? _TerminationDate; + private ValueListEntry _TerminationReason; + private IList _ValueList; + private IList _VarFieldValueList; + private DateTime? _AssistanceBegin; + private string _AusstVersAmt; + private DateTime? _AusweisGueltigVon; + private DateTime? _AusweisGueltigBis; + private bool? _AusweisUnbefristetGueltig; + private string _AusweisAktenzeichen; + private DateTime? _BeiblattGueltigBis; + private string _GradDerBehinderung; + private IList _MerkzeichenListe; + private IList _BehinderungsartenListe; + private string _CustomerAlias; + private Pflegegrad? _Pflegegrad; + private bool _VertretungGewuenscht; + private int _AbWelchemKrankheitsTag; + private bool _VertretungDringendErforderlich; + private IList _Arbeitszeit; + private SubstitutionNeed _SubstitutionNeed; + private string _HealthInsurance; + private string _InsuranceNumber; + private string _VersichertenStatus; + private IList _CustomerVermittlungArbeiten; + private IList _CustomerWohnhilfen; - public Customer() + public Customer() { _Tid = TableID.Customer; } - + public virtual int? DistanceInMeter { get; set; } public virtual IList AbsenceTimes @@ -284,16 +286,16 @@ namespace BeWo.Data.Entities } } - public virtual Pflegegrad? Pflegegrad - { - get { return _Pflegegrad; } + public virtual Pflegegrad? Pflegegrad + { + get { return _Pflegegrad; } - set - { - if (AreDifferent(_Pflegegrad, value)) - _Pflegegrad = value; - } - } + set + { + if (AreDifferent(_Pflegegrad, value)) + _Pflegegrad = value; + } + } public virtual IList Team2CustomerList { @@ -317,7 +319,7 @@ namespace BeWo.Data.Entities } } } - + public virtual string ICD10Diagnosis { get { return _ICD10Diagnosis; } @@ -470,18 +472,18 @@ namespace BeWo.Data.Entities } } - public virtual DateTime? AssistanceBegin - { - get { return _AssistanceBegin; } + public virtual DateTime? AssistanceBegin + { + get { return _AssistanceBegin; } - set - { - if (AreDifferent(_AssistanceBegin, value)) - { - _AssistanceBegin = value; - } - } - } + set + { + if (AreDifferent(_AssistanceBegin, value)) + { + _AssistanceBegin = value; + } + } + } public virtual ValueListEntry TerminationReason { @@ -541,58 +543,58 @@ namespace BeWo.Data.Entities return lResult; } - - public virtual string AusstVersAmt - { - get { return _AusstVersAmt; } - set - { - if (AreDifferent(_AusstVersAmt, value)) - { - _AusstVersAmt = value; - } - } - } + public virtual string AusstVersAmt + { + get { return _AusstVersAmt; } - public virtual DateTime? AusweisGueltigVon - { - get { return _AusweisGueltigVon; } + set + { + if (AreDifferent(_AusstVersAmt, value)) + { + _AusstVersAmt = value; + } + } + } - set - { - if (AreDifferent(_AusweisGueltigVon, value)) - { - _AusweisGueltigVon = value; - } - } - } + public virtual DateTime? AusweisGueltigVon + { + get { return _AusweisGueltigVon; } - public virtual DateTime? AusweisGueltigBis - { - get { return _AusweisGueltigBis; } + set + { + if (AreDifferent(_AusweisGueltigVon, value)) + { + _AusweisGueltigVon = value; + } + } + } - set - { - if (AreDifferent(_AusweisGueltigBis, value)) - { - _AusweisGueltigBis = value; - } - } - } + public virtual DateTime? AusweisGueltigBis + { + get { return _AusweisGueltigBis; } - public virtual bool? AusweisUnbefristetGueltig - { - get { return _AusweisUnbefristetGueltig; } + set + { + if (AreDifferent(_AusweisGueltigBis, value)) + { + _AusweisGueltigBis = value; + } + } + } - set - { - if (AreDifferent(_AusweisUnbefristetGueltig, value)) - { - _AusweisUnbefristetGueltig = value; - } - } - } + public virtual bool? AusweisUnbefristetGueltig + { + get { return _AusweisUnbefristetGueltig; } + + set + { + if (AreDifferent(_AusweisUnbefristetGueltig, value)) + { + _AusweisUnbefristetGueltig = value; + } + } + } public virtual string AusweisAktenzeichen { @@ -608,134 +610,134 @@ namespace BeWo.Data.Entities } public virtual DateTime? BeiblattGueltigBis - { - get { return _BeiblattGueltigBis; } + { + get { return _BeiblattGueltigBis; } - set - { - if (AreDifferent(_BeiblattGueltigBis, value)) - { - _BeiblattGueltigBis = value; - } - } - } + set + { + if (AreDifferent(_BeiblattGueltigBis, value)) + { + _BeiblattGueltigBis = value; + } + } + } - public virtual string GradDerBehinderung - { - get { return _GradDerBehinderung; } + public virtual string GradDerBehinderung + { + get { return _GradDerBehinderung; } - set - { - if (AreDifferent(_GradDerBehinderung, value)) - { - _GradDerBehinderung = value; - } - } - } + set + { + if (AreDifferent(_GradDerBehinderung, value)) + { + _GradDerBehinderung = value; + } + } + } - public virtual IList BehinderungsartenListe - { - get { return _BehinderungsartenListe; } + public virtual IList BehinderungsartenListe + { + get { return _BehinderungsartenListe; } - set - { - if (AreDifferent(_BehinderungsartenListe, value)) - { - _BehinderungsartenListe = value; - } - } - } + set + { + if (AreDifferent(_BehinderungsartenListe, value)) + { + _BehinderungsartenListe = value; + } + } + } - public virtual IList MerkzeichenListe - { - get { return _MerkzeichenListe; } + public virtual IList MerkzeichenListe + { + get { return _MerkzeichenListe; } - set - { - if (AreDifferent(_MerkzeichenListe, value)) - { - _MerkzeichenListe = value; - } - } - } + set + { + if (AreDifferent(_MerkzeichenListe, value)) + { + _MerkzeichenListe = value; + } + } + } - public virtual string CustomerAlias - { - get { return _CustomerAlias; } + public virtual string CustomerAlias + { + get { return _CustomerAlias; } - set - { - if (AreDifferent(_CustomerAlias, value)) - { - _CustomerAlias = value; - } - } - } + set + { + if (AreDifferent(_CustomerAlias, value)) + { + _CustomerAlias = value; + } + } + } - public virtual bool VertretungGewuenscht - { - get { return _VertretungGewuenscht; } + public virtual bool VertretungGewuenscht + { + get { return _VertretungGewuenscht; } - set - { - if (AreDifferent(_VertretungGewuenscht, value)) - { - _VertretungGewuenscht = value; - } - } - } + set + { + if (AreDifferent(_VertretungGewuenscht, value)) + { + _VertretungGewuenscht = value; + } + } + } - public virtual bool VertretungDringendErforderlich - { - get { return _VertretungDringendErforderlich; } + public virtual bool VertretungDringendErforderlich + { + get { return _VertretungDringendErforderlich; } - set - { - if (AreDifferent(_VertretungDringendErforderlich, value)) - { - _VertretungDringendErforderlich = value; - } - } - } + set + { + if (AreDifferent(_VertretungDringendErforderlich, value)) + { + _VertretungDringendErforderlich = value; + } + } + } - public virtual int AbWelchemKrankheitsTag - { - get { return _AbWelchemKrankheitsTag;} + public virtual int AbWelchemKrankheitsTag + { + get { return _AbWelchemKrankheitsTag; } - set - { - if (AreDifferent(_AbWelchemKrankheitsTag, value)) - { - _AbWelchemKrankheitsTag = value; - } - } - } + set + { + if (AreDifferent(_AbWelchemKrankheitsTag, value)) + { + _AbWelchemKrankheitsTag = value; + } + } + } - public virtual SubstitutionNeed SubstitutionNeed - { - get => _SubstitutionNeed; + public virtual SubstitutionNeed SubstitutionNeed + { + get => _SubstitutionNeed; - set - { - if(AreDifferent(_SubstitutionNeed, value)) - { - _SubstitutionNeed = value; - } - } - } + set + { + if (AreDifferent(_SubstitutionNeed, value)) + { + _SubstitutionNeed = value; + } + } + } - public virtual IList Arbeitszeiten - { - get { return _Arbeitszeit ?? (_Arbeitszeit = new List()); } + public virtual IList Arbeitszeiten + { + get { return _Arbeitszeit ?? (_Arbeitszeit = new List()); } - set - { - if (AreDifferent(_Arbeitszeit, value)) - { - _Arbeitszeit = value; - } - } - } + set + { + if (AreDifferent(_Arbeitszeit, value)) + { + _Arbeitszeit = value; + } + } + } public virtual string HealthInsurance { @@ -777,36 +779,44 @@ namespace BeWo.Data.Entities } public virtual bool Pflege { get; set; } - public virtual bool Toilettengang { get; set; } - public virtual bool Aggressiv { get; set; } - public virtual bool Hygienebelehrung { get; set; } - public virtual string Schutzstufe { get; set; } + public virtual bool Toilettengang { get; set; } + public virtual bool Aggressiv { get; set; } + public virtual bool Hygienebelehrung { get; set; } + public virtual string Schutzstufe { get; set; } public virtual string Uebernahmeort { get; set; } public virtual string Verhalten { get; set; } public virtual string Betreuungsbedarf { get; set; } public virtual string BemerkungenSbd { get; set; } public virtual string TeamSimpleString - { - get - { - if (Team2CustomerList == null) - return null; + { + get + { + if (Team2CustomerList == null) + return null; - string name = ""; + string name = ""; - foreach (var t2c in Team2CustomerList) - { - if (name.Length > 0) - name += ", "; - name = t2c.Team.Name; - } + foreach (var t2c in Team2CustomerList) + { + if (name.Length > 0) + name += ", "; + name = t2c.Team.Name; + } - return name; - } - } + return name; + } + } - public virtual IList CustomerVermittlungArbeiten { get; set; } - public virtual IList CustomerWohnhilfen { get; set; } + public virtual IList CustomerVermittlungArbeiten + { + get => _CustomerVermittlungArbeiten ?? (_CustomerVermittlungArbeiten = new List()); + set => _CustomerVermittlungArbeiten = value; + } + public virtual IList CustomerWohnhilfen + { + get => _CustomerWohnhilfen ?? (_CustomerWohnhilfen = new List()); + set => _CustomerWohnhilfen = value; + } } } \ No newline at end of file