128 lines
3.9 KiB
C#
128 lines
3.9 KiB
C#
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<Employee2Wohnheim> _Employee2WohnheimList;
|
|
|
|
private IList<Customer2Wohnheim> _Customer2WohnheimList;
|
|
|
|
private IList<Wohneinheit> _Wohneinheiten;
|
|
|
|
private IList<VarFieldValue> _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<VarFieldValue> VarFieldValueList
|
|
{
|
|
get { return _VarFieldValueList ?? (_VarFieldValueList = new List<VarFieldValue>()); }
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(_VarFieldValueList, value))
|
|
{
|
|
_VarFieldValueList = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public virtual IList<Employee2Wohnheim> Employee2WohnheimList
|
|
{
|
|
get { return _Employee2WohnheimList ?? (_Employee2WohnheimList = new List<Employee2Wohnheim>()); }
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(_Employee2WohnheimList, value))
|
|
{
|
|
_Employee2WohnheimList = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual IList<Customer2Wohnheim> Customer2WohnheimList
|
|
{
|
|
get { return _Customer2WohnheimList ?? (_Customer2WohnheimList = new List<Customer2Wohnheim>()); }
|
|
|
|
set
|
|
{
|
|
if (AreDifferent(_Customer2WohnheimList, value))
|
|
{
|
|
_Customer2WohnheimList = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual IList<Wohneinheit> Wohneinheiten
|
|
{
|
|
get { return _Wohneinheiten ?? (_Wohneinheiten = new List<Wohneinheit>()); }
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |