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("nodeID", _nodeID, value); _nodeID = value; } } #endregion #region authorityType : EnumAuthorityType private EnumAuthorityType _authorityType; public EnumAuthorityType AuthorityType { get { return _authorityType; } set { base.OnPropertyChange("authorityType", (short)_authorityType, (short)value); _authorityType = value; } } #endregion #region childNodeID : ID private ID _childNodeID; public ID ChildNodeID { get { return _childNodeID; } set { base.OnPropertyChange("childNodeID", _childNodeID, value); _childNodeID = value; } } #endregion #region employeeID : ID private ID _employeeID; public ID EmployeeID { get { return _employeeID; } set { base.OnPropertyChange("employeeID", _employeeID, value); _employeeID = value; } } #endregion #region Service Factory IOrganogramService : IOrganogramService internal static IOrganogramService Service { get { return Services.Factory.CreateService(typeof(IOrganogramService)); } } #endregion } #endregion }