using System; using System.Collections.Generic; using BS.Shared; namespace BeWo.Data.Entities { public class Wohnheim : BeWoEntityBase { public static string PropertyName_WohnheimName = "WohnheimName"; public static string PropertyName_Wohnheim = "Wohnheim"; public static string PropertyName_Strasse= "Strasse"; public static string PropertyName_PlZ = "PLZ"; public static string PropertyName_Ort = "Ort"; public static string PropertyName_Bemerkung = "Bemerkung"; public static string PropertyName_PflichtbesetzungStart = "PflichtbesetzungStart"; public static string PropertyName_PflichtbesetzungEnde = "PflichtbesetzungEnde"; public static string PropertyName_PflichtbesetzungEinblenden = "PflichtbesetzungEinblenden"; public static string PropertyName_StandardZeilenanzahl = "StandardZeilenanzahl"; public static string PropertyName_Sortierungsart = "Sortierungsart"; public static string PropertyName_AbsteigendeSortierung = "AbsteigendeSortierung"; public static string PropertyName_VarFieldValueList = "VarFieldValueList"; private IList _Employee2WohnheimList; private IList _Customer2WohnheimList; private IList _Wohneinheiten; private IList _VarFieldValueList; public virtual string WohnheimName { get; set; } public virtual string Strasse { get; set; } public virtual string PLZ { get; set; } public virtual string Ort { get; set; } public virtual string Bemerkung { get; set; } public virtual string PflichtbesetzungStart { get; set; } public virtual string PflichtbesetzungEnde { get; set; } public virtual int PflichtbesetzungEinblenden { get; set; } public virtual int StandardZeilenanzahl { get; set; } public virtual int Sortierungsart { get; set; } public virtual int AbsteigendeSortierung { get; set; } public Wohnheim() { this._Tid = TableID.Wohnheim; } public virtual IList VarFieldValueList { get { return _VarFieldValueList ?? (_VarFieldValueList = new List()); } set { if (AreDifferent(_VarFieldValueList, value)) { _VarFieldValueList = value; } } } public virtual IList Employee2WohnheimList { get { return _Employee2WohnheimList ?? (_Employee2WohnheimList = new List()); } set { if (AreDifferent(_Employee2WohnheimList, value)) { _Employee2WohnheimList = value; } } } public virtual IList Customer2WohnheimList { get { return _Customer2WohnheimList ?? (_Customer2WohnheimList = new List()); } set { if (AreDifferent(_Customer2WohnheimList, value)) { _Customer2WohnheimList = value; } } } public virtual IList Wohneinheiten { get { return _Wohneinheiten ?? (_Wohneinheiten = new List()); } set { if (AreDifferent(_Wohneinheiten, value)) { _Wohneinheiten = value; } } } public override string ToString() { return "Wohnheim Name: " + WohnheimName + "\n" + "Straße: " + Strasse + "\n" + "PLZ: " + PLZ + "\n" + "Ort: "+ Ort +"\n" + "Bemerkung: " + Bemerkung; } } }