133 lines
4.0 KiB
C#
133 lines
4.0 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 TrainingDepartment
|
|
public class TrainingDepartment : AuditTrailBase
|
|
{
|
|
#region Constructor
|
|
public TrainingDepartment()
|
|
{
|
|
TrainingNeedAnalysisID = 0;
|
|
DepartmentID = 0;
|
|
Remarks = String.Empty;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
public int TrainingNeedAnalysisID { get; set; }
|
|
public int DepartmentID { get; set; }
|
|
public string Remarks { get; set; }
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
|
|
//public static TrainingDepartment Get(int nTrainingDepartmentID)
|
|
//{
|
|
// TrainingDepartment onTrainingDepartment = null;
|
|
// #region Cache Header
|
|
// onTrainingDepartment = (TrainingDepartment)_cache["Get", nTrainingDepartmentID];
|
|
// if (onTrainingDepartment != null)
|
|
// return onTrainingDepartment;
|
|
// #endregion
|
|
// onTrainingDepartment = Service.Get((nTrainingDepartmentID));
|
|
// #region Cache Footer
|
|
// _cache.Add(onTrainingDepartment, "Get", nTrainingDepartmentID);
|
|
// #endregion
|
|
// return onTrainingDepartment;
|
|
//}
|
|
|
|
//public int Save()
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
// return Service.Save(this);
|
|
//}
|
|
|
|
//public static bool DoesTrainingDepartmentExists(int nTrainingDepartmentID)
|
|
//{
|
|
// return Service.DoesTrainingDepartmentExists(nTrainingDepartmentID);
|
|
//}
|
|
//public void Delete()
|
|
//{
|
|
// Service.Delete(ID);
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
//#region Collection Functions
|
|
|
|
//public static List<TrainingDepartment> Get()
|
|
//{
|
|
// List<TrainingDepartment> oTrainingDepartments = null;
|
|
// #region Cache Header
|
|
// oTrainingDepartments = (List<TrainingDepartment>)_cache["Get"];
|
|
// if (oTrainingDepartments != null)
|
|
// return oTrainingDepartments;
|
|
// #endregion
|
|
// oTrainingDepartments = Service.Get();
|
|
// #region Cache Footer
|
|
// _cache.Add(oTrainingDepartments, "Get");
|
|
// #endregion
|
|
// return oTrainingDepartments;
|
|
//}
|
|
|
|
//public static List<TrainingDepartment> GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID)
|
|
//{
|
|
// List<TrainingDepartment> oTrainingDepartments = null;
|
|
// #region Cache Header
|
|
// oTrainingDepartments = (List<TrainingDepartment>)_cache["Get"];
|
|
// if (oTrainingDepartments != null)
|
|
// return oTrainingDepartments;
|
|
// #endregion
|
|
// oTrainingDepartments = Service.GetByTrainingNeedAnalysisID(trainingNeedAnalysisID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oTrainingDepartments, "Get");
|
|
// #endregion
|
|
// return oTrainingDepartments;
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
//#region Service Factory
|
|
|
|
//internal static ITrainingDepartmentService Service
|
|
//{
|
|
// get
|
|
// {
|
|
// return Services.Factory.CreateService<ITrainingDepartmentService>(typeof(ITrainingDepartmentService));
|
|
// }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ITrainingDepartment Service
|
|
|
|
public interface ITrainingDepartmentService
|
|
{
|
|
TrainingDepartment Get(int nTrainingDepartmentID);
|
|
List<TrainingDepartment> Get();
|
|
int Save(TrainingDepartment oTrainingDepartment);
|
|
void Delete(int id);
|
|
bool DoesTrainingDepartmentExists(int nTrainingDepartmentID);
|
|
List<TrainingDepartment> GetByTrainingNeedAnalysisID(int trainingNeedAnalysisID);
|
|
|
|
}
|
|
|
|
#endregion
|
|
} |