137 lines
4.2 KiB
C#
137 lines
4.2 KiB
C#
|
|
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<TrainingScheduleAttn> Get()
|
|
//{
|
|
// List<TrainingScheduleAttn> oTrainingScheduleAttns = null;
|
|
// #region Cache Header
|
|
// oTrainingScheduleAttns = (List<TrainingScheduleAttn>)_cache["Get"];
|
|
// if (oTrainingScheduleAttns != null)
|
|
// return oTrainingScheduleAttns;
|
|
// #endregion
|
|
// oTrainingScheduleAttns = Service.Get();
|
|
// #region Cache Footer
|
|
// _cache.Add(oTrainingScheduleAttns, "Get");
|
|
// #endregion
|
|
// return oTrainingScheduleAttns;
|
|
//}
|
|
|
|
//public static List<TrainingScheduleAttn> GetByTrainingScheduleID(int trainingScheduleID)
|
|
//{
|
|
// List<TrainingScheduleAttn> oTrainingScheduleAttns = null;
|
|
// #region Cache Header
|
|
// oTrainingScheduleAttns = (List<TrainingScheduleAttn>)_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<ITrainingScheduleAttnService>(typeof(ITrainingScheduleAttnService));
|
|
// }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ITrainingScheduleAttn Service
|
|
|
|
public interface ITrainingScheduleAttnService
|
|
{
|
|
TrainingScheduleAttn Get(int scheduleAttnId);
|
|
List<TrainingScheduleAttn> Get();
|
|
int Save(TrainingScheduleAttn oTrainingScheduleAttn);
|
|
void Delete(int id);
|
|
bool DoesTrainingScheduleAttnExists(int trainingScheduleDateID);
|
|
List<TrainingScheduleAttn> GetByTrainingScheduleID(int trainingScheduleId);
|
|
List<TrainingScheduleAttn> GetByTrainingScheduleDateID(int trainingScheduleDateID);
|
|
}
|
|
|
|
#endregion
|
|
}
|