115 lines
3.1 KiB
C#
115 lines
3.1 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 TrainingCostHead
|
|||
|
public class TrainingCostHead : BasicBaseObject
|
|||
|
{
|
|||
|
#region Constructor
|
|||
|
public TrainingCostHead()
|
|||
|
{
|
|||
|
Code = string.Empty;
|
|||
|
Name = string.Empty;
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
public string Code { get; set; }
|
|||
|
|
|||
|
public string Name { get; set; }
|
|||
|
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Functions
|
|||
|
|
|||
|
//public static TrainingCostHead Get(int nTrainingCostHeadID)
|
|||
|
//{
|
|||
|
// TrainingCostHead oTrainingCostHead = null;
|
|||
|
// #region Cache Header
|
|||
|
// oTrainingCostHead = (TrainingCostHead)_cache["Get", nTrainingCostHeadID];
|
|||
|
// if (oTrainingCostHead != null)
|
|||
|
// return oTrainingCostHead;
|
|||
|
// #endregion
|
|||
|
// oTrainingCostHead = TrainingCostHead.Service.Get((nTrainingCostHeadID));
|
|||
|
// #region Cache Footer
|
|||
|
// _cache.Add(oTrainingCostHead, "Get", nTrainingCostHeadID);
|
|||
|
// #endregion
|
|||
|
// return oTrainingCostHead;
|
|||
|
//}
|
|||
|
|
|||
|
//public int Save()
|
|||
|
//{
|
|||
|
// this.SetAuditTrailProperties();
|
|||
|
// return TrainingCostHead.Service.Save(this);
|
|||
|
//}
|
|||
|
|
|||
|
////public void Delete()
|
|||
|
////{
|
|||
|
//// TrainingCostHead.Service.Delete(ID);
|
|||
|
////}
|
|||
|
|
|||
|
//public void Delete(int id)
|
|||
|
//{
|
|||
|
// TrainingCostHead.Service.Delete(id);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Collection Functions
|
|||
|
|
|||
|
//public static List<TrainingCostHead> Get()
|
|||
|
//{
|
|||
|
// List<TrainingCostHead> oTrainingCostHeads = null;
|
|||
|
// #region Cache Header
|
|||
|
// oTrainingCostHeads = (List<TrainingCostHead>)_cache["Get"];
|
|||
|
// if (oTrainingCostHeads != null)
|
|||
|
// return oTrainingCostHeads;
|
|||
|
// #endregion
|
|||
|
// oTrainingCostHeads = TrainingCostHead.Service.Get();
|
|||
|
// #region Cache Footer
|
|||
|
// _cache.Add(oTrainingCostHeads, "Get");
|
|||
|
// #endregion
|
|||
|
// return oTrainingCostHeads;
|
|||
|
//}
|
|||
|
//public static List<TrainingCostHead> Get(EnumStatus status)
|
|||
|
//{
|
|||
|
// return Get();
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Service Factory
|
|||
|
//internal static ITrainingCostHeadService Service
|
|||
|
//{
|
|||
|
// get
|
|||
|
// {
|
|||
|
// return Services.Factory.CreateService<ITrainingCostHeadService>(typeof(ITrainingCostHeadService));
|
|||
|
// }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
}
|
|||
|
#endregion
|
|||
|
#region ITrainingCostHeadService Service
|
|||
|
public interface ITrainingCostHeadService
|
|||
|
{
|
|||
|
TrainingCostHead Get(int id);
|
|||
|
List<TrainingCostHead> Get();
|
|||
|
int Save(TrainingCostHead oTrainingCostHead);
|
|||
|
void Delete(int id);
|
|||
|
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|