EchoTex_Payroll/HRM.BO/Attendance/DualShiftEmployee.cs
2024-10-14 10:01:49 +06:00

133 lines
3.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.Core;
using System.Data;
namespace HRM.BO
{
#region DualShiftEmployee
[Serializable]
public class DualShiftEmployee : BasicBaseObject
{
#region Constructor
public DualShiftEmployee()
{
EmployeeID = 0;
EffectDate = DateTime.MinValue;
}
#endregion
#region Properties
public int EmployeeID { get; set; }
public DateTime EffectDate { get; set; }
//#region Service Factory IDualShiftEmployeeService : IDualShiftEmployeeService
//internal static IDualShiftEmployeeService Service
//{
// get { return Services.Factory.CreateService<IDualShiftEmployeeService>(typeof(IDualShiftEmployeeService)); }
//}
//#endregion
#endregion
//#region Functions
//public static DualShiftEmployee Get(ID nID)
//{
// DualShiftEmployee oDualShift = null;
// #region Cache Header
// oDualShift = (DualShiftEmployee)_cache["Get", nID];
// if (oDualShift != null)
// return oDualShift;
// #endregion
// oDualShift = DualShiftEmployee.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oDualShift, "Get", nID);
// #endregion
// return oDualShift;
//}
//public static ObjectsTemplate<DualShiftEmployee> Get()
//{
// #region Cache Header
// ObjectsTemplate<DualShiftEmployee> dualShifts = _cache["Get"] as ObjectsTemplate<DualShiftEmployee>;
// if (dualShifts != null)
// return dualShifts;
// #endregion
// try
// {
// dualShifts = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(dualShifts, "Get");
// #endregion
// return dualShifts;
//}
//public static ObjectsTemplate<DualShiftEmployee> Get(DateTime date)
//{
// try
// {
// return Service.Get(date);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return DualShiftEmployee.Service.Save(this);
//}
//internal void Save(DataTable dtNightShiftEmployee)
//{
// DualShiftEmployee.Service.Save(dtNightShiftEmployee);
//}
//public void Delete()
//{
// DualShiftEmployee.Service.Delete(ID);
//}
//#endregion
}
#endregion
//#region IDualShiftEmployeeService
//public interface IDualShiftEmployeeService
//{
// DualShiftEmployee Get(ID id);
// ObjectsTemplate<DualShiftEmployee> Get();
// ID Save(DualShiftEmployee item);
// void Delete(ID id);
// void Save(DataTable dtNightShiftEmployee);
// ObjectsTemplate<DualShiftEmployee> Get(DateTime date);
//}
//#endregion
}