150 lines
3.9 KiB
C#
150 lines
3.9 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 PFTransaction
|
|
|
|
|
|
public class PFTransaction : AuditTrailBase
|
|
{
|
|
|
|
#region Constructor
|
|
|
|
public PFTransaction()
|
|
{
|
|
//_employeeID = null;
|
|
//_monthDate = DateTime.MinValue;
|
|
//_tranAmount = 0;
|
|
//_tranType = 0;
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public int EmployeeID { get; set; }
|
|
|
|
public DateTime MonthDate { get; set; }
|
|
|
|
public double TranAmount { get; set; }
|
|
|
|
public EnumPFTranType TranType { get; set; }
|
|
|
|
//#region Service Factory IPFTransactionService : IPFTransactionService
|
|
|
|
//internal static IPFTransactionService Service
|
|
//{
|
|
// get { return Services.Factory.CreateService<IPFTransactionService>(typeof(IPFTransactionService)); }
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
#endregion
|
|
|
|
//#region Functions
|
|
|
|
//public static List<PFTransaction> Get()
|
|
//{
|
|
// #region Cache Header
|
|
|
|
// List<PFTransaction> pFTransactions = _cache["Get"] as List<PFTransaction>;
|
|
// if (pFTransactions != null)
|
|
// return pFTransactions;
|
|
|
|
// #endregion
|
|
|
|
// try
|
|
// {
|
|
// pFTransactions = Service.Get();
|
|
// }
|
|
// catch (ServiceException e)
|
|
// {
|
|
// throw new Exception(e.Message, e);
|
|
// }
|
|
|
|
// #region Cache Footer
|
|
|
|
// _cache.Add(pFTransactions, "Get");
|
|
|
|
// #endregion
|
|
|
|
// return pFTransactions;
|
|
//}
|
|
//public static double GetPFAmount(int nEmployeeID)
|
|
//{
|
|
// double nAmount = 0;
|
|
// nAmount = Service.GetPFAmount(nEmployeeID);
|
|
// return nAmount;
|
|
//}
|
|
//public static DataSet GetPFBalance(int nEmployeeID, DateTime saalryMonth)
|
|
//{
|
|
// DataSet pfBalance = null;
|
|
// pfBalance = Service.GetPFBalance(nEmployeeID, saalryMonth);
|
|
// return pfBalance;
|
|
//}
|
|
//public static DataSet GetPFBalance(DateTime dMonth)
|
|
//{
|
|
// DataSet pfBalance = null;
|
|
// pfBalance = Service.GetPFBalance(dMonth);
|
|
// return pfBalance;
|
|
//}
|
|
//public static DataSet GetPFBalanceBAT(DateTime fromDate, DateTime toDate)
|
|
//{
|
|
// DataSet pfBalance = null;
|
|
// pfBalance = Service.GetPFBalanceBAT(fromDate, toDate);
|
|
// return pfBalance;
|
|
//}
|
|
//public void SetAuditTrail()
|
|
//{
|
|
// this.SetAuditTrailProperties();
|
|
//}
|
|
//public ID Save()
|
|
//{
|
|
// SetAuditTrail();
|
|
// return PFTransaction.Service.Save(this);
|
|
//}
|
|
//public void SaveAll(List<PFTransaction> items)
|
|
//{
|
|
// foreach (PFTransaction oItem in items)
|
|
// {
|
|
// oItem.SetAuditTrailProperties();
|
|
// }
|
|
// PFTransaction.Service.SaveAll(items);
|
|
//}
|
|
//public void Delete(ID employeeId, DateTime month, EnumPFTranType type)
|
|
//{
|
|
// PFTransaction.Service.Delete(employeeId, month, type);
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
}
|
|
#endregion
|
|
|
|
//#region IPFTransaction Service
|
|
|
|
//public interface IPFTransactionService
|
|
//{
|
|
// List<PFTransaction> Get();
|
|
// ID Save(PFTransaction item);
|
|
// void SaveAll(List<PFTransaction> items);
|
|
// void Delete(ID emloyeeId, DateTime month, EnumPFTranType type);
|
|
// double GetPFAmount(int nEmployeeID);
|
|
// DataSet GetPFBalance(int nEmpID, DateTime salaryMonth);
|
|
// DataSet GetPFBalance(DateTime salaryMonth);
|
|
// DataSet GetPFBalanceBAT(DateTime fromDate, DateTime toDate);
|
|
//}
|
|
|
|
//#endregion
|
|
}
|