diff --git a/BeWo/AI/View/AiChatView.xaml b/BeWo/AI/View/AiChatView.xaml index ad41ae224..a345a4664 100644 --- a/BeWo/AI/View/AiChatView.xaml +++ b/BeWo/AI/View/AiChatView.xaml @@ -35,11 +35,26 @@ + - - + - + - diff --git a/BeWo/ViewModel/CustomerFalldatenVM.cs b/BeWo/ViewModel/CustomerFalldatenVM.cs deleted file mode 100644 index a9cba3e7a..000000000 --- a/BeWo/ViewModel/CustomerFalldatenVM.cs +++ /dev/null @@ -1,606 +0,0 @@ -using System; - -using BS.Shared; -using BS.Shared.Core; -using BS.Shared.DataContracts; -using BS.Shared.DataContracts.Wohnhilfe; - -namespace BeWo.ViewModel -{ - public class CustomerFalldatenVM : AbstractDCMapperVM - { - private string _EigenesAktenzeichen; - private DateTime? _Auftragseingang; - private ValueListEntryDC _Auftragsherkunft; - private ObservableSortCollection _Auftragsherkunfte; - private ValueListEntryDC _Vermittlungsgrundlage; - private ObservableSortCollection _Vermittlungsgrundlagen; - private decimal? _Tagessatze; - private decimal? _Tagessatzhohe; - private decimal? _HoheDerGeldstrafe; - private decimal? _ZuLeistendeArbeitsstunden; - private string _Hinweis; - private DateTime? _Termin; - private FalldatenBearbeitungsstatus? _FalldatenBearbeitungsstatus; - private string _Auftragsruckgabe; - private string _Verlauf; - private decimal? _AbgeleisteteStunden; - private decimal? _ErsparteHafttage; - private decimal? _GeleisteteRatenzahlung; - private string _Bemerkung; - private decimal? _GeleisteteEinmalzahlung; - private bool _GrundArbeitsunfahig; - private bool _GrundSuchtproblem; - private bool _GrundPsychischeProbleme; - private bool _GrundKeineMotivation; - private bool _GrundInHaft; - private bool _GrundUnbekannt; - private bool _GrundKeinKontakt; - private bool _GrundNichtAngetreten; - private bool _GrundAbbruchDerTatigkeit; - private bool _GrundWiderruf; - private bool _Grund459StPO; - private bool _GrundAusbleibenDerZahlung; - private bool _BesonderheitMehrfacheBeauftragung; - private bool _BesonderheitMehrfacheVermittlung; - private bool _BesonderheitVermittlungAusHaft; - private bool _BesonderheitDurchBGBWAufgesucht; - - public CustomerFalldatenVM(CustomerVM cust, FalldatenDC dc) : base(dc, dc.IsNew) - { - Customer = cust; - } - - public CustomerVM Customer { get; set; } - - public bool PermissionFalldatenEdit { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.Customer_GemeinnutzigeArbeit_Manage); - public bool NoPermissionFalldatenEdit => !PermissionFalldatenEdit; - - public string EigenesAktenzeichen - { - get { return _EigenesAktenzeichen; } - set - { - if (!AreDifferent(_EigenesAktenzeichen, value)) - return; - - _EigenesAktenzeichen = value; - StoreDirtyInformation(AreDifferent(DataContract.EigenesAktenzeichen, value), nameof(EigenesAktenzeichen)); - FirePropertyChanged(nameof(EigenesAktenzeichen)); - } - } - public DateTime? Auftragseingang - { - get { return _Auftragseingang; } - set - { - if (!AreDifferent(_Auftragseingang, value)) - return; - - _Auftragseingang = value; - StoreDirtyInformation(AreDifferent(DataContract.Auftragseingang, value), nameof(Auftragseingang)); - FirePropertyChanged(nameof(Auftragseingang)); - } - } - public ValueListEntryDC Auftragsherkunft - { - get { return _Auftragsherkunft; } - set - { - if (!AreDifferent(_Auftragsherkunft, value)) - return; - - _Auftragsherkunft = value; - StoreDirtyInformation(AreDifferent(DataContract.Auftragsherkunft, value), nameof(Auftragsherkunft)); - FirePropertyChanged(nameof(Auftragsherkunft)); - } - } - public ObservableSortCollection Auftragsherkunfte - { - get { return _Auftragsherkunfte ?? (_Auftragsherkunfte = new ObservableSortCollection()); } - set { _Auftragsherkunfte = value; } - } - public ValueListEntryDC Vermittlungsgrundlage - { - get { return _Vermittlungsgrundlage; } - set - { - if (!AreDifferent(_Vermittlungsgrundlage, value)) - return; - - _Vermittlungsgrundlage = value; - StoreDirtyInformation(AreDifferent(DataContract.Vermittlungsgrundlage, value), nameof(Vermittlungsgrundlage)); - FirePropertyChanged(nameof(Vermittlungsgrundlage)); - } - } - public ObservableSortCollection Vermittlungsgrundlagen - { - get { return _Vermittlungsgrundlagen ?? (_Vermittlungsgrundlagen = new ObservableSortCollection()); } - set { _Vermittlungsgrundlagen = value; } - } - public decimal? Tagessatze - { - get { return _Tagessatze; } - set - { - if (!AreDifferent(_Tagessatze, value)) - return; - - _Tagessatze = value; - StoreDirtyInformation(AreDifferent(DataContract.Tagessatze, value), nameof(Tagessatze)); - FirePropertyChanged(nameof(Tagessatze)); - UpdateHoheDerGeldstrafe(); - } - } - public decimal? Tagessatzhohe - { - get { return _Tagessatzhohe; } - set - { - if (!AreDifferent(_Tagessatzhohe, value)) - return; - - _Tagessatzhohe = value; - StoreDirtyInformation(AreDifferent(DataContract.Tagessatzhohe, value), nameof(Tagessatzhohe)); - FirePropertyChanged(nameof(Tagessatzhohe)); - UpdateHoheDerGeldstrafe(); - } - } - public decimal? HoheDerGeldstrafe - { - get { return _HoheDerGeldstrafe; } - set - { - if (!AreDifferent(_HoheDerGeldstrafe, value)) - return; - - _HoheDerGeldstrafe = value; - StoreDirtyInformation(AreDifferent(DataContract.HoheDerGeldstrafe, value), nameof(HoheDerGeldstrafe)); - FirePropertyChanged(nameof(HoheDerGeldstrafe)); - } - } - public decimal? ZuLeistendeArbeitsstunden - { - get { return _ZuLeistendeArbeitsstunden; } - set - { - if (!AreDifferent(_ZuLeistendeArbeitsstunden, value)) - return; - - _ZuLeistendeArbeitsstunden = value; - StoreDirtyInformation(AreDifferent(DataContract.ZuLeistendeArbeitsstunden, value), nameof(ZuLeistendeArbeitsstunden)); - FirePropertyChanged(nameof(ZuLeistendeArbeitsstunden)); - } - } - public string Hinweis - { - get { return _Hinweis; } - set - { - if (!AreDifferent(_Hinweis, value)) - return; - - _Hinweis = value; - StoreDirtyInformation(AreDifferent(DataContract.Hinweis, value), nameof(Hinweis)); - FirePropertyChanged(nameof(Hinweis)); - } - } - public DateTime? Termin - { - get { return _Termin; } - set - { - if (!AreDifferent(_Termin, value)) - return; - - _Termin = value; - StoreDirtyInformation(AreDifferent(DataContract.Termin, value), nameof(Termin)); - FirePropertyChanged(nameof(Termin)); - } - } - public FalldatenBearbeitungsstatus? FalldatenBearbeitungsstatus - { - get { return _FalldatenBearbeitungsstatus; } - set - { - if (!AreDifferent(_FalldatenBearbeitungsstatus, value)) - return; - - _FalldatenBearbeitungsstatus = value; - StoreDirtyInformation(AreDifferent(DataContract.FalldatenBearbeitungsstatus, value), nameof(FalldatenBearbeitungsstatus)); - FirePropertyChanged(nameof(FalldatenBearbeitungsstatus)); - } - } - public string Auftragsruckgabe - { - get { return _Auftragsruckgabe; } - set - { - if (!AreDifferent(_Auftragsruckgabe, value)) - return; - - _Auftragsruckgabe = value; - StoreDirtyInformation(AreDifferent(DataContract.Auftragsruckgabe, value), nameof(Auftragsruckgabe)); - FirePropertyChanged(nameof(Auftragsruckgabe)); - } - } - public string Verlauf - { - get { return _Verlauf; } - set - { - if (!AreDifferent(_Verlauf, value)) - return; - - _Verlauf = value; - StoreDirtyInformation(AreDifferent(DataContract.Verlauf, value), nameof(Verlauf)); - FirePropertyChanged(nameof(Verlauf)); - } - } - public decimal? AbgeleisteteStunden - { - get { return _AbgeleisteteStunden; } - set - { - if (!AreDifferent(_AbgeleisteteStunden, value)) - return; - - _AbgeleisteteStunden = value; - StoreDirtyInformation(AreDifferent(DataContract.AbgeleisteteStunden, value), nameof(AbgeleisteteStunden)); - FirePropertyChanged(nameof(AbgeleisteteStunden)); - } - } - public decimal? ErsparteHafttage - { - get { return _ErsparteHafttage; } - set - { - if (!AreDifferent(_ErsparteHafttage, value)) - return; - - _ErsparteHafttage = value; - StoreDirtyInformation(AreDifferent(DataContract.ErsparteHafttage, value), nameof(ErsparteHafttage)); - FirePropertyChanged(nameof(ErsparteHafttage)); - } - } - public decimal? GeleisteteRatenzahlung - { - get { return _GeleisteteRatenzahlung; } - set - { - if (!AreDifferent(_GeleisteteRatenzahlung, value)) - return; - - _GeleisteteRatenzahlung = value; - StoreDirtyInformation(AreDifferent(DataContract.GeleisteteRatenzahlung, value), nameof(GeleisteteRatenzahlung)); - FirePropertyChanged(nameof(GeleisteteRatenzahlung)); - } - } - public string Bemerkung - { - get { return _Bemerkung; } - set - { - if (!AreDifferent(_Bemerkung, value)) - return; - - _Bemerkung = value; - StoreDirtyInformation(AreDifferent(DataContract.Bemerkung, value), nameof(Bemerkung)); - FirePropertyChanged(nameof(Bemerkung)); - } - } - public decimal? GeleisteteEinmalzahlung - { - get { return _GeleisteteEinmalzahlung; } - set - { - if (!AreDifferent(_GeleisteteEinmalzahlung, value)) - return; - - _GeleisteteEinmalzahlung = value; - StoreDirtyInformation(AreDifferent(DataContract.GeleisteteEinmalzahlung, value), nameof(GeleisteteEinmalzahlung)); - FirePropertyChanged(nameof(GeleisteteEinmalzahlung)); - } - } - public bool GrundArbeitsunfahig - { - get { return _GrundArbeitsunfahig; } - set - { - if (!AreDifferent(_GrundArbeitsunfahig, value)) - return; - - _GrundArbeitsunfahig = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundArbeitsunfahig, value), nameof(GrundArbeitsunfahig)); - FirePropertyChanged(nameof(GrundArbeitsunfahig)); - } - } - public bool GrundSuchtproblem - { - get { return _GrundSuchtproblem; } - set - { - if (!AreDifferent(_GrundSuchtproblem, value)) - return; - - _GrundSuchtproblem = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundSuchtproblem, value), nameof(GrundSuchtproblem)); - FirePropertyChanged(nameof(GrundSuchtproblem)); - } - } - public bool GrundPsychischeProbleme - { - get { return _GrundPsychischeProbleme; } - set - { - if (!AreDifferent(_GrundPsychischeProbleme, value)) - return; - - _GrundPsychischeProbleme = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundPsychischeProbleme, value), nameof(GrundPsychischeProbleme)); - FirePropertyChanged(nameof(GrundPsychischeProbleme)); - } - } - public bool GrundKeineMotivation - { - get { return _GrundKeineMotivation; } - set - { - if (!AreDifferent(_GrundKeineMotivation, value)) - return; - - _GrundKeineMotivation = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundKeineMotivation, value), nameof(GrundKeineMotivation)); - FirePropertyChanged(nameof(GrundKeineMotivation)); - } - } - public bool GrundInHaft - { - get { return _GrundInHaft; } - set - { - if (!AreDifferent(_GrundInHaft, value)) - return; - - _GrundInHaft = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundInHaft, value), nameof(GrundInHaft)); - FirePropertyChanged(nameof(GrundInHaft)); - } - } - public bool GrundUnbekannt - { - get { return _GrundUnbekannt; } - set - { - if (!AreDifferent(_GrundUnbekannt, value)) - return; - - _GrundUnbekannt = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundUnbekannt, value), nameof(GrundUnbekannt)); - FirePropertyChanged(nameof(GrundUnbekannt)); - } - } - public bool GrundKeinKontakt - { - get { return _GrundKeinKontakt; } - set - { - if (!AreDifferent(_GrundKeinKontakt, value)) - return; - - _GrundKeinKontakt = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundKeinKontakt, value), nameof(GrundKeinKontakt)); - FirePropertyChanged(nameof(GrundKeinKontakt)); - } - } - public bool GrundNichtAngetreten - { - get { return _GrundNichtAngetreten; } - set - { - if (!AreDifferent(_GrundNichtAngetreten, value)) - return; - - _GrundNichtAngetreten = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundNichtAngetreten, value), nameof(GrundNichtAngetreten)); - FirePropertyChanged(nameof(GrundNichtAngetreten)); - } - } - public bool GrundAbbruchDerTatigkeit - { - get { return _GrundAbbruchDerTatigkeit; } - set - { - if (!AreDifferent(_GrundAbbruchDerTatigkeit, value)) - return; - - _GrundAbbruchDerTatigkeit = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundAbbruchDerTatigkeit, value), nameof(GrundAbbruchDerTatigkeit)); - FirePropertyChanged(nameof(GrundAbbruchDerTatigkeit)); - } - } - public bool GrundWiderruf - { - get { return _GrundWiderruf; } - set - { - if (!AreDifferent(_GrundWiderruf, value)) - return; - - _GrundWiderruf = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundWiderruf, value), nameof(GrundWiderruf)); - FirePropertyChanged(nameof(GrundWiderruf)); - } - } - public bool Grund459StPO - { - get { return _Grund459StPO; } - set - { - if (!AreDifferent(_Grund459StPO, value)) - return; - - _Grund459StPO = value; - StoreDirtyInformation(AreDifferent(DataContract.Grund459StPO, value), nameof(Grund459StPO)); - FirePropertyChanged(nameof(Grund459StPO)); - } - } - public bool GrundAusbleibenDerZahlung - { - get { return _GrundAusbleibenDerZahlung; } - set - { - if (!AreDifferent(_GrundAusbleibenDerZahlung, value)) - return; - - _GrundAusbleibenDerZahlung = value; - StoreDirtyInformation(AreDifferent(DataContract.GrundAusbleibenDerZahlung, value), nameof(GrundAusbleibenDerZahlung)); - FirePropertyChanged(nameof(GrundAusbleibenDerZahlung)); - } - } - public bool BesonderheitMehrfacheBeauftragung - { - get { return _BesonderheitMehrfacheBeauftragung; } - set - { - if (!AreDifferent(_BesonderheitMehrfacheBeauftragung, value)) - return; - - _BesonderheitMehrfacheBeauftragung = value; - StoreDirtyInformation(AreDifferent(DataContract.BesonderheitMehrfacheBeauftragung, value), nameof(BesonderheitMehrfacheBeauftragung)); - FirePropertyChanged(nameof(BesonderheitMehrfacheBeauftragung)); - } - } - public bool BesonderheitMehrfacheVermittlung - { - get { return _BesonderheitMehrfacheVermittlung; } - set - { - if (!AreDifferent(_BesonderheitMehrfacheVermittlung, value)) - return; - - _BesonderheitMehrfacheVermittlung = value; - StoreDirtyInformation(AreDifferent(DataContract.BesonderheitMehrfacheVermittlung, value), nameof(BesonderheitMehrfacheVermittlung)); - FirePropertyChanged(nameof(BesonderheitMehrfacheVermittlung)); - } - } - public bool BesonderheitVermittlungAusHaft - { - get { return _BesonderheitVermittlungAusHaft; } - set - { - if (!AreDifferent(_BesonderheitVermittlungAusHaft, value)) - return; - - _BesonderheitVermittlungAusHaft = value; - StoreDirtyInformation(AreDifferent(DataContract.BesonderheitVermittlungAusHaft, value), nameof(BesonderheitVermittlungAusHaft)); - FirePropertyChanged(nameof(BesonderheitVermittlungAusHaft)); - } - } - public bool BesonderheitDurchBGBWAufgesucht - { - get { return _BesonderheitDurchBGBWAufgesucht; } - set - { - if (!AreDifferent(_BesonderheitDurchBGBWAufgesucht, value)) - return; - - _BesonderheitDurchBGBWAufgesucht = value; - StoreDirtyInformation(AreDifferent(DataContract.BesonderheitDurchBGBWAufgesucht, value), nameof(BesonderheitDurchBGBWAufgesucht)); - FirePropertyChanged(nameof(BesonderheitDurchBGBWAufgesucht)); - } - } - - public void UpdateHoheDerGeldstrafe() - { - if (!Tagessatze.HasValue || !Tagessatzhohe.HasValue) - return; - - HoheDerGeldstrafe = Tagessatze * Tagessatzhohe; - } - - protected override void InitByDataContract(FalldatenDC pDataContract) - { - _EigenesAktenzeichen = pDataContract.EigenesAktenzeichen; - _Auftragseingang = pDataContract.Auftragseingang; - _Auftragsherkunft = pDataContract.Auftragsherkunft; - _Vermittlungsgrundlage = pDataContract.Vermittlungsgrundlage; - _Tagessatze = pDataContract.Tagessatze; - _Tagessatzhohe = pDataContract.Tagessatzhohe; - _HoheDerGeldstrafe = pDataContract.HoheDerGeldstrafe; - _ZuLeistendeArbeitsstunden = pDataContract.ZuLeistendeArbeitsstunden; - _Hinweis = pDataContract.Hinweis; - _Termin = pDataContract.Termin; - _FalldatenBearbeitungsstatus = pDataContract.FalldatenBearbeitungsstatus; - _Auftragsruckgabe = pDataContract.Auftragsruckgabe; - _Verlauf = pDataContract.Verlauf; - _AbgeleisteteStunden = pDataContract.AbgeleisteteStunden; - _ErsparteHafttage = pDataContract.ErsparteHafttage; - _GeleisteteRatenzahlung = pDataContract.GeleisteteRatenzahlung; - _Bemerkung = pDataContract.Bemerkung; - _GeleisteteEinmalzahlung = pDataContract.GeleisteteEinmalzahlung; - _GrundArbeitsunfahig = pDataContract.GrundArbeitsunfahig; - _GrundSuchtproblem = pDataContract.GrundSuchtproblem; - _GrundPsychischeProbleme = pDataContract.GrundPsychischeProbleme; - _GrundKeineMotivation = pDataContract.GrundKeineMotivation; - _GrundInHaft = pDataContract.GrundInHaft; - _GrundUnbekannt = pDataContract.GrundUnbekannt; - _GrundKeinKontakt = pDataContract.GrundKeinKontakt; - _GrundNichtAngetreten = pDataContract.GrundNichtAngetreten; - _GrundAbbruchDerTatigkeit = pDataContract.GrundAbbruchDerTatigkeit; - _GrundWiderruf = pDataContract.GrundWiderruf; - _Grund459StPO = pDataContract.Grund459StPO; - _GrundAusbleibenDerZahlung = pDataContract.GrundAusbleibenDerZahlung; - _BesonderheitMehrfacheBeauftragung = pDataContract.BesonderheitMehrfacheBeauftragung; - _BesonderheitMehrfacheVermittlung = pDataContract.BesonderheitMehrfacheVermittlung; - _BesonderheitVermittlungAusHaft = pDataContract.BesonderheitVermittlungAusHaft; - _BesonderheitDurchBGBWAufgesucht = pDataContract.BesonderheitDurchBGBWAufgesucht; - } - - internal void InitValueListEntrys(ObservableSortCollection auftragsherkunfte, ObservableSortCollection vermittlungsgrundlage) - { - _Auftragsherkunfte = auftragsherkunfte; - _Vermittlungsgrundlagen = vermittlungsgrundlage; - } - - protected override FalldatenDC MapToDataContract(FalldatenDC pDataContract, bool doCommit) - { - pDataContract.EigenesAktenzeichen = _EigenesAktenzeichen; - pDataContract.Auftragseingang = _Auftragseingang; - pDataContract.Auftragsherkunft = _Auftragsherkunft; - pDataContract.Vermittlungsgrundlage = _Vermittlungsgrundlage; - pDataContract.Tagessatze = _Tagessatze; - pDataContract.Tagessatzhohe = _Tagessatzhohe; - pDataContract.HoheDerGeldstrafe = _HoheDerGeldstrafe; - pDataContract.ZuLeistendeArbeitsstunden = _ZuLeistendeArbeitsstunden; - pDataContract.Hinweis = _Hinweis; - pDataContract.Termin = _Termin; - pDataContract.FalldatenBearbeitungsstatus = _FalldatenBearbeitungsstatus; - pDataContract.Auftragsruckgabe = _Auftragsruckgabe; - pDataContract.Verlauf = _Verlauf; - pDataContract.AbgeleisteteStunden = _AbgeleisteteStunden; - pDataContract.ErsparteHafttage = _ErsparteHafttage; - pDataContract.GeleisteteRatenzahlung = _GeleisteteRatenzahlung; - pDataContract.Bemerkung = _Bemerkung; - pDataContract.GeleisteteEinmalzahlung = _GeleisteteEinmalzahlung; - pDataContract.GrundArbeitsunfahig = _GrundArbeitsunfahig; - pDataContract.GrundSuchtproblem = _GrundSuchtproblem; - pDataContract.GrundPsychischeProbleme = _GrundPsychischeProbleme; - pDataContract.GrundKeineMotivation = _GrundKeineMotivation; - pDataContract.GrundInHaft = _GrundInHaft; - pDataContract.GrundUnbekannt = _GrundUnbekannt; - pDataContract.GrundKeinKontakt = _GrundKeinKontakt; - pDataContract.GrundNichtAngetreten = _GrundNichtAngetreten; - pDataContract.GrundAbbruchDerTatigkeit = _GrundAbbruchDerTatigkeit; - pDataContract.GrundWiderruf = _GrundWiderruf; - pDataContract.Grund459StPO = _Grund459StPO; - pDataContract.GrundAusbleibenDerZahlung = _GrundAusbleibenDerZahlung; - pDataContract.BesonderheitMehrfacheBeauftragung = _BesonderheitMehrfacheBeauftragung; - pDataContract.BesonderheitMehrfacheVermittlung = _BesonderheitMehrfacheVermittlung; - pDataContract.BesonderheitVermittlungAusHaft = _BesonderheitVermittlungAusHaft; - pDataContract.BesonderheitDurchBGBWAufgesucht = _BesonderheitDurchBGBWAufgesucht; - - return pDataContract; - } - } -} diff --git a/BeWo/ViewModel/CustomerVM.cs b/BeWo/ViewModel/CustomerVM.cs index e9392d879..f8c809d43 100644 --- a/BeWo/ViewModel/CustomerVM.cs +++ b/BeWo/ViewModel/CustomerVM.cs @@ -236,9 +236,8 @@ namespace BeWo.ViewModel private ObservableSortCollection _EintragKategorien; private SubstitutionNeed _SubstitutionNeed; - private CustomerFalldatenVM _CustomerFalldatenVM; private CustomerWohnhilfeListVM _CustomerWohnhilfeListVM; - private CustomerGemeinnutzigeArbeitListVM _CustomerGemeinnutzigeArbeitListVM; + private CustomerVermittlungArbeitListVM _CustomerGemeinnutzigeArbeitListVM; public CustomerVM() { @@ -271,7 +270,6 @@ namespace BeWo.ViewModel var auftragsherkunfte = new ObservableSortCollection(possibleauftragsherkunfte, Comparer.ValueListEntryDCComparer); var vermittlungsgrundlage = new ObservableSortCollection(possiblevermittlungsgrundlage, Comparer.ValueListEntryDCComparer); - _CustomerFalldatenVM.InitValueListEntrys(auftragsherkunfte, vermittlungsgrundlage); _CustomerGemeinnutzigeArbeitListVM.InitValueListEntrys(auftragsherkunfte, vermittlungsgrundlage); _MedArten = new BindingList(pPossibleMedArten); @@ -838,9 +836,8 @@ namespace BeWo.ViewModel return base.IsDirty || TeamRelations.IsDirty || EmployeeRelations.IsDirty || _EnvironmentPersons.IsDirty || _EnvironmentOrganisations.IsDirty || _AbsenceTimes.IsDirty || _VarFields.IsDirty || CostBearers.IsDirty || _IndividualAssessmentSheetCategories.IsDirty || - _PlacementList.IsDirty || _MedVerordnungslisten.IsDirty || _EnvironmentPersonsWithFamily.IsDirty || _Arbeitszeiten.IsDirty || - _CustomerFalldatenVM.IsDirty - //|| _CustomerWohnhilfeListVM.IsDirty + _PlacementList.IsDirty || _MedVerordnungslisten.IsDirty || _EnvironmentPersonsWithFamily.IsDirty || _Arbeitszeiten.IsDirty + || _CustomerGemeinnutzigeArbeitListVM.IsDirty || _CustomerWohnhilfeListVM.IsDirty ; } } @@ -1745,18 +1742,6 @@ namespace BeWo.ViewModel } } } - public CustomerFalldatenVM CustomerFalldatenVM - { - get { return _CustomerFalldatenVM; } - - set - { - if (!AreDifferent(_CustomerFalldatenVM, value)) - return; - _CustomerFalldatenVM = value; - FirePropertyChanged(nameof(CustomerFalldatenVM)); - } - } public CustomerWohnhilfeListVM CustomerWohnhilfeListVM { get { return _CustomerWohnhilfeListVM; } @@ -1770,16 +1755,16 @@ namespace BeWo.ViewModel } } - public CustomerGemeinnutzigeArbeitListVM CustomerGemeinnutzigeArbeitListVM + public CustomerVermittlungArbeitListVM CustomerVermittlungArbeitListVM { get { return _CustomerGemeinnutzigeArbeitListVM; } set { - if (!AreDifferent(CustomerGemeinnutzigeArbeitListVM, value)) + if (!AreDifferent(CustomerVermittlungArbeitListVM, value)) return; _CustomerGemeinnutzigeArbeitListVM = value; - FirePropertyChanged(nameof(CustomerGemeinnutzigeArbeitListVM)); + FirePropertyChanged(nameof(CustomerVermittlungArbeitListVM)); } } @@ -2015,8 +2000,6 @@ namespace BeWo.ViewModel } } - CustomerFalldatenVM = new CustomerFalldatenVM(this, pDataContract.FalldatenDC ?? (pDataContract.FalldatenDC = new FalldatenDC(true))); - EnvironmentPersons = VMFactory.CreateCustomerEnvironmentPersonRelListVM(dcListUmfeld, ValueListEntryType.EnvironmentPersonType); EnvironmentPersonsWithFamily = VMFactory.CreateCustomerEnvironmentPersonRelListVM(dcListFamily, ValueListEntryType.RoleInFamily); @@ -2037,7 +2020,7 @@ namespace BeWo.ViewModel CustomerWohnhilfeListVM = new CustomerWohnhilfeListVM(this, pDataContract.CustomerWohnhilfeDC ?? (pDataContract.CustomerWohnhilfeDC = new List())); - CustomerGemeinnutzigeArbeitListVM = new CustomerGemeinnutzigeArbeitListVM(pDataContract.CustomerGemeinnutzigeArbeitDC ?? (pDataContract.CustomerGemeinnutzigeArbeitDC = new List())); + CustomerVermittlungArbeitListVM = new CustomerVermittlungArbeitListVM(pDataContract.CustomerVermittlungArbeitDC ?? (pDataContract.CustomerVermittlungArbeitDC = new List())); } protected override CustomerDC MapToDataContract(CustomerDC pDataContract, bool doCommit) { @@ -2100,15 +2083,6 @@ namespace BeWo.ViewModel pDataContract.SubstitutionNeed = _SubstitutionNeed; pDataContract.AufenthaltGueltigBis = _AufenthaltGueltigBis; - var falldaten_new_and_no_changed = _CustomerFalldatenVM.IsNew && !_CustomerFalldatenVM.IsDirty; - - if (!falldaten_new_and_no_changed) - { - pDataContract.FalldatenDC = _CustomerFalldatenVM.CommitToDataContract(); - } - - if(_CustomerFalldatenVM.IsNew && !_CustomerFalldatenVM.IsDirty) - if (_MerkzeichenListe != null) { pDataContract.MerkzeichenListe = _MerkzeichenListe.ToList(); @@ -2210,7 +2184,12 @@ namespace BeWo.ViewModel pDataContract.Arbeitszeiten = _Arbeitszeiten.CopyToDCList(doCommit); } - if(_CustomerWohnhilfeListVM != null) + if (_CustomerGemeinnutzigeArbeitListVM != null) + { + pDataContract.CustomerVermittlungArbeitDC = _CustomerGemeinnutzigeArbeitListVM.CopyToDCList(doCommit); + } + + if (_CustomerWohnhilfeListVM != null) { pDataContract.CustomerWohnhilfeDC = _CustomerWohnhilfeListVM.CopyToDCList(doCommit); } diff --git a/BeWo/ViewModel/CustomerGemeinnutzigeArbeitVM.cs b/BeWo/ViewModel/CustomerVermittlungArbeitVM.cs similarity index 92% rename from BeWo/ViewModel/CustomerGemeinnutzigeArbeitVM.cs rename to BeWo/ViewModel/CustomerVermittlungArbeitVM.cs index 18a0d280f..5117aced1 100644 --- a/BeWo/ViewModel/CustomerGemeinnutzigeArbeitVM.cs +++ b/BeWo/ViewModel/CustomerVermittlungArbeitVM.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace BeWo.ViewModel { - public class CustomerGemeinnutzigeArbeitVM : AbstractDCMapperVM + public class CustomerVermittlungArbeitVM : AbstractDCMapperVM { private string _EigenesAktenzeichen; private DateTime? _Auftragseingang; @@ -22,7 +22,7 @@ namespace BeWo.ViewModel private decimal? _ZuLeistendeArbeitsstunden; private string _Hinweis; private DateTime? _Termin; - private FalldatenBearbeitungsstatus? _FalldatenBearbeitungsstatus; + private CustomerVermittlungBearbeitungsstatus? _CustomerVermittlungBearbeitungsstatus; private string _Auftragsruckgabe; private string _Verlauf; private decimal? _AbgeleisteteStunden; @@ -47,12 +47,12 @@ namespace BeWo.ViewModel private bool _BesonderheitVermittlungAusHaft; private bool _BesonderheitDurchBGBWAufgesucht; - public CustomerGemeinnutzigeArbeitVM() + public CustomerVermittlungArbeitVM() { } - public CustomerGemeinnutzigeArbeitVM(FalldatenDC falldatenDC) : base(falldatenDC, falldatenDC.IsNew) + public CustomerVermittlungArbeitVM(CustomerVermittlungArbeitDC vermittlung) : base(vermittlung, vermittlung.Oid == null) { } @@ -98,11 +98,6 @@ namespace BeWo.ViewModel FirePropertyChanged(nameof(Auftragsherkunft)); } } - public ObservableSortCollection Auftragsherkunfte - { - get { return _Auftragsherkunfte ?? (_Auftragsherkunfte = new ObservableSortCollection()); } - set { _Auftragsherkunfte = value; } - } public ValueListEntryDC Vermittlungsgrundlage { get { return _Vermittlungsgrundlage; } @@ -116,11 +111,6 @@ namespace BeWo.ViewModel FirePropertyChanged(nameof(Vermittlungsgrundlage)); } } - public ObservableSortCollection Vermittlungsgrundlagen - { - get { return _Vermittlungsgrundlagen ?? (_Vermittlungsgrundlagen = new ObservableSortCollection()); } - set { _Vermittlungsgrundlagen = value; } - } public decimal? Tagessatze { get { return _Tagessatze; } @@ -201,18 +191,18 @@ namespace BeWo.ViewModel FirePropertyChanged(nameof(Termin)); } } - public IEnumerable FalldatenBearbeitungsstatusTypes => Utils.GetAllEnumValues(); - public FalldatenBearbeitungsstatus? FalldatenBearbeitungsstatus + public IEnumerable CustomerVermittlungBearbeitungsstatusTypes => Utils.GetAllEnumValues(); + public CustomerVermittlungBearbeitungsstatus? CustomerVermittlungBearbeitungsstatus { - get { return _FalldatenBearbeitungsstatus; } + get { return _CustomerVermittlungBearbeitungsstatus; } set { - if (!AreDifferent(_FalldatenBearbeitungsstatus, value)) + if (!AreDifferent(_CustomerVermittlungBearbeitungsstatus, value)) return; - _FalldatenBearbeitungsstatus = value; - StoreDirtyInformation(AreDifferent(DataContract.FalldatenBearbeitungsstatus, value), nameof(FalldatenBearbeitungsstatus)); - FirePropertyChanged(nameof(FalldatenBearbeitungsstatus)); + _CustomerVermittlungBearbeitungsstatus = value; + StoreDirtyInformation(AreDifferent(DataContract.CustomerVermittlungBearbeitungsstatus, value), nameof(CustomerVermittlungBearbeitungsstatus)); + FirePropertyChanged(nameof(CustomerVermittlungBearbeitungsstatus)); } } public string Auftragsruckgabe @@ -523,7 +513,7 @@ namespace BeWo.ViewModel HoheDerGeldstrafe = Tagessatze * Tagessatzhohe; } - protected override void InitByDataContract(FalldatenDC pDataContract) + protected override void InitByDataContract(CustomerVermittlungArbeitDC pDataContract) { _EigenesAktenzeichen = pDataContract.EigenesAktenzeichen; _Auftragseingang = pDataContract.Auftragseingang; @@ -535,7 +525,7 @@ namespace BeWo.ViewModel _ZuLeistendeArbeitsstunden = pDataContract.ZuLeistendeArbeitsstunden; _Hinweis = pDataContract.Hinweis; _Termin = pDataContract.Termin; - _FalldatenBearbeitungsstatus = pDataContract.FalldatenBearbeitungsstatus; + _CustomerVermittlungBearbeitungsstatus = pDataContract.CustomerVermittlungBearbeitungsstatus; _Auftragsruckgabe = pDataContract.Auftragsruckgabe; _Verlauf = pDataContract.Verlauf; _AbgeleisteteStunden = pDataContract.AbgeleisteteStunden; @@ -567,7 +557,7 @@ namespace BeWo.ViewModel _Vermittlungsgrundlagen = vermittlungsgrundlage; } - protected override FalldatenDC MapToDataContract(FalldatenDC pDataContract, bool doCommit) + protected override CustomerVermittlungArbeitDC MapToDataContract(CustomerVermittlungArbeitDC pDataContract, bool doCommit) { pDataContract.EigenesAktenzeichen = _EigenesAktenzeichen; pDataContract.Auftragseingang = _Auftragseingang; @@ -579,7 +569,7 @@ namespace BeWo.ViewModel pDataContract.ZuLeistendeArbeitsstunden = _ZuLeistendeArbeitsstunden; pDataContract.Hinweis = _Hinweis; pDataContract.Termin = _Termin; - pDataContract.FalldatenBearbeitungsstatus = _FalldatenBearbeitungsstatus; + pDataContract.CustomerVermittlungBearbeitungsstatus = _CustomerVermittlungBearbeitungsstatus; pDataContract.Auftragsruckgabe = _Auftragsruckgabe; pDataContract.Verlauf = _Verlauf; pDataContract.AbgeleisteteStunden = _AbgeleisteteStunden; diff --git a/BeWo/ViewModel/CustomerWohnhilfeVM.cs b/BeWo/ViewModel/CustomerWohnhilfeVM.cs index 87a357c65..e8dd345a2 100644 --- a/BeWo/ViewModel/CustomerWohnhilfeVM.cs +++ b/BeWo/ViewModel/CustomerWohnhilfeVM.cs @@ -114,17 +114,19 @@ namespace BeWo.ViewModel protected override void InitByDataContract(CustomerWohnhilfeDC dc) { - Displayname = "Test " + counter++; + Displayname = dc.Displayname; - _BereichBundVM = new CustomerWohnhilfeBereichBundVM(dc.BereichBundDC ?? (dc.BereichBundDC = new CustomerWohnhilfeBereichBundDC())); - _BereichEinkommenUndArbeitVM = new CustomerWohnhilfeBereichEinkommenUndArbeitVM(dc.BereichEinkommenUndArbeitDC ?? (dc.BereichEinkommenUndArbeitDC = new CustomerWohnhilfeBereichEinkommenUndArbeitDC())); ; - _BereichSozialeKontakteVM = new CustomerWohnhilfeBereichSozialeKontakteVM(dc.BereichSozialeKontakteDC ?? (dc.BereichSozialeKontakteDC = new CustomerWohnhilfeBereichSozialeKontakteDC())); - _BereichSozialstrukturVM = new CustomerWohnhilfeBereichSozialstrukturVM(dc.BereichSozialstrukturDC ?? (dc.BereichSozialstrukturDC = new CustomerWohnhilfeBereichSozialstrukturDC())); + var isNew = dc.Oid == null; + + _BereichBundVM = new CustomerWohnhilfeBereichBundVM(dc.BereichBundDC ?? (dc.BereichBundDC = new CustomerWohnhilfeBereichBundDC()), isNew); + _BereichEinkommenUndArbeitVM = new CustomerWohnhilfeBereichEinkommenUndArbeitVM(dc.BereichEinkommenUndArbeitDC ?? (dc.BereichEinkommenUndArbeitDC = new CustomerWohnhilfeBereichEinkommenUndArbeitDC()), isNew); ; + _BereichSozialeKontakteVM = new CustomerWohnhilfeBereichSozialeKontakteVM(dc.BereichSozialeKontakteDC ?? (dc.BereichSozialeKontakteDC = new CustomerWohnhilfeBereichSozialeKontakteDC()), isNew); + _BereichSozialstrukturVM = new CustomerWohnhilfeBereichSozialstrukturVM(dc.BereichSozialstrukturDC ?? (dc.BereichSozialstrukturDC = new CustomerWohnhilfeBereichSozialstrukturDC()), isNew); } protected override CustomerWohnhilfeDC MapToDataContract(CustomerWohnhilfeDC pDataContract, bool doCommit) { - pDataContract.Dispalyname = _Displayname; + pDataContract.Displayname = _Displayname; pDataContract.BereichBundDC = _BereichBundVM.CommitToDataContract(); pDataContract.BereichEinkommenUndArbeitDC = _BereichEinkommenUndArbeitVM.CommitToDataContract(); diff --git a/BeWo/ViewModel/ListViewModel/AbstractDCListMapperVM.cs b/BeWo/ViewModel/ListViewModel/AbstractDCListMapperVM.cs index 7b970873f..4d30b99ba 100644 --- a/BeWo/ViewModel/ListViewModel/AbstractDCListMapperVM.cs +++ b/BeWo/ViewModel/ListViewModel/AbstractDCListMapperVM.cs @@ -4,6 +4,7 @@ using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; using System.Windows; +using BS.Shared.DataContracts; using BS.Shared.Extensions; namespace BeWo.ViewModel.ListViewModel @@ -184,7 +185,7 @@ namespace BeWo.ViewModel.ListViewModel // Wichtig! NewVM, wenn _NewVM null ist var vm = NewVM; - _VMList.Add(vm); + VMList.Add(vm); // _VMList.Sort(); if (select) @@ -258,5 +259,14 @@ namespace BeWo.ViewModel.ListViewModel return lConstr.Invoke(new object[] { pDC }) as VMType; } + + public void SetSelectByIndex(int index) + { + if(-1 < index && index < VMList.Count){ + var x = VMList[index]; + + SelectedVM = x; + } + } } } \ No newline at end of file diff --git a/BeWo/ViewModel/ListViewModel/CustomerGemeinnutzigeArbeitListVM.cs b/BeWo/ViewModel/ListViewModel/CustomerVermittlungArbeitListVM.cs similarity index 89% rename from BeWo/ViewModel/ListViewModel/CustomerGemeinnutzigeArbeitListVM.cs rename to BeWo/ViewModel/ListViewModel/CustomerVermittlungArbeitListVM.cs index abe416c51..3ed149a38 100644 --- a/BeWo/ViewModel/ListViewModel/CustomerGemeinnutzigeArbeitListVM.cs +++ b/BeWo/ViewModel/ListViewModel/CustomerVermittlungArbeitListVM.cs @@ -9,12 +9,12 @@ using System.Threading.Tasks; namespace BeWo.ViewModel.ListViewModel { - public class CustomerGemeinnutzigeArbeitListVM : AbstractListVM + public class CustomerVermittlungArbeitListVM : AbstractListVM { private ObservableSortCollection _Auftragsherkunfte; private ObservableSortCollection _Vermittlungsgrundlagen; - public CustomerGemeinnutzigeArbeitListVM(IEnumerable arbeiten) : base(arbeiten) + public CustomerVermittlungArbeitListVM(IEnumerable arbeiten) : base(arbeiten) { AddVMCommand = new DelegateCommand(() => AddNewVMToListAndSelect(true), CanAddVM); diff --git a/BeWo/ViewModel/ListViewModel/CustomerWohnhilfeListVM.cs b/BeWo/ViewModel/ListViewModel/CustomerWohnhilfeListVM.cs index e349e5e88..1cfa4e929 100644 --- a/BeWo/ViewModel/ListViewModel/CustomerWohnhilfeListVM.cs +++ b/BeWo/ViewModel/ListViewModel/CustomerWohnhilfeListVM.cs @@ -1,4 +1,5 @@ using BS.Shared; +using BS.Shared.Core; using BS.Shared.DataContracts; using BS.Shared.DataContracts.Wohnhilfe; using DevExpress.Mvvm; @@ -24,7 +25,7 @@ namespace BeWo.ViewModel.ListViewModel { Customer = vm; - AddVMCommand = new DelegateCommand(() => AddNewVMToListAndSelect(true), CanAddWohnhilfe); + AddVMCommand = new DelegateCommand(AddVM, CanAddWohnhilfe); DeleteSelectedVMCommand = new DelegateCommand(() => DeleteSelectedVM($"Wohnhilfe '{SelectedVM.Displayname}'")); @@ -50,6 +51,13 @@ namespace BeWo.ViewModel.ListViewModel } } + public void AddVM() + { + var new_vm = AddNewVMToListAndSelect(true); + + new_vm.Displayname = "Wohnhilfe"; + } + public void CopySelectedWohnhilfe() { var old_vm = SelectedVM; @@ -63,8 +71,12 @@ namespace BeWo.ViewModel.ListViewModel { var selected_vm = SelectedVM; - selected_vm.BereichSozialstrukturVM.Geburtsdatum = Customer.DateOfBirth; - + if (selected_vm.BereichSozialstrukturVM.Geburtsdatum.HasValue) + { + selected_vm.BereichSozialstrukturVM.Geburtsdatum = Customer.DateOfBirth; + selected_vm.BereichBundVM.AlterAmStichtag = Utils.GetAge(Customer.DateOfBirth.Value); + } + if (Customer.IsMale) selected_vm.BereichBundVM.Geschlecht = Geschlecht.Mannlich; else if (Customer.IsFemale) diff --git a/BeWo/ViewModel/ListViewModel/ImageListVM.cs b/BeWo/ViewModel/ListViewModel/ImageListVM.cs index 39f4b1601..5ba26a451 100644 --- a/BeWo/ViewModel/ListViewModel/ImageListVM.cs +++ b/BeWo/ViewModel/ListViewModel/ImageListVM.cs @@ -1,4 +1,5 @@ -using BS.Shared.DataContracts; +using BS.Shared; +using BS.Shared.DataContracts; using System; using System.Collections.Generic; using System.Linq; diff --git a/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs b/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs index 8fe39f327..5a3fa946f 100644 --- a/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs +++ b/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs @@ -20,11 +20,13 @@ namespace BeWo.ViewModel.ListViewModel public bool PermissionWohneinheitManage { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.WohnheimView_Wohneinheit_Manage); public bool PermissionWohneinheitGalleryView { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.WohnheimView_Wohneinheit_Gallery_View); - public bool PermissionWohneinheitGalleryManage { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.WohnheimView_Wohneinheit_Gallery_Manage); + /// + /// Designer + /// public WohneinheitListVM() : base(null) { - + VMList.Add(new WohneinheitVM()); } public WohneinheitListVM(List pDCs) : base(pDCs) diff --git a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichBundVM.cs b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichBundVM.cs index 6771d3435..9651dd54a 100644 --- a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichBundVM.cs +++ b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichBundVM.cs @@ -27,7 +27,7 @@ namespace BeWo.ViewModel.Wohnhilfe _AlterAmStichtag = 1000; } - public CustomerWohnhilfeBereichBundVM(CustomerWohnhilfeBereichBundDC dc) : base(dc, dc.Oid == null) + public CustomerWohnhilfeBereichBundVM(CustomerWohnhilfeBereichBundDC dc, bool isNew) : base(dc, isNew) { } diff --git a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitVM.cs b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitVM.cs index 50e99d2ff..c08633c60 100644 --- a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitVM.cs +++ b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitVM.cs @@ -28,7 +28,7 @@ namespace BeWo.ViewModel.Wohnhilfe _Uberschuldung = WohnhilfeBoolData.Ja; } - public CustomerWohnhilfeBereichEinkommenUndArbeitVM(CustomerWohnhilfeBereichEinkommenUndArbeitDC dc) : base(dc, dc.Oid == null) + public CustomerWohnhilfeBereichEinkommenUndArbeitVM(CustomerWohnhilfeBereichEinkommenUndArbeitDC dc, bool isNew) : base(dc, isNew) { } diff --git a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteVM.cs b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteVM.cs index dc04fad58..d0aa630b5 100644 --- a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteVM.cs +++ b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteVM.cs @@ -9,6 +9,8 @@ namespace BeWo.ViewModel.Wohnhilfe { public class CustomerWohnhilfeBereichSozialeKontakteVM : AbstractDCMapperVM { + public bool PermissionCustomerWohnhilfeManage { get; } = BeWoApp.HasLoggedOnUserRight(BS.Shared.UserRightType.Customer_Wohnhilfe_Manage); + private bool _CanEditBeginnKontakt; private bool _CanEditEndeKontakt; @@ -39,9 +41,10 @@ namespace BeWo.ViewModel.Wohnhilfe _EndeKrankenversicherung = Krankenversicherung.Nein; } - public CustomerWohnhilfeBereichSozialeKontakteVM(CustomerWohnhilfeBereichSozialeKontakteDC dc) : base(dc, dc.Oid == null) + public CustomerWohnhilfeBereichSozialeKontakteVM(CustomerWohnhilfeBereichSozialeKontakteDC dc, bool isNew) : base(dc, isNew) { - + _CanEditBeginnKontakt &= PermissionCustomerWohnhilfeManage; + _CanEditEndeKontakt &= PermissionCustomerWohnhilfeManage; } public IEnumerable WohnhilfeBoolDataTypes => Utils.GetAllEnumValues(); @@ -57,6 +60,9 @@ namespace BeWo.ViewModel.Wohnhilfe if (!AreDifferent(_CanEditBeginnKontakt, value)) return; + if (!PermissionCustomerWohnhilfeManage) + return; + _CanEditBeginnKontakt = value; //if (!value) @@ -81,6 +87,9 @@ namespace BeWo.ViewModel.Wohnhilfe if (!AreDifferent(_CanEditEndeKontakt, value)) return; + if (!PermissionCustomerWohnhilfeManage) + return; + _CanEditEndeKontakt = value; //if (!value) @@ -388,6 +397,9 @@ namespace BeWo.ViewModel.Wohnhilfe _BeginnKontaktArzt = pDataContract.BeginnKontaktArzt; _EndeKontaktArzt = pDataContract.EndeKontaktArzt; _VorlageSchwerbehindertenausweises = pDataContract.VorlageSchwerbehindertenausweises; + + _CanEditBeginnKontakt = pDataContract.BeginnSozialeKontakte == WohnhilfeBoolData.Ja; + _CanEditEndeKontakt = pDataContract.EndeSozialeKontakte == WohnhilfeBoolData.Ja; } protected override CustomerWohnhilfeBereichSozialeKontakteDC MapToDataContract(CustomerWohnhilfeBereichSozialeKontakteDC pDataContract, bool doCommit) diff --git a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturVM.cs b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturVM.cs index b8c216196..925d3af50 100644 --- a/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturVM.cs +++ b/BeWo/ViewModel/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturVM.cs @@ -30,10 +30,10 @@ namespace BeWo.ViewModel.Wohnhilfe { _Bundesland = BS.Shared.DataContracts.Wohnhilfe.Bundesland.Bayern; _IsWohnungslosenhilfe = true; - _ArtDesHilfeangebots = BS.Shared.DataContracts.Wohnhilfe.ArtDesHilfeangebots.vollstationär; + _ArtDesHilfeangebots = ArtDesHilfeangebots.vollstationär; } - public CustomerWohnhilfeBereichSozialstrukturVM(CustomerWohnhilfeBereichSozialstrukturDC dc) : base(dc, dc.Oid == null) + public CustomerWohnhilfeBereichSozialstrukturVM(CustomerWohnhilfeBereichSozialstrukturDC dc, bool isNew) : base(dc, isNew) { } diff --git a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user index 2763ebb1b..033eb78ef 100644 --- a/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user +++ b/BeWoPlanerMobil/BeWoPlanerMobil.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU ShowAllFiles 600 MvcControllerEmptyScaffolder diff --git a/Data/Data.csproj b/Data/Data.csproj index 9525a2fbc..4cfb6b550 100644 --- a/Data/Data.csproj +++ b/Data/Data.csproj @@ -206,11 +206,13 @@ + + + - @@ -769,10 +771,14 @@ Designer - + + Designer + + Designer + Designer diff --git a/Data/Entities/AiSettings.cs b/Data/Entities/AiSettings.cs new file mode 100644 index 000000000..292d050f9 --- /dev/null +++ b/Data/Entities/AiSettings.cs @@ -0,0 +1,19 @@ +using System.Collections.Generic; + +using BS.Shared; + +namespace BeWo.Data.Entities +{ + public class AiSettings : BeWoEntityBase + { + + public AiSettings() + { + this._Tid = TableID.AbsenceReason; + } + + public virtual int SettingsType { get; set; } + + public virtual string Settings { get; set; } + } +} \ No newline at end of file diff --git a/Data/Entities/Customer.cs b/Data/Entities/Customer.cs index e18e6b280..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,35 +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 CustomerFalldaten CustomerFalldaten { 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 diff --git a/Data/Entities/CustomerFalldaten.cs b/Data/Entities/CustomerFalldaten.cs deleted file mode 100644 index 15231f2c1..000000000 --- a/Data/Entities/CustomerFalldaten.cs +++ /dev/null @@ -1,460 +0,0 @@ -using System; -using System.Collections.Generic; - -using BS.Shared; -using BS.Shared.DataContracts; -using BS.Shared.DataContracts.Wohnhilfe; - -namespace BeWo.Data.Entities -{ - public class CustomerFalldaten : BeWoEntityBase - { - private string _EigenesAktenzeichen; - private DateTime? _Auftragseingang; - private ValueListEntry _Auftragsherkunft; - private ValueListEntry _Vermittlungsgrundlage; - private decimal? _Tagessatze; - private decimal? _Tagessatzhohe; - private decimal? _HoheDerGeldstrafe; - private decimal? _ZuLeistendeArbeitsstunden; - private string _Hinweis; - private DateTime? _Termin; - private FalldatenBearbeitungsstatus? _FalldatenBearbeitungsstatus; - private string _Auftragsruckgabe; - private string _Verlauf; - private decimal? _AbgeleisteteStunden; - private decimal? _ErsparteHafttage; - private decimal? _GeleisteteRatenzahlung; - private string _Bemerkung; - private decimal? _GeleisteteEinmalzahlung; - private bool _GrundArbeitsunfahig; - private bool _GrundSuchtproblem; - private bool _GrundPsychischeProbleme; - private bool _GrundKeineMotivation; - private bool _GrundInHaft; - private bool _GrundUnbekannt; - private bool _GrundKeinKontakt; - private bool _GrundNichtAngetreten; - private bool _GrundAbbruchDerTatigkeit; - private bool _GrundWiderruf; - private bool _Grund459StPO; - private bool _GrundAusbleibenDerZahlung; - private bool _BesonderheitMehrfacheBeauftragung; - private bool _BesonderheitMehrfacheVermittlung; - private bool _BesonderheitVermittlungAusHaft; - private bool _BesonderheitDurchBGBWAufgesucht; - - public CustomerFalldaten() - { - _Tid = TableID.CustomerFalldaten; - } - - public virtual string EigenesAktenzeichen - { - get { return _EigenesAktenzeichen; } - set - { - if (!AreDifferent(_EigenesAktenzeichen, value)) - return; - - _EigenesAktenzeichen = value; - } - } - - public virtual DateTime? Auftragseingang - { - get { return _Auftragseingang; } - set - { - if (!AreDifferent(_Auftragseingang, value)) - return; - - _Auftragseingang = value; - } - } - - public virtual ValueListEntry Auftragsherkunft - { - get { return _Auftragsherkunft; } - set - { - if (!AreDifferent(_Auftragsherkunft, value)) - return; - - _Auftragsherkunft = value; - } - } - - public virtual ValueListEntry Vermittlungsgrundlage - { - get { return _Vermittlungsgrundlage; } - set - { - if (!AreDifferent(_Vermittlungsgrundlage, value)) - return; - - _Vermittlungsgrundlage = value; - } - } - - public virtual decimal? Tagessatze - { - get { return _Tagessatze; } - set - { - if (!AreDifferent(_Tagessatze, value)) - return; - - _Tagessatze = value; - } - } - - public virtual decimal? Tagessatzhohe - { - get { return _Tagessatzhohe; } - set - { - if (!AreDifferent(_Tagessatzhohe, value)) - return; - - _Tagessatzhohe = value; - } - } - - public virtual decimal? HoheDerGeldstrafe - { - get { return _HoheDerGeldstrafe; } - set - { - if (!AreDifferent(_HoheDerGeldstrafe, value)) - return; - - _HoheDerGeldstrafe = value; - } - } - - public virtual decimal? ZuLeistendeArbeitsstunden - { - get { return _ZuLeistendeArbeitsstunden; } - set - { - if (!AreDifferent(_ZuLeistendeArbeitsstunden, value)) - return; - - _ZuLeistendeArbeitsstunden = value; - } - } - - public virtual string Hinweis - { - get { return _Hinweis; } - set - { - if (!AreDifferent(_Hinweis, value)) - return; - - _Hinweis = value; - } - } - - public virtual DateTime? Termin - { - get { return _Termin; } - set - { - if (!AreDifferent(_Termin, value)) - return; - - _Termin = value; - } - } - - public virtual FalldatenBearbeitungsstatus? FalldatenBearbeitungsstatus - { - get { return _FalldatenBearbeitungsstatus; } - set - { - if (!AreDifferent(_FalldatenBearbeitungsstatus, value)) - return; - - _FalldatenBearbeitungsstatus = value; - } - } - - public virtual string Auftragsruckgabe - { - get { return _Auftragsruckgabe; } - set - { - if (!AreDifferent(_Auftragsruckgabe, value)) - return; - - _Auftragsruckgabe = value; - } - } - - public virtual string Verlauf - { - get { return _Verlauf; } - set - { - if (!AreDifferent(_Verlauf, value)) - return; - - _Verlauf = value; - } - } - - public virtual decimal? AbgeleisteteStunden - { - get { return _AbgeleisteteStunden; } - set - { - if (!AreDifferent(_AbgeleisteteStunden, value)) - return; - - _AbgeleisteteStunden = value; - } - } - - public virtual decimal? ErsparteHafttage - { - get { return _ErsparteHafttage; } - set - { - if (!AreDifferent(_ErsparteHafttage, value)) - return; - - _ErsparteHafttage = value; - } - } - - public virtual decimal? GeleisteteRatenzahlung - { - get { return _GeleisteteRatenzahlung; } - set - { - if (!AreDifferent(_GeleisteteRatenzahlung, value)) - return; - - _GeleisteteRatenzahlung = value; - } - } - - public virtual string Bemerkung - { - get { return _Bemerkung; } - set - { - if (!AreDifferent(_Bemerkung, value)) - return; - - _Bemerkung = value; - } - } - - public virtual decimal? GeleisteteEinmalzahlung - { - get { return _GeleisteteEinmalzahlung; } - set - { - if (!AreDifferent(_GeleisteteEinmalzahlung, value)) - return; - - _GeleisteteEinmalzahlung = value; - } - } - - public virtual bool GrundArbeitsunfahig - { - get { return _GrundArbeitsunfahig; } - set - { - if (!AreDifferent(_GrundArbeitsunfahig, value)) - return; - - _GrundArbeitsunfahig = value; - } - } - - public virtual bool GrundSuchtproblem - { - get { return _GrundSuchtproblem; } - set - { - if (!AreDifferent(_GrundSuchtproblem, value)) - return; - - _GrundSuchtproblem = value; - } - } - - public virtual bool GrundPsychischeProbleme - { - get { return _GrundPsychischeProbleme; } - set - { - if (!AreDifferent(_GrundPsychischeProbleme, value)) - return; - - _GrundPsychischeProbleme = value; - } - } - - public virtual bool GrundKeineMotivation - { - get { return _GrundKeineMotivation; } - set - { - if (!AreDifferent(_GrundKeineMotivation, value)) - return; - - _GrundKeineMotivation = value; - } - } - - public virtual bool GrundInHaft - { - get { return _GrundInHaft; } - set - { - if (!AreDifferent(_GrundInHaft, value)) - return; - - _GrundInHaft = value; - } - } - - public virtual bool GrundUnbekannt - { - get { return _GrundUnbekannt; } - set - { - if (!AreDifferent(_GrundUnbekannt, value)) - return; - - _GrundUnbekannt = value; - } - } - - public virtual bool GrundKeinKontakt - { - get { return _GrundKeinKontakt; } - set - { - if (!AreDifferent(_GrundKeinKontakt, value)) - return; - - _GrundKeinKontakt = value; - } - } - - public virtual bool GrundNichtAngetreten - { - get { return _GrundNichtAngetreten; } - set - { - if (!AreDifferent(_GrundNichtAngetreten, value)) - return; - - _GrundNichtAngetreten = value; - } - } - - public virtual bool GrundAbbruchDerTatigkeit - { - get { return _GrundAbbruchDerTatigkeit; } - set - { - if (!AreDifferent(_GrundAbbruchDerTatigkeit, value)) - return; - - _GrundAbbruchDerTatigkeit = value; - } - } - - public virtual bool GrundWiderruf - { - get { return _GrundWiderruf; } - set - { - if (!AreDifferent(_GrundWiderruf, value)) - return; - - _GrundWiderruf = value; - } - } - - public virtual bool Grund459StPO - { - get { return _Grund459StPO; } - set - { - if (!AreDifferent(_Grund459StPO, value)) - return; - - _Grund459StPO = value; - } - } - - public virtual bool GrundAusbleibenDerZahlung - { - get { return _GrundAusbleibenDerZahlung; } - set - { - if (!AreDifferent(_GrundAusbleibenDerZahlung, value)) - return; - - _GrundAusbleibenDerZahlung = value; - } - } - - public virtual bool BesonderheitMehrfacheBeauftragung - { - get { return _BesonderheitMehrfacheBeauftragung; } - set - { - if (!AreDifferent(_BesonderheitMehrfacheBeauftragung, value)) - return; - - _BesonderheitMehrfacheBeauftragung = value; - } - } - - public virtual bool BesonderheitMehrfacheVermittlung - { - get { return _BesonderheitMehrfacheVermittlung; } - set - { - if (!AreDifferent(_BesonderheitMehrfacheVermittlung, value)) - return; - - _BesonderheitMehrfacheVermittlung = value; - } - } - - public virtual bool BesonderheitVermittlungAusHaft - { - get { return _BesonderheitVermittlungAusHaft; } - set - { - if (!AreDifferent(_BesonderheitVermittlungAusHaft, value)) - return; - - _BesonderheitVermittlungAusHaft = value; - } - } - - public virtual bool BesonderheitDurchBGBWAufgesucht - { - get { return _BesonderheitDurchBGBWAufgesucht; } - set - { - if (!AreDifferent(_BesonderheitDurchBGBWAufgesucht, value)) - return; - - _BesonderheitDurchBGBWAufgesucht = value; - } - } - } -} diff --git a/Data/Entities/CustomerVermittlungArbeit.cs b/Data/Entities/CustomerVermittlungArbeit.cs new file mode 100644 index 000000000..32afe9ab7 --- /dev/null +++ b/Data/Entities/CustomerVermittlungArbeit.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; + +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; + +namespace BeWo.Data.Entities +{ + public class CustomerVermittlungArbeit : BeWoEntityBase + { + public CustomerVermittlungArbeit() + { + _Tid = TableID.CustomerGemeinnutzigeArbeit; + } + + public virtual Customer Customer { get; set; } + + public virtual string EigenesAktenzeichen { get; set; } + public virtual DateTime? Auftragseingang { get; set; } + public virtual ValueListEntry Auftragsherkunft { get; set; } + public virtual ValueListEntry Vermittlungsgrundlage { get; set; } + public virtual decimal? Tagessatze { get; set; } + public virtual decimal? Tagessatzhohe { get; set; } + public virtual decimal? HoheDerGeldstrafe { get; set; } + public virtual decimal? ZuLeistendeArbeitsstunden { get; set; } + public virtual string Hinweis { get; set; } + public virtual DateTime? Termin { get; set; } + public virtual CustomerVermittlungBearbeitungsstatus? CustomerVermittlungBearbeitungsstatus { get; set; } + public virtual string Auftragsruckgabe { get; set; } + public virtual string Verlauf { get; set; } + public virtual decimal? AbgeleisteteStunden { get; set; } + public virtual decimal? ErsparteHafttage { get; set; } + public virtual decimal? GeleisteteRatenzahlung { get; set; } + public virtual string Bemerkung { get; set; } + public virtual decimal? GeleisteteEinmalzahlung { get; set; } + + public virtual bool GrundArbeitsunfahig { get; set; } + public virtual bool GrundSuchtproblem { get; set; } + public virtual bool GrundPsychischeProbleme { get; set; } + public virtual bool GrundKeineMotivation { get; set; } + public virtual bool GrundInHaft { get; set; } + public virtual bool GrundUnbekannt { get; set; } + public virtual bool GrundKeinKontakt { get; set; } + public virtual bool GrundNichtAngetreten { get; set; } + public virtual bool GrundAbbruchDerTatigkeit { get; set; } + public virtual bool GrundWiderruf { get; set; } + public virtual bool Grund459StPO { get; set; } + public virtual bool GrundAusbleibenDerZahlung { get; set; } + + public virtual bool BesonderheitMehrfacheBeauftragung { get; set; } + public virtual bool BesonderheitMehrfacheVermittlung { get; set; } + public virtual bool BesonderheitVermittlungAusHaft { get; set; } + public virtual bool BesonderheitDurchBGBWAufgesucht { get; set; } + } +} diff --git a/Data/Entities/CustomerWohnhilfe.cs b/Data/Entities/CustomerWohnhilfe.cs new file mode 100644 index 000000000..787792013 --- /dev/null +++ b/Data/Entities/CustomerWohnhilfe.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; + +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts.Wohnhilfe; + +namespace BeWo.Data.Entities +{ + public class CustomerWohnhilfe : BeWoEntityBase + { + public CustomerWohnhilfe() + { + _Tid = TableID.CustomerWohnhilfe; + } + + public virtual Customer Customer { get; set; } + + public virtual string Displayname { get; set; } + + public virtual Verbandszugehorigkeit? Verbandszugehorigkeit { get; set; } + + public virtual Geschlecht? Geschlecht { get; set; } + + public virtual int? AlterAmStichtag { get; set; } + + public virtual int? Haushaltsgrosse { get; set; } + + public virtual string BerichtseinheitID { get; set; } + + public virtual Unterbringungsart? Unterbringungsart { get; set; } + + public virtual int? OrtDerEinrichtung { get; set; } + + public virtual Angebot? Angebot { get; set; } + + public virtual Einkommenssituation BeginnEinkommenssituation { get; set; } + + public virtual Einkommenssituation EndeEinkommenssituation { get; set; } + + public virtual AufstockungEinkommen BeginnAufstockungEinkommen { get; set; } + + public virtual AufstockungEinkommen EndeAufstockungEinkommen { get; set; } + + public virtual WohnhilfeBoolData BeginnEigenesBankkonto { get; set; } + + public virtual WohnhilfeBoolData EndeEigenesBankkonto { get; set; } + + public virtual WohnhilfeBoolData Uberschuldung { get; set; } + + public virtual Berufsabschluss Berufsabschluss { get; set; } + + public virtual WohnhilfeBoolData ErwerbsfahigkeitSinnSGB { get; set; } + + public virtual Beschaftigungsstatus BeginnBeschaftigungsstatus { get; set; } + + public virtual Beschaftigungsstatus EndeBeschaftigungsstatus { get; set; } + + public virtual DauerArbeitslosigkeit DauerArbeitslosigkeit { get; set; } + + public virtual WohnhilfeBoolData BeginnSozialeKontakte { get; set; } + + public virtual bool BeginnKontaktPartner { get; set; } + + public virtual bool BeginnKontaktMindKinder { get; set; } + + public virtual bool BeginnKontaktVolljahrKinderElternVerwandten { get; set; } + + public virtual bool BeginnKontaktFreundenBekannten { get; set; } + + public virtual bool BeginnKontaktSelbsthilfe { get; set; } + + public virtual bool BeginnKontaktSonstige { get; set; } + + public virtual WohnhilfeBoolData EndeSozialeKontakte { get; set; } + + public virtual bool EndeKontaktPartner { get; set; } + + public virtual bool EndeKontaktMindKinder { get; set; } + + public virtual bool EndeKontaktVolljahrKinderElternVerwandten { get; set; } + + public virtual bool EndeKontaktFreundenBekannten { get; set; } + + public virtual bool EndeKontaktSelbsthilfe { get; set; } + + public virtual bool EndeKontaktSonstige { get; set; } + + public virtual Krankenversicherung BeginnKrankenversicherung { get; set; } + + public virtual Krankenversicherung EndeKrankenversicherung { get; set; } + + public virtual KontaktArzt BeginnKontaktArzt { get; set; } + + public virtual KontaktArzt EndeKontaktArzt { get; set; } + + public virtual WohnhilfeBoolData VorlageSchwerbehindertenausweises { get; set; } + + public virtual Bundesland? Bundesland { get; set; } + + public virtual bool IsWohnungslosenhilfe { get; set; } + + public virtual ArtDesHilfeangebots ArtDesHilfeangebots { get; set; } + + public virtual DateTime? Betreuungsbeginn { get; set; } + + public virtual DateTime? Betreuungsende { get; set; } + + public virtual int? BetreuungsdauerInTagen { get; set; } + + public virtual ArtDerBeendigung ArtDerBeendigung { get; set; } + + public virtual DateTime? Geburtsdatum { get; set; } + + public virtual Geschlechtidentitat Geschlechtidentitat { get; set; } + + public virtual Staatsangehorigkeit? Staatsangehorigkeit { get; set; } + + public virtual Aufenthaltsstatus Aufenthaltsstatus { get; set; } + + public virtual WohnhilfeBoolData Migrationshintergrund { get; set; } + + public virtual HochsterSchulabschluss HochsterSchulabschluss { get; set; } + + public virtual Familienstand Familienstand { get; set; } + + public virtual Haushaltsstruktur Haushaltsstruktur { get; set; } + + public virtual WohnhilfeBoolData EigeneMindKinderAuserhalbHaushaltsstruktur { get; set; } + } +} diff --git a/Data/Mappings/AiSettings.hbm.xml b/Data/Mappings/AiSettings.hbm.xml new file mode 100644 index 000000000..85a0fd036 --- /dev/null +++ b/Data/Mappings/AiSettings.hbm.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Data/Mappings/Customer.hbm.xml b/Data/Mappings/Customer.hbm.xml index c391e80ce..c9a5fc87e 100644 --- a/Data/Mappings/Customer.hbm.xml +++ b/Data/Mappings/Customer.hbm.xml @@ -136,6 +136,13 @@ - + + + + + + + + \ No newline at end of file diff --git a/Data/Mappings/CustomerFalldaten.hbm.xml b/Data/Mappings/CustomerFalldaten.hbm.xml deleted file mode 100644 index 1e6eafdb3..000000000 --- a/Data/Mappings/CustomerFalldaten.hbm.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Data/Mappings/CustomerVermittlungArbeit.hbm.xml b/Data/Mappings/CustomerVermittlungArbeit.hbm.xml new file mode 100644 index 000000000..c506ae037 --- /dev/null +++ b/Data/Mappings/CustomerVermittlungArbeit.hbm.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Data/Mappings/CustomerWohnhilfe.hbm.xml b/Data/Mappings/CustomerWohnhilfe.hbm.xml new file mode 100644 index 000000000..f23bac0ec --- /dev/null +++ b/Data/Mappings/CustomerWohnhilfe.hbm.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Model/Changes_2024_09_22 CustomerFalldatenDrop.txt b/Model/Changes_2024_09_22 CustomerFalldatenDrop.txt new file mode 100644 index 000000000..c76b27084 --- /dev/null +++ b/Model/Changes_2024_09_22 CustomerFalldatenDrop.txt @@ -0,0 +1,8 @@ +ALTER TABLE `customer` +DROP FOREIGN KEY `FK_CUSTOMERFALLDATEN`; +ALTER TABLE `customer` +DROP COLUMN `CustomerFalldatenOid`, +DROP INDEX `FK_CUSTOMERFALLDATEN_idx` ; +; + + diff --git a/Model/Changes_2024_09_23 Customer Vermittlung Arbeit.txt b/Model/Changes_2024_09_23 Customer Vermittlung Arbeit.txt new file mode 100644 index 000000000..8780fcf3c --- /dev/null +++ b/Model/Changes_2024_09_23 Customer Vermittlung Arbeit.txt @@ -0,0 +1,60 @@ +CREATE TABLE `CustomerVermittlungArbeit` ( +`Oid` bigint NOT NULL AUTO_INCREMENT, +`InsTs` datetime DEFAULT NULL, +`InsUser` varchar(256) DEFAULT NULL, +`Notice` varchar(1024) DEFAULT NULL, +`Tid` int DEFAULT NULL, +`UdpUser` varchar(256) DEFAULT NULL, +`Version` bigint DEFAULT NULL, +`IsActive` tinyint DEFAULT NULL, +`SystemEntryID` int DEFAULT NULL, +`CustomerOid` bigint NOT NULL, +`EigenesAktenzeichen` varchar(256), +`Auftragseingang` datetime DEFAULT NULL, +`Auftragsherkunft` bigint DEFAULT NULL, +`Vermittlungsgrundlage` bigint DEFAULT NULL, +`Tagessatze` decimal(18,10) DEFAULT NULL, +`Tagessatzhohe` decimal(18,10) DEFAULT NULL, +`HoheDerGeldstrafe` decimal(18,10) DEFAULT NULL, +`ZuLeistendeArbeitsstunden` decimal(18,10) DEFAULT NULL, +`Hinweis` varchar(256), +`Termin` datetime DEFAULT NULL, +`CustomerVermittlungBearbeitungsstatus` tinyint DEFAULT NULL, +`Auftragsruckgabe` varchar(256), +`Verlauf` varchar(256), +`AbgeleisteteStunden` decimal(18,10) DEFAULT NULL, +`ErsparteHafttage` decimal(18,10) DEFAULT NULL, +`GeleisteteRatenzahlung` decimal(18,10) DEFAULT NULL, +`Bemerkung` varchar(256), +`GeleisteteEinmalzahlung` decimal(18,10) DEFAULT NULL, +`GrundArbeitsunfahig` tinyint, +`GrundSuchtproblem` tinyint, +`GrundPsychischeProbleme` tinyint, +`GrundKeineMotivation` tinyint, +`GrundInHaft` tinyint, +`GrundUnbekannt` tinyint, +`GrundKeinKontakt` tinyint, +`GrundNichtAngetreten` tinyint, +`GrundAbbruchDerTatigkeit` tinyint, +`GrundWiderruf` tinyint, +`Grund459StPO` tinyint, +`GrundAusbleibenDerZahlung` tinyint, +`BesonderheitMehrfacheBeauftragung` tinyint, +`BesonderheitMehrfacheVermittlung` tinyint, +`BesonderheitVermittlungAusHaft` tinyint, +`BesonderheitDurchBGBWAufgesucht` tinyint, +PRIMARY KEY (`Oid`), +CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_CUSTOMER` FOREIGN KEY (`CustomerOid`) REFERENCES `customer` (`Oid`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1; + +ALTER TABLE `customervermittlungarbeit` +ADD CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_AUFTRAGSHERKUNFT` + FOREIGN KEY (`Auftragsherkunft`) + REFERENCES `7375324044`.`valuelistentry` (`Oid`) + ON DELETE SET NULL + ON UPDATE CASCADE, +ADD CONSTRAINT `FK_CUSTOMERVERMITTLUNGARBEIT_VERMITTLUNGSGRUNDLAGE` + FOREIGN KEY (`Vermittlungsgrundlage`) + REFERENCES `valuelistentry` (`Oid`) + ON DELETE SET NULL + ON UPDATE CASCADE; diff --git a/Model/Changes_2024_09_23 Customer Wohnhilfe.txt b/Model/Changes_2024_09_23 Customer Wohnhilfe.txt new file mode 100644 index 000000000..26d83ff4e --- /dev/null +++ b/Model/Changes_2024_09_23 Customer Wohnhilfe.txt @@ -0,0 +1,70 @@ +CREATE TABLE `CustomerWohnhilfe` ( +`Oid` bigint NOT NULL AUTO_INCREMENT, +`InsTs` datetime DEFAULT NULL, +`InsUser` varchar(256) DEFAULT NULL, +`Notice` varchar(1024) DEFAULT NULL, +`Tid` int DEFAULT NULL, +`UdpUser` varchar(256) DEFAULT NULL, +`Version` bigint DEFAULT NULL, +`IsActive` tinyint DEFAULT NULL, +`SystemEntryID` int DEFAULT NULL, +`CustomerOid` bigint NOT NULL, +`Displayname` varchar(256) DEFAULT NULL, +`Verbandszugehorigkeit` tinyint DEFAULT NULL, +`Geschlecht` tinyint DEFAULT NULL, +`AlterAmStichtag` int DEFAULT NULL, +`Haushaltsgrosse` int DEFAULT NULL, +`BerichtseinheitID` varchar(256), +`Unterbringungsart` tinyint DEFAULT NULL, +`OrtDerEinrichtung` int DEFAULT NULL, +`Angebot` tinyint DEFAULT NULL, +`BeginnEinkommenssituation` tinyint, +`EndeEinkommenssituation` tinyint, +`BeginnAufstockungEinkommen` tinyint, +`EndeAufstockungEinkommen` tinyint, +`BeginnEigenesBankkonto` tinyint, +`EndeEigenesBankkonto` tinyint, +`Uberschuldung` tinyint, +`Berufsabschluss` tinyint, +`ErwerbsfahigkeitSinnSGB` tinyint, +`BeginnBeschaftigungsstatus` tinyint, +`EndeBeschaftigungsstatus` tinyint, +`DauerArbeitslosigkeit` tinyint, +`BeginnSozialeKontakte` tinyint, +`BeginnKontaktPartner` tinyint, +`BeginnKontaktMindKinder` tinyint, +`BeginnKontaktVolljahrKinderElternVerwandten` tinyint, +`BeginnKontaktFreundenBekannten` tinyint, +`BeginnKontaktSelbsthilfe` tinyint, +`BeginnKontaktSonstige` tinyint, +`EndeSozialeKontakte` tinyint, +`EndeKontaktPartner` tinyint, +`EndeKontaktMindKinder` tinyint, +`EndeKontaktVolljahrKinderElternVerwandten` tinyint, +`EndeKontaktFreundenBekannten` tinyint, +`EndeKontaktSelbsthilfe` tinyint, +`EndeKontaktSonstige` tinyint, +`BeginnKrankenversicherung` tinyint, +`EndeKrankenversicherung` tinyint, +`BeginnKontaktArzt` tinyint, +`EndeKontaktArzt` tinyint, +`VorlageSchwerbehindertenausweises` tinyint, +`Bundesland` tinyint DEFAULT NULL, +`IsWohnungslosenhilfe` tinyint, +`ArtDesHilfeangebots` tinyint, +`Betreuungsbeginn` datetime DEFAULT NULL, +`Betreuungsende` datetime DEFAULT NULL, +`BetreuungsdauerInTagen` int DEFAULT NULL, +`ArtDerBeendigung` tinyint, +`Geburtsdatum` datetime DEFAULT NULL, +`Geschlechtidentitat` tinyint, +`Staatsangehorigkeit` SMALLINT DEFAULT NULL, +`Aufenthaltsstatus` tinyint, +`Migrationshintergrund` tinyint, +`HochsterSchulabschluss` tinyint, +`Familienstand` tinyint, +`Haushaltsstruktur` tinyint, +`EigeneMindKinderAuserhalbHaushaltsstruktur` tinyint, +PRIMARY KEY (`Oid`), +CONSTRAINT `FK_CUSTOMERWOHNHILFE_CUSTOMER` FOREIGN KEY (`CustomerOid`) REFERENCES `customer` (`Oid`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=latin1; \ 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 42ace5517..2a88abd31 100644 --- a/Model/Changes_alle_fuer_neue_db.txt +++ b/Model/Changes_alle_fuer_neue_db.txt @@ -1231,3 +1231,21 @@ ADD COLUMN `Fullname` VARCHAR(1024) NULL DEFAULT NULL AFTER `Filename`; ALTER TABLE `organisation` ADD COLUMN `BusinessPartnerId` VARCHAR(256) NULL DEFAULT NULL AFTER `Leistungserbringergruppe`; + +CREATE TABLE `aisettings` ( + `Oid` bigint NOT NULL AUTO_INCREMENT, + `Tid` int NOT NULL, + `Description` varchar(256) DEFAULT NULL, + `Notice` varchar(1024) DEFAULT NULL, + `InsTs` datetime DEFAULT NULL, + `InsUser` varchar(256) DEFAULT NULL, + `Version` bigint DEFAULT NULL, + `UpdTs` datetime DEFAULT NULL, + `UdpUser` varchar(256) DEFAULT NULL, + `IsActive` tinyint DEFAULT NULL, + `SystemEntryID` int DEFAULT NULL, + `SettingsType` int DEFAULT NULL, + `Settings` MEDIUMTEXT DEFAULT NULL, + PRIMARY KEY (`Oid`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; + diff --git a/ReportImp/AWOMuensterlandRecklinghausen/AWOMuensterlandRecklinghausen.csproj b/ReportImp/AWOMuensterlandRecklinghausen/AWOMuensterlandRecklinghausen.csproj index 6b3d87fb1..6535c4d08 100644 --- a/ReportImp/AWOMuensterlandRecklinghausen/AWOMuensterlandRecklinghausen.csproj +++ b/ReportImp/AWOMuensterlandRecklinghausen/AWOMuensterlandRecklinghausen.csproj @@ -64,6 +64,12 @@ QueryListReport.cs + + Component + + + Finanzauswertung.cs + Component @@ -205,6 +211,10 @@ QueryListReport.cs Designer + + Finanzauswertung.cs + Designer + SBUmsatzerprobung.cs diff --git a/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.cs b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.cs new file mode 100644 index 000000000..261aa029f --- /dev/null +++ b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.cs @@ -0,0 +1,67 @@ +using System; +using BeWo.Report; +using BeWo.Report.ReportObjects; + +namespace AWOMuensterlandRecklinghausen +{ + public partial class Finanzauswertung : DevExpress.XtraReports.UI.XtraReport, IBeWoReport + { + public Finanzauswertung() + { + InitializeComponent(); + } + + public void SetReportDataSource(FinanceRO pRO) + { + pRO.CalculateBillableAmountInReportTimeSpan(); + pRO.CalculatePaidAmountInReportTimeSpan(); + + if (pRO.ReportStartDate.HasValue && pRO.ReportEndDate.HasValue) + { + DateTime start = pRO.ReportStartDate.Value; + DateTime end = pRO.ReportEndDate.Value; + + if (start.Year == end.Year && start.Month == end.Month && start.Day == 1 && + end.Day == DateTime.DaysInMonth(end.Year, end.Month)) + { + lblTitel.Text = String.Format("Finanzauswertung {0:MMMM yyyy}", start); + cellBewilligtImZeitraumHeader.Text = String.Format("bewilligte FLS {0:MMMM}", start); + cellGeleistetImZeitraumHeader.Text = String.Format("geleistete Std. {0:MMMM}", start); + } + else + { + lblTitel.Text = String.Format("Finanzauswertung {0:dd.MM.yyyy}-{1:dd.MM.yyyy}", start, end); + cellBewilligtImZeitraumHeader.Text = String.Format("bewilligte FLS {0:dd.MM.yyyy}-{1:dd.MM.yyyy}", start, end); + cellGeleistetImZeitraumHeader.Text = String.Format("geleistete Std. {0:dd.MM.yyyy}-{1:dd.MM.yyyy}", start, end); + //cellFehlkontakteHeader.Text = String.Format("Fehl-\nkontakte {0:dd.MM.yyyy}-{1:dd.MM.yyyy}", start, end); + } + } + else + { + cellBewilligtImZeitraumHeader.Visible = false; + cellBewilligteFLSImBereich.Visible = false; + cellGeleistetImBereich.Visible = false; + cellGeleistetImZeitraumHeader.Visible = false; + } + + if (pRO.GruppierungLeistungskategorie && pRO.SupportConceptFinanceList != null) + { + GroupHeader1.Visible = true; + GroupFooter1.Visible = true; + foreach (var scRo in pRO.SupportConceptFinanceList) + { + if (String.IsNullOrEmpty(scRo.Leistungskategorie)) + { + scRo.GruppierungsKategorie = " "; + } + else + { + scRo.GruppierungsKategorie = String.Format("Leistungskategorie {0}", scRo.Leistungskategorie); + } + } + } + + this.bindingSource1.DataSource = pRO; + } + } +} diff --git a/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.designer.cs b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.designer.cs new file mode 100644 index 000000000..6002a90eb --- /dev/null +++ b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.designer.cs @@ -0,0 +1,965 @@ +using BeWo.Report.ReportObjects; +namespace AWOMuensterlandRecklinghausen +{ + partial class Finanzauswertung + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + DevExpress.XtraReports.UI.XRSummary xrSummary1 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary2 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary3 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary4 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary5 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary6 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary7 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary8 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary9 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary10 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary11 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary12 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary13 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRSummary xrSummary14 = new DevExpress.XtraReports.UI.XRSummary(); + DevExpress.XtraReports.UI.XRWatermark xrWatermark1 = new DevExpress.XtraReports.UI.XRWatermark(); + this.Detail = new DevExpress.XtraReports.UI.DetailBand(); + this.Detail1 = new DevExpress.XtraReports.UI.DetailBand(); + this.xrTable2 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow2 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell6 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell7 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell14 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell12 = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellBewilligteFLSImBereich = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellGeleistetImBereich = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell26 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell8 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell24 = new DevExpress.XtraReports.UI.XRTableCell(); + this.lblTitel = new DevExpress.XtraReports.UI.XRLabel(); + this.DetailReport = new DevExpress.XtraReports.UI.DetailReportBand(); + this.GroupFooter1 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.xrTable4 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow4 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell28 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell31 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell35 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell36 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell37 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell38 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell41 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell29 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell30 = new DevExpress.XtraReports.UI.XRTableCell(); + this.GroupHeader2 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.xrTable1 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow1 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell1 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell2 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell13 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell11 = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellBewilligtImZeitraumHeader = new DevExpress.XtraReports.UI.XRTableCell(); + this.cellGeleistetImZeitraumHeader = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell25 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell3 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell17 = new DevExpress.XtraReports.UI.XRTableCell(); + this.GroupFooter2 = new DevExpress.XtraReports.UI.GroupFooterBand(); + this.GroupHeader1 = new DevExpress.XtraReports.UI.GroupHeaderBand(); + this.xrLabel1 = new DevExpress.XtraReports.UI.XRLabel(); + this.ReportHeader = new DevExpress.XtraReports.UI.ReportHeaderBand(); + this.pageFooterBand1 = new DevExpress.XtraReports.UI.PageFooterBand(); + this.xrPageInfo2 = new DevExpress.XtraReports.UI.XRPageInfo(); + this.xrPageInfo1 = new DevExpress.XtraReports.UI.XRPageInfo(); + this.Title = new DevExpress.XtraReports.UI.XRControlStyle(); + this.FieldCaption = new DevExpress.XtraReports.UI.XRControlStyle(); + this.PageInfo = new DevExpress.XtraReports.UI.XRControlStyle(); + this.DataField = new DevExpress.XtraReports.UI.XRControlStyle(); + this.fieldFLS = new DevExpress.XtraReports.UI.CalculatedField(); + this.topMarginBand1 = new DevExpress.XtraReports.UI.TopMarginBand(); + this.bottomMarginBand1 = new DevExpress.XtraReports.UI.BottomMarginBand(); + this.ReportFooter = new DevExpress.XtraReports.UI.ReportFooterBand(); + this.xrTable3 = new DevExpress.XtraReports.UI.XRTable(); + this.xrTableRow3 = new DevExpress.XtraReports.UI.XRTableRow(); + this.xrTableCell15 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell16 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell20 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell21 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell22 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell23 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell27 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell32 = new DevExpress.XtraReports.UI.XRTableCell(); + this.xrTableCell39 = new DevExpress.XtraReports.UI.XRTableCell(); + this.openAmountReportTime = new DevExpress.XtraReports.UI.CalculatedField(); + this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); + // + // Detail + // + this.Detail.Expanded = false; + this.Detail.HeightF = 0F; + this.Detail.Name = "Detail"; + this.Detail.Padding = new DevExpress.XtraPrinting.PaddingInfo(0, 0, 0, 0, 100F); + this.Detail.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopLeft; + // + // Detail1 + // + this.Detail1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable2}); + this.Detail1.Font = new DevExpress.Drawing.DXFont("Arial", 9F); + this.Detail1.HeightF = 25F; + this.Detail1.KeepTogetherWithDetailReports = true; + this.Detail1.Name = "Detail1"; + this.Detail1.StylePriority.UseFont = false; + // + // xrTable2 + // + this.xrTable2.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable2.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable2.Name = "xrTable2"; + this.xrTable2.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable2.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow2}); + this.xrTable2.SizeF = new System.Drawing.SizeF(892.7083F, 25F); + this.xrTable2.StylePriority.UseBorders = false; + this.xrTable2.StylePriority.UseFont = false; + this.xrTable2.StylePriority.UsePadding = false; + this.xrTable2.StylePriority.UseTextAlignment = false; + this.xrTable2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrTableRow2 + // + this.xrTableRow2.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell6, + this.xrTableCell7, + this.xrTableCell14, + this.xrTableCell12, + this.cellBewilligteFLSImBereich, + this.cellGeleistetImBereich, + this.xrTableCell26, + this.xrTableCell8, + this.xrTableCell24}); + this.xrTableRow2.Name = "xrTableRow2"; + this.xrTableRow2.Weight = 1D; + // + // xrTableCell6 + // + this.xrTableCell6.Multiline = true; + this.xrTableCell6.Name = "xrTableCell6"; + this.xrTableCell6.Text = "[CustomerName]\r\n[SupportConceptTimeSpanString]"; + this.xrTableCell6.Weight = 0.66469718772399189D; + // + // xrTableCell7 + // + this.xrTableCell7.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.CostBearerName")}); + this.xrTableCell7.Name = "xrTableCell7"; + this.xrTableCell7.StylePriority.UseTextAlignment = false; + this.xrTableCell7.Text = "Mitarbeiter/in"; + this.xrTableCell7.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell7.Weight = 0.5317577529262556D; + // + // xrTableCell14 + // + this.xrTableCell14.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHours", "{0:0.00}")}); + this.xrTableCell14.Name = "xrTableCell14"; + this.xrTableCell14.StylePriority.UseTextAlignment = false; + this.xrTableCell14.Text = "xrTableCell14"; + this.xrTableCell14.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell14.Weight = 0.35450517012236349D; + // + // xrTableCell12 + // + this.xrTableCell12.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableHours", "{0:0.00}")}); + this.xrTableCell12.Name = "xrTableCell12"; + this.xrTableCell12.StylePriority.UseTextAlignment = false; + this.xrTableCell12.Text = "xrTableCell12"; + this.xrTableCell12.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell12.Weight = 0.35450516999471204D; + // + // cellBewilligteFLSImBereich + // + this.cellBewilligteFLSImBereich.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHoursInReportTimeSpan", "{0:0.00}")}); + this.cellBewilligteFLSImBereich.Name = "cellBewilligteFLSImBereich"; + this.cellBewilligteFLSImBereich.StylePriority.UseTextAlignment = false; + this.cellBewilligteFLSImBereich.Text = "cellBewilligteFLSImBereich"; + this.cellBewilligteFLSImBereich.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.cellBewilligteFLSImBereich.Weight = 0.31019202369719984D; + // + // cellGeleistetImBereich + // + this.cellGeleistetImBereich.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.StundenNichtFehlkontakteInReportTimeSpan", "{0:0.00}")}); + this.cellGeleistetImBereich.Name = "cellGeleistetImBereich"; + this.cellGeleistetImBereich.StylePriority.UseTextAlignment = false; + this.cellGeleistetImBereich.Text = "cellGeleistetImBereich"; + this.cellGeleistetImBereich.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.cellGeleistetImBereich.Weight = 0.31019202366528686D; + // + // xrTableCell26 + // + this.xrTableCell26.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableAmountInReportTimeSpan", "{0:c}")}); + this.xrTableCell26.Name = "xrTableCell26"; + this.xrTableCell26.StylePriority.UseTextAlignment = false; + this.xrTableCell26.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell26.Weight = 0.36856870721468521D; + // + // xrTableCell8 + // + this.xrTableCell8.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.AmountPaidInReportTimeSpan")}); + this.xrTableCell8.Multiline = true; + this.xrTableCell8.Name = "xrTableCell8"; + this.xrTableCell8.StylePriority.UseTextAlignment = false; + this.xrTableCell8.Text = "xrTableCell8"; + this.xrTableCell8.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell8.TextFormatString = "{0:c}"; + this.xrTableCell8.Weight = 0.36856945707114541D; + // + // xrTableCell24 + // + this.xrTableCell24.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.openAmountReportTime")}); + this.xrTableCell24.Multiline = true; + this.xrTableCell24.Name = "xrTableCell24"; + this.xrTableCell24.StylePriority.UseTextAlignment = false; + this.xrTableCell24.Text = "xrTableCell24"; + this.xrTableCell24.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell24.TextFormatString = "{0:c}"; + this.xrTableCell24.Weight = 0.39284569702388022D; + // + // lblTitel + // + this.lblTitel.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Bold); + this.lblTitel.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F); + this.lblTitel.Name = "lblTitel"; + this.lblTitel.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.lblTitel.SizeF = new System.Drawing.SizeF(825.0001F, 23F); + this.lblTitel.StylePriority.UseFont = false; + this.lblTitel.Text = "Finanzauswertung"; + // + // DetailReport + // + this.DetailReport.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail1, + this.GroupFooter1, + this.GroupHeader2, + this.GroupFooter2, + this.GroupHeader1}); + this.DetailReport.DataMember = "SupportConceptFinanceList"; + this.DetailReport.DataSource = this.bindingSource1; + this.DetailReport.Level = 0; + this.DetailReport.Name = "DetailReport"; + // + // GroupFooter1 + // + this.GroupFooter1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable4}); + this.GroupFooter1.Font = new DevExpress.Drawing.DXFont("Arial", 10F, DevExpress.Drawing.DXFontStyle.Bold); + this.GroupFooter1.HeightF = 25F; + this.GroupFooter1.Name = "GroupFooter1"; + this.GroupFooter1.StylePriority.UseFont = false; + this.GroupFooter1.Visible = false; + // + // xrTable4 + // + this.xrTable4.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable4.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable4.Name = "xrTable4"; + this.xrTable4.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable4.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow4}); + this.xrTable4.SizeF = new System.Drawing.SizeF(892.7083F, 25F); + this.xrTable4.StylePriority.UseBorders = false; + this.xrTable4.StylePriority.UseFont = false; + this.xrTable4.StylePriority.UsePadding = false; + this.xrTable4.StylePriority.UseTextAlignment = false; + this.xrTable4.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrTableRow4 + // + this.xrTableRow4.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell28, + this.xrTableCell31, + this.xrTableCell35, + this.xrTableCell36, + this.xrTableCell37, + this.xrTableCell38, + this.xrTableCell41, + this.xrTableCell29, + this.xrTableCell30}); + this.xrTableRow4.Name = "xrTableRow4"; + this.xrTableRow4.Weight = 1D; + // + // xrTableCell28 + // + this.xrTableCell28.CanGrow = false; + this.xrTableCell28.Multiline = true; + this.xrTableCell28.Name = "xrTableCell28"; + this.xrTableCell28.Weight = 0.66469718772399189D; + // + // xrTableCell31 + // + this.xrTableCell31.CanGrow = false; + this.xrTableCell31.Name = "xrTableCell31"; + this.xrTableCell31.StylePriority.UseTextAlignment = false; + this.xrTableCell31.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell31.Weight = 0.5317577529262556D; + // + // xrTableCell35 + // + this.xrTableCell35.CanGrow = false; + this.xrTableCell35.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHours")}); + this.xrTableCell35.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell35.Name = "xrTableCell35"; + this.xrTableCell35.StylePriority.UseFont = false; + this.xrTableCell35.StylePriority.UseTextAlignment = false; + xrSummary1.FormatString = "{0:0.00}"; + xrSummary1.IgnoreNullValues = true; + xrSummary1.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell35.Summary = xrSummary1; + this.xrTableCell35.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell35.Weight = 0.35450517012236349D; + // + // xrTableCell36 + // + this.xrTableCell36.CanGrow = false; + this.xrTableCell36.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableHours")}); + this.xrTableCell36.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell36.Name = "xrTableCell36"; + this.xrTableCell36.StylePriority.UseFont = false; + this.xrTableCell36.StylePriority.UseTextAlignment = false; + xrSummary2.FormatString = "{0:0.00}"; + xrSummary2.IgnoreNullValues = true; + xrSummary2.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell36.Summary = xrSummary2; + this.xrTableCell36.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell36.Weight = 0.35450516999471215D; + // + // xrTableCell37 + // + this.xrTableCell37.CanGrow = false; + this.xrTableCell37.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHoursInReportTimeSpan")}); + this.xrTableCell37.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell37.Name = "xrTableCell37"; + this.xrTableCell37.StylePriority.UseFont = false; + this.xrTableCell37.StylePriority.UseTextAlignment = false; + xrSummary3.FormatString = "{0:0.00}"; + xrSummary3.IgnoreNullValues = true; + xrSummary3.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell37.Summary = xrSummary3; + this.xrTableCell37.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell37.Weight = 0.31019202369719984D; + // + // xrTableCell38 + // + this.xrTableCell38.CanGrow = false; + this.xrTableCell38.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.StundenNichtFehlkontakteInReportTimeSpan")}); + this.xrTableCell38.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell38.Name = "xrTableCell38"; + this.xrTableCell38.StylePriority.UseFont = false; + this.xrTableCell38.StylePriority.UseTextAlignment = false; + xrSummary4.FormatString = "{0:0.00}"; + xrSummary4.IgnoreNullValues = true; + xrSummary4.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell38.Summary = xrSummary4; + this.xrTableCell38.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell38.Weight = 0.31019202366528686D; + // + // xrTableCell41 + // + this.xrTableCell41.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableAmountInReportTimeSpan")}); + this.xrTableCell41.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell41.Name = "xrTableCell41"; + this.xrTableCell41.StylePriority.UseFont = false; + this.xrTableCell41.StylePriority.UseTextAlignment = false; + xrSummary5.FormatString = "{0:c}"; + xrSummary5.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell41.Summary = xrSummary5; + this.xrTableCell41.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell41.Weight = 0.36856870721468521D; + // + // xrTableCell29 + // + this.xrTableCell29.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.AmountPaidInReportTimeSpan")}); + this.xrTableCell29.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell29.Multiline = true; + this.xrTableCell29.Name = "xrTableCell29"; + this.xrTableCell29.StylePriority.UseFont = false; + this.xrTableCell29.StylePriority.UseTextAlignment = false; + xrSummary6.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell29.Summary = xrSummary6; + this.xrTableCell29.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell29.TextFormatString = "{0:c}"; + this.xrTableCell29.Weight = 0.36856945707114541D; + // + // xrTableCell30 + // + this.xrTableCell30.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.openAmountReportTime")}); + this.xrTableCell30.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell30.Multiline = true; + this.xrTableCell30.Name = "xrTableCell30"; + this.xrTableCell30.StylePriority.UseFont = false; + this.xrTableCell30.StylePriority.UseTextAlignment = false; + xrSummary7.FormatString = "{0:c}"; + xrSummary7.Running = DevExpress.XtraReports.UI.SummaryRunning.Group; + this.xrTableCell30.Summary = xrSummary7; + this.xrTableCell30.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell30.Weight = 0.39284569702388022D; + // + // GroupHeader2 + // + this.GroupHeader2.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable1}); + this.GroupHeader2.HeightF = 50F; + this.GroupHeader2.Name = "GroupHeader2"; + this.GroupHeader2.RepeatEveryPage = true; + // + // xrTable1 + // + this.xrTable1.Borders = ((DevExpress.XtraPrinting.BorderSide)((((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Top) + | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable1.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTable1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable1.Name = "xrTable1"; + this.xrTable1.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable1.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow1}); + this.xrTable1.SizeF = new System.Drawing.SizeF(892.7083F, 50F); + this.xrTable1.StylePriority.UseBorders = false; + this.xrTable1.StylePriority.UseFont = false; + this.xrTable1.StylePriority.UsePadding = false; + this.xrTable1.StylePriority.UseTextAlignment = false; + this.xrTable1.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrTableRow1 + // + this.xrTableRow1.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell1, + this.xrTableCell2, + this.xrTableCell13, + this.xrTableCell11, + this.cellBewilligtImZeitraumHeader, + this.cellGeleistetImZeitraumHeader, + this.xrTableCell25, + this.xrTableCell3, + this.xrTableCell17}); + this.xrTableRow1.Name = "xrTableRow1"; + this.xrTableRow1.Weight = 1.3953493323567705D; + // + // xrTableCell1 + // + this.xrTableCell1.Name = "xrTableCell1"; + this.xrTableCell1.Text = "KlientIn/Hilfeplan"; + this.xrTableCell1.Weight = 0.65261207928425036D; + // + // xrTableCell2 + // + this.xrTableCell2.Name = "xrTableCell2"; + this.xrTableCell2.StylePriority.UseTextAlignment = false; + this.xrTableCell2.Text = "Kostenträger"; + this.xrTableCell2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell2.Weight = 0.5220895665938059D; + // + // xrTableCell13 + // + this.xrTableCell13.Name = "xrTableCell13"; + this.xrTableCell13.StylePriority.UseTextAlignment = false; + this.xrTableCell13.Text = "Bis dato bewilligte FLS"; + this.xrTableCell13.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell13.Weight = 0.34805961298674093D; + // + // xrTableCell11 + // + this.xrTableCell11.Name = "xrTableCell11"; + this.xrTableCell11.StylePriority.UseTextAlignment = false; + this.xrTableCell11.Text = "Bis dato geleistete FLS"; + this.xrTableCell11.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell11.Weight = 0.34805961285908948D; + // + // cellBewilligtImZeitraumHeader + // + this.cellBewilligtImZeitraumHeader.Name = "cellBewilligtImZeitraumHeader"; + this.cellBewilligtImZeitraumHeader.StylePriority.UseTextAlignment = false; + this.cellBewilligtImZeitraumHeader.Text = "bewilligte FLS"; + this.cellBewilligtImZeitraumHeader.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.cellBewilligtImZeitraumHeader.Weight = 0.3045519081026955D; + // + // cellGeleistetImZeitraumHeader + // + this.cellGeleistetImZeitraumHeader.Name = "cellGeleistetImZeitraumHeader"; + this.cellGeleistetImZeitraumHeader.StylePriority.UseTextAlignment = false; + this.cellGeleistetImZeitraumHeader.Text = "geleistete FLS"; + this.cellGeleistetImZeitraumHeader.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.cellGeleistetImZeitraumHeader.Weight = 0.30455243916761571D; + // + // xrTableCell25 + // + this.xrTableCell25.Name = "xrTableCell25"; + this.xrTableCell25.StylePriority.UseTextAlignment = false; + this.xrTableCell25.Text = "Errechneter Betrag"; + this.xrTableCell25.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell25.Weight = 0.36186833386075445D; + // + // xrTableCell3 + // + this.xrTableCell3.Multiline = true; + this.xrTableCell3.Name = "xrTableCell3"; + this.xrTableCell3.StylePriority.UseTextAlignment = false; + this.xrTableCell3.Text = "In Rechnung gestellt"; + this.xrTableCell3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell3.Weight = 0.36186831279035137D; + // + // xrTableCell17 + // + this.xrTableCell17.Multiline = true; + this.xrTableCell17.Name = "xrTableCell17"; + this.xrTableCell17.StylePriority.UseTextAlignment = false; + this.xrTableCell17.Text = "Noch nicht abgerechnet"; + this.xrTableCell17.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleCenter; + this.xrTableCell17.Weight = 0.38570297193542397D; + // + // GroupFooter2 + // + this.GroupFooter2.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.GroupFooter2.HeightF = 0F; + this.GroupFooter2.Level = 1; + this.GroupFooter2.Name = "GroupFooter2"; + this.GroupFooter2.StylePriority.UseFont = false; + // + // GroupHeader1 + // + this.GroupHeader1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrLabel1}); + this.GroupHeader1.GroupFields.AddRange(new DevExpress.XtraReports.UI.GroupField[] { + new DevExpress.XtraReports.UI.GroupField("GruppierungsKategorie", DevExpress.XtraReports.UI.XRColumnSortOrder.Ascending)}); + this.GroupHeader1.HeightF = 43.75F; + this.GroupHeader1.Level = 1; + this.GroupHeader1.Name = "GroupHeader1"; + this.GroupHeader1.Visible = false; + // + // xrLabel1 + // + this.xrLabel1.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.GruppierungsKategorie")}); + this.xrLabel1.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrLabel1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 10.00001F); + this.xrLabel1.Name = "xrLabel1"; + this.xrLabel1.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 0, 0, 100F); + this.xrLabel1.SizeF = new System.Drawing.SizeF(825.0001F, 23F); + this.xrLabel1.StylePriority.UseFont = false; + this.xrLabel1.Text = "xrLabel1"; + // + // ReportHeader + // + this.ReportHeader.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.lblTitel}); + this.ReportHeader.HeightF = 52.08333F; + this.ReportHeader.Name = "ReportHeader"; + // + // pageFooterBand1 + // + this.pageFooterBand1.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrPageInfo2, + this.xrPageInfo1}); + this.pageFooterBand1.HeightF = 48F; + this.pageFooterBand1.Name = "pageFooterBand1"; + // + // xrPageInfo2 + // + this.xrPageInfo2.Font = new DevExpress.Drawing.DXFont("Arial", 8F); + this.xrPageInfo2.LocationFloat = new DevExpress.Utils.PointFloat(796.7803F, 25F); + this.xrPageInfo2.Name = "xrPageInfo2"; + this.xrPageInfo2.SizeF = new System.Drawing.SizeF(95.00006F, 23F); + this.xrPageInfo2.StyleName = "PageInfo"; + this.xrPageInfo2.StylePriority.UseFont = false; + this.xrPageInfo2.TextAlignment = DevExpress.XtraPrinting.TextAlignment.TopRight; + this.xrPageInfo2.TextFormatString = "Seite {0} von {1}"; + // + // xrPageInfo1 + // + this.xrPageInfo1.Font = new DevExpress.Drawing.DXFont("Arial", 8F); + this.xrPageInfo1.LocationFloat = new DevExpress.Utils.PointFloat(0F, 25F); + this.xrPageInfo1.Name = "xrPageInfo1"; + this.xrPageInfo1.PageInfo = DevExpress.XtraPrinting.PageInfo.DateTime; + this.xrPageInfo1.SizeF = new System.Drawing.SizeF(270.0002F, 23F); + this.xrPageInfo1.StyleName = "PageInfo"; + this.xrPageInfo1.StylePriority.UseFont = false; + // + // Title + // + this.Title.BackColor = System.Drawing.Color.White; + this.Title.BorderColor = System.Drawing.SystemColors.ControlText; + this.Title.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.Title.BorderWidth = 1F; + this.Title.Font = new DevExpress.Drawing.DXFont("Times New Roman", 24F); + this.Title.ForeColor = System.Drawing.Color.Black; + this.Title.Name = "Title"; + // + // FieldCaption + // + this.FieldCaption.BackColor = System.Drawing.Color.White; + this.FieldCaption.BorderColor = System.Drawing.SystemColors.ControlText; + this.FieldCaption.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.FieldCaption.BorderWidth = 1F; + this.FieldCaption.Font = new DevExpress.Drawing.DXFont("Times New Roman", 10F, DevExpress.Drawing.DXFontStyle.Bold); + this.FieldCaption.ForeColor = System.Drawing.Color.Black; + this.FieldCaption.Name = "FieldCaption"; + // + // PageInfo + // + this.PageInfo.BackColor = System.Drawing.Color.White; + this.PageInfo.BorderColor = System.Drawing.SystemColors.ControlText; + this.PageInfo.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.PageInfo.BorderWidth = 1F; + this.PageInfo.Font = new DevExpress.Drawing.DXFont("Times New Roman", 8F); + this.PageInfo.ForeColor = System.Drawing.Color.Black; + this.PageInfo.Name = "PageInfo"; + // + // DataField + // + this.DataField.BackColor = System.Drawing.Color.White; + this.DataField.BorderColor = System.Drawing.SystemColors.ControlText; + this.DataField.Borders = DevExpress.XtraPrinting.BorderSide.None; + this.DataField.BorderWidth = 1F; + this.DataField.Font = new DevExpress.Drawing.DXFont("Times New Roman", 8F); + this.DataField.ForeColor = System.Drawing.SystemColors.ControlText; + this.DataField.Name = "DataField"; + // + // fieldFLS + // + this.fieldFLS.DataMember = "FLSReportGroups"; + this.fieldFLS.DataSource = this.bindingSource1; + this.fieldFLS.Expression = "[TotalFLM] / 60"; + this.fieldFLS.FieldType = DevExpress.XtraReports.UI.FieldType.Decimal; + this.fieldFLS.Name = "fieldFLS"; + // + // topMarginBand1 + // + this.topMarginBand1.HeightF = 50F; + this.topMarginBand1.Name = "topMarginBand1"; + // + // bottomMarginBand1 + // + this.bottomMarginBand1.HeightF = 30F; + this.bottomMarginBand1.Name = "bottomMarginBand1"; + // + // ReportFooter + // + this.ReportFooter.Controls.AddRange(new DevExpress.XtraReports.UI.XRControl[] { + this.xrTable3}); + this.ReportFooter.Font = new DevExpress.Drawing.DXFont("Arial", 12F, DevExpress.Drawing.DXFontStyle.Regular, DevExpress.Drawing.DXGraphicsUnit.Point, new DevExpress.Drawing.DXFontAdditionalProperty[] { + new DevExpress.Drawing.DXFontAdditionalProperty("GdiCharSet", ((byte)(0)))}); + this.ReportFooter.HeightF = 25F; + this.ReportFooter.Name = "ReportFooter"; + this.ReportFooter.StylePriority.UseFont = false; + // + // xrTable3 + // + this.xrTable3.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) + | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTable3.LocationFloat = new DevExpress.Utils.PointFloat(0F, 0F); + this.xrTable3.Name = "xrTable3"; + this.xrTable3.Padding = new DevExpress.XtraPrinting.PaddingInfo(3, 3, 0, 0, 100F); + this.xrTable3.Rows.AddRange(new DevExpress.XtraReports.UI.XRTableRow[] { + this.xrTableRow3}); + this.xrTable3.SizeF = new System.Drawing.SizeF(892.7083F, 25F); + this.xrTable3.StylePriority.UseBorders = false; + this.xrTable3.StylePriority.UseFont = false; + this.xrTable3.StylePriority.UsePadding = false; + this.xrTable3.StylePriority.UseTextAlignment = false; + this.xrTable3.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + // + // xrTableRow3 + // + this.xrTableRow3.Cells.AddRange(new DevExpress.XtraReports.UI.XRTableCell[] { + this.xrTableCell15, + this.xrTableCell16, + this.xrTableCell20, + this.xrTableCell21, + this.xrTableCell22, + this.xrTableCell23, + this.xrTableCell27, + this.xrTableCell32, + this.xrTableCell39}); + this.xrTableRow3.Name = "xrTableRow3"; + this.xrTableRow3.Weight = 1D; + // + // xrTableCell15 + // + this.xrTableCell15.CanGrow = false; + this.xrTableCell15.Multiline = true; + this.xrTableCell15.Name = "xrTableCell15"; + this.xrTableCell15.Weight = 0.66469718772399189D; + // + // xrTableCell16 + // + this.xrTableCell16.CanGrow = false; + this.xrTableCell16.Name = "xrTableCell16"; + this.xrTableCell16.StylePriority.UseTextAlignment = false; + this.xrTableCell16.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft; + this.xrTableCell16.Weight = 0.5317577529262556D; + // + // xrTableCell20 + // + this.xrTableCell20.CanGrow = false; + this.xrTableCell20.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHours")}); + this.xrTableCell20.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell20.Name = "xrTableCell20"; + this.xrTableCell20.StylePriority.UseFont = false; + this.xrTableCell20.StylePriority.UseTextAlignment = false; + xrSummary8.FormatString = "{0:0.00}"; + xrSummary8.IgnoreNullValues = true; + xrSummary8.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell20.Summary = xrSummary8; + this.xrTableCell20.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell20.Weight = 0.35450517012236349D; + // + // xrTableCell21 + // + this.xrTableCell21.CanGrow = false; + this.xrTableCell21.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableHours")}); + this.xrTableCell21.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell21.Name = "xrTableCell21"; + this.xrTableCell21.StylePriority.UseFont = false; + this.xrTableCell21.StylePriority.UseTextAlignment = false; + xrSummary9.FormatString = "{0:0.00}"; + xrSummary9.IgnoreNullValues = true; + xrSummary9.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell21.Summary = xrSummary9; + this.xrTableCell21.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell21.Weight = 0.35450516999471215D; + // + // xrTableCell22 + // + this.xrTableCell22.CanGrow = false; + this.xrTableCell22.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.ApprovedHoursInReportTimeSpan")}); + this.xrTableCell22.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell22.Name = "xrTableCell22"; + this.xrTableCell22.StylePriority.UseFont = false; + this.xrTableCell22.StylePriority.UseTextAlignment = false; + xrSummary10.FormatString = "{0:0.00}"; + xrSummary10.IgnoreNullValues = true; + xrSummary10.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell22.Summary = xrSummary10; + this.xrTableCell22.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell22.Weight = 0.31019202369719984D; + // + // xrTableCell23 + // + this.xrTableCell23.CanGrow = false; + this.xrTableCell23.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.StundenNichtFehlkontakteInReportTimeSpan")}); + this.xrTableCell23.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell23.Name = "xrTableCell23"; + this.xrTableCell23.StylePriority.UseFont = false; + this.xrTableCell23.StylePriority.UseTextAlignment = false; + xrSummary11.FormatString = "{0:0.00}"; + xrSummary11.IgnoreNullValues = true; + xrSummary11.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell23.Summary = xrSummary11; + this.xrTableCell23.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell23.Weight = 0.31019202366528686D; + // + // xrTableCell27 + // + this.xrTableCell27.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.BillableAmountInReportTimeSpan")}); + this.xrTableCell27.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell27.Name = "xrTableCell27"; + this.xrTableCell27.StylePriority.UseFont = false; + this.xrTableCell27.StylePriority.UseTextAlignment = false; + xrSummary12.FormatString = "{0:c}"; + xrSummary12.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell27.Summary = xrSummary12; + this.xrTableCell27.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell27.Weight = 0.368569207118992D; + // + // xrTableCell32 + // + this.xrTableCell32.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.AmountPaidInReportTimeSpan")}); + this.xrTableCell32.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell32.Multiline = true; + this.xrTableCell32.Name = "xrTableCell32"; + this.xrTableCell32.StylePriority.UseFont = false; + this.xrTableCell32.StylePriority.UseTextAlignment = false; + xrSummary13.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell32.Summary = xrSummary13; + this.xrTableCell32.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell32.TextFormatString = "{0:c}"; + this.xrTableCell32.Weight = 0.36856895716683863D; + // + // xrTableCell39 + // + this.xrTableCell39.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "SupportConceptFinanceList.openAmountReportTime")}); + this.xrTableCell39.Font = new DevExpress.Drawing.DXFont("Arial", 9F, DevExpress.Drawing.DXFontStyle.Bold); + this.xrTableCell39.Multiline = true; + this.xrTableCell39.Name = "xrTableCell39"; + this.xrTableCell39.StylePriority.UseFont = false; + this.xrTableCell39.StylePriority.UseTextAlignment = false; + xrSummary14.FormatString = "{0:c}"; + xrSummary14.Running = DevExpress.XtraReports.UI.SummaryRunning.Report; + this.xrTableCell39.Summary = xrSummary14; + this.xrTableCell39.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleRight; + this.xrTableCell39.Weight = 0.39284569702388022D; + // + // openAmountReportTime + // + this.openAmountReportTime.DataMember = "SupportConceptFinanceList"; + this.openAmountReportTime.Expression = "[BillableAmountInReportTimeSpan]-[AmountPaidInReportTimeSpan]"; + this.openAmountReportTime.Name = "openAmountReportTime"; + // + // bindingSource1 + // + this.bindingSource1.DataSource = typeof(BeWo.Report.ReportObjects.FinanceRO); + // + // Finanzauswertung + // + this.Bands.AddRange(new DevExpress.XtraReports.UI.Band[] { + this.Detail, + this.DetailReport, + this.ReportHeader, + this.pageFooterBand1, + this.topMarginBand1, + this.bottomMarginBand1, + this.ReportFooter}); + this.CalculatedFields.AddRange(new DevExpress.XtraReports.UI.CalculatedField[] { + this.openAmountReportTime}); + this.DataSource = this.bindingSource1; + this.Landscape = true; + this.Margins = new DevExpress.Drawing.DXMargins(45F, 40F, 50F, 30F); + this.PageHeight = 827; + this.PageWidth = 1169; + this.PaperKind = DevExpress.Drawing.Printing.DXPaperKind.A4; + this.StyleSheet.AddRange(new DevExpress.XtraReports.UI.XRControlStyle[] { + this.Title, + this.FieldCaption, + this.PageInfo, + this.DataField}); + this.Version = "23.2"; + xrWatermark1.Id = "Watermark1"; + this.Watermarks.Add(xrWatermark1); + ((System.ComponentModel.ISupportInitialize)(this.xrTable2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xrTable3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); + + } + + #endregion + + private DevExpress.XtraReports.UI.DetailBand Detail; + private System.Windows.Forms.BindingSource bindingSource1; + private DevExpress.XtraReports.UI.DetailBand Detail1; + private DevExpress.XtraReports.UI.DetailReportBand DetailReport; + private DevExpress.XtraReports.UI.ReportHeaderBand ReportHeader; + private DevExpress.XtraReports.UI.PageFooterBand pageFooterBand1; + private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo2; + private DevExpress.XtraReports.UI.XRPageInfo xrPageInfo1; + private DevExpress.XtraReports.UI.XRControlStyle Title; + private DevExpress.XtraReports.UI.XRControlStyle FieldCaption; + private DevExpress.XtraReports.UI.XRControlStyle PageInfo; + private DevExpress.XtraReports.UI.XRControlStyle DataField; + private DevExpress.XtraReports.UI.CalculatedField fieldFLS; + private DevExpress.XtraReports.UI.TopMarginBand topMarginBand1; + private DevExpress.XtraReports.UI.BottomMarginBand bottomMarginBand1; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter1; + private DevExpress.XtraReports.UI.XRLabel lblTitel; + private DevExpress.XtraReports.UI.XRTable xrTable2; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell6; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell7; + private DevExpress.XtraReports.UI.XRTable xrTable1; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell1; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell2; + private DevExpress.XtraReports.UI.ReportFooterBand ReportFooter; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell12; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell11; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell14; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell13; + private DevExpress.XtraReports.UI.XRTableCell cellBewilligteFLSImBereich; + private DevExpress.XtraReports.UI.XRTableCell cellGeleistetImBereich; + private DevExpress.XtraReports.UI.XRTableCell cellBewilligtImZeitraumHeader; + private DevExpress.XtraReports.UI.XRTableCell cellGeleistetImZeitraumHeader; + private DevExpress.XtraReports.UI.GroupFooterBand GroupFooter2; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell25; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell26; + private DevExpress.XtraReports.UI.GroupHeaderBand GroupHeader1; + private DevExpress.XtraReports.UI.XRLabel xrLabel1; + private DevExpress.XtraReports.UI.XRTable xrTable4; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow4; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell28; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell31; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell35; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell36; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell37; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell38; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell41; + private DevExpress.XtraReports.UI.XRTable xrTable3; + private DevExpress.XtraReports.UI.XRTableRow xrTableRow3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell15; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell16; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell20; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell21; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell22; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell23; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell27; + private DevExpress.XtraReports.UI.CalculatedField openAmountReportTime; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell8; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell24; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell29; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell30; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell3; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell17; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell32; + private DevExpress.XtraReports.UI.XRTableCell xrTableCell39; + } +} diff --git a/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.resx b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.resx new file mode 100644 index 000000000..d58980a38 --- /dev/null +++ b/ReportImp/AWOMuensterlandRecklinghausen/Finanzauswertung.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ReportImp/AWOMuensterlandRecklinghausen/SbdRechnung2024.cs b/ReportImp/AWOMuensterlandRecklinghausen/SbdRechnung2024.cs index e28bde9cd..bb995a588 100644 --- a/ReportImp/AWOMuensterlandRecklinghausen/SbdRechnung2024.cs +++ b/ReportImp/AWOMuensterlandRecklinghausen/SbdRechnung2024.cs @@ -27,12 +27,10 @@ namespace AWOMuensterlandRecklinghausen public void SetReportDataSource(ServiceInvoiceRO pRO) { - //CreateAbrechnungsItems(pRO); SetzeEmpfaengerAdresse(pRO); SetzeBetraege(pRO); this.bindingSource1.DataSource = pRO; - } private void SetzeBetraege(ServiceInvoiceRO pRO) @@ -87,17 +85,10 @@ namespace AWOMuensterlandRecklinghausen { if (!String.IsNullOrEmpty(ii.ServiceDescription) && ii.ServiceDescription.StartsWith("Rechnungsdifferenz") && pRO.InvoiceBase.SupportConceptOid.HasValue) - { - var sc = DAOFactory.GenericDAO.GetByID(pRO.InvoiceBase.SupportConceptOid.Value); - if (sc != null) + { + if (!pRO.Notice.IsNullOrEmpty()) { - var cb2sc = sc.CostBearer2SupportConceptList.Where(s => s.SupportConcept.Oid == pRO.InvoiceBase.SupportConceptOid.Value).FirstOrDefault(); - var scap = cb2sc.ApprovalPeriodList.Where(ap => ap.ServiceCategory != null && ap.ServiceCategory.Name.Contains("Interne") && - ap.StartDate < pRO.AccountingPeriodEnd && ap.EndDate > pRO.AccountingPeriodStart).FirstOrDefault(); - if (!scap.Notice.IsNullOrEmpty()) - { - lblEndtext.Text = scap.Notice + "\n \n" + lblEndtext.Text; - } + lblEndtext.Text = pRO.Notice + "\n \n" + lblEndtext.Text; } } } diff --git a/ReportImp/AkggMid/Service/CustomCustomerService.cs b/ReportImp/AkggMid/Service/CustomCustomerService.cs index 6348ca46b..6acdca42d 100644 --- a/ReportImp/AkggMid/Service/CustomCustomerService.cs +++ b/ReportImp/AkggMid/Service/CustomCustomerService.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Drawing; using System.Linq; using BeWo.Data.Access; @@ -12,12 +13,21 @@ namespace AkggMid.Service { public class CustomCustomerService : CustomerService { - // public override List GetAllActiveSupportConceptCostbearer(bool onlyApproved, bool onlyWithAssignedCostbearer, long employeeOid) + // public override List GetAllActiveSupportConceptCostbearer(bool onlyApproved, bool onlyWithAssignedCostbearer, long employeeOid) //{ - // var liste = base.GetAllActiveSupportConceptCostbearer(onlyApproved, onlyWithAssignedCostbearer, employeeOid); + // var liste = base.GetAllActiveSupportConceptCostbearer(onlyApproved, onlyWithAssignedCostbearer, employeeOid); + + // return liste.Where(a => a.CustomerFullName.StartsWith("A")).ToList(); + // + + protected override string GetDefaultBrush(SupportConcept sc, CostBearer2SupportConcept c2s) + { + if (c2s.StartDate.HasValue && c2s.StartDate > DateTime.Now) + { + return "#FF70A0FF"; + } + return base.GetDefaultBrush(sc, c2s); + } - // return liste.Where(a => a.CustomerFullName.StartsWith("A")).ToList(); - // } - } } \ No newline at end of file diff --git a/ReportImp/AwoDortmund/Export/DiamantExporter.cs b/ReportImp/AwoDortmund/Export/DiamantExporter.cs index 69b9fc965..82c040566 100644 --- a/ReportImp/AwoDortmund/Export/DiamantExporter.cs +++ b/ReportImp/AwoDortmund/Export/DiamantExporter.cs @@ -761,7 +761,7 @@ INNER JOIN `person` p on c.`PersonOid` = p.`Oid` INNER JOIN invoicebase ib on ib.costbearer2supportconceptoid = cb2sc.oid inner join serviceinvoice si on si.invoicebaseoid = ib.oid inner join serviceinvoiceperiod sip on sip.serviceinvoiceoid = si.oid -WHERE c.`IsActive` = 1 AND sc.`IsActive` = 1 and ib.isactive = 1 and ib.type <> 1 and ib.InvoiceId <> 'RechnungSoziotherapie' +WHERE c.`IsActive` = 1 AND sc.`IsActive` = 1 and ib.isactive = 1 and ib.type <> 1 and isnull(InvoiceId) and ib.`AccountingPeriodEnd` >= ':Monat_Start' AND ib.`AccountingPeriodStart` < ':Monat_End' ORDER BY p.`LastName`, p.`FirstName`, cb2sc.`ApprovedStartDate` "; diff --git a/ReportImp/LyvieKupfer/ServiceInvoiceReport.cs b/ReportImp/LyvieKupfer/ServiceInvoiceReport.cs index 71e3e4941..6a61f0ebd 100644 --- a/ReportImp/LyvieKupfer/ServiceInvoiceReport.cs +++ b/ReportImp/LyvieKupfer/ServiceInvoiceReport.cs @@ -28,7 +28,7 @@ namespace LyvieKupfer { foreach (var ii in sip.ServiceInvoiceItems) { - hours = ii.Hours.Value; + hours += ii.Hours.Value; } } } diff --git a/ReportImp/SkmViersen/SammelrechnungSeite1.cs b/ReportImp/SkmViersen/SammelrechnungSeite1.cs index ff00d2272..d6c5bc79e 100644 --- a/ReportImp/SkmViersen/SammelrechnungSeite1.cs +++ b/ReportImp/SkmViersen/SammelrechnungSeite1.cs @@ -22,8 +22,11 @@ namespace SkmViersen public void SetReportDataSource(ServiceInvoiceRO pRO) { Customer customer = null; - if (pRO.ServiceInvoicePeriods != null && pRO.ServiceInvoicePeriods.Count > 0) + if (pRO.ServiceInvoicePeriods != null && pRO.ServiceInvoicePeriods.Count > 0 + && pRO.ServiceInvoicePeriods[0].ServiceInvoiceItems != null && !pRO.ServiceInvoicePeriods[0].ServiceInvoiceItems[0].ServiceDescription.Contains("Rechnungsdifferenz")) + { customer = pRO.ServiceInvoicePeriods[0].CostBearer2SupportConcept.SupportConcept.Customer; + } if (customer == null && pRO.CustomerOid.HasValue) { customer = DAOFactory.GenericDAO.GetByID(pRO.CustomerOid.Value); diff --git a/ReportImp/SkmViersen/SammelrechnungSeite2.Designer.cs b/ReportImp/SkmViersen/SammelrechnungSeite2.Designer.cs index 61202939e..058afef8b 100644 --- a/ReportImp/SkmViersen/SammelrechnungSeite2.Designer.cs +++ b/ReportImp/SkmViersen/SammelrechnungSeite2.Designer.cs @@ -540,6 +540,8 @@ namespace SkmViersen this.xrTableCell42.BorderColor = System.Drawing.Color.DarkGray; this.xrTableCell42.Borders = ((DevExpress.XtraPrinting.BorderSide)(((DevExpress.XtraPrinting.BorderSide.Left | DevExpress.XtraPrinting.BorderSide.Right) | DevExpress.XtraPrinting.BorderSide.Bottom))); + this.xrTableCell42.DataBindings.AddRange(new DevExpress.XtraReports.UI.XRBinding[] { + new DevExpress.XtraReports.UI.XRBinding("Text", null, "ServiceInvoicePeriods.ServiceInvoiceItems.ServiceDescription")}); this.xrTableCell42.Name = "xrTableCell42"; this.xrTableCell42.Padding = new DevExpress.XtraPrinting.PaddingInfo(2, 2, 2, 2, 100F); this.xrTableCell42.StylePriority.UseBorderColor = false; diff --git a/ReportImp/SkmViersen/SammelrechnungSeite2.cs b/ReportImp/SkmViersen/SammelrechnungSeite2.cs index b218ed9cb..789aafe07 100644 --- a/ReportImp/SkmViersen/SammelrechnungSeite2.cs +++ b/ReportImp/SkmViersen/SammelrechnungSeite2.cs @@ -29,30 +29,26 @@ namespace SkmViersen { foreach (var ii in sip.ServiceInvoiceItems) { - var u = ii.UnitCount ?? 0; - - if (!String.IsNullOrEmpty(ii.RateFactor)) + if (!String.IsNullOrEmpty(ii.ServiceDescription) && !ii.ServiceDescription.StartsWith("Rechnungsdifferenz")) { - var rfStr = ii.RateFactor.Replace("%", "").Replace(",00", "").Trim(); - int rfInt = 0; - Int32.TryParse(rfStr, out rfInt); - decimal rateFactor = (100m + rfInt) / 100m; - ii.RateFactor = Math.Round(rateFactor, 2, MidpointRounding.AwayFromZero).ToString(); - u *= rateFactor; - ii.UnitCountString = Math.Round(u, 2, MidpointRounding.AwayFromZero).ToString(); + ii.ServiceDescription = "Betreuungsarbeit"; + var u = ii.UnitCount ?? 0; + + if (!String.IsNullOrEmpty(ii.RateFactor)) + { + var rfStr = ii.RateFactor.Replace("%", "").Replace(",00", "").Trim(); + int rfInt = 0; + Int32.TryParse(rfStr, out rfInt); + decimal rateFactor = (100m + rfInt) / 100m; + ii.RateFactor = Math.Round(rateFactor, 2, MidpointRounding.AwayFromZero).ToString(); + u *= rateFactor; + ii.UnitCountString = Math.Round(u, 2, MidpointRounding.AwayFromZero).ToString(); + } } } } } } - //if (start.Month == end.Month && start.Year == end.Year) - //{ - // lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir für den Monat {0:MMMM yyyy} folgende erbrachte Tätigkeiten:", start); - //} - //else - //{ - // lblAbrechnungszeitraum.Text = String.Format("hiermit berechnen wir für den Zeitraum {0:MMMM yyyy} - {1:MMMM yyyy} folgende erbrachte Tätigkeiten:", start, end); - //} var handy = pRO.InvoiceBase.SenderContactInformations.Where(c => c.ContactType == ContactType.business_MobilePhone).FirstOrDefault(); if (handy != null) diff --git a/Service/DCEntityMapper/CustomerDC_Customer.cs b/Service/DCEntityMapper/CustomerDC_Customer.cs index 39f6e44c8..18d8d2586 100644 --- a/Service/DCEntityMapper/CustomerDC_Customer.cs +++ b/Service/DCEntityMapper/CustomerDC_Customer.cs @@ -7,6 +7,7 @@ using BeWo.Data.Entities; using BS.Shared; using BS.Shared.Core; using BS.Shared.DataContracts; +using BS.Shared.Extensions; namespace BeWo.Service.DCEntityMapper { @@ -123,16 +124,14 @@ namespace BeWo.Service.DCEntityMapper pDataContract.ICD10DiagnosisCodes = pEntity.Diagnosis2CustomerList.Select(e => e.ICD10DiagnosisCode).ToList(); } - if(pEntity.CustomerFalldaten != null) - { - pDataContract.FalldatenDC = MapperFactory.FalldatenDC_CustomerFalldaten.MapToNewDC(pEntity.CustomerFalldaten); - } - IList defs = DAOFactory.SearchDAO.GetVarFieldDefs(TableID.Customer); pDataContract.CustomerVarFields = MapperFactory.VarFieldDC_VarField.VarFieldMapToDCs(defs, pEntity.VarFieldValueList); pDataContract.AssessmentSheetCategoryDCs = MapperFactory.AssessmentSheetCategoryDC_AssessmentSheetCategory.MapToNewDCs(pEntity.AssessmentSheetCategoryList); + pDataContract.CustomerVermittlungArbeitDC = MapperFactory.CustomerVermittlungArbeitDC_CustomerVermittlungArbeit.MapToNewDCs(pEntity.CustomerVermittlungArbeiten); + pDataContract.CustomerWohnhilfeDC = MapperFactory.CustomerWohnhilfeDC_CustomerWohnhilfe.MapToNewDCs(pEntity.CustomerWohnhilfen); + return pDataContract; } @@ -169,23 +168,6 @@ namespace BeWo.Service.DCEntityMapper MapperFactory.MedikamentenverordnungslisteDC_Medikamentenverordnungsliste.MergeWithEntitys(pDataContract.Medikamentenverordnungslisten, pEntity.Medikamentenverordnungslisten); - if(pDataContract.FalldatenDC is object) - { - if(pEntity.CustomerFalldaten is null) - { - pEntity.CustomerFalldaten = MapperFactory.FalldatenDC_CustomerFalldaten.MapToNewEntity(pDataContract.FalldatenDC); - } - else - { - MapperFactory.FalldatenDC_CustomerFalldaten.MergeWithEntity(pDataContract.FalldatenDC, pEntity.CustomerFalldaten); - } - } - else - { - pEntity.CustomerFalldaten = null; - } - - //pEntity.Jugendamt = pDataContract.Jugendamt != null ? DAOFactory.GenericDAO.LoadByID(pDataContract.Jugendamt.OrganisationOid) : null; //pEntity.Ansprechpartner = pDataContract.Ansprechpartner != null ? DAOFactory.GenericDAO.LoadByID(pDataContract.Ansprechpartner.PersonOid) : null; @@ -308,7 +290,15 @@ namespace BeWo.Service.DCEntityMapper MapperFactory.ArbeitszeitDC_Arbeitszeit.MergeWithEntitys(pDataContract.Arbeitszeiten, pEntity.Arbeitszeiten); - return pEntity; + MapperFactory.CustomerVermittlungArbeitDC_CustomerVermittlungArbeit.MergeWithEntitys(pDataContract.CustomerVermittlungArbeitDC, pEntity.CustomerVermittlungArbeiten); + if (pEntity.CustomerVermittlungArbeiten is IList lv && lv.Any()) + lv.DoForEach(x => x.Customer = pEntity); + + MapperFactory.CustomerWohnhilfeDC_CustomerWohnhilfe.MergeWithEntitys(pDataContract.CustomerWohnhilfeDC, pEntity.CustomerWohnhilfen); + if (pEntity.CustomerWohnhilfen is IList lw && lw.Any()) + lw.DoForEach(x => x.Customer = pEntity); + + return pEntity; } public bool ContainsFamilyDataData(CustomerDC dc) diff --git a/Service/DCEntityMapper/CustomerVermittlungArbeitDC_CustomerVermittlungArbeit.cs b/Service/DCEntityMapper/CustomerVermittlungArbeitDC_CustomerVermittlungArbeit.cs new file mode 100644 index 000000000..b579b1286 --- /dev/null +++ b/Service/DCEntityMapper/CustomerVermittlungArbeitDC_CustomerVermittlungArbeit.cs @@ -0,0 +1,136 @@ +using System.Collections.Generic; +using System.Linq; + +using BeWo.Data.Access; +using BeWo.Data.Entities; + +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.Extensions; + +namespace BeWo.Service.DCEntityMapper +{ + public class CustomerVermittlungArbeitDC_CustomerVermittlungArbeit : AbstractIDCEntityMapper + { + public override CustomerVermittlungArbeitDC MergeWithDC(CustomerVermittlungArbeit pEntity, CustomerVermittlungArbeitDC pDataContract) + { + pDataContract.Oid = pEntity.Oid; + pDataContract.Version = pEntity.Version; + pDataContract.Notice = pEntity.Notice; + pDataContract.EigenesAktenzeichen = pEntity.EigenesAktenzeichen; + pDataContract.Auftragseingang = pEntity.Auftragseingang; + pDataContract.Tagessatze = pEntity.Tagessatze; + pDataContract.Tagessatzhohe = pEntity.Tagessatzhohe; + pDataContract.HoheDerGeldstrafe = pEntity.HoheDerGeldstrafe; + pDataContract.ZuLeistendeArbeitsstunden = pEntity.ZuLeistendeArbeitsstunden; + pDataContract.Hinweis = pEntity.Hinweis; + pDataContract.Termin = pEntity.Termin; + pDataContract.CustomerVermittlungBearbeitungsstatus = pEntity.CustomerVermittlungBearbeitungsstatus; + pDataContract.Auftragsruckgabe = pEntity.Auftragsruckgabe; + pDataContract.Verlauf = pEntity.Verlauf; + pDataContract.AbgeleisteteStunden = pEntity.AbgeleisteteStunden; + pDataContract.ErsparteHafttage = pEntity.ErsparteHafttage; + pDataContract.GeleisteteRatenzahlung = pEntity.GeleisteteRatenzahlung; + pDataContract.Bemerkung = pEntity.Bemerkung; + pDataContract.GeleisteteEinmalzahlung = pEntity.GeleisteteEinmalzahlung; + pDataContract.GrundArbeitsunfahig = pEntity.GrundArbeitsunfahig; + pDataContract.GrundSuchtproblem = pEntity.GrundSuchtproblem; + pDataContract.GrundPsychischeProbleme = pEntity.GrundPsychischeProbleme; + pDataContract.GrundKeineMotivation = pEntity.GrundKeineMotivation; + pDataContract.GrundInHaft = pEntity.GrundInHaft; + pDataContract.GrundUnbekannt = pEntity.GrundUnbekannt; + pDataContract.GrundKeinKontakt = pEntity.GrundKeinKontakt; + pDataContract.GrundNichtAngetreten = pEntity.GrundNichtAngetreten; + pDataContract.GrundAbbruchDerTatigkeit = pEntity.GrundAbbruchDerTatigkeit; + pDataContract.GrundWiderruf = pEntity.GrundWiderruf; + pDataContract.Grund459StPO = pEntity.Grund459StPO; + pDataContract.GrundAusbleibenDerZahlung = pEntity.GrundAusbleibenDerZahlung; + pDataContract.BesonderheitMehrfacheBeauftragung = pEntity.BesonderheitMehrfacheBeauftragung; + pDataContract.BesonderheitMehrfacheVermittlung = pEntity.BesonderheitMehrfacheVermittlung; + pDataContract.BesonderheitVermittlungAusHaft = pEntity.BesonderheitVermittlungAusHaft; + pDataContract.BesonderheitDurchBGBWAufgesucht = pEntity.BesonderheitDurchBGBWAufgesucht; + + if (pEntity.Auftragsherkunft != null) + { + pDataContract.Auftragsherkunft = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(pEntity.Auftragsherkunft); + } + + if (pEntity.Vermittlungsgrundlage != null) + { + pDataContract.Vermittlungsgrundlage = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(pEntity.Vermittlungsgrundlage); + } + + return pDataContract; + } + + public override CustomerVermittlungArbeit MergeWithEntity(CustomerVermittlungArbeitDC pDataContract, CustomerVermittlungArbeit pEntity) + { + pEntity.Oid = pDataContract.Oid; + pEntity.Version = pDataContract.Version; + pEntity.Notice = pDataContract.Notice; + pEntity.EigenesAktenzeichen = pDataContract.EigenesAktenzeichen; + pEntity.Auftragseingang = pDataContract.Auftragseingang; + pEntity.Tagessatze = pDataContract.Tagessatze; + pEntity.Tagessatzhohe = pDataContract.Tagessatzhohe; + pEntity.HoheDerGeldstrafe = pDataContract.HoheDerGeldstrafe; + pEntity.ZuLeistendeArbeitsstunden = pDataContract.ZuLeistendeArbeitsstunden; + pEntity.Hinweis = pDataContract.Hinweis; + pEntity.Termin = pDataContract.Termin; + pEntity.CustomerVermittlungBearbeitungsstatus = pDataContract.CustomerVermittlungBearbeitungsstatus; + pEntity.Auftragsruckgabe = pDataContract.Auftragsruckgabe; + pEntity.Verlauf = pDataContract.Verlauf; + pEntity.AbgeleisteteStunden = pDataContract.AbgeleisteteStunden; + pEntity.ErsparteHafttage = pDataContract.ErsparteHafttage; + pEntity.GeleisteteRatenzahlung = pDataContract.GeleisteteRatenzahlung; + pEntity.Bemerkung = pDataContract.Bemerkung; + pEntity.GeleisteteEinmalzahlung = pDataContract.GeleisteteEinmalzahlung; + pEntity.GrundArbeitsunfahig = pDataContract.GrundArbeitsunfahig; + pEntity.GrundSuchtproblem = pDataContract.GrundSuchtproblem; + pEntity.GrundPsychischeProbleme = pDataContract.GrundPsychischeProbleme; + pEntity.GrundKeineMotivation = pDataContract.GrundKeineMotivation; + pEntity.GrundInHaft = pDataContract.GrundInHaft; + pEntity.GrundUnbekannt = pDataContract.GrundUnbekannt; + pEntity.GrundKeinKontakt = pDataContract.GrundKeinKontakt; + pEntity.GrundNichtAngetreten = pDataContract.GrundNichtAngetreten; + pEntity.GrundAbbruchDerTatigkeit = pDataContract.GrundAbbruchDerTatigkeit; + pEntity.GrundWiderruf = pDataContract.GrundWiderruf; + pEntity.Grund459StPO = pDataContract.Grund459StPO; + pEntity.GrundAusbleibenDerZahlung = pDataContract.GrundAusbleibenDerZahlung; + pEntity.BesonderheitMehrfacheBeauftragung = pDataContract.BesonderheitMehrfacheBeauftragung; + pEntity.BesonderheitMehrfacheVermittlung = pDataContract.BesonderheitMehrfacheVermittlung; + pEntity.BesonderheitVermittlungAusHaft = pDataContract.BesonderheitVermittlungAusHaft; + pEntity.BesonderheitDurchBGBWAufgesucht = pDataContract.BesonderheitDurchBGBWAufgesucht; + + if (pDataContract.Auftragsherkunft == null) + { + pEntity.Auftragsherkunft = null; + } + else if (pEntity.Auftragsherkunft == null || pEntity.Auftragsherkunft.Oid != pDataContract.Auftragsherkunft.ValueListEntryOid) + { + pEntity.Auftragsherkunft = DAOFactory.GenericDAO.LoadByID(pDataContract.Auftragsherkunft.ValueListEntryOid.Value); + } + + if (pDataContract.Vermittlungsgrundlage == null) + { + pEntity.Vermittlungsgrundlage = null; + } + else if (pEntity.Vermittlungsgrundlage == null || pEntity.Vermittlungsgrundlage.Oid != pDataContract.Vermittlungsgrundlage.ValueListEntryOid) + { + pEntity.Vermittlungsgrundlage = DAOFactory.GenericDAO.LoadByID(pDataContract.Vermittlungsgrundlage.ValueListEntryOid.Value); + } + + return pEntity; + } + + protected override bool AreDCAndEntityEqual(CustomerVermittlungArbeitDC pDC, CustomerVermittlungArbeit pEntity) + { + if (pDC.Oid == null) + { + return false; + } + + return pDC.Oid == pEntity.Oid; + } + } +} diff --git a/Service/DCEntityMapper/CustomerWohnhilfeDC_CustomerWohnhilfe.cs b/Service/DCEntityMapper/CustomerWohnhilfeDC_CustomerWohnhilfe.cs new file mode 100644 index 000000000..7c6bdf354 --- /dev/null +++ b/Service/DCEntityMapper/CustomerWohnhilfeDC_CustomerWohnhilfe.cs @@ -0,0 +1,174 @@ +using System.Collections.Generic; +using System.Linq; + +using BeWo.Data.Access; +using BeWo.Data.Entities; + +using BS.Shared; +using BS.Shared.Core; +using BS.Shared.DataContracts; +using BS.Shared.DataContracts.Wohnhilfe; + +namespace BeWo.Service.DCEntityMapper +{ + public class CustomerWohnhilfeDC_CustomerWohnhilfe : AbstractIDCEntityMapper + { + public override CustomerWohnhilfeDC MergeWithDC(CustomerWohnhilfe pEntity, CustomerWohnhilfeDC pDataContract) + { + pDataContract.Oid = pEntity.Oid; + pDataContract.Version = pEntity.Version; + pDataContract.Notice = pEntity.Notice; + pDataContract.Displayname = pEntity.Displayname; + pDataContract.BereichBundDC = new CustomerWohnhilfeBereichBundDC + { + Verbandszugehorigkeit = pEntity.Verbandszugehorigkeit, + Geschlecht = pEntity.Geschlecht, + AlterAmStichtag = pEntity.AlterAmStichtag, + Haushaltsgrosse = pEntity.Haushaltsgrosse, + BerichtseinheitID = pEntity.BerichtseinheitID, + Unterbringungsart = pEntity.Unterbringungsart, + OrtDerEinrichtung = pEntity.OrtDerEinrichtung, + Angebot = pEntity.Angebot + }; + pDataContract.BereichEinkommenUndArbeitDC = new CustomerWohnhilfeBereichEinkommenUndArbeitDC + { + BeginnEinkommenssituation = pEntity.BeginnEinkommenssituation, + EndeEinkommenssituation = pEntity.EndeEinkommenssituation, + BeginnAufstockungEinkommen = pEntity.BeginnAufstockungEinkommen, + EndeAufstockungEinkommen = pEntity.EndeAufstockungEinkommen, + BeginnEigenesBankkonto = pEntity.BeginnEigenesBankkonto, + EndeEigenesBankkonto = pEntity.EndeEigenesBankkonto, + Uberschuldung = pEntity.Uberschuldung, + Berufsabschluss = pEntity.Berufsabschluss, + ErwerbsfahigkeitSinnSGB = pEntity.ErwerbsfahigkeitSinnSGB, + BeginnBeschaftigungsstatus = pEntity.BeginnBeschaftigungsstatus, + EndeBeschaftigungsstatus = pEntity.EndeBeschaftigungsstatus, + DauerArbeitslosigkeit = pEntity.DauerArbeitslosigkeit + }; + pDataContract.BereichSozialeKontakteDC = new CustomerWohnhilfeBereichSozialeKontakteDC + { + BeginnSozialeKontakte = pEntity.BeginnSozialeKontakte, + BeginnKontaktPartner = pEntity.BeginnKontaktPartner, + BeginnKontaktMindKinder = pEntity.BeginnKontaktMindKinder, + BeginnKontaktVolljahrKinderElternVerwandten = pEntity.BeginnKontaktVolljahrKinderElternVerwandten, + BeginnKontaktFreundenBekannten = pEntity.BeginnKontaktFreundenBekannten, + BeginnKontaktSelbsthilfe = pEntity.BeginnKontaktSelbsthilfe, + BeginnKontaktSonstige = pEntity.BeginnKontaktSonstige, + EndeSozialeKontakte = pEntity.EndeSozialeKontakte, + EndeKontaktPartner = pEntity.EndeKontaktPartner, + EndeKontaktMindKinder = pEntity.EndeKontaktMindKinder, + EndeKontaktVolljahrKinderElternVerwandten = pEntity.EndeKontaktVolljahrKinderElternVerwandten, + EndeKontaktFreundenBekannten = pEntity.EndeKontaktFreundenBekannten, + EndeKontaktSelbsthilfe = pEntity.EndeKontaktSelbsthilfe, + EndeKontaktSonstige = pEntity.EndeKontaktSonstige, + BeginnKrankenversicherung = pEntity.BeginnKrankenversicherung, + EndeKrankenversicherung = pEntity.EndeKrankenversicherung, + BeginnKontaktArzt = pEntity.BeginnKontaktArzt, + EndeKontaktArzt = pEntity.EndeKontaktArzt, + VorlageSchwerbehindertenausweises = pEntity.VorlageSchwerbehindertenausweises + }; + pDataContract.BereichSozialstrukturDC = new CustomerWohnhilfeBereichSozialstrukturDC + { + Bundesland = pEntity.Bundesland, + IsWohnungslosenhilfe = pEntity.IsWohnungslosenhilfe, + ArtDesHilfeangebots = pEntity.ArtDesHilfeangebots, + Betreuungsbeginn = pEntity.Betreuungsbeginn, + Betreuungsende = pEntity.Betreuungsende, + BetreuungsdauerInTagen = pEntity.BetreuungsdauerInTagen, + ArtDerBeendigung = pEntity.ArtDerBeendigung, + Geburtsdatum = pEntity.Geburtsdatum, + Geschlechtidentitat = pEntity.Geschlechtidentitat, + Staatsangehorigkeit = pEntity.Staatsangehorigkeit, + Aufenthaltsstatus = pEntity.Aufenthaltsstatus, + Migrationshintergrund = pEntity.Migrationshintergrund, + HochsterSchulabschluss = pEntity.HochsterSchulabschluss, + Familienstand = pEntity.Familienstand, + Haushaltsstruktur = pEntity.Haushaltsstruktur, + EigeneMindKinderAuserhalbHaushaltsstruktur = pEntity.EigeneMindKinderAuserhalbHaushaltsstruktur + }; + + return pDataContract; + } + + public override CustomerWohnhilfe MergeWithEntity(CustomerWohnhilfeDC pDataContract, CustomerWohnhilfe pEntity) + { + pEntity.Oid = pDataContract.Oid; + pEntity.Version = pDataContract.Version; + pEntity.Notice = pDataContract.Notice; + + pEntity.Displayname = pDataContract.Displayname; + + pEntity.Verbandszugehorigkeit = pDataContract.BereichBundDC.Verbandszugehorigkeit; + pEntity.Geschlecht = pDataContract.BereichBundDC.Geschlecht; + pEntity.AlterAmStichtag = pDataContract.BereichBundDC.AlterAmStichtag; + pEntity.Haushaltsgrosse = pDataContract.BereichBundDC.Haushaltsgrosse; + pEntity.BerichtseinheitID = pDataContract.BereichBundDC.BerichtseinheitID; + pEntity.Unterbringungsart = pDataContract.BereichBundDC.Unterbringungsart; + pEntity.OrtDerEinrichtung = pDataContract.BereichBundDC.OrtDerEinrichtung; + pEntity.Angebot = pDataContract.BereichBundDC.Angebot; + pEntity.BeginnEinkommenssituation = pDataContract.BereichEinkommenUndArbeitDC.BeginnEinkommenssituation; + pEntity.EndeEinkommenssituation = pDataContract.BereichEinkommenUndArbeitDC.EndeEinkommenssituation; + pEntity.BeginnAufstockungEinkommen = pDataContract.BereichEinkommenUndArbeitDC.BeginnAufstockungEinkommen; + pEntity.EndeAufstockungEinkommen = pDataContract.BereichEinkommenUndArbeitDC.EndeAufstockungEinkommen; + pEntity.BeginnEigenesBankkonto = pDataContract.BereichEinkommenUndArbeitDC.BeginnEigenesBankkonto; + pEntity.EndeEigenesBankkonto = pDataContract.BereichEinkommenUndArbeitDC.EndeEigenesBankkonto; + pEntity.Uberschuldung = pDataContract.BereichEinkommenUndArbeitDC.Uberschuldung; + pEntity.Berufsabschluss = pDataContract.BereichEinkommenUndArbeitDC.Berufsabschluss; + pEntity.ErwerbsfahigkeitSinnSGB = pDataContract.BereichEinkommenUndArbeitDC.ErwerbsfahigkeitSinnSGB; + pEntity.BeginnBeschaftigungsstatus = pDataContract.BereichEinkommenUndArbeitDC.BeginnBeschaftigungsstatus; + pEntity.EndeBeschaftigungsstatus = pDataContract.BereichEinkommenUndArbeitDC.EndeBeschaftigungsstatus; + pEntity.DauerArbeitslosigkeit = pDataContract.BereichEinkommenUndArbeitDC.DauerArbeitslosigkeit; + pEntity.BeginnSozialeKontakte = pDataContract.BereichSozialeKontakteDC.BeginnSozialeKontakte; + pEntity.BeginnKontaktPartner = pDataContract.BereichSozialeKontakteDC.BeginnKontaktPartner; + pEntity.BeginnKontaktMindKinder = pDataContract.BereichSozialeKontakteDC.BeginnKontaktMindKinder; + pEntity.BeginnKontaktVolljahrKinderElternVerwandten = pDataContract.BereichSozialeKontakteDC.BeginnKontaktVolljahrKinderElternVerwandten; + pEntity.BeginnKontaktFreundenBekannten = pDataContract.BereichSozialeKontakteDC.BeginnKontaktFreundenBekannten; + pEntity.BeginnKontaktSelbsthilfe = pDataContract.BereichSozialeKontakteDC.BeginnKontaktSelbsthilfe; + pEntity.BeginnKontaktSonstige = pDataContract.BereichSozialeKontakteDC.BeginnKontaktSonstige; + pEntity.EndeSozialeKontakte = pDataContract.BereichSozialeKontakteDC.EndeSozialeKontakte; + pEntity.EndeKontaktPartner = pDataContract.BereichSozialeKontakteDC.EndeKontaktPartner; + pEntity.EndeKontaktMindKinder = pDataContract.BereichSozialeKontakteDC.EndeKontaktMindKinder; + pEntity.EndeKontaktVolljahrKinderElternVerwandten = pDataContract.BereichSozialeKontakteDC.EndeKontaktVolljahrKinderElternVerwandten; + pEntity.EndeKontaktFreundenBekannten = pDataContract.BereichSozialeKontakteDC.EndeKontaktFreundenBekannten; + pEntity.EndeKontaktSelbsthilfe = pDataContract.BereichSozialeKontakteDC.EndeKontaktSelbsthilfe; + pEntity.EndeKontaktSonstige = pDataContract.BereichSozialeKontakteDC.EndeKontaktSonstige; + pEntity.BeginnKrankenversicherung = pDataContract.BereichSozialeKontakteDC.BeginnKrankenversicherung; + pEntity.EndeKrankenversicherung = pDataContract.BereichSozialeKontakteDC.EndeKrankenversicherung; + pEntity.BeginnKontaktArzt = pDataContract.BereichSozialeKontakteDC.BeginnKontaktArzt; + pEntity.EndeKontaktArzt = pDataContract.BereichSozialeKontakteDC.EndeKontaktArzt; + pEntity.VorlageSchwerbehindertenausweises = pDataContract.BereichSozialeKontakteDC.VorlageSchwerbehindertenausweises; + pEntity.Bundesland = pDataContract.BereichSozialstrukturDC.Bundesland; + pEntity.ArtDesHilfeangebots = pDataContract.BereichSozialstrukturDC.ArtDesHilfeangebots; + pEntity.Betreuungsbeginn = pDataContract.BereichSozialstrukturDC.Betreuungsbeginn; + pEntity.Betreuungsende = pDataContract.BereichSozialstrukturDC.Betreuungsende; + pEntity.BetreuungsdauerInTagen = pDataContract.BereichSozialstrukturDC.BetreuungsdauerInTagen; + pEntity.ArtDerBeendigung = pDataContract.BereichSozialstrukturDC.ArtDerBeendigung; + pEntity.Geburtsdatum = pDataContract.BereichSozialstrukturDC.Geburtsdatum; + pEntity.Geschlechtidentitat = pDataContract.BereichSozialstrukturDC.Geschlechtidentitat; + pEntity.Staatsangehorigkeit = pDataContract.BereichSozialstrukturDC.Staatsangehorigkeit; + pEntity.Aufenthaltsstatus = pDataContract.BereichSozialstrukturDC.Aufenthaltsstatus; + pEntity.Migrationshintergrund = pDataContract.BereichSozialstrukturDC.Migrationshintergrund; + pEntity.HochsterSchulabschluss = pDataContract.BereichSozialstrukturDC.HochsterSchulabschluss; + pEntity.Familienstand = pDataContract.BereichSozialstrukturDC.Familienstand; + pEntity.Haushaltsstruktur = pDataContract.BereichSozialstrukturDC.Haushaltsstruktur; + pEntity.EigeneMindKinderAuserhalbHaushaltsstruktur = pDataContract.BereichSozialstrukturDC.EigeneMindKinderAuserhalbHaushaltsstruktur; + + if (pDataContract.BereichSozialstrukturDC.IsWohnungslosenhilfe.HasValue) + pEntity.IsWohnungslosenhilfe = pDataContract.BereichSozialstrukturDC.IsWohnungslosenhilfe.Value; + else + pEntity.IsWohnungslosenhilfe = true; + + return pEntity; + } + + protected override bool AreDCAndEntityEqual(CustomerWohnhilfeDC pDC, CustomerWohnhilfe pEntity) + { + if (pDC.Oid == null) + { + return false; + } + + return pDC.Oid == pEntity.Oid; + } + } +} diff --git a/Service/DCEntityMapper/FalldatenDC_CustomerFalldaten.cs b/Service/DCEntityMapper/FalldatenDC_CustomerFalldaten.cs deleted file mode 100644 index 84430c92b..000000000 --- a/Service/DCEntityMapper/FalldatenDC_CustomerFalldaten.cs +++ /dev/null @@ -1,125 +0,0 @@ -using System.Collections.Generic; -using System.Linq; - -using BeWo.Data.Access; -using BeWo.Data.Entities; - -using BS.Shared; -using BS.Shared.Core; -using BS.Shared.DataContracts; -using BS.Shared.DataContracts.Wohnhilfe; - -namespace BeWo.Service.DCEntityMapper -{ - public class FalldatenDC_CustomerFalldaten : AbstractIDCEntityMapper - { - public override FalldatenDC MergeWithDC(CustomerFalldaten pEntity, FalldatenDC pDataContract) - { - pDataContract.EigenesAktenzeichen = pEntity.EigenesAktenzeichen; - pDataContract.Auftragseingang = pEntity.Auftragseingang; - pDataContract.Tagessatze = pEntity.Tagessatze; - pDataContract.Tagessatzhohe = pEntity.Tagessatzhohe; - pDataContract.HoheDerGeldstrafe = pEntity.HoheDerGeldstrafe; - pDataContract.ZuLeistendeArbeitsstunden = pEntity.ZuLeistendeArbeitsstunden; - pDataContract.Hinweis = pEntity.Hinweis; - pDataContract.Termin = pEntity.Termin; - pDataContract.FalldatenBearbeitungsstatus = pEntity.FalldatenBearbeitungsstatus; - pDataContract.Auftragsruckgabe = pEntity.Auftragsruckgabe; - pDataContract.Verlauf = pEntity.Verlauf; - pDataContract.AbgeleisteteStunden = pEntity.AbgeleisteteStunden; - pDataContract.ErsparteHafttage = pEntity.ErsparteHafttage; - pDataContract.GeleisteteRatenzahlung = pEntity.GeleisteteRatenzahlung; - pDataContract.Bemerkung = pEntity.Bemerkung; - pDataContract.GeleisteteEinmalzahlung = pEntity.GeleisteteEinmalzahlung; - pDataContract.GrundArbeitsunfahig = pEntity.GrundArbeitsunfahig; - pDataContract.GrundSuchtproblem = pEntity.GrundSuchtproblem; - pDataContract.GrundPsychischeProbleme = pEntity.GrundPsychischeProbleme; - pDataContract.GrundKeineMotivation = pEntity.GrundKeineMotivation; - pDataContract.GrundInHaft = pEntity.GrundInHaft; - pDataContract.GrundUnbekannt = pEntity.GrundUnbekannt; - pDataContract.GrundKeinKontakt = pEntity.GrundKeinKontakt; - pDataContract.GrundNichtAngetreten = pEntity.GrundNichtAngetreten; - pDataContract.GrundAbbruchDerTatigkeit = pEntity.GrundAbbruchDerTatigkeit; - pDataContract.GrundWiderruf = pEntity.GrundWiderruf; - pDataContract.Grund459StPO = pEntity.Grund459StPO; - pDataContract.GrundAusbleibenDerZahlung = pEntity.GrundAusbleibenDerZahlung; - pDataContract.BesonderheitMehrfacheBeauftragung = pEntity.BesonderheitMehrfacheBeauftragung; - pDataContract.BesonderheitMehrfacheVermittlung = pEntity.BesonderheitMehrfacheVermittlung; - pDataContract.BesonderheitVermittlungAusHaft = pEntity.BesonderheitVermittlungAusHaft; - pDataContract.BesonderheitDurchBGBWAufgesucht = pEntity.BesonderheitDurchBGBWAufgesucht; - - if (pEntity.Auftragsherkunft != null) - { - pDataContract.Auftragsherkunft = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(pEntity.Auftragsherkunft); - } - if (pEntity.Vermittlungsgrundlage != null) - { - pDataContract.Vermittlungsgrundlage = MapperFactory.ValueListEntryDC_ValueListEntry.MapToNewDC(pEntity.Vermittlungsgrundlage); - } - - - return pDataContract; - } - - public override CustomerFalldaten MergeWithEntity(FalldatenDC pDataContract, CustomerFalldaten pEntity) - { - pEntity.EigenesAktenzeichen = pDataContract.EigenesAktenzeichen; - pEntity.Auftragseingang = pDataContract.Auftragseingang; - pEntity.Tagessatze = pDataContract.Tagessatze; - pEntity.Tagessatzhohe = pDataContract.Tagessatzhohe; - pEntity.HoheDerGeldstrafe = pDataContract.HoheDerGeldstrafe; - pEntity.ZuLeistendeArbeitsstunden = pDataContract.ZuLeistendeArbeitsstunden; - pEntity.Hinweis = pDataContract.Hinweis; - pEntity.Termin = pDataContract.Termin; - pEntity.FalldatenBearbeitungsstatus = pDataContract.FalldatenBearbeitungsstatus; - pEntity.Auftragsruckgabe = pDataContract.Auftragsruckgabe; - pEntity.Verlauf = pDataContract.Verlauf; - pEntity.AbgeleisteteStunden = pDataContract.AbgeleisteteStunden; - pEntity.ErsparteHafttage = pDataContract.ErsparteHafttage; - pEntity.GeleisteteRatenzahlung = pDataContract.GeleisteteRatenzahlung; - pEntity.Bemerkung = pDataContract.Bemerkung; - pEntity.GeleisteteEinmalzahlung = pDataContract.GeleisteteEinmalzahlung; - pEntity.GrundArbeitsunfahig = pDataContract.GrundArbeitsunfahig; - pEntity.GrundSuchtproblem = pDataContract.GrundSuchtproblem; - pEntity.GrundPsychischeProbleme = pDataContract.GrundPsychischeProbleme; - pEntity.GrundKeineMotivation = pDataContract.GrundKeineMotivation; - pEntity.GrundInHaft = pDataContract.GrundInHaft; - pEntity.GrundUnbekannt = pDataContract.GrundUnbekannt; - pEntity.GrundKeinKontakt = pDataContract.GrundKeinKontakt; - pEntity.GrundNichtAngetreten = pDataContract.GrundNichtAngetreten; - pEntity.GrundAbbruchDerTatigkeit = pDataContract.GrundAbbruchDerTatigkeit; - pEntity.GrundWiderruf = pDataContract.GrundWiderruf; - pEntity.Grund459StPO = pDataContract.Grund459StPO; - pEntity.GrundAusbleibenDerZahlung = pDataContract.GrundAusbleibenDerZahlung; - pEntity.BesonderheitMehrfacheBeauftragung = pDataContract.BesonderheitMehrfacheBeauftragung; - pEntity.BesonderheitMehrfacheVermittlung = pDataContract.BesonderheitMehrfacheVermittlung; - pEntity.BesonderheitVermittlungAusHaft = pDataContract.BesonderheitVermittlungAusHaft; - pEntity.BesonderheitDurchBGBWAufgesucht = pDataContract.BesonderheitDurchBGBWAufgesucht; - - if (pDataContract.Auftragsherkunft == null) - { - pEntity.Auftragsherkunft = null; - } - else if (pEntity.Auftragsherkunft == null || pEntity.Auftragsherkunft.Oid != pDataContract.Auftragsherkunft.ValueListEntryOid) - { - pEntity.Auftragsherkunft = DAOFactory.GenericDAO.LoadByID(pDataContract.Auftragsherkunft.ValueListEntryOid.Value); - } - - if (pDataContract.Vermittlungsgrundlage == null) - { - pEntity.Vermittlungsgrundlage = null; - } - else if (pEntity.Vermittlungsgrundlage == null || pEntity.Vermittlungsgrundlage.Oid != pDataContract.Vermittlungsgrundlage.ValueListEntryOid) - { - pEntity.Vermittlungsgrundlage = DAOFactory.GenericDAO.LoadByID(pDataContract.Vermittlungsgrundlage.ValueListEntryOid.Value); - } - - return pEntity; - } - - protected override bool AreDCAndEntityEqual(FalldatenDC pDC, CustomerFalldaten pEntity) - { - throw new System.NotImplementedException(); - } - } -} diff --git a/Service/DCEntityMapper/MapperFactory.cs b/Service/DCEntityMapper/MapperFactory.cs index c8855638e..928e205bc 100644 --- a/Service/DCEntityMapper/MapperFactory.cs +++ b/Service/DCEntityMapper/MapperFactory.cs @@ -302,10 +302,12 @@ namespace BeWo.Service.DCEntityMapper private static WohneinheitBelegungDC_WohneinheitBelegung _WohneinheitBelegungDC_WohneinheitBelegung; - private static FalldatenDC_CustomerFalldaten _FalldatenDC_CustomerFalldaten; - private static ImageDC_Image _ImageDC_Image; + private static CustomerVermittlungArbeitDC_CustomerVermittlungArbeit _CustomerVermittlungArbeitDC_CustomerVermittlungArbeit; + + private static CustomerWohnhilfeDC_CustomerWohnhilfe _CustomerWohnhilfeDC_CustomerWohnhilfe; + public static MedRecordDC_MedRecord MedRecordDC_MedRecord => _MedRecordDC_MedRecord ?? (_MedRecordDC_MedRecord = new MedRecordDC_MedRecord()); @@ -763,10 +765,13 @@ namespace BeWo.Service.DCEntityMapper public static WohneinheitBelegungDC_WohneinheitBelegung WohneinheitBelegungDC_WohneinheitBelegung => _WohneinheitBelegungDC_WohneinheitBelegung ?? (_WohneinheitBelegungDC_WohneinheitBelegung = new WohneinheitBelegungDC_WohneinheitBelegung()); - public static FalldatenDC_CustomerFalldaten FalldatenDC_CustomerFalldaten => - _FalldatenDC_CustomerFalldaten ?? (_FalldatenDC_CustomerFalldaten = new FalldatenDC_CustomerFalldaten()); - public static ImageDC_Image ImageDC_Image => _ImageDC_Image ?? (_ImageDC_Image = new ImageDC_Image()); + + public static CustomerVermittlungArbeitDC_CustomerVermittlungArbeit CustomerVermittlungArbeitDC_CustomerVermittlungArbeit => + _CustomerVermittlungArbeitDC_CustomerVermittlungArbeit ?? (_CustomerVermittlungArbeitDC_CustomerVermittlungArbeit = new CustomerVermittlungArbeitDC_CustomerVermittlungArbeit()); + + public static CustomerWohnhilfeDC_CustomerWohnhilfe CustomerWohnhilfeDC_CustomerWohnhilfe => + _CustomerWohnhilfeDC_CustomerWohnhilfe ?? (_CustomerWohnhilfeDC_CustomerWohnhilfe = new CustomerWohnhilfeDC_CustomerWohnhilfe()); } } \ No newline at end of file diff --git a/Service/Plugins/AiService.cs b/Service/Plugins/AiService.cs index e811923f4..c3836596c 100644 --- a/Service/Plugins/AiService.cs +++ b/Service/Plugins/AiService.cs @@ -144,6 +144,11 @@ namespace BeWo.Service.Plugins return context.ToString(); } + + internal AiSettingsDC GetAiSettings(int settingsId) + { + throw new NotImplementedException(); + } } } \ No newline at end of file diff --git a/Service/Plugins/CustomerService.cs b/Service/Plugins/CustomerService.cs index de08adaf1..eda7c19b7 100644 --- a/Service/Plugins/CustomerService.cs +++ b/Service/Plugins/CustomerService.cs @@ -808,6 +808,7 @@ namespace BeWo.Service.Plugins foreach (CostBearer2SupportConcept iCBRel in pEntity.CostBearer2SupportConceptList) { + dc.DefaultBrush = GetDefaultBrush(pEntity, iCBRel); if (!dc.CostBearerRelOids.Contains(iCBRel.Oid.Value)) { var costBearer = new CompactCostBearerDC(); @@ -857,6 +858,12 @@ namespace BeWo.Service.Plugins return System.Windows.Media.Brushes.Red.ToString(); } + protected virtual string GetDefaultBrush(SupportConcept sc, CostBearer2SupportConcept c2s) + { + //Nur zum Überschreiben nötig + return null; + } + private Dictionary CreateTeamOidDict(long employeeOid) { var teamOids = new Dictionary(); @@ -1158,6 +1165,7 @@ namespace BeWo.Service.Plugins dc.NearlyExpiredBrush = GetBrushForNearlyExpiredSupportConcept(); dc.ExpiredBrush = GetBrushForExpiredSupportConcept(); + dc.DefaultBrush = GetDefaultBrush(sc, cb2sc); var costBearer = new CompactCostBearerDC(); diff --git a/Service/Service.csproj b/Service/Service.csproj index 5d82f25a8..2e33fead2 100644 --- a/Service/Service.csproj +++ b/Service/Service.csproj @@ -227,8 +227,9 @@ + + - diff --git a/Service/ServiceContracts/IOperationsService.cs b/Service/ServiceContracts/IOperationsService.cs index f87cc6f3b..a76d11145 100644 --- a/Service/ServiceContracts/IOperationsService.cs +++ b/Service/ServiceContracts/IOperationsService.cs @@ -1379,5 +1379,10 @@ namespace BeWo.Service.ServiceContracts [FaultContract(typeof(BeWoFault))] [OperationContract] AiChatDC CreateAiQueryForObjects(AiChatDC acdc, long objectTid); + + [FaultContract(typeof(BeWoFault))] + [OperationContract] + AiSettingsDC GetAiSettings(int settingsId); + } } \ No newline at end of file diff --git a/Service/ServiceImplementations/OperationsServiceImp.cs b/Service/ServiceImplementations/OperationsServiceImp.cs index 68c733cc8..e61f45a22 100644 --- a/Service/ServiceImplementations/OperationsServiceImp.cs +++ b/Service/ServiceImplementations/OperationsServiceImp.cs @@ -8963,6 +8963,21 @@ namespace BeWo.Service.ServiceImplementations throw Utils.CreateBeWoFaultException(e); } } + + public AiSettingsDC GetAiSettings(int settingsId) + { + try + { + var s = PluginLoader.FindClass(); + + return s.GetAiSettings(settingsId); + + } + catch (Exception e) + { + throw Utils.CreateBeWoFaultException(e); + } + } } public class ServiceRecord2SignatureStates diff --git a/Shared/BeWoEntityEnums.cs b/Shared/BeWoEntityEnums.cs index c24829b2b..556892cea 100644 --- a/Shared/BeWoEntityEnums.cs +++ b/Shared/BeWoEntityEnums.cs @@ -174,9 +174,11 @@ namespace BS.Shared GkvTransferprotokoll = 167, Wohneinheit = 168, WohneinheitBelegung = 169, - CustomerFalldaten = 170, + CustomerGemeinnutzigeArbeit = 170, Image = 171, - TwoFactorCode = 172 + TwoFactorCode = 172, + CustomerWohnhilfe = 173, + AiSettings = 174 } public enum SystemEntryID diff --git a/Shared/Core/EnumTranslations.cs b/Shared/Core/EnumTranslations.cs index 23633bc47..1a033df48 100644 --- a/Shared/Core/EnumTranslations.cs +++ b/Shared/Core/EnumTranslations.cs @@ -890,9 +890,9 @@ namespace BS.Shared.Core var nicht_abgefragt = "";// "nicht abgefragt"; - dict.Add(FalldatenBearbeitungsstatus.NoProgress, "Keine Bearbeitung"); - dict.Add(FalldatenBearbeitungsstatus.InProgress, "In Bearbeitung"); - dict.Add(FalldatenBearbeitungsstatus.Finished, "Fertig"); + dict.Add(CustomerVermittlungBearbeitungsstatus.NoProgress, "Keine Bearbeitung"); + dict.Add(CustomerVermittlungBearbeitungsstatus.InProgress, "In Bearbeitung"); + dict.Add(CustomerVermittlungBearbeitungsstatus.Finished, "Fertig"); dict.Add(Verbandszugehorigkeit.Arbeiterwohlfahrt, "Arbeiterwohlfahrt"); dict.Add(Verbandszugehorigkeit.DeutscherCaritasverband, "Deutscher Caritasverband"); diff --git a/Shared/Core/Utils.cs b/Shared/Core/Utils.cs index d7cb73579..ce20f6383 100644 --- a/Shared/Core/Utils.cs +++ b/Shared/Core/Utils.cs @@ -1118,6 +1118,27 @@ namespace BS.Shared.Core return string.Format("{0:n" + decimalPlaces + "} {1}", dValue, SizeSuffixes[i]); } + + + public static int GetAge(DateTime birthday) + => GetAge(birthday, DateTime.Today); + public static int GetAge(DateTime birthday, DateTime compareTo) + { + if (compareTo <= birthday) + return -1; + + // https://stackoverflow.com/a/1595311 + int age = compareTo.Year - birthday.Year; + + // For leap years we need this + if (birthday > compareTo.AddYears(-age)) + age--; + // Don't use: + // if (birthDate.AddYears(age) > now) + // age--; + + return age; + } } public struct NullCompareResult diff --git a/Shared/DataContracts/AiSettingsDC.cs b/Shared/DataContracts/AiSettingsDC.cs new file mode 100644 index 000000000..caf1b6431 --- /dev/null +++ b/Shared/DataContracts/AiSettingsDC.cs @@ -0,0 +1,21 @@ +using System.Runtime.Serialization; + +namespace BS.Shared.DataContracts +{ + [DataContract] + public partial class AiSettingsDC : IDataContract + { + [DataMember] + public long? Oid { get; set; } + + [DataMember] + public long? Version { get; set; } + + [DataMember] + public int SettingsType { get; set; } + + [DataMember] + public string Settings { get; set; } + + } +} \ No newline at end of file diff --git a/Shared/DataContracts/Compact/ClientPartials/CompactSupportConceptDC.cs b/Shared/DataContracts/Compact/ClientPartials/CompactSupportConceptDC.cs index 4036e9e13..8e2f1e2d2 100644 --- a/Shared/DataContracts/Compact/ClientPartials/CompactSupportConceptDC.cs +++ b/Shared/DataContracts/Compact/ClientPartials/CompactSupportConceptDC.cs @@ -215,7 +215,12 @@ namespace BS.Shared.DataContracts.Compact } else { - return new SolidColorBrush(Color.FromRgb(160, 160, 160)); + var color = Color.FromRgb(160, 160, 160); + if (!String.IsNullOrEmpty(this.DefaultBrush)) + { + color = (Color)ColorConverter.ConvertFromString(this.DefaultBrush); + } + return new SolidColorBrush(color); } } } diff --git a/Shared/DataContracts/Compact/CompactSupportConceptDC.cs b/Shared/DataContracts/Compact/CompactSupportConceptDC.cs index e93a0f2f7..17b6e6b57 100644 --- a/Shared/DataContracts/Compact/CompactSupportConceptDC.cs +++ b/Shared/DataContracts/Compact/CompactSupportConceptDC.cs @@ -75,6 +75,7 @@ namespace BS.Shared.DataContracts.Compact public string NearlyExpiredBrush { get; set; } [DataMember] public string ExpiredBrush { get; set; } - + [DataMember] + public string DefaultBrush { get; set; } } } \ No newline at end of file diff --git a/Shared/DataContracts/CustomerDC.cs b/Shared/DataContracts/CustomerDC.cs index 196a5e0ca..899672416 100644 --- a/Shared/DataContracts/CustomerDC.cs +++ b/Shared/DataContracts/CustomerDC.cs @@ -82,8 +82,7 @@ namespace BS.Shared.DataContracts [DataMember] public string HealthInsurance { get; set; } [DataMember] public string InsuranceNumber { get; set; } [DataMember] public string VersichertenStatus { get; set; } - [DataMember] public FalldatenDC FalldatenDC { get; set; } [DataMember] public List CustomerWohnhilfeDC { get; set; } - [DataMember] public List CustomerGemeinnutzigeArbeitDC { get; set; } + [DataMember] public List CustomerVermittlungArbeitDC { get; set; } } } \ No newline at end of file diff --git a/Shared/DataContracts/CustomerGemeinnutzigeArbeitDC.cs b/Shared/DataContracts/CustomerGemeinnutzigeArbeitDC.cs deleted file mode 100644 index 3df18154b..000000000 --- a/Shared/DataContracts/CustomerGemeinnutzigeArbeitDC.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace BS.Shared.DataContracts -{ - public class CustomerGemeinnutzigeArbeitDC : BeWoDataContract - { - } -} diff --git a/Shared/DataContracts/CustomerVermittlungArbeitDC.cs b/Shared/DataContracts/CustomerVermittlungArbeitDC.cs new file mode 100644 index 000000000..1674830bd --- /dev/null +++ b/Shared/DataContracts/CustomerVermittlungArbeitDC.cs @@ -0,0 +1,51 @@ +using System; +using System.Runtime.Serialization; + +namespace BS.Shared.DataContracts +{ + [DataContract] + public class CustomerVermittlungArbeitDC : BeWoDataContract + { + [DataMember] public string EigenesAktenzeichen { get; set; } + [DataMember] public DateTime? Auftragseingang { get; set; } + [DataMember] public ValueListEntryDC Auftragsherkunft { get; set; } + [DataMember] public ValueListEntryDC Vermittlungsgrundlage { get; set; } + [DataMember] public decimal? Tagessatze { get; set; } + [DataMember] public decimal? Tagessatzhohe { get; set; } + [DataMember] public decimal? HoheDerGeldstrafe { get; set; } + [DataMember] public decimal? ZuLeistendeArbeitsstunden { get; set; } + [DataMember] public string Hinweis { get; set; } + [DataMember] public DateTime? Termin { get; set; } + [DataMember] public CustomerVermittlungBearbeitungsstatus? CustomerVermittlungBearbeitungsstatus { get; set; } + [DataMember] public string Auftragsruckgabe { get; set; } + [DataMember] public string Verlauf { get; set; } + [DataMember] public decimal? AbgeleisteteStunden { get; set; } + [DataMember] public decimal? ErsparteHafttage { get; set; } + [DataMember] public decimal? GeleisteteRatenzahlung { get; set; } + [DataMember] public string Bemerkung { get; set; } + [DataMember] public decimal? GeleisteteEinmalzahlung { get; set; } + [DataMember] public bool GrundArbeitsunfahig { get; set; } + [DataMember] public bool GrundSuchtproblem { get; set; } + [DataMember] public bool GrundPsychischeProbleme { get; set; } + [DataMember] public bool GrundKeineMotivation { get; set; } + [DataMember] public bool GrundInHaft { get; set; } + [DataMember] public bool GrundUnbekannt { get; set; } + [DataMember] public bool GrundKeinKontakt { get; set; } + [DataMember] public bool GrundNichtAngetreten { get; set; } + [DataMember] public bool GrundAbbruchDerTatigkeit { get; set; } + [DataMember] public bool GrundWiderruf { get; set; } + [DataMember] public bool Grund459StPO { get; set; } + [DataMember] public bool GrundAusbleibenDerZahlung { get; set; } + [DataMember] public bool BesonderheitMehrfacheBeauftragung { get; set; } + [DataMember] public bool BesonderheitMehrfacheVermittlung { get; set; } + [DataMember] public bool BesonderheitVermittlungAusHaft { get; set; } + [DataMember] public bool BesonderheitDurchBGBWAufgesucht { get; set; } + } + + public enum CustomerVermittlungBearbeitungsstatus + { + NoProgress, + InProgress, + Finished + } +} diff --git a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichBundDC.cs b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichBundDC.cs index 15b93dc35..2062a60b3 100644 --- a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichBundDC.cs +++ b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichBundDC.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BS.Shared.DataContracts.Wohnhilfe { - public class CustomerWohnhilfeBereichBundDC : BeWoDataContract + public class CustomerWohnhilfeBereichBundDC : IDataContract { [DataMember] public Verbandszugehorigkeit? Verbandszugehorigkeit { get; set; } [DataMember] public Geschlecht? Geschlecht { get; set; } diff --git a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitDC.cs b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitDC.cs index 3a2f44482..b68c8e713 100644 --- a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitDC.cs +++ b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichEinkommenUndArbeitDC.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BS.Shared.DataContracts.Wohnhilfe { - public class CustomerWohnhilfeBereichEinkommenUndArbeitDC : BeWoDataContract + public class CustomerWohnhilfeBereichEinkommenUndArbeitDC : IDataContract { [DataMember] public Einkommenssituation BeginnEinkommenssituation { get; set; } [DataMember] public Einkommenssituation EndeEinkommenssituation { get; set; } diff --git a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteDC.cs b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteDC.cs index 1915dde09..0b5f36c64 100644 --- a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteDC.cs +++ b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialeKontakteDC.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BS.Shared.DataContracts.Wohnhilfe { - public class CustomerWohnhilfeBereichSozialeKontakteDC : BeWoDataContract + public class CustomerWohnhilfeBereichSozialeKontakteDC : IDataContract { [DataMember] public WohnhilfeBoolData BeginnSozialeKontakte { get; set; } [DataMember] public bool BeginnKontaktPartner { get; set; } diff --git a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturDC.cs b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturDC.cs index 158293a5f..cae9af8bf 100644 --- a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturDC.cs +++ b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeBereichSozialstrukturDC.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace BS.Shared.DataContracts.Wohnhilfe { - public class CustomerWohnhilfeBereichSozialstrukturDC : BeWoDataContract + public class CustomerWohnhilfeBereichSozialstrukturDC : IDataContract { [DataMember] public Bundesland? Bundesland { get; set; } [DataMember] public bool? IsWohnungslosenhilfe { get; set; } diff --git a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeDC.cs b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeDC.cs index 6ef4950d5..0853697a8 100644 --- a/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeDC.cs +++ b/Shared/DataContracts/Wohnhilfe/CustomerWohnhilfeDC.cs @@ -12,7 +12,7 @@ namespace BS.Shared.DataContracts.Wohnhilfe { public class CustomerWohnhilfeDC : BeWoDataContract { - [DataMember] public string Dispalyname { get; set; } + [DataMember] public string Displayname { get; set; } [DataMember] public CustomerWohnhilfeBereichBundDC BereichBundDC { get; set; } [DataMember] public CustomerWohnhilfeBereichEinkommenUndArbeitDC BereichEinkommenUndArbeitDC { get; set; } [DataMember] public CustomerWohnhilfeBereichSozialeKontakteDC BereichSozialeKontakteDC { get; set; } diff --git a/Shared/FalldatenDC.cs b/Shared/FalldatenDC.cs deleted file mode 100644 index 7f6ed89cb..000000000 --- a/Shared/FalldatenDC.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; - -using BS.Shared.Core; -using BS.Shared.DataContracts.Compact; - -namespace BS.Shared.DataContracts -{ - public enum FalldatenBearbeitungsstatus - { - NoProgress, - InProgress, - Finished - } - - [DataContract] - public class FalldatenDC : IDataContract - { - public bool IsNew { get; set; } - - public FalldatenDC() - { - - } - - public FalldatenDC(bool isNew) - { - IsNew = isNew; - } - - [DataMember] public string EigenesAktenzeichen { get; set; } - [DataMember] public DateTime? Auftragseingang { get; set; } - [DataMember] public ValueListEntryDC Auftragsherkunft { get; set; } - [DataMember] public ValueListEntryDC Vermittlungsgrundlage { get; set; } - [DataMember] public decimal? Tagessatze { get; set; } - [DataMember] public decimal? Tagessatzhohe { get; set; } - [DataMember] public decimal? HoheDerGeldstrafe { get; set; } - [DataMember] public decimal? ZuLeistendeArbeitsstunden { get; set; } - [DataMember] public string Hinweis { get; set; } - [DataMember] public DateTime? Termin { get; set; } - [DataMember] public FalldatenBearbeitungsstatus? FalldatenBearbeitungsstatus { get; set; } - [DataMember] public string Auftragsruckgabe { get; set; } - [DataMember] public string Verlauf { get; set; } - [DataMember] public decimal? AbgeleisteteStunden { get; set; } - [DataMember] public decimal? ErsparteHafttage { get; set; } - [DataMember] public decimal? GeleisteteRatenzahlung { get; set; } - [DataMember] public string Bemerkung { get; set; } - [DataMember] public decimal? GeleisteteEinmalzahlung { get; set; } - - [DataMember] public bool GrundArbeitsunfahig { get; set; } - [DataMember] public bool GrundSuchtproblem { get; set; } - [DataMember] public bool GrundPsychischeProbleme { get; set; } - [DataMember] public bool GrundKeineMotivation { get; set; } - [DataMember] public bool GrundInHaft { get; set; } - [DataMember] public bool GrundUnbekannt { get; set; } - [DataMember] public bool GrundKeinKontakt { get; set; } - [DataMember] public bool GrundNichtAngetreten { get; set; } - [DataMember] public bool GrundAbbruchDerTatigkeit { get; set; } - [DataMember] public bool GrundWiderruf { get; set; } - [DataMember] public bool Grund459StPO { get; set; } - [DataMember] public bool GrundAusbleibenDerZahlung { get; set; } - - [DataMember] public bool BesonderheitMehrfacheBeauftragung { get; set; } - [DataMember] public bool BesonderheitMehrfacheVermittlung { get; set; } - [DataMember] public bool BesonderheitVermittlungAusHaft { get; set; } - [DataMember] public bool BesonderheitDurchBGBWAufgesucht { get; set; } - } -} \ No newline at end of file diff --git a/Shared/Shared.csproj b/Shared/Shared.csproj index 7c000e8cd..81c037dc9 100644 --- a/Shared/Shared.csproj +++ b/Shared/Shared.csproj @@ -161,6 +161,7 @@ + @@ -170,14 +171,13 @@ - + -