137 lines
4.0 KiB
C#
137 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 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<TrainingSchEmpCost> GetByTrainingScheduleEmpID(int empID, int trainSchEmpID)
|
|||
|
//{
|
|||
|
// List<TrainingSchEmpCost> 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<TrainingSchEmpCost> tsec)
|
|||
|
//{
|
|||
|
// Service.SaveTrainingSheduleCost(tsec);
|
|||
|
//}
|
|||
|
//public static void Delete(int id)
|
|||
|
//{
|
|||
|
// TrainingSchEmpCost.Service.Delete(id);
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
//#region Collection Functions
|
|||
|
|
|||
|
//public static List<TrainingSchEmpCost> Get()
|
|||
|
//{
|
|||
|
// List<TrainingSchEmpCost> oTrainingSchEmpCosts = null;
|
|||
|
// #region Cache Header
|
|||
|
// oTrainingSchEmpCosts = (List<TrainingSchEmpCost>)_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<ITrainingSchEmpCostService>(typeof(ITrainingSchEmpCostService));
|
|||
|
// }
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
//public static List<TrainingSchEmpCost> GetCostWithoutParent()
|
|||
|
//{
|
|||
|
// return Service.GetCostWithoutParent();
|
|||
|
//}
|
|||
|
}
|
|||
|
#endregion
|
|||
|
#region ITrainingSchEmpCostService Service
|
|||
|
public interface ITrainingSchEmpCostService
|
|||
|
{
|
|||
|
TrainingSchEmpCost Get(int id);
|
|||
|
List<TrainingSchEmpCost> Get();
|
|||
|
int Save(TrainingSchEmpCost oTrainingSchEmpCost);
|
|||
|
void Delete(int id);
|
|||
|
|
|||
|
List<TrainingSchEmpCost> GetByTrainingScheduleEmpID(int iD, int trainSchEmpID);
|
|||
|
void SaveTrainingSheduleCost(List<TrainingSchEmpCost> tsec);
|
|||
|
List<TrainingSchEmpCost> GetCostWithoutParent();
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|