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 TrainingSchEmpCost public class TrainingSchEmpCost : AuditTrailBase { #region Constructor public TrainingSchEmpCost() { CostHdID = 0; Amount = 0; TrunDate = DateTime.MinValue; Remarks = string.Empty; EmployeeID = 0; // _trainSchEmpID = 0; } #endregion #region Properties public int CostHdID { get; set; } public double Amount { get; set; } public DateTime TrunDate { get; set; } public string Remarks { get; set; } public int EmployeeID { get; set; } public int TrainSchEmpID { get; set; } #endregion //#region Functions //public static TrainingSchEmpCost Get(int nID) //{ // TrainingSchEmpCost oTrainingSchEmpCost = null; // #region Cache Header // oTrainingSchEmpCost = (TrainingSchEmpCost)_cache["Get", nID]; // if (oTrainingSchEmpCost != null) // return oTrainingSchEmpCost; // #endregion // oTrainingSchEmpCost = TrainingSchEmpCost.Service.Get((nID)); // #region Cache Footer // _cache.Add(oTrainingSchEmpCost, "Get", nID); // #endregion // return oTrainingSchEmpCost; //} //public static List GetByTrainingScheduleEmpID(int empID, int trainSchEmpID) //{ // List oTrainingSchEmpCosts = null; // oTrainingSchEmpCosts = TrainingSchEmpCost.Service.GetByTrainingScheduleEmpID(empID, trainSchEmpID); // return oTrainingSchEmpCosts; //} //public int Save() //{ // this.SetAuditTrailProperties(); // return TrainingSchEmpCost.Service.Save(this); //} //public static void SaveTrainingSheduleCost(List tsec) //{ // Service.SaveTrainingSheduleCost(tsec); //} //public static void Delete(int id) //{ // TrainingSchEmpCost.Service.Delete(id); //} //#endregion //#region Collection Functions //public static List Get() //{ // List oTrainingSchEmpCosts = null; // #region Cache Header // oTrainingSchEmpCosts = (List)_cache["Get"]; // if (oTrainingSchEmpCosts != null) // return oTrainingSchEmpCosts; // #endregion // oTrainingSchEmpCosts = TrainingSchEmpCost.Service.Get(); // #region Cache Footer // _cache.Add(oTrainingSchEmpCosts, "Get"); // #endregion // return oTrainingSchEmpCosts; //} //#endregion //#region Service Factory //internal static ITrainingSchEmpCostService Service //{ // get // { // return Services.Factory.CreateService(typeof(ITrainingSchEmpCostService)); // } //} //#endregion //public static List GetCostWithoutParent() //{ // return Service.GetCostWithoutParent(); //} } #endregion #region ITrainingSchEmpCostService Service public interface ITrainingSchEmpCostService { TrainingSchEmpCost Get(int id); List Get(); int Save(TrainingSchEmpCost oTrainingSchEmpCost); void Delete(int id); List GetByTrainingScheduleEmpID(int iD, int trainSchEmpID); void SaveTrainingSheduleCost(List tsec); List GetCostWithoutParent(); } #endregion }