Files
BeWoPlaner/Data/Entities/Arbeitszeit.cs

102 lines
2.4 KiB
C#
Raw Normal View History

2019-09-27 15:55:01 +02:00
using System;
using System.Collections.Generic;
2019-09-27 15:55:01 +02:00
using BS.Shared;
namespace BeWo.Data.Entities
{
public class Arbeitszeit : BeWoEntityBase
{
public static string PropertyName_GueltigVon = "GueltigVon";
public static string PropertyName_GueltigBis = "GueltigBis";
public static string PropertyName_EmployeeOid = "EmployeeOid";
2017-05-17 08:28:12 +02:00
public static string PropertyName_ArbeitsZeiteintragListe = "ArbeitszeitEintraege";
2019-09-27 15:55:01 +02:00
public Arbeitszeit()
{
_Tid = TableID.Arbeitszeit;
}
2017-05-17 08:28:12 +02:00
private DateTime? _GueltigVon;
2017-05-17 08:28:12 +02:00
private DateTime? _GueltigBis;
private long? _EmployeeOid;
2019-09-27 15:55:01 +02:00
private Customer _Customer;
2017-05-17 08:28:12 +02:00
private IList<ArbeitszeitEintrag> _ArbeitszeitEintraege;
public virtual DateTime? GueltigVon
{
get
{
return this._GueltigVon;
}
set
{
if (this.AreDifferent(this._GueltigVon, value))
{
this._GueltigVon = value;
}
}
}
2017-05-17 08:28:12 +02:00
public virtual DateTime? GueltigBis
{
get
{
return this._GueltigBis;
}
set
{
if (this.AreDifferent(this._GueltigBis, value))
{
this._GueltigBis = value;
}
}
}
public virtual long? EmployeeOid
{
2019-09-27 15:55:01 +02:00
get => _EmployeeOid;
set
{
2019-09-27 15:55:01 +02:00
if(AreDifferent(_EmployeeOid, value))
{
2019-09-27 15:55:01 +02:00
_EmployeeOid = value;
}
}
}
2017-05-17 08:28:12 +02:00
public virtual IList<ArbeitszeitEintrag> ArbeitszeitEintraege
{
2017-05-17 08:28:12 +02:00
get { return this._ArbeitszeitEintraege ?? (_ArbeitszeitEintraege = new List<ArbeitszeitEintrag>()); }
set
{
2017-05-17 08:28:12 +02:00
if (this.AreDifferent(this._ArbeitszeitEintraege, value))
{
2017-05-17 08:28:12 +02:00
this._ArbeitszeitEintraege = value;
}
}
}
2019-09-27 15:55:01 +02:00
public virtual Customer Customer
{
get => _Customer;
set
{
if(AreDifferent(_Customer, value))
{
_Customer = value;
}
}
}
}
}