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 TrainingScheduleAttn public class TrainingScheduleAttn : AuditTrailBase { #region Constructor public TrainingScheduleAttn() { TrainingScheduleID = 0; TSDateID = 0; EmployeeID = 0; } #endregion #region Properties public int TrainingScheduleID { get; set; } public TrainingSchedule TrainingSchedule { get; set; } public int TSDateID { get; set; } public int EmployeeID { get; set; } #endregion //#region Functions //public static TrainingScheduleAttn Get(int nTrainingScheduleAttnID) //{ // TrainingScheduleAttn onTrainingScheduleAttn = null; // #region Cache Header // onTrainingScheduleAttn = (TrainingScheduleAttn)_cache["Get", nTrainingScheduleAttnID]; // if (onTrainingScheduleAttn != null) // return onTrainingScheduleAttn; // #endregion // onTrainingScheduleAttn = Service.Get((nTrainingScheduleAttnID)); // #region Cache Footer // _cache.Add(onTrainingScheduleAttn, "Get", nTrainingScheduleAttnID); // #endregion // return onTrainingScheduleAttn; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return Service.Save(this); //} //public static bool DoesTrainingScheduleAttnExists(int trainingScheduleDateID) //{ // return Service.DoesTrainingScheduleAttnExists(trainingScheduleDateID); //} //public void Delete() //{ // Service.Delete(ID); //} //#endregion //#region Collection Functions //public static List Get() //{ // List oTrainingScheduleAttns = null; // #region Cache Header // oTrainingScheduleAttns = (List)_cache["Get"]; // if (oTrainingScheduleAttns != null) // return oTrainingScheduleAttns; // #endregion // oTrainingScheduleAttns = Service.Get(); // #region Cache Footer // _cache.Add(oTrainingScheduleAttns, "Get"); // #endregion // return oTrainingScheduleAttns; //} //public static List GetByTrainingScheduleID(int trainingScheduleID) //{ // List oTrainingScheduleAttns = null; // #region Cache Header // oTrainingScheduleAttns = (List)_cache["Get"]; // if (oTrainingScheduleAttns != null) // return oTrainingScheduleAttns; // #endregion // oTrainingScheduleAttns = Service.GetByTrainingScheduleID(trainingScheduleID); // #region Cache Footer // _cache.Add(oTrainingScheduleAttns, "Get"); // #endregion // return oTrainingScheduleAttns; //} //#endregion //#region Service Factory //internal static ITrainingScheduleAttnService Service //{ // get // { // return Services.Factory.CreateService(typeof(ITrainingScheduleAttnService)); // } //} //#endregion } #endregion #region ITrainingScheduleAttn Service public interface ITrainingScheduleAttnService { TrainingScheduleAttn Get(int scheduleAttnId); List Get(); int Save(TrainingScheduleAttn oTrainingScheduleAttn); void Delete(int id); bool DoesTrainingScheduleAttnExists(int trainingScheduleDateID); List GetByTrainingScheduleID(int trainingScheduleId); List GetByTrainingScheduleDateID(int trainingScheduleDateID); } #endregion }