104 lines
2.5 KiB
C#
104 lines
2.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using BS.Shared;
|
|
|
|
namespace BeWo.Data.Entities
|
|
{
|
|
[DebuggerDisplay("{GueltigVon}-{GueltigBis}")]
|
|
public class Arbeitszeit : BeWoEntityBase
|
|
{
|
|
public static string PropertyName_GueltigVon = "GueltigVon";
|
|
|
|
public static string PropertyName_GueltigBis = "GueltigBis";
|
|
|
|
public static string PropertyName_EmployeeOid = "EmployeeOid";
|
|
|
|
public static string PropertyName_ArbeitsZeiteintragListe = "ArbeitszeitEintraege";
|
|
|
|
public Arbeitszeit()
|
|
{
|
|
_Tid = TableID.Arbeitszeit;
|
|
}
|
|
|
|
private DateTime? _GueltigVon;
|
|
|
|
private DateTime? _GueltigBis;
|
|
|
|
private long? _EmployeeOid;
|
|
|
|
private Customer _Customer;
|
|
|
|
private IList<ArbeitszeitEintrag> _ArbeitszeitEintraege;
|
|
|
|
public virtual DateTime? GueltigVon
|
|
{
|
|
get
|
|
{
|
|
return this._GueltigVon;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._GueltigVon, value))
|
|
{
|
|
this._GueltigVon = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual DateTime? GueltigBis
|
|
{
|
|
get
|
|
{
|
|
return this._GueltigBis;
|
|
}
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._GueltigBis, value))
|
|
{
|
|
this._GueltigBis = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual long? EmployeeOid
|
|
{
|
|
get => _EmployeeOid;
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_EmployeeOid, value))
|
|
{
|
|
_EmployeeOid = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual IList<ArbeitszeitEintrag> ArbeitszeitEintraege
|
|
{
|
|
get { return this._ArbeitszeitEintraege ?? (_ArbeitszeitEintraege = new List<ArbeitszeitEintrag>()); }
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._ArbeitszeitEintraege, value))
|
|
{
|
|
this._ArbeitszeitEintraege = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
public virtual Customer Customer
|
|
{
|
|
get => _Customer;
|
|
|
|
set
|
|
{
|
|
if(AreDifferent(_Customer, value))
|
|
{
|
|
_Customer = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |