EchoTex_Payroll/HRM.BO/TrainingBOs/TrainingNdAnalysisTimeSch.cs

140 lines
4.5 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00

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<TrainingNdAnalysisTimeSch> Get()
//{
// List<TrainingNdAnalysisTimeSch> oTrainingNdAnalysisTimeSchs = null;
// #region Cache Header
// oTrainingNdAnalysisTimeSchs = (List<TrainingNdAnalysisTimeSch>)_cache["Get"];
// if (oTrainingNdAnalysisTimeSchs != null)
// return oTrainingNdAnalysisTimeSchs;
// #endregion
// oTrainingNdAnalysisTimeSchs = Service.Get();
// #region Cache Footer
// _cache.Add(oTrainingNdAnalysisTimeSchs, "Get");
// #endregion
// return oTrainingNdAnalysisTimeSchs;
//}
//public static List<TrainingNdAnalysisTimeSch> GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID)
//{
// List<TrainingNdAnalysisTimeSch> oTrainingNdAnalysisTimeSchs = null;
// #region Cache Header
// oTrainingNdAnalysisTimeSchs = (List<TrainingNdAnalysisTimeSch>)_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<ITrainingNdAnalysisTimeSchService>(typeof(ITrainingNdAnalysisTimeSchService));
// }
//}
//#endregion
}
#endregion
#region ITrainingNdAnalysisTimeSch Service
public interface ITrainingNdAnalysisTimeSchService
{
TrainingNdAnalysisTimeSch Get(int nTrainingNdAnalysisTimeSchID);
List<TrainingNdAnalysisTimeSch> Get();
int Save(TrainingNdAnalysisTimeSch oTrainingNdAnalysisTimeSch);
void Delete(int id);
bool DoesTrainingNdAnalysisTimeSchExists(int nTrainingNdAnalysisTimeSchID);
List<TrainingNdAnalysisTimeSch> GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID);
}
#endregion
}