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 TrainingNdAnalysisTimeSch public class TrainingNdAnalysisTimeSch : AuditTrailBase { #region Constructor public TrainingNdAnalysisTimeSch() { TrainingNeedAnalysisID = 0; Participent = 0; Remarks = String.Empty; Month = EnumMonths.January; } #endregion #region Properties public int TrainingNeedAnalysisID { get; set; } public TrainingNeedAnalysis TrainingNeedAnalysis { get; set; } public EnumMonths Month { get; set; } public int Participent { get; set; } public string Remarks { get; set; } #endregion //#region Functions //public static TrainingNdAnalysisTimeSch Get(int nTrainingNdAnalysisTimeSchID) //{ // TrainingNdAnalysisTimeSch onTrainingNdAnalysisTimeSch = null; // #region Cache Header // onTrainingNdAnalysisTimeSch = (TrainingNdAnalysisTimeSch)_cache["Get", nTrainingNdAnalysisTimeSchID]; // if (onTrainingNdAnalysisTimeSch != null) // return onTrainingNdAnalysisTimeSch; // #endregion // onTrainingNdAnalysisTimeSch = Service.Get((nTrainingNdAnalysisTimeSchID)); // #region Cache Footer // _cache.Add(onTrainingNdAnalysisTimeSch, "Get", nTrainingNdAnalysisTimeSchID); // #endregion // return onTrainingNdAnalysisTimeSch; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return Service.Save(this); //} //public static bool DoesTrainingNdAnalysisTimeSchExists(int nTrainingNdAnalysisTimeSchID) //{ // return Service.DoesTrainingNdAnalysisTimeSchExists(nTrainingNdAnalysisTimeSchID); //} //public void Delete() //{ // Service.Delete(ID); //} //#endregion //#region Collection Functions //public static List Get() //{ // List oTrainingNdAnalysisTimeSchs = null; // #region Cache Header // oTrainingNdAnalysisTimeSchs = (List)_cache["Get"]; // if (oTrainingNdAnalysisTimeSchs != null) // return oTrainingNdAnalysisTimeSchs; // #endregion // oTrainingNdAnalysisTimeSchs = Service.Get(); // #region Cache Footer // _cache.Add(oTrainingNdAnalysisTimeSchs, "Get"); // #endregion // return oTrainingNdAnalysisTimeSchs; //} //public static List GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID) //{ // List oTrainingNdAnalysisTimeSchs = null; // #region Cache Header // oTrainingNdAnalysisTimeSchs = (List)_cache["Get"]; // if (oTrainingNdAnalysisTimeSchs != null) // return oTrainingNdAnalysisTimeSchs; // #endregion // oTrainingNdAnalysisTimeSchs = Service.GetByTrainingNeedAnalysisID(trainingNeedAnalysisID); // #region Cache Footer // _cache.Add(oTrainingNdAnalysisTimeSchs, "Get"); // #endregion // return oTrainingNdAnalysisTimeSchs; //} //#endregion //#region Service Factory //internal static ITrainingNdAnalysisTimeSchService Service //{ // get // { // return Services.Factory.CreateService(typeof(ITrainingNdAnalysisTimeSchService)); // } //} //#endregion } #endregion #region ITrainingNdAnalysisTimeSch Service public interface ITrainingNdAnalysisTimeSchService { TrainingNdAnalysisTimeSch Get(int nTrainingNdAnalysisTimeSchID); List Get(); int Save(TrainingNdAnalysisTimeSch oTrainingNdAnalysisTimeSch); void Delete(int id); bool DoesTrainingNdAnalysisTimeSchExists(int nTrainingNdAnalysisTimeSchID); List GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID); } #endregion }