EchoTex_Payroll/HRM.BO/PMP/EmpDirectorList.cs
2024-10-14 10:01:49 +06:00

150 lines
3.4 KiB
C#

using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region EmpDirectorList
public class EmpDirectorList : BasicBaseObject
{
#region Constructor
public EmpDirectorList()
{
_DirectorNo = string.Empty;
_EmployeeNo = string.Empty;
}
#endregion
#region Properties
#region DirectorNo : string
private string _DirectorNo;
public string DirectorNo
{
get { return _DirectorNo; }
set
{
_DirectorNo = value;
}
}
#endregion
#region EmployeeNo : string
private string _EmployeeNo;
public string EmployeeNo
{
get { return _EmployeeNo; }
set
{
_EmployeeNo = value;
}
}
#endregion
//#region Service Factory IDirectorListService : IDirectorListService
//internal static IEmpDirectorListService Service
//{
// get { return Services.Factory.CreateService<IEmpDirectorListService>(typeof(IEmpDirectorListService)); }
//}
//#endregion
#endregion
//#region Functions
//public static List<EmpDirectorList> Get()
//{
// #region Cache Header
// List<EmpDirectorList> EmpDirectorLists = _cache["Get"] as List<EmpDirectorList>;
// if (EmpDirectorLists != null)
// return EmpDirectorLists;
// #endregion
// try
// {
// EmpDirectorLists = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(EmpDirectorLists, "Get");
// #endregion
// return EmpDirectorLists;
//}
//public static List<EmpDirectorList> Get(string sEmployeeNo)
//{
// #region Cache Header
// List<EmpDirectorList> EmpDirectorLists = _cache["Get"] as List<EmpDirectorList>;
// if (EmpDirectorLists != null)
// return EmpDirectorLists;
// #endregion
// try
// {
// EmpDirectorLists = Service.Get(sEmployeeNo);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(EmpDirectorLists, "Get");
// #endregion
// return EmpDirectorLists;
//}
//public void Save(EmpDirectorList empDirector)
//{
// this.SetAuditTrailProperties();
// EmpDirectorList.Service.Save(empDirector);
//}
//public void Delete(int id)
//{
// EmpDirectorList.Service.Delete(id);
//}
//public void Delete(string sEmpNo)
//{
// EmpDirectorList.Service.Delete(sEmpNo);
//}
//#endregion
}
#endregion
#region IDirectorList Service
public interface IEmpDirectorListService
{
List<EmpDirectorList> Get();
List<EmpDirectorList> Get(string sEmployeeNo);
void Save(EmpDirectorList empDirector);
void Delete(int id);
void Delete(string sEmpNo);
}
#endregion
}