137 lines
3.7 KiB
C#
137 lines
3.7 KiB
C#
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 OPIPayment
|
|
|
|
public class OPIPayment : BasicBaseObject
|
|
{
|
|
|
|
#region Constructor
|
|
public OPIPayment()
|
|
{
|
|
//_oPIItemID = null;
|
|
//_employeeID = null;
|
|
//_paymentDate = DateTime.Today;
|
|
//_amount = 0;
|
|
//_changedAmount = 0;
|
|
//_changeTaxAmount = 0;
|
|
//_taxAmount = 0;
|
|
//_remarks = string.Empty;
|
|
}
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public int OPIItemID { get; set; }
|
|
|
|
public int EmployeeID { get; set; }
|
|
|
|
public DateTime PaymentDate { get; set; }
|
|
|
|
public double Amount { get; set; }
|
|
|
|
public double ChangedAmount { get; set; }
|
|
|
|
public double ChangeTaxAmount { get; set; }
|
|
|
|
public double TaxAmount { get; set; }
|
|
|
|
public string Remarks { get; set; }
|
|
|
|
//#region Service Factory IOPIPaymentService : IOPIPaymentService
|
|
//internal static IOPIPaymentService Service
|
|
//{
|
|
// get
|
|
// {
|
|
// return Services.Factory.CreateService<IOPIPaymentService>(typeof(IOPIPaymentService));
|
|
// }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
//public static OPIPayment Get(ID nOPIPaymentID)
|
|
//{
|
|
// OPIPayment oOPIPayment = null;
|
|
// #region Cache Header
|
|
// oOPIPayment = (OPIPayment)_cache["Get", nOPIPaymentID];
|
|
// if (oOPIPayment != null)
|
|
// return oOPIPayment;
|
|
// #endregion
|
|
// oOPIPayment = OPIPayment.Service.Get(nOPIPaymentID);
|
|
// #region Cache Footer
|
|
// _cache.Add(oOPIPayment, "Get", nOPIPaymentID);
|
|
// #endregion
|
|
// return oOPIPayment;
|
|
//}
|
|
//public static List<OPIPayment> Get()
|
|
//{
|
|
// #region Cache Header
|
|
// List<OPIPayment> oOPIPayments = _cache["Get"] as List<OPIPayment>;
|
|
// if (oOPIPayments != null)
|
|
// return oOPIPayments;
|
|
// #endregion
|
|
// try
|
|
// {
|
|
// oOPIPayments = Service.Get();
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
// #region Cache Footer
|
|
// _cache.Add(oOPIPayments, "Get");
|
|
// #endregion
|
|
// return oOPIPayments;
|
|
//}
|
|
//public static DataSet GetDataSetOfPaymentEmployees(ID nOpiItemID, EnumOpiType nOpiType)
|
|
//{
|
|
// DataSet dsEmployees = null;
|
|
// dsEmployees = OPIPayment.Service.GetDataSetOfPaymentEmployees(nOpiItemID, nOpiType);
|
|
// return dsEmployees;
|
|
//}
|
|
|
|
//public ID Save()
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
// return OPIPayment.Service.Save(this);
|
|
//}
|
|
//public void Save(List<OPIPayment> opiPaymets)
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
// OPIPayment.Service.Save(opiPaymets);
|
|
//}
|
|
//public void Delete(ID id)
|
|
//{
|
|
// OPIPayment.Service.Delete(id);
|
|
//}
|
|
//#endregion
|
|
}
|
|
#endregion
|
|
|
|
#region IOPIPayment Service
|
|
public interface IOPIPaymentService
|
|
{
|
|
OPIPayment Get(int id);
|
|
List<OPIPayment> Get();
|
|
DataSet GetDataSetOfPaymentEmployees(int nOpiItemID, EnumOpiType nOpiType);
|
|
|
|
int Save(OPIPayment item);
|
|
void Save(List<OPIPayment> opiPaymets);
|
|
void Delete(int id);
|
|
}
|
|
#endregion
|
|
}
|