using Ease.Core.Model; using System; using System.Collections.Generic; using System.Data; namespace HRM.BO { #region CreatedRequisition public class CreatedRequisition : BasicBaseObject { #region Constructor public CreatedRequisition() { _RequisitionID = 0; _name = ""; _RecruitementProcessID = 0; } #endregion #region Properties #region _RequisitionID : ID private int _RequisitionID; public int EmpRequisitionID { get { return _RequisitionID; } set { _RequisitionID = value; } } #endregion #region _RecruitementProcessID : ID private int _RecruitementProcessID; public int RecruitementProcessID { get { return _RecruitementProcessID; } set { _RecruitementProcessID = value; } } #endregion #region _name : string private string _name; public string Name { get { return _name; } set { _name = value; } } #endregion //#region Service Factory ICreatedRequisitionService : ICreatedRequisitionService //internal static ICreatedRequisitionService Service //{ // get { return Services.Factory.CreateService(typeof(ICreatedRequisitionService)); } //} //#endregion #endregion //#region Functions //public static List Get() //{ // #region cache header // List CreatedRequisitions = _cache["Get"] as List; // if (CreatedRequisitions != null) // return CreatedRequisitions; // #endregion // try // { // CreatedRequisitions = Service.Get(); // } // catch (ServiceException e) // { // throw new Exception(e.Message, e); // } // #region cache footer // _cache.Add(CreatedRequisitions, "Get"); // #endregion // return CreatedRequisitions; //} //public int Save() //{ // base.SetAuditTrailProperties(); // return CreatedRequisition.Service.Save(this); //} //public void Delete(int id) //{ // CreatedRequisition.Service.Delete(id); //} //#endregion } #endregion #region ICreatedRequisition Service public interface ICreatedRequisitionService { List Get(); int Save(CreatedRequisition item); void Delete(int id); } #endregion }