using System.Collections.Generic; using System.Diagnostics; using BS.Shared; using BS.Shared.Interface; namespace BeWo.Data.Entities { [DebuggerDisplay("{Name}")] public class Organisation : BeWoEntityBase, IOrganisation { public static string PropertyName_Address = "Address"; public static string PropertyName_BankAccount = "BankAccount"; public static string PropertyName_Contacts = "Contacts"; public static string PropertyName_CostBearer = "CostBearer"; public static string PropertyName_InvoiceAddress = "InvoiceAddress"; public static string PropertyName_Name = "Name"; public static string PropertyName_Name2 = "Name2"; public static string PropertyName_DebitorNumber = "DebitorNumber"; public static string PropertyName_Organisation2PersonList = "Organisation2PersonList"; public static string PropertyName_Function = "OrganisationsFunction"; public static string PropertyName_Arbeitszeiten = "Arbeitszeiten"; public static string PropertyName_Feiertage = "Feiertage"; public Organisation() { this._Tid = TableID.Organisation; } public virtual Address Address { get; set; } public virtual BankAccount BankAccount { get; set; } public virtual IList Contacts { get; set; } = new List(); public virtual CostBearer CostBearer { get; set; } public virtual Address InvoiceAddress { get; set; } public virtual string Name { get; set; } public virtual string Name2 { get; set; } public virtual string DebitorNumber { get; set; } public virtual IList Organisation2PersonList { get; set; } = new List(); public virtual IList VarFieldValueList { get; set; } = new List(); public virtual ValueListEntry Function { get; set; } public virtual IList Arbeitszeiten { get; set; } = new List(); public virtual IList Feiertage { get; set; } = new List(); public virtual string IKKrankenkasse { get; set; } public virtual string IKKostentrager { get; set; } public virtual string IKDatenannahmestelle { get; set; } public virtual string BezDatenannahmestelle { get; set; } public virtual string Leistungserbringergruppe { get; set; } public virtual string BusinessPartnerId { get; set; } public virtual GkvVerfahrensstufe Verfahrensstufe { get; set; } public virtual bool GkvAusblenden { get; set; } public virtual Address HausanschriftDatenannahmestelle { get; set; } public virtual Address PostfachanschriftDatenannahmestelle { get; set; } public virtual Address GroßkundenanschriftDatenannahmestelle { get; set; } //public virtual Address GetDatenannahmestelleAddress() //{ // var addresses = new List
() // { // HausanschriftDatenannahmestelle, // PostfachanschriftDatenannahmestelle, // GroßkundenanschriftDatenannahmestelle // }; // foreach (var address in addresses) // { // if (address is Address && !address.IsEmpty()) // return address; // } // return null; //} } }