CEL_Payroll/Payroll.BO/Organogram/OrganogramAuthority.cs

109 lines
2.4 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 OrganogramAuthority
[Serializable]
public class OrganogramAuthority : UpdateAuditTrail
{
#region Cache Store
private static Cache _cache = new Cache(typeof(OrganogramAuthority));
#endregion
#region Constructor
public OrganogramAuthority()
{
_nodeID = null;
_authorityType = EnumAuthorityType.Doted;
_childNodeID = null;
_employeeID = null;
}
#endregion
#region nodeID : ID
private ID _nodeID;
public ID NodeID
{
get { return _nodeID; }
set
{
base.OnPropertyChange<ID>("nodeID", _nodeID, value);
_nodeID = value;
}
}
#endregion
#region authorityType : EnumAuthorityType
private EnumAuthorityType _authorityType;
public EnumAuthorityType AuthorityType
{
get { return _authorityType; }
set
{
base.OnPropertyChange<short>("authorityType", (short)_authorityType, (short)value);
_authorityType = value;
}
}
#endregion
#region childNodeID : ID
private ID _childNodeID;
public ID ChildNodeID
{
get { return _childNodeID; }
set
{
base.OnPropertyChange<ID>("childNodeID", _childNodeID, value);
_childNodeID = 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 Service Factory IOrganogramService : IOrganogramService
internal static IOrganogramService Service
{
get { return Services.Factory.CreateService<IOrganogramService>(typeof(IOrganogramService)); }
}
#endregion
}
#endregion
}