using Ease.Core.Model; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data; using System.IO; using System.Reflection; namespace HRM.BO { #region Class TrainingCostHead public class TrainingCostHead : BasicBaseObject { #region Constructor public TrainingCostHead() { Code = string.Empty; Name = string.Empty; } #endregion #region Properties public string Code { get; set; } public string Name { get; set; } #endregion //#region Functions //public static TrainingCostHead Get(int nTrainingCostHeadID) //{ // TrainingCostHead oTrainingCostHead = null; // #region Cache Header // oTrainingCostHead = (TrainingCostHead)_cache["Get", nTrainingCostHeadID]; // if (oTrainingCostHead != null) // return oTrainingCostHead; // #endregion // oTrainingCostHead = TrainingCostHead.Service.Get((nTrainingCostHeadID)); // #region Cache Footer // _cache.Add(oTrainingCostHead, "Get", nTrainingCostHeadID); // #endregion // return oTrainingCostHead; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return TrainingCostHead.Service.Save(this); //} ////public void Delete() ////{ //// TrainingCostHead.Service.Delete(ID); ////} //public void Delete(int id) //{ // TrainingCostHead.Service.Delete(id); //} //#endregion //#region Collection Functions //public static List Get() //{ // List oTrainingCostHeads = null; // #region Cache Header // oTrainingCostHeads = (List)_cache["Get"]; // if (oTrainingCostHeads != null) // return oTrainingCostHeads; // #endregion // oTrainingCostHeads = TrainingCostHead.Service.Get(); // #region Cache Footer // _cache.Add(oTrainingCostHeads, "Get"); // #endregion // return oTrainingCostHeads; //} //public static List Get(EnumStatus status) //{ // return Get(); //} //#endregion //#region Service Factory //internal static ITrainingCostHeadService Service //{ // get // { // return Services.Factory.CreateService(typeof(ITrainingCostHeadService)); // } //} //#endregion } #endregion #region ITrainingCostHeadService Service public interface ITrainingCostHeadService { TrainingCostHead Get(int id); List Get(); int Save(TrainingCostHead oTrainingCostHead); void Delete(int id); } #endregion }