183 lines
4.6 KiB
C#
183 lines
4.6 KiB
C#
|
using Ease.Core.Model;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data;
|
|||
|
|
|||
|
namespace HRM.BO
|
|||
|
{
|
|||
|
#region ProdBonusWorkSchedule
|
|||
|
|
|||
|
public class ProdBonusWorkSchedule : BasicBaseObject
|
|||
|
{
|
|||
|
#region Constructor
|
|||
|
|
|||
|
public ProdBonusWorkSchedule()
|
|||
|
{
|
|||
|
_endDateTime = DateTime.MinValue;
|
|||
|
_startDateTime = DateTime.MinValue;
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Properties
|
|||
|
|
|||
|
#region ProdBonusSetupID : ID
|
|||
|
|
|||
|
private int _prodBonusSetupID;
|
|||
|
|
|||
|
public int ProdBonusSetupID
|
|||
|
{
|
|||
|
get { return _prodBonusSetupID; }
|
|||
|
set { _prodBonusSetupID = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region ProdBonusLineID : ID
|
|||
|
|
|||
|
private int _prodBonusLineID;
|
|||
|
|
|||
|
public int ProdBonusLineID
|
|||
|
{
|
|||
|
get { return _prodBonusLineID; }
|
|||
|
set { _prodBonusLineID = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region StartDateTime : DateTime
|
|||
|
|
|||
|
private DateTime _startDateTime;
|
|||
|
|
|||
|
public DateTime StartDateTime
|
|||
|
{
|
|||
|
get { return _startDateTime; }
|
|||
|
set { _startDateTime = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region EndDateTime : DateTime
|
|||
|
|
|||
|
private DateTime _endDateTime;
|
|||
|
|
|||
|
public DateTime EndDateTime
|
|||
|
{
|
|||
|
get { return _endDateTime; }
|
|||
|
set { _endDateTime = value; }
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
|
|||
|
//#region Service Factory IProdBonusWorkScheduleService : IProdBonusWorkScheduleService
|
|||
|
|
|||
|
//internal static IProdBonusWorkScheduleService Service
|
|||
|
//{
|
|||
|
// get { return Services.Factory.CreateService<IProdBonusWorkScheduleService>(typeof(IProdBonusWorkScheduleService)); }
|
|||
|
//}
|
|||
|
|
|||
|
//#endregion
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
//#region Functions
|
|||
|
|
|||
|
//public static ProdBonusWorkSchedule Get(int nID)
|
|||
|
//{
|
|||
|
// ProdBonusWorkSchedule oProdBonusWorkSchedule = null;
|
|||
|
// #region Cache Header
|
|||
|
// oProdBonusWorkSchedule = (ProdBonusWorkSchedule)_cache["Get", nID];
|
|||
|
// if (oProdBonusWorkSchedule != null)
|
|||
|
// return oProdBonusWorkSchedule;
|
|||
|
// #endregion
|
|||
|
// oProdBonusWorkSchedule = ProdBonusWorkSchedule.Service.Get(nID);
|
|||
|
// #region Cache Footer
|
|||
|
// _cache.Add(oProdBonusWorkSchedule, "Get", nID);
|
|||
|
// #endregion
|
|||
|
// return oProdBonusWorkSchedule;
|
|||
|
//}
|
|||
|
|
|||
|
//public static List<ProdBonusWorkSchedule> Get()
|
|||
|
//{
|
|||
|
// #region Cache Header
|
|||
|
|
|||
|
// List<ProdBonusWorkSchedule> ProdBonusWorkSchedules = _cache["Get"] as List<ProdBonusWorkSchedule>;
|
|||
|
// if (ProdBonusWorkSchedules != null)
|
|||
|
// return ProdBonusWorkSchedules;
|
|||
|
|
|||
|
// #endregion
|
|||
|
|
|||
|
// try
|
|||
|
// {
|
|||
|
// ProdBonusWorkSchedules = Service.Get();
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new Exception(e.Message, e);
|
|||
|
// }
|
|||
|
|
|||
|
// #region Cache Footer
|
|||
|
|
|||
|
// _cache.Add(ProdBonusWorkSchedules, "Get");
|
|||
|
|
|||
|
// #endregion
|
|||
|
|
|||
|
// return ProdBonusWorkSchedules;
|
|||
|
//}
|
|||
|
//public static List<ProdBonusWorkSchedule> Get(int nSetupID)
|
|||
|
//{
|
|||
|
// #region Cache Header
|
|||
|
|
|||
|
// List<ProdBonusWorkSchedule> ProdBonusWorkSchedules = _cache["Get"] as List<ProdBonusWorkSchedule>;
|
|||
|
// if (ProdBonusWorkSchedules != null)
|
|||
|
// return ProdBonusWorkSchedules;
|
|||
|
|
|||
|
// #endregion
|
|||
|
|
|||
|
// try
|
|||
|
// {
|
|||
|
// ProdBonusWorkSchedules = Service.Get(nSetupID);
|
|||
|
// }
|
|||
|
// catch (ServiceException e)
|
|||
|
// {
|
|||
|
// throw new Exception(e.Message, e);
|
|||
|
// }
|
|||
|
|
|||
|
// #region Cache Footer
|
|||
|
|
|||
|
// _cache.Add(ProdBonusWorkSchedules, "Get");
|
|||
|
|
|||
|
// #endregion
|
|||
|
|
|||
|
// return ProdBonusWorkSchedules;
|
|||
|
//}
|
|||
|
//public int Save()
|
|||
|
//{
|
|||
|
// this.SetAuditTrailProperties();
|
|||
|
// return ProdBonusWorkSchedule.Service.Save(this);
|
|||
|
//}
|
|||
|
|
|||
|
//public void Delete(int id)
|
|||
|
//{
|
|||
|
// ProdBonusWorkSchedule.Service.Delete(id);
|
|||
|
//}
|
|||
|
//#endregion
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region IProdBonusWorkSchedule Service
|
|||
|
|
|||
|
public interface IProdBonusWorkScheduleService
|
|||
|
{
|
|||
|
ProdBonusWorkSchedule Get(int id);
|
|||
|
List<ProdBonusWorkSchedule> Get();
|
|||
|
List<ProdBonusWorkSchedule> GetWithSetupID(int nSetupID);
|
|||
|
List<ProdBonusWorkSchedule> GetByLineID(int lineID);
|
|||
|
int Save(ProdBonusWorkSchedule item);
|
|||
|
void Delete(int id);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|