EchoTex_Payroll/HRM.BO/OPI/OPIProcessDetailItem.cs

124 lines
3.6 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.Core;
using Ease.Core.Model;
using System.Data;
namespace HRM.BO
{
#region OPIProcessDetailItem
public class OPIProcessDetailItem : BasicBaseObject
{
#region Constructor
public OPIProcessDetailItem()
{
//_changeNetAmount = 0;
//_description = string.Empty;
//_netAmount = 0;
//_taxAmount = 0;
//_oPIItemID = null;
//_oPIProcessDetailID = null;
//_oPIType = EnumOpiType.Provision;
//_payrollTypeID = Payroll.BO.SystemInformation.CurrentSysInfo.PayrollTypeID;
}
#endregion
#region Properties
public double ChangeNetAmount { get; set; }
public string Description { get; set; }
public double NetAmount { get; set; }
public OpiParameter Paramter { get; set; }
public int PayrollTypeID { get; set; }
public int OPIItemID { get; set; }
public int OPIProcessDetailID { get; set; }
public EnumOpiType OPIType { get; set; }
public double TaxAmount { get; set; }
//#region Service Factory IOPIProcessDetailItemService : IOPIProcessDetailItemService
//internal static IOPIProcessDetailItemService Service
//{
// get
// {
// return Services.Factory.CreateService<IOPIProcessDetailItemService>(typeof(IOPIProcessDetailItemService));
// }
//}
//#endregion
#endregion
//#region Functions
//public static OPIProcessDetailItem Get(ID nOPIProcessDetailItemID)
//{
// OPIProcessDetailItem oOPIProcessDetailItem = null;
// #region Cache Header
// oOPIProcessDetailItem = (OPIProcessDetailItem)_cache["Get", nOPIProcessDetailItemID];
// if (oOPIProcessDetailItem != null)
// return oOPIProcessDetailItem;
// #endregion
// oOPIProcessDetailItem = OPIProcessDetailItem.Service.Get(nOPIProcessDetailItemID);
// #region Cache Footer
// _cache.Add(oOPIProcessDetailItem, "Get", nOPIProcessDetailItemID);
// #endregion
// return oOPIProcessDetailItem;
//}
//public static List<OPIProcessDetailItem> Get()
//{
// #region Cache Header
// List<OPIProcessDetailItem> oOPIProcessDetailItems = _cache["Get"] as List<OPIProcessDetailItem>;
// if (oOPIProcessDetailItems != null)
// return oOPIProcessDetailItems;
// #endregion
// try
// {
// oOPIProcessDetailItems = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(oOPIProcessDetailItems, "Get");
// #endregion
// return oOPIProcessDetailItems;
//}
//public ID Save()
//{
// this.SetAuditTrailProperties();
// return OPIProcessDetailItem.Service.Save(this);
//}
//public void Delete(ID id)
//{
// OPIProcessDetailItem.Service.Delete(id);
//}
//#endregion
}
#endregion
//#region IOPIProcessDetailItem Service
//public interface IOPIProcessDetailItemService
//{
// OPIProcessDetailItem Get(ID id);
// List<OPIProcessDetailItem> Get();
// ID Save(OPIProcessDetailItem item);
// void Delete(ID id);
//}
//#endregion
}