EchoTex_Payroll/HRM.BO/AllowDeduct/AllowanceDeduction.cs

85 lines
3.0 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region AllowanceDeduction
public class AllowanceDeduction : BasicBaseObject
{
#region Constructor
public AllowanceDeduction()
{
Code = string.Empty;
Name = string.Empty;
NameInBangla = string.Empty;
AllowOrDeductType = EnumAllowOrDeduct.Allowance;
_status = EnumStatus.Active;
}
#endregion
#region Properties
public string Code { get; set; }
public string Name { get; set; }
public string NameInBangla { get; set; }
public EnumAllowOrDeduct AllowOrDeductType { get; set; }
public int payrolltypeid { get; set; }
//#region Property Error List: DataUpload
//private List<RegularDataUpload> _errorList;
//public List<RegularDataUpload> ErrorList
//{
// get { return _errorList; }
// set { _errorList = value; }
//}
//#endregion
#endregion
//#region Service Factory IAllowanceDeductionService : IAllowanceDeductionService
//internal static IAllowanceDeductionService Service
//{
// get { return Services.Factory.CreateService<IAllowanceDeductionService>(typeof(IAllowanceDeductionService)); }
//}
//#endregion
}
#endregion
#region IAllowanceDeduction Service
public interface IAllowanceDeductionService
{
List<AllowanceDeduction> GetAllAllowance(int payrollTypeID, EnumAllowOrDeduct allowOrDeduct, EnumStatus status, string code, string name);
List<AllowanceDeduction> GetAllowance(EnumStatus status, int payrolltypeid);
List<AllowanceDeduction> GetDeduction(EnumStatus status, int payrolltypeid);
AllowanceDeduction Get(int id);
List<AllowanceDeduction> GetAllowance(EnumPeriodicity periodicity, EnumAllowOrDeduct allowOrdeduct);
List<AllowanceDeduction> GetADparamAllowance(EnumStatus status, int payrollTypeID);
// List<AllowanceDeduction> GetDeduction(EnumStatus status);
List<AllowanceDeduction> Get(int payrolltypeid, EnumStatus status, EnumAllowOrDeduct nType, EnumPeriodicity nPeriodcity);
List<AllowanceDeduction> GetMonthyIndividualAndOneOff(int payrolltypeid, EnumStatus status, EnumAllowOrDeduct nType);
int Save(AllowanceDeduction item);
List<AllowanceDeduction> GetByGradeID(EnumStatus status, int gradeID, EnumAllowOrDeduct type);
void Delete(int id);
List<AllowanceDeduction> Get(EnumStatus status, EnumAllowOrDeduct nType, int payrollTypeID);
List<AllowanceDeduction> GetException(EnumStatus status, EnumAllowOrDeduct nType, int payrollTypeID);
List<AllowanceDeduction> GetAllowance(EnumPeriodicity enumPeriodicity, EnumEntitleType enumEntitleType,
EnumAllowOrDeduct enumAllowOrDeduct);
List<AllowanceDeduction> Get(EnumStatus status);
}
#endregion
}