72 lines
3.0 KiB
C#
72 lines
3.0 KiB
C#
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<Contact> Contacts { get; set; } = new List<Contact>();
|
|
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<Organisation2Person> Organisation2PersonList { get; set; } = new List<Organisation2Person>();
|
|
public virtual IList<VarFieldValue> VarFieldValueList { get; set; } = new List<VarFieldValue>();
|
|
public virtual ValueListEntry Function { get; set; }
|
|
public virtual IList<Arbeitszeit> Arbeitszeiten { get; set; } = new List<Arbeitszeit>();
|
|
public virtual IList<Feiertag> Feiertage { get; set; } = new List<Feiertag>();
|
|
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 GrosskundenanschriftDatenannahmestelle { get; set; }
|
|
|
|
//public virtual Address GetDatenannahmestelleAddress()
|
|
//{
|
|
// var addresses = new List<Address>()
|
|
// {
|
|
// HausanschriftDatenannahmestelle,
|
|
// PostfachanschriftDatenannahmestelle,
|
|
// GrosskundenanschriftDatenannahmestelle
|
|
// };
|
|
|
|
// foreach (var address in addresses)
|
|
// {
|
|
// if (address is Address && !address.IsEmpty())
|
|
// return address;
|
|
// }
|
|
|
|
// return null;
|
|
//}
|
|
}
|
|
} |