using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region DirectorList public class DirectorList : BasicBaseObject { #region Constructor public DirectorList() { _EmployeeNo = String.Empty; _ProjectID = 0; } #endregion #region Properties #region EmployeeNo : string private string _EmployeeNo; public string EmployeeNo { get { return _EmployeeNo; } set { _EmployeeNo = value; } } #endregion #region ProjectID : ID private int _ProjectID; public int ProjectID { get { return _ProjectID; } set { _ProjectID = value; } } #endregion //#region Service Factory IDirectorListService : IDirectorListService //internal static IDirectorListService Service //{ // get { return Services.Factory.CreateService(typeof(IDirectorListService)); } //} //#endregion #endregion //#region Functions //public static List Get() //{ // #region Cache Header // List DirectorLists = _cache["Get"] as List; // if (DirectorLists != null) // return DirectorLists; // #endregion // try // { // DirectorLists = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(DirectorLists, "Get"); // #endregion // return DirectorLists; //} //public static List Get(string sEmployeeNo) //{ // #region Cache Header // List DirectorLists = _cache["Get"] as List; // if (DirectorLists != null) // return DirectorLists; // #endregion // try // { // DirectorLists = Service.Get(sEmployeeNo); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(DirectorLists, "Get"); // #endregion // return DirectorLists; //} //public static List Get(EnumStatus status) //{ // #region Cache Header // List DirectorLists = _cache["Get", status] as List; // if (DirectorLists != null) // return DirectorLists; // #endregion // try // { // DirectorLists = Service.Get(status); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region Cache Footer // _cache.Add(DirectorLists, "Get", status); // #endregion // return DirectorLists; //} //public void Save(List oLists) //{ // foreach(DirectorList oList in oLists) // oList.SetAuditTrailProperties(); // DirectorList.Service.Save(oLists); //} //public void Delete(int id) //{ // DirectorList.Service.Delete(id); //} //public void Delete(string sEmpNo) //{ // DirectorList.Service.Delete(sEmpNo); //} //#endregion } #endregion #region IDirectorList Service public interface IDirectorListService { List Get(); List Get(EnumStatus status); List Get(string sEmployeeNo); void Save(List oLists); void Delete(int id); void Delete(string sEmpNo); } #endregion }