EchoTex_Payroll/HRM.BO/Tax/TaxChallan.cs

174 lines
4.5 KiB
C#
Raw Permalink 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 TaxChallan
public class TaxChallan : AuditTrailBase
{
#region Constructor
public TaxChallan()
{
SalaryMonthly = DateTime.MinValue;
EmployeeID = 0;
TaxParameterID = 0;
ChallanNo = string.Empty;
Amount = 0;
DepositDate = DateTime.MinValue;
}
#endregion
#region Properties
public DateTime SalaryMonthly { get; set; }
public int EmployeeID { get; set; }
public int TaxParameterID { get; set; }
public string ChallanNo { get; set; }
public double Amount { get; set; }
public DateTime DepositDate { get; set; }
//#region Service Factory ITaxChallanService : ITaxChallanService
//internal static ITaxChallanService Service
//{
// get { return Services.Factory.CreateService<ITaxChallanService>(typeof(ITaxChallanService)); }
//}
//#endregion
#endregion
//#region Functions
//public static TaxChallan Get(int nID)
//{
// TaxChallan oTaxChallan = null;
// #region Cache Header
// oTaxChallan = (TaxChallan)_cache["Get", nID];
// if (oTaxChallan != null)
// return oTaxChallan;
// #endregion
// oTaxChallan = TaxChallan.Service.Get(nID);
// #region Cache Footer
// _cache.Add(oTaxChallan, "Get", nID);
// #endregion
// return oTaxChallan;
//}
//public static List<TaxChallan> Get()
//{
// #region Cache Header
// List<TaxChallan> taxChallans = _cache["Get"] as List<TaxChallan>;
// if (taxChallans != null)
// return taxChallans;
// #endregion
// try
// {
// taxChallans = Service.Get();
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(taxChallans, "Get");
// #endregion
// return taxChallans;
//}
//public static List<TaxChallan> Get(int nEmpID,int nTaxParamID)
//{
// #region Cache Header
// List<TaxChallan> taxChallans = _cache["Get",nEmpID,nTaxParamID] as List<TaxChallan>;
// if (taxChallans != null)
// return taxChallans;
// #endregion
// try
// {
// taxChallans = Service.Get(nEmpID,nTaxParamID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// #region Cache Footer
// _cache.Add(taxChallans, "Get",nEmpID,nTaxParamID);
// #endregion
// return taxChallans;
//}
//public static DataTable GetChalaCountByTaxParamID(int nTaxParamID)
//{
// DataTable dataTableChalanCount = new DataTable("ChalanCount");
// try
// {
// dataTableChalanCount = Service.GetChalaCountByTaxParamID(nTaxParamID);
// }
// catch (ServiceException e)
// {
// throw new Exception(e.Message, e);
// }
// return dataTableChalanCount;
//}
//public int Save()
//{
// this.SetAuditTrailProperties();
// return TaxChallan.Service.Save(this);
//}
//public void Delete()
//{
// TaxChallan.Service.Delete(ID);
//}
//public void DeleteAllByTaxparamID(int nTaxparamID)
//{
// TaxChallan.Service.DeleteAllByTaxparamID(nTaxparamID);
//}
//#endregion
}
#endregion
#region ITaxChallan Service
public interface ITaxChallanService
{
TaxChallan Get(int id);
List<TaxChallan> Get();
List<TaxChallan> Get(int nEmpID,int nTaxParamID);
List<TaxChallan> Get(string sEmpIDs, int nTaxParamID);
List<TaxChallan> GetByTaxParamId(int nTaxParamID);
int Save(TaxChallan item);
void Delete(int id);
void DeleteAllByTaxparamID(int nTaxparamID);
DataTable GetChalaCountByTaxParamID(int nTaxParamID);
}
#endregion
}