CEL_Payroll/Payroll.BO/Organogram/OrganogramResponsibility.cs

113 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 OrganogramResponsibility
[Serializable]
public class OrganogramResponsibility : AuditTrailBase
{
#region Cache Store
private static Cache _cache = new Cache(typeof(OrganogramResponsibility));
#endregion
#region Constructor
public OrganogramResponsibility()
{
_organogramID = null;
_nodeID = null;
_responsibility = string.Empty;
_isPrimary = 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 responsibility : string
private string _responsibility;
public string Responsibility
{
get { return _responsibility; }
set
{
base.OnPropertyChange<string>("responsibility", _responsibility, value);
_responsibility = value;
}
}
#endregion
#region isPrimary : bool
private bool _isPrimary;
public bool IsPrimary
{
get { return _isPrimary; }
set
{
base.OnPropertyChange<bool>("isPrimary", _isPrimary, value);
_isPrimary = value;
}
}
#endregion
#region Service Factory IOrganogramService : IOrganogramService
internal static IOrganogramService Service
{
get { return Services.Factory.CreateService<IOrganogramService>(typeof(IOrganogramService)); }
}
#endregion
#endregion
}
#endregion
}