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(typeof(IEmpDirectorListService)); } //} //#endregion #endregion //#region Functions //public static List Get() //{ // #region Cache Header // List EmpDirectorLists = _cache["Get"] as List; // 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 Get(string sEmployeeNo) //{ // #region Cache Header // List EmpDirectorLists = _cache["Get"] as List; // 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 Get(); List Get(string sEmployeeNo); void Save(EmpDirectorList empDirector); void Delete(int id); void Delete(string sEmpNo); } #endregion }