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(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 Get() //{ // #region Cache Header // ObjectsTemplate dualShifts = _cache["Get"] as ObjectsTemplate; // 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 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 Get(); // ID Save(DualShiftEmployee item); // void Delete(ID id); // void Save(DataTable dtNightShiftEmployee); // ObjectsTemplate Get(DateTime date); //} //#endregion }