EchoTex_Payroll/HRM.BO/Bonus/PRBCalculation.cs
2024-10-14 10:01:49 +06:00

218 lines
7.3 KiB
C#

using Ease.Core.DataAccess;
using HRM.BO.Assets;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace HRM.BO
{
#region PRBCalculation
public class PRBCalculation : BasicBaseObject
{
#region Constructor
public PRBCalculation()
{
TotalAcheive = 0;
AmountT1 = 0;
AmountT2 = 0;
AmountT3 = 0;
AmountT4 = 0;
AmountT5 = 0;
AmountT6 = 0;
AmountT7 = 0;
AmountT8 = 0;
AmountT9 = 0;
AmountT10 = 0;
AcheiveT1 = 0;
AcheiveT2 = 0;
AcheiveT3 = 0;
AcheiveT4 = 0;
AcheiveT5 = 0;
AcheiveT6 = 0;
AcheiveT7 = 0;
AcheiveT8 = 0;
AcheiveT9 = 0;
AcheiveT10 = 0;
TargetT2 = 0;
TargetT3 = 0;
TargetT4 = 0;
TargetT5 = 0;
TargetT6 = 0;
TargetT7 = 0;
TargetT8 = 0;
TargetT9 = 0;
TargetT10 = 0;
TargetT1 = 0;
}
#endregion
#region Properties
public int EmployeeID { get; set; }
public Employee Employee { get; set; }
public int NoOFDays { get; set; }
public double? BonusAmount { get; set; }
public string BonusAmountString { get; set; }
public double? TargetT1 { get; set; }
public double? AcheiveT1 { get; set; }
public double? AmountT1 { get; set; }
public double? TargetT2 { get; set; }
public double? AcheiveT2 { get; set; }
public double? AmountT2 { get; set; }
public double? TargetT3 { get; set; }
public double? AcheiveT3 { get; set; }
public double? AmountT3 { get; set; }
public double? TargetT4 { get; set; }
public double? AcheiveT4 { get; set; }
public double? AmountT4 { get; set; }
public double? TargetT5 { get; set; }
public double? AcheiveT5 { get; set; }
public double? AmountT5 { get; set; }
public double? TargetT6 { get; set; }
public double? AcheiveT6 { get; set; }
public double? AmountT6 { get; set; }
public double? TargetT7 { get; set; }
public double? AcheiveT7 { get; set; }
public double? AmountT7 { get; set; }
public double? TargetT8 { get; set; }
public double? AcheiveT8 { get; set; }
public double? AmountT8 { get; set; }
public double? TargetT9 { get; set; }
public double? AcheiveT9 { get; set; }
public double? AmountT9 { get; set; }
public double? TargetT10 { get; set; }
public double? AcheiveT10 { get; set; }
public double? AmountT10 { get; set; }
public double? TotalAcheive { get; set; }
public double? TotalPRB { get; set; }
public string TotalPRBString { get; set; }
public double? Tax { get; set; }
public double? NetAmount { get; set; }
public string TotalAcheiveString { get; set; }
public double? T1AcheiveTemp { get; set; }
public double? T2AcheiveTemp { get; set; }
public double? T3AcheiveTemp { get; set; }
public double? T4AcheiveTemp { get; set; }
public double? T5AcheiveTemp { get; set; }
public double? T6AcheiveTemp { get; set; }
public double? T7AcheiveTemp { get; set; }
public double? T8AcheiveTemp { get; set; }
public double? T9AcheiveTemp { get; set; }
public double? T10AcheiveTemp { get; set; }
public DateTime EndDate { get; set; }
public DateTime Year { get; set; }
public double? AnnualBasicSalary { get; set; }
public double? ProrataCal { get; set; }
public EnumPRBStatus PRBStatus { get; set; }
public int BatchID { get; set; }
// public List<PRBKpi> PrbKpiList { get; set; }
public string ObjectDescription
{
get
{
string str = "";
return str;
}
}
public int SetupID
{
get
{
return 10;
}
}
public int ObjectID
{
get { return this.BatchID; }
}
#endregion
}
public class PRBCalculationReport : BasicBaseObject
{
#region Constructor
public PRBCalculationReport()
{
}
#endregion
#region Properties
public int EmployeeID { get; set; }
public Employee Employee { get; set; }
public int NoOFDays { get; set; }
public string BonusAmount { get; set; }
public double TargetT1 { get; set; }
public double AcheiveT1 { get; set; }
public string AmountT1 { get; set; }
public double TargetT2 { get; set; }
public double AcheiveT2 { get; set; }
public string AmountT2 { get; set; }
public double TargetT3 { get; set; }
public double AcheiveT3 { get; set; }
public string AmountT3 { get; set; }
public double TargetT4 { get; set; }
public double AcheiveT4 { get; set; }
public string AmountT4 { get; set; }
public double TargetT5 { get; set; }
public double AcheiveT5 { get; set; }
public string AmountT5 { get; set; }
public double TargetT6 { get; set; }
public double AcheiveT6 { get; set; }
public string AmountT6 { get; set; }
public double TargetT7 { get; set; }
public double AcheiveT7 { get; set; }
public string AmountT7 { get; set; }
public double TargetT8 { get; set; }
public double AcheiveT8 { get; set; }
public string AmountT8 { get; set; }
public double TargetT9 { get; set; }
public double AcheiveT9 { get; set; }
public string AmountT9 { get; set; }
public double TargetT10 { get; set; }
public double AcheiveT10 { get; set; }
public string AmountT10 { get; set; }
public string TotalAcheive { get; set; }
public string TotalPRBString { get; set; }
public string TotalAcheiveString { get; set; }
public string EndDate { get; set; }
public string JoiningDate { get; set; }
public string AnnualBasicSalary { get; set; }
public List<PRBKpi> PrbKpiList { get; set; }
#endregion
}
public interface IPRBCalculationService
{
PRBCalculation Get(int id);
List<PRBCalculation> GetByid(int id);
//List<PRBCalculation> GetByEmpIds(string sEmpIDs);
List<PRBCalculation> GetByEmpIds(string sEmpIDs, DateTime prbYear, DateTime prbMonth);
//int Save(PRBCalculation item);
void Delete(int id);
void Save(List<PRBCalculation> PRBCalculations);
void Delete(int empid, DateTime prbMonth);
void Save(List<PRBCalculation> PRBCalculations, DateTime prbMonth, DateTime prbYear, int userID);
PRBCalculation GetByEmployeeID(int id);
void ApprovePRBBonus(WFMovementTran approver);
void RejectPRBBonus(WFMovementTran approver);
PRBCalculation GetByEmployeeIDDecData(int id, DateTime prbYear);
List<PRBCalculation> GetByBatchId(int batchId);
void InitiatePRBCalculationWorkFlow(int prbid, int userID, int employeeid);
DataTable GetPrbAmountOfCurrentMonth(int batchId);
}
}
#endregion