CEL_Payroll/Payroll.BO/Organogram/OrganogramDelegation.cs

161 lines
3.5 KiB
C#
Raw Permalink Normal View History

2024-09-17 14:30:13 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35;
using Ease.CoreV35.Model;
using Ease.CoreV35.Caching;
using System.Data.Linq.Mapping;
using System.Data;
namespace Payroll.BO
{
#region OrganogramDelegation
[Serializable]
public class OrganogramDelegation : AuditTrailBase
{
#region Cache Store
private static Cache _cache = new Cache(typeof(OrganogramDelegation));
#endregion
#region Constructor
public OrganogramDelegation()
{
_organogramID = null;
_nodeID = null;
_employeeID = null;
_fromDate = DateTime.MinValue;
_toDate = DateTime.MinValue;
_delegationType = string.Empty;
_isActive = false;
}
#endregion
#region Property
#region OrganogramID : ID
private ID _organogramID;
public ID OrganogramID
{
get { return _organogramID; }
set
{
base.OnPropertyChange<ID>("organogramID", _organogramID, value);
_organogramID = value;
}
}
#endregion
#region nodeID : ID
private ID _nodeID;
public ID NodeID
{
get { return _nodeID; }
set
{
base.OnPropertyChange<ID>("nodeID", _nodeID, value);
_nodeID = value;
}
}
#endregion
#region employeeID : ID
private ID _employeeID;
public ID EmployeeID
{
get { return _employeeID; }
set
{
base.OnPropertyChange<ID>("employeeID", _employeeID, value);
_employeeID = value;
}
}
#endregion
#region fromDate : DateTime
private DateTime _fromDate;
public DateTime FromDate
{
get { return _fromDate; }
set
{
base.OnPropertyChange<DateTime>("fromDate", _fromDate, value);
_fromDate = value;
}
}
#endregion
#region toDate : DateTime
private DateTime _toDate;
public DateTime ToDate
{
get { return _toDate; }
set
{
base.OnPropertyChange<DateTime>("toDate", _toDate, value);
_toDate = value;
}
}
#endregion
#region delegationType : string
private string _delegationType;
public string DelegationType
{
get { return _delegationType; }
set
{
base.OnPropertyChange<string>("delegationType", _delegationType, value);
_delegationType = value;
}
}
#endregion
#region isActive : bool
private bool _isActive;
public bool IsActive
{
get { return _isActive; }
set
{
base.OnPropertyChange<bool>("isConfirmed", _isActive, value);
_isActive = value;
}
}
#endregion
#region Service Factory IOrganogramService : IOrganogramService
internal static IOrganogramService Service
{
get { return Services.Factory.CreateService<IOrganogramService>(typeof(IOrganogramService)); }
}
#endregion
#endregion
}
#endregion
}