using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using BS.Shared.DataContracts; using BS.Shared.Extensions; using BeWo.Core; using BS.Shared.Core; using BS.Shared.DataContracts.Compact; using System.Windows.Media; namespace BeWo.ViewModel { public class MandatorVM : AbstractDCMapperVM { public static string PropertyName_BeWoClientType = "BeWoClientType"; public static string PropertyName_ClientId = "ClientId"; public static string PropertyName_Country = "Country"; public static string PropertyName_Name = "Name"; public static string PropertyName_PostalCode = "PostalCode"; public static string PropertyName_Settings = "Settings"; public static string PropertyName_State = "State"; public static string PropertyName_Street = "Street"; public static string PropertyName_Town = "Town"; public static string PropertyName_Apikey = "Apikey"; public static string PropertyName_TimeUntilUILock = "TimeUntilUILock"; public static string PropertyName_HilfeplanAuslaufAuswahl = "HilfeplanAuslaufAuswahl"; public static string PropertyName_AnzTageZeiterfassErfolgt = "AnzTageZeiterfassErfolgt"; public static string PropertyName_ZeiterfassungsSchwellwert = "ZeiterfassungsSchwellwert"; public static string PropertyName_IKLeistungserbringer = nameof(IKLeistungserbringer); private long _BeWoClientType; private string _ClientId; private string _Country; private string _Name; private string _Website; private string _PostalCode; private string _Settings; private string _State; private string _Street; private string _Town; private int _TimeUntilUILock; private int _HilfeplanAuslaufAuswahl; private int _AnzTageZeiterfassErfolgt; private int _ZeiterfassungsSchwellwert; private BindingList _InvoiceNumberList; private InvoiceNumberVM _InvoiceNumber; private string _Apikey; private string _IKLeistungserbringer; private string _AccountNumber; private string _BankName; private string _BankCode; private string _Bic; private string _IBAN; private CompactEmployeeDC _SoziotherapieAnsprechpartner; private ImageVM _Logo; private string _ColorWaitTooLongStr; private string _ColorSendUrbelegeStr; private SolidColorBrush _ColorWaitTooLong; private SolidColorBrush _ColorSendUrbelege; private bool _ShowGkvBzEinzel; private bool _ShowGkvBzUrbelege; public MandatorVM(IList invoiceNumberList, MandatorDC pDC) : base(pDC, true) { _InvoiceNumberList = new BindingList(invoiceNumberList); if (_InvoiceNumberList.Count > 0) { _InvoiceNumber = _InvoiceNumberList[0]; } } public BindingList InvoiceNumberList { get { return _InvoiceNumberList; } } public InvoiceNumberVM InvoiceNumber { get { return _InvoiceNumber; } } public long BeWoClientType { get { return this._BeWoClientType; } set { if (this.AreDifferent(this._BeWoClientType, value)) { this._BeWoClientType = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.BeWoClientType, value), PropertyName_BeWoClientType); this.FirePropertyChanged(PropertyName_BeWoClientType); } } } public string ClientId { get { return this._ClientId; } set { if (this.AreDifferent(this._ClientId, value)) { this._ClientId = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.ClientId, value), PropertyName_ClientId); this.FirePropertyChanged(PropertyName_ClientId); } } } public string Country { get { return this._Country; } set { if (this.AreDifferent(this._Country, value)) { this._Country = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.Country, value), PropertyName_Country); this.FirePropertyChanged(PropertyName_Country); } } } public bool IsServiceRecordNoticeMandatory { get { return BeWoApp.AppSettings.IsServiceRecordNoticeMandatory; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsServiceRecordNoticeMandatory, value)) { BeWoApp.AppSettings.IsServiceRecordNoticeMandatory = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsServiceRecordNoticeMandatory", value ? "1" : "0"); } } } public bool IsServiceRecordGoalMandatory { get { return BeWoApp.AppSettings.IsServiceRecordGoalMandatory; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsServiceRecordGoalMandatory, value)) { BeWoApp.AppSettings.IsServiceRecordGoalMandatory = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsServiceRecordGoalMandatory", value ? "1" : "0"); } } } public bool IsServiceRecordRatingMandatory { get { return BeWoApp.AppSettings.IsServiceRecordRatingMandatory; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsServiceRecordRatingMandatory, value)) { BeWoApp.AppSettings.IsServiceRecordRatingMandatory = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsServiceRecordRatingMandatory", value ? "1" : "0"); } } } public bool ShowServicesOverviewHalfOrWholeMonth { get { return BeWoApp.AppSettings.ShowServicesOverviewHalfOrWholeMonth; } set { if (this.AreDifferent(BeWoApp.AppSettings.ShowServicesOverviewHalfOrWholeMonth, value)) { BeWoApp.AppSettings.ShowServicesOverviewHalfOrWholeMonth = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "ShowServicesOverviewHalfOrWholeMonth", value ? "1" : "0"); } } } public bool FilterGroupServiceCategories { get { return BeWoApp.AppSettings.FilterGroupServiceCategories; } set { if (this.AreDifferent(BeWoApp.AppSettings.FilterGroupServiceCategories, value)) { BeWoApp.AppSettings.FilterGroupServiceCategories = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "FilterGroupServiceCategories", value ? "1" : "0"); } } } public bool IsPasswordSecurityActiv { get { return BeWoApp.AppSettings.IsPasswordSecurityActiv; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsPasswordSecurityActiv, value)) { BeWoApp.AppSettings.IsPasswordSecurityActiv = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsPasswordSecurityActiv", value ? "1" : "0"); } } } public bool IsEndDateVisible { get { return BeWoApp.AppSettings.IsEndDateVisible; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsEndDateVisible, value)) { BeWoApp.AppSettings.IsEndDateVisible = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsEndDateVisible", value ? "1" : "0"); } } } public bool IsOnlyYearMonthVisible { get { return BeWoApp.AppSettings.IsOnlyYearMonthVisible; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsOnlyYearMonthVisible, value)) { BeWoApp.AppSettings.IsOnlyYearMonthVisible = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsOnlyYearMonthVisible", value ? "1" : "0"); } } } public bool IsZeiterfassDateNormal { get { //if (IsEndDateVisible == false && IsOnlyYearMonthVisible == false && BeWoApp.AppSettings.IsZeiterfassDateNormal == false) //{ // BeWoApp.AppSettings.IsZeiterfassDateNormal = true; //} return BeWoApp.AppSettings.IsZeiterfassDateNormal; } set { if (this.AreDifferent(BeWoApp.AppSettings.IsZeiterfassDateNormal, value)) { BeWoApp.AppSettings.IsZeiterfassDateNormal = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "IsZeiterfassDateNormal", value ? "1" : "0"); } } } public String EinheitZeiterfassung { get { return BeWoApp.AppSettings.EinheitZeiterfassung; } set { if (this.AreDifferent(BeWoApp.AppSettings.EinheitZeiterfassung, value)) { BeWoApp.AppSettings.EinheitZeiterfassung = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, SettingsKeys.EinheitZeiterfassung, value); } } } public int MaxDaysEditServiceRecordsAllowed { get { return BeWoApp.AppSettings.MaxDaysEditServiceRecordsAllowed; } set { if (this.AreDifferent(BeWoApp.AppSettings.MaxDaysEditServiceRecordsAllowed, value)) { BeWoApp.AppSettings.MaxDaysEditServiceRecordsAllowed = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "MaxDaysEditServiceRecordsAllowed", value.ToString()); } } } public bool EnableArbeitszeiterfassung { get { return BeWoApp.AppSettings.EnableArbeitszeiterfassung; } set { if (this.AreDifferent(BeWoApp.AppSettings.EnableArbeitszeiterfassung, value)) { BeWoApp.AppSettings.EnableArbeitszeiterfassung = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "EnableArbeitszeiterfassung", value ? "1" : "0"); } } } public bool EnableAutomaticPauses { get { return BeWoApp.AppSettings.EnableAutomaticPauses; } set { if (this.AreDifferent(BeWoApp.AppSettings.EnableAutomaticPauses, value)) { BeWoApp.AppSettings.EnableAutomaticPauses = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "EnableAutomaticPauses", value ? "1" : "0"); } } } public int AnzTageArbeitszeiterfassungErfolgt { get { return BeWoApp.AppSettings.AnzTageArbeitszeiterfassungErfolgt; } set { if (this.AreDifferent(BeWoApp.AppSettings.AnzTageArbeitszeiterfassungErfolgt, value)) { BeWoApp.AppSettings.AnzTageArbeitszeiterfassungErfolgt = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, SettingsKeys.AnzTageArbeitszeiterfassungErfolgt, value.ToString()); } } } public DateTime? StartStundenkonto { get { return BeWoApp.AppSettings.StartStundenkonto; } set { if (this.AreDifferent(BeWoApp.AppSettings.StartStundenkonto, value)) { BeWoApp.AppSettings.StartStundenkonto = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, SettingsKeys.StartStundenkonto, value != null ? String.Format("{0:dd.MM.yyyy}", value) : "null"); } } } public bool EnableRestTimeWarning { get { return BeWoApp.AppSettings.EnableRestTimeWarning; } set { if (this.AreDifferent(BeWoApp.AppSettings.EnableRestTimeWarning, value)) { BeWoApp.AppSettings.EnableRestTimeWarning = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "EnableRestTimeWarning", value ? "1" : "0"); } } } public int MaxWorkTimeHoursBeforeWarning { get { return BeWoApp.AppSettings.MaxWorkTimeHoursBeforeWarning; } set { if (this.AreDifferent(BeWoApp.AppSettings.MaxWorkTimeHoursBeforeWarning, value)) { BeWoApp.AppSettings.MaxWorkTimeHoursBeforeWarning = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "MaxWorkTimeHoursBeforeWarning", value.ToString()); } } } public int TimeUntilUILock { get => _TimeUntilUILock; set { if (!AreDifferent(_TimeUntilUILock, value)) { return; } _TimeUntilUILock = value; Settings = UserSettingsUtils.CreateNewSettingValue(_Settings, SettingsKeys.TimeUntilUILock, value.ToString()); AutoLockUI.LockUITime = value; AutoLockUI.StopTimer(); AutoLockUI.StartAutoLockUIOption(); } } public int MoKSessionTimeout { get => BeWoApp.AppSettings.MoKSessionTimeout; set { if (!AreDifferent(BeWoApp.AppSettings.MoKSessionTimeout, value)) { return; } BeWoApp.AppSettings.MoKSessionTimeout = value; Settings = UserSettingsUtils.CreateNewSettingValue(_Settings, SettingsKeys.MoKSessionTimeout, value.ToString()); } } public int HilfeplanAuslaufAuswahl { get { return BeWoApp.AppSettings.HilfeplanAuslaufAuswahl; } set { if (this.AreDifferent(BeWoApp.AppSettings.HilfeplanAuslaufAuswahl, value)) { BeWoApp.AppSettings.HilfeplanAuslaufAuswahl = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "HilfeplanAuslaufAuswahl", value.ToString()); } } } public int AnzTageZeiterfassErfolgt { get { return BeWoApp.AppSettings.AnzTageZeiterfassErfolgt; } set { if (this.AreDifferent(BeWoApp.AppSettings.AnzTageZeiterfassErfolgt, value)) { BeWoApp.AppSettings.AnzTageZeiterfassErfolgt = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "AnzTageZeiterfassErfolgt", value.ToString()); } } } public int AnzTageUnterschriftErfolgt { get { return BeWoApp.AppSettings.AnzTageUnterschriftErfolgt; } set { if (this.AreDifferent(BeWoApp.AppSettings.AnzTageUnterschriftErfolgt, value)) { BeWoApp.AppSettings.AnzTageUnterschriftErfolgt = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "AnzTageUnterschriftErfolgt", value.ToString()); } } } public int ZeiterfassungsSchwellwert { get { return BeWoApp.AppSettings.ZeiterfassungsSchwellwert; } set { if (this.AreDifferent(BeWoApp.AppSettings.ZeiterfassungsSchwellwert, value)) { BeWoApp.AppSettings.ZeiterfassungsSchwellwert = value; this.Settings = UserSettingsUtils.CreateNewSettingValue(this._Settings, "ZeiterfassungsSchwellwert", value.ToString()); } } } public string Name { get { return this._Name; } set { if (this.AreDifferent(this._Name, value)) { this._Name = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.Name, value), PropertyName_Name); this.FirePropertyChanged(PropertyName_Name); } } } public string Website { get { return _Website; } set { if (!AreDifferent(Website, value)) return; _Website = value; StoreDirtyInformation(AreDifferent(DataContract.Website, value), nameof(Website)); FirePropertyChanged(nameof(Website)); } } public string PostalCode { get { return this._PostalCode; } set { if (this.AreDifferent(this._PostalCode, value)) { this._PostalCode = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.PostalCode, value), PropertyName_PostalCode); this.FirePropertyChanged(PropertyName_PostalCode); } } } public string Settings { get { return _Settings; } set { if (AreDifferent(_Settings, value)) { _Settings = value; StoreDirtyInformation(AreDifferent(DataContract.Settings, value), PropertyName_Settings); FirePropertyChanged(PropertyName_Settings); } } } public string State { get { return this._State; } set { if (this.AreDifferent(this._State, value)) { this._State = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.State, value), PropertyName_State); this.FirePropertyChanged(PropertyName_State); } } } public string Street { get { return this._Street; } set { if (this.AreDifferent(this._Street, value)) { this._Street = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.Street, value), PropertyName_Street); this.FirePropertyChanged(PropertyName_Street); } } } public string Town { get { return this._Town; } set { if (this.AreDifferent(this._Town, value)) { this._Town = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.Town, value), PropertyName_Town); this.FirePropertyChanged(PropertyName_Town); } } } public override bool IsDirty { get { return (base.IsDirty || _InvoiceNumberList.Any(vm => vm.IsDirty) || Logo.IsDirty); } } public string Apikey { get { return this._Apikey; } set { if (this.AreDifferent(this._Apikey, value)) { this._Apikey = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.Apikey, value), PropertyName_Apikey); this.FirePropertyChanged(PropertyName_Apikey); } } } public string IKLeistungserbringer { get { return this._IKLeistungserbringer; } set { if (this.AreDifferent(this._IKLeistungserbringer, value)) { this._IKLeistungserbringer = value; this.StoreDirtyInformation(this.AreDifferent(this.DataContract.IKLeistungserbringer, value), nameof(IKLeistungserbringer)); this.FirePropertyChanged(nameof(IKLeistungserbringer)); } } } public string AccountNumber { get { return _AccountNumber; } set { if (!AreDifferent(_AccountNumber, value)) return; _AccountNumber = value; StoreDirtyInformation(AreDifferent(DataContract.BankAccount.AccountNumber, value), nameof(AccountNumber)); FirePropertyChanged(nameof(AccountNumber)); } } public string BankCode { get { return _BankCode; } set { if (!AreDifferent(BankCode, value)) return; _BankCode = value; StoreDirtyInformation(AreDifferent(DataContract.BankAccount.BankCode, value), nameof(BankCode)); FirePropertyChanged(nameof(BankCode)); } } public string BankName { get { return _BankName; } set { if (!AreDifferent(BankName, value)) return; _BankName = value; StoreDirtyInformation(AreDifferent(DataContract.BankAccount.BankName, value), nameof(BankName)); FirePropertyChanged(nameof(BankName)); } } public string Bic { get { return _Bic; } set { if (!AreDifferent(Bic, value)) return; _Bic = value; StoreDirtyInformation(AreDifferent(DataContract.BankAccount.Bic, value), nameof(Bic)); FirePropertyChanged(nameof(Bic)); } } public string IBAN { get { return _IBAN; } set { if (!AreDifferent(IBAN, value)) return; _IBAN = value; StoreDirtyInformation(AreDifferent(DataContract.BankAccount.IBAN, value), nameof(IBAN)); FirePropertyChanged(nameof(IBAN)); } } public CompactEmployeeDC SoziotherapieAnsprechpartner { get { return _SoziotherapieAnsprechpartner; } set { if (!AreDifferent(SoziotherapieAnsprechpartner, value)) return; _SoziotherapieAnsprechpartner = value; StoreDirtyInformation(AreDifferent(DataContract.SoziotherapieAnsprechpartner, value), nameof(SoziotherapieAnsprechpartner)); FirePropertyChanged(nameof(SoziotherapieAnsprechpartner)); } } public ImageVM Logo { get { return _Logo ?? (_Logo = new ImageVM()); } set { _Logo = value; FirePropertyChanged(nameof(Logo)); } } public SolidColorBrush ColorWaitTooLong { get { return _ColorWaitTooLong; } set { if (!AreDifferent(ColorWaitTooLong, value)) return; _ColorWaitTooLongStr = value?.ToString(); _ColorWaitTooLong = value; StoreDirtyInformation(AreDifferent(DataContract.ColorWaitTooLong, value), nameof(ColorWaitTooLong)); FirePropertyChanged(nameof(ColorWaitTooLong)); } } public SolidColorBrush ColorSendUrbelege { get { return _ColorSendUrbelege; } set { if (!AreDifferent(ColorSendUrbelege, value)) return; _ColorSendUrbelegeStr = value?.ToString(); _ColorSendUrbelege = value; StoreDirtyInformation(AreDifferent(DataContract.ColorSendUrbelege, value), nameof(ColorSendUrbelege)); FirePropertyChanged(nameof(ColorSendUrbelege)); } } public bool ShowGkvBzEinzel { get { return _ShowGkvBzEinzel; } set { if (!AreDifferent(ShowGkvBzEinzel, value)) return; _ShowGkvBzEinzel = value; StoreDirtyInformation(AreDifferent(DataContract.ShowGkvBzEinzel, value), nameof(ShowGkvBzEinzel)); FirePropertyChanged(nameof(ShowGkvBzEinzel)); } } public bool ShowGkvBzUrbelege { get { return _ShowGkvBzUrbelege; } set { if (!AreDifferent(ShowGkvBzUrbelege, value)) return; _ShowGkvBzUrbelege = value; StoreDirtyInformation(AreDifferent(DataContract.ShowGkvBzUrbelege, value), nameof(ShowGkvBzUrbelege)); FirePropertyChanged(nameof(ShowGkvBzUrbelege)); } } public bool CanEditIKLeistungserbringer { get; set; } public string CanEditIKLeistungserbringerTooltip { get; set; } protected override void InitByDataContract(MandatorDC pDataContract) { _Name = pDataContract.Name; _Website = pDataContract.Website; _ClientId = pDataContract.ClientId; _BeWoClientType = pDataContract.BeWoClientType; _Country = pDataContract.Country; _State = pDataContract.State; _Town = pDataContract.Town; _PostalCode = pDataContract.PostalCode; _Street = pDataContract.Street; _Settings = pDataContract.Settings; _Apikey = pDataContract.Apikey; _IKLeistungserbringer = pDataContract.IKLeistungserbringer; _AccountNumber = pDataContract.BankAccount.AccountNumber; _BankCode = pDataContract.BankAccount.BankCode; _BankName = pDataContract.BankAccount.BankName; _Bic = pDataContract.BankAccount.Bic; _IBAN = pDataContract.BankAccount.IBAN; _SoziotherapieAnsprechpartner = pDataContract.SoziotherapieAnsprechpartner; _ColorWaitTooLong = ColorExtensions.ParseSolidColorBrush(pDataContract.ColorWaitTooLong); _ColorWaitTooLongStr = pDataContract.ColorWaitTooLong; _ColorSendUrbelege = ColorExtensions.ParseSolidColorBrush(pDataContract.ColorSendUrbelege); _ColorSendUrbelegeStr = pDataContract.ColorSendUrbelege; _ShowGkvBzEinzel = pDataContract.ShowGkvBzEinzel; _ShowGkvBzUrbelege = pDataContract.ShowGkvBzUrbelege; if(pDataContract.Logo is object) Logo = new ImageVM(pDataContract.Logo); if (pDataContract.CanEditIKLeistungserbringer) { CanEditIKLeistungserbringer = true; CanEditIKLeistungserbringerTooltip = null; } else { CanEditIKLeistungserbringer = false; CanEditIKLeistungserbringerTooltip = "Mit dem Senden mind. einer GKV Abrechnung haben Sie sich bereits\n" + "mit dieser IK bei uns registiert. Bei Änderungswunsch wenden Sie\n" + "sich bitte an unseren Support."; } if (_Settings == null) { _TimeUntilUILock = 30; } if (_Settings != null && _Settings.Contains(PropertyName_TimeUntilUILock)) { var keyValuePairs = _Settings.SplitToKeyValuePairList(";", "="); _TimeUntilUILock = Convert.ToInt32(keyValuePairs.First(f => f.Key.Equals(PropertyName_TimeUntilUILock)).Value); } //HilfeplanAuslaufAuswahl if (_Settings == null) { _HilfeplanAuslaufAuswahl = 3; } if (_Settings != null && _Settings.Contains(PropertyName_HilfeplanAuslaufAuswahl)) { var keyValuePairs = _Settings.SplitToKeyValuePairList(";", "="); _HilfeplanAuslaufAuswahl = Convert.ToInt32(keyValuePairs.First(f => f.Key.Equals(PropertyName_HilfeplanAuslaufAuswahl)).Value); } if (_Settings == null) { _AnzTageZeiterfassErfolgt = 0; _ZeiterfassungsSchwellwert = 80; } if (_Settings != null && _Settings.Contains(PropertyName_AnzTageZeiterfassErfolgt)) { var keyValuePairs = _Settings.SplitToKeyValuePairList(";", "="); _AnzTageZeiterfassErfolgt = Convert.ToInt32(keyValuePairs.First(f => f.Key.Equals(PropertyName_AnzTageZeiterfassErfolgt)).Value); } if (_Settings != null && _Settings.Contains(PropertyName_ZeiterfassungsSchwellwert)) { var keyValuePairs = _Settings.SplitToKeyValuePairList(";", "="); _ZeiterfassungsSchwellwert = Convert.ToInt32(keyValuePairs.First(f => f.Key.Equals(PropertyName_ZeiterfassungsSchwellwert)).Value); } } protected override MandatorDC MapToDataContract(MandatorDC pDataContract, bool doCommit) { pDataContract.Name = _Name; pDataContract.Website = Website; pDataContract.ClientId = _ClientId; pDataContract.BeWoClientType = _BeWoClientType; pDataContract.Country = _Country; pDataContract.State = _State; pDataContract.Town = _Town; pDataContract.PostalCode = _PostalCode; pDataContract.Street = _Street; pDataContract.Settings = _Settings; pDataContract.Apikey = _Apikey; pDataContract.IKLeistungserbringer = _IKLeistungserbringer; pDataContract.BankAccount.AccountNumber = AccountNumber; pDataContract.BankAccount.BankCode = BankCode; pDataContract.BankAccount.BankName = BankName; pDataContract.BankAccount.Bic = Bic; pDataContract.BankAccount.IBAN = IBAN; pDataContract.SoziotherapieAnsprechpartner = SoziotherapieAnsprechpartner; pDataContract.ColorWaitTooLong = _ColorWaitTooLongStr; pDataContract.ColorSendUrbelege = _ColorSendUrbelegeStr; pDataContract.ShowGkvBzEinzel = ShowGkvBzEinzel; pDataContract.ShowGkvBzUrbelege = ShowGkvBzUrbelege; pDataContract.Logo = Logo.CommitToDataContract(); return pDataContract; } } }