Merge pull request 'salary on balancing' (#3) from Brac_Master_Ashek into Brac_Master
Reviewed-on: http://103.197.204.162:3025/CelHRTeam/HRM-10/pulls/3
This commit is contained in:
commit
b0602c2ee0
|
|
@ -194,6 +194,9 @@ namespace HRM.BO
|
||||||
public bool IsTaxProjection { get; set; }
|
public bool IsTaxProjection { get; set; }
|
||||||
public bool IsDependsOnAttendance { get; set; }
|
public bool IsDependsOnAttendance { get; set; }
|
||||||
public bool ISDEPENDSONSPECIALHOUR { get; set; }
|
public bool ISDEPENDSONSPECIALHOUR { get; set; }
|
||||||
|
public EnumAllowanceType AllowanceType { get; set; }
|
||||||
|
|
||||||
|
public bool IsOnBalancing { get; set; }
|
||||||
public bool IsDependsOnOTHour { get; set; }
|
public bool IsDependsOnOTHour { get; set; }
|
||||||
public bool IsWithException { get; set; }
|
public bool IsWithException { get; set; }
|
||||||
public EnumPeriodicity Periodicity { get; set; }
|
public EnumPeriodicity Periodicity { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,10 @@ namespace HRM.BO
|
||||||
public int Approvedby { get; set; }
|
public int Approvedby { get; set; }
|
||||||
public DateTime ApprovedDate { get; set; }
|
public DateTime ApprovedDate { get; set; }
|
||||||
public EnumAuthStatus ApprovalStatus { get; set; }
|
public EnumAuthStatus ApprovalStatus { get; set; }
|
||||||
|
|
||||||
|
public EnumAllowanceType AllowanceType { get; set; }
|
||||||
|
|
||||||
|
public bool IsOnBalancing { get; set; }
|
||||||
public double GetAmount(double basicSalary, double grossSalary)
|
public double GetAmount(double basicSalary, double grossSalary)
|
||||||
{
|
{
|
||||||
if (this.ValueType == EnumValueType.Amount) return this.MonthlyAmount;
|
if (this.ValueType == EnumValueType.Amount) return this.MonthlyAmount;
|
||||||
|
|
|
||||||
|
|
@ -1961,6 +1961,14 @@ namespace HRM.BO
|
||||||
Individual = 2
|
Individual = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum EnumAllowanceType
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
HouseRent = 1,
|
||||||
|
Medical = 2,
|
||||||
|
Conveynce = 3
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public enum EnumPFTranType
|
public enum EnumPFTranType
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -791,6 +791,8 @@ namespace HRM.BO
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
public double ActualPassegeFreeAmount { get; set; }
|
||||||
|
|
||||||
// #region Functions
|
// #region Functions
|
||||||
|
|
||||||
// public static SalaryMonthly Get(int nID)
|
// public static SalaryMonthly Get(int nID)
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,11 @@ namespace HRM.BO
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
public EnumAllowanceType AllowanceType { get; set; }
|
||||||
|
|
||||||
|
public bool IsOnBalancing { get; set; }
|
||||||
|
|
||||||
|
public double ActualPassegeFreeAmount { get; set; }
|
||||||
|
|
||||||
#region Service Factory ISalaryMonthlyService : ISalaryMonthlyService
|
#region Service Factory ISalaryMonthlyService : ISalaryMonthlyService
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,15 +22,15 @@ namespace HRM.DA
|
||||||
{
|
{
|
||||||
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
// 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
||||||
tc.ExecuteNonQuery(
|
tc.ExecuteNonQuery(
|
||||||
"INSERT INTO ADPARAMETERBASIC(ADParameterID, allowDeductID, isForConfirmOnly, flatAmount, percentOfBasic, percentOfGross, GFFlatAmount, GFPercentOfBasic, GFPercentOfGross, minAmount, maxAmount, isCurrentlyActive, TAXABLEPERCENTAGE, ISTAXABLE, ISTaxProjection, IsDependsOnAttendance, IsDependsOnOTHour,ISDEPENDSONSPECIALHOUR, IsWithException, Periodicity, ALLOWORDEDUCT, GENDER, CreatedBy, CreationDate, PAYROLLTYPEID, LASTACTIVATIONDATE,ENTITLETYPE,PercentOfEarnedBasic,IsFractionateApplicable, TaxProjection)" +
|
"INSERT INTO ADPARAMETERBASIC(ADParameterID, allowDeductID, isForConfirmOnly, flatAmount, percentOfBasic, percentOfGross, GFFlatAmount, GFPercentOfBasic, GFPercentOfGross, minAmount, maxAmount, isCurrentlyActive, TAXABLEPERCENTAGE, ISTAXABLE, ISTaxProjection, IsDependsOnAttendance, IsDependsOnOTHour,ISDEPENDSONSPECIALHOUR, IsWithException, Periodicity, ALLOWORDEDUCT, GENDER, CreatedBy, CreationDate, PAYROLLTYPEID, LASTACTIVATIONDATE,ENTITLETYPE,PercentOfEarnedBasic,IsFractionateApplicable, TaxProjection,allowanceType,isBalancing)" +
|
||||||
" VALUES(%n, %n, %b, %n, %n, %n, %n, %n, %n, %n, %n, %b, %n, %b, %b, %b, %b, %n, %b, %n, %n, %n, %n, %d, %n, %D, %n, %n, %n,%n)",
|
" VALUES(%n, %n, %b, %n, %n, %n, %n, %n, %n, %n, %n, %b, %n, %b, %b, %b, %b, %n, %b, %n, %n, %n, %n, %d, %n, %D, %n, %n, %n,%n,%n,%b)",
|
||||||
item.ID, item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount, item.PercentOfBasic,
|
item.ID, item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount, item.PercentOfBasic,
|
||||||
item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic, item.GFPercentOfGross, item.MinAmount,
|
item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic, item.GFPercentOfGross, item.MinAmount,
|
||||||
item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage, item.IsTaxable, item.IsTaxProjection,
|
item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage, item.IsTaxable, item.IsTaxProjection,
|
||||||
item.IsDependsOnAttendance, item.IsDependsOnOTHour, item.ISDEPENDSONSPECIALHOUR, item.IsWithException,
|
item.IsDependsOnAttendance, item.IsDependsOnOTHour, item.ISDEPENDSONSPECIALHOUR, item.IsWithException,
|
||||||
item.Periodicity, item.AllowOrDeductType, item.Gender, item.CreatedBy, item.CreatedDate,
|
item.Periodicity, item.AllowOrDeductType, item.Gender, item.CreatedBy, item.CreatedDate,
|
||||||
item.PayrollTypeID, DateTime.Now, item.EntitleType, item.PercentOfEarnedBasic,
|
item.PayrollTypeID, DateTime.Now, item.EntitleType, item.PercentOfEarnedBasic,
|
||||||
item.IsFractionateApplicable, 0);
|
item.IsFractionateApplicable, 0,item.AllowanceType,item.IsOnBalancing);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static void Insert(TransactionContext tc, ADParameter.ADParameterGrade item)
|
internal static void Insert(TransactionContext tc, ADParameter.ADParameterGrade item)
|
||||||
|
|
@ -57,13 +57,13 @@ namespace HRM.DA
|
||||||
internal static void Update(TransactionContext tc, ADParameter item)
|
internal static void Update(TransactionContext tc, ADParameter item)
|
||||||
{
|
{
|
||||||
tc.ExecuteNonQuery(
|
tc.ExecuteNonQuery(
|
||||||
"UPDATE ADPARAMETERBASIC SET allowDeductID=%n, IsForConfirmOnly=%b, FlatAmount=%n, PercentOfBasic=%n, PercentOfGross=%n, GFFlatAmount=%n, GFPercentOfBasic=%n, GFPercentOfGross=%n, MinAmount=%n, MaxAmount=%n, IsCurrentlyActive=%b, TaxablePercentage=%n, IsTaxable=%b, IsTaxProjection=%b, IsDependsOnAttendance=%b, IsDependsOnOTHour=%b, IsWithException=%b, Periodicity=%n, ALLOWORDEDUCT=%n, Gender=%n, ModifiedBy=%n, ModifiedDate=%d, ENTITLETYPE=%n, PercentOfEarnedBasic=%n, IsFractionateApplicable=%n" +
|
"UPDATE ADPARAMETERBASIC SET allowDeductID=%n, IsForConfirmOnly=%b, FlatAmount=%n, PercentOfBasic=%n, PercentOfGross=%n, GFFlatAmount=%n, GFPercentOfBasic=%n, GFPercentOfGross=%n, MinAmount=%n, MaxAmount=%n, IsCurrentlyActive=%b, TaxablePercentage=%n, IsTaxable=%b, IsTaxProjection=%b, IsDependsOnAttendance=%b, IsDependsOnOTHour=%b, IsWithException=%b, Periodicity=%n, ALLOWORDEDUCT=%n, Gender=%n, ModifiedBy=%n, ModifiedDate=%d, ENTITLETYPE=%n, PercentOfEarnedBasic=%n, IsFractionateApplicable=%n,allowanceType=%n,isBalancing=%b" +
|
||||||
" WHERE ADParameterID=%n", item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount,
|
" WHERE ADParameterID=%n", item.AllowDeductID, item.IsForConfirmOnly, item.FlatAmount,
|
||||||
item.PercentOfBasic, item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic,
|
item.PercentOfBasic, item.PercentOfGross, item.GFFlatAmount, item.GFPercentOfBasic,
|
||||||
item.GFPercentOfGross, item.MinAmount, item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage,
|
item.GFPercentOfGross, item.MinAmount, item.MaxAmount, item.IsCurrentlyActive, item.TaxablePercentage,
|
||||||
item.IsTaxable, item.IsTaxProjection, item.IsDependsOnAttendance, item.IsDependsOnOTHour,
|
item.IsTaxable, item.IsTaxProjection, item.IsDependsOnAttendance, item.IsDependsOnOTHour,
|
||||||
item.IsWithException, item.Periodicity, item.AllowOrDeductType, item.Gender, item.ModifiedBy,
|
item.IsWithException, item.Periodicity, item.AllowOrDeductType, item.Gender, item.ModifiedBy,
|
||||||
item.ModifiedDate, item.EntitleType, item.PercentOfEarnedBasic, item.IsFractionateApplicable, item.ID);
|
item.ModifiedDate, item.EntitleType, item.PercentOfEarnedBasic, item.IsFractionateApplicable, item.AllowanceType, item.IsOnBalancing, item.ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ namespace HRM.DA
|
||||||
oADParameter.ModifiedBy = oReader.GetInt32("ModifiedBy", 0);
|
oADParameter.ModifiedBy = oReader.GetInt32("ModifiedBy", 0);
|
||||||
oADParameter.ModifiedDate = oReader.GetDateTime("ModifiedDate");
|
oADParameter.ModifiedDate = oReader.GetDateTime("ModifiedDate");
|
||||||
oADParameter.EntitleType = (EnumEntitleType)oReader.GetInt32("EntitleType").Value;
|
oADParameter.EntitleType = (EnumEntitleType)oReader.GetInt32("EntitleType").Value;
|
||||||
|
oADParameter.AllowanceType = (EnumAllowanceType)oReader.GetInt32("allowanceType").Value;
|
||||||
|
oADParameter.IsOnBalancing = oReader.GetBoolean("isBalancing").Value;
|
||||||
this.SetObjectState(oADParameter, Ease.Core.ObjectState.Saved);
|
this.SetObjectState(oADParameter, Ease.Core.ObjectState.Saved);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -938,7 +940,88 @@ namespace HRM.DA
|
||||||
return nAmount;
|
return nAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double GetGradeDefinedAmountForMonth(Employee employee, double basicSalary,
|
||||||
|
double grossSalary, EmployeeGradeSalary oEmpGradeSalary, ADParameter param, int nFrac)
|
||||||
|
{
|
||||||
|
ADParameterEmployee adEmp = null;
|
||||||
|
double nAmount = 0.0;
|
||||||
|
switch (param.EntitleType)
|
||||||
|
{
|
||||||
|
case EnumEntitleType.Grade:
|
||||||
|
if (param.PercentOfBasic > 0)
|
||||||
|
nAmount = nAmount + param.FlatAmount * nFrac +
|
||||||
|
basicSalary * param.PercentOfBasic / 100.0;
|
||||||
|
//nAmount = basicSalary * this.PercentOfBasic / 100.0;// + this.FlatAmount;
|
||||||
|
else if (param.PercentOfGross > 0)
|
||||||
|
nAmount = nAmount + param.FlatAmount * nFrac +
|
||||||
|
grossSalary * param.PercentOfGross / 100.0;
|
||||||
|
//nAmount = grossSalary * this.PercentOfGross / 100.0;// + this.FlatAmount;
|
||||||
|
else
|
||||||
|
nAmount = param.FlatAmount * nFrac;
|
||||||
|
|
||||||
|
//bool IsGradFather = (employee.GrandFather != null && employee.GrandFather.Allowance == true);
|
||||||
|
//if (IsGradFather == true)
|
||||||
|
//{
|
||||||
|
// nAmount = 0;
|
||||||
|
// if (this.GFPercentOfBasic > 0)
|
||||||
|
// nAmount = nAmount + this.GFFlatAmount * oEmpGradeSalary.FractionofFromTo + basicSalary * this.GFPercentOfBasic / 100.0;
|
||||||
|
// //nAmount = basicSalary * this.PercentOfBasic / 100.0;// + this.FlatAmount;
|
||||||
|
// else if (this.GFPercentOfGross > 0)
|
||||||
|
// nAmount = nAmount + this.GFFlatAmount * oEmpGradeSalary.FractionofFromTo + grossSalary * this.GFPercentOfGross / 100.0;
|
||||||
|
// //nAmount = grossSalary * this.PercentOfGross / 100.0;// + this.FlatAmount;
|
||||||
|
// else
|
||||||
|
// nAmount = this.GFFlatAmount * oEmpGradeSalary.FractionofFromTo;
|
||||||
|
//}
|
||||||
|
|
||||||
|
if (param.NotApplicable.Exists(x => x.EmployeeID == employee.ID) == true)
|
||||||
|
{
|
||||||
|
nAmount = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
adEmp = param.Exception.Find(x => x.EmployeeID == employee.ID);
|
||||||
|
if (adEmp != null)
|
||||||
|
{
|
||||||
|
switch (adEmp.ValueType)
|
||||||
|
{
|
||||||
|
case EnumValueType.Amount:
|
||||||
|
nAmount = adEmp.MonthlyAmount * nFrac;
|
||||||
|
break;
|
||||||
|
case EnumValueType.Other:
|
||||||
|
if (param.PercentOfBasic > 0 || adEmp.MonthlyAmount > 0)
|
||||||
|
nAmount = basicSalary * adEmp.MonthlyAmount /
|
||||||
|
100.0; //* oEmpGradeSalary.FractionofFromTo; //+ this.FlatAmount;
|
||||||
|
else if (param.PercentOfGross > 0 || adEmp.MonthlyAmount > 0)
|
||||||
|
nAmount = grossSalary * adEmp.MonthlyAmount /
|
||||||
|
100.0; //* oEmpGradeSalary.FractionofFromTo; //+ this.FlatAmount;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EnumEntitleType.Individual:
|
||||||
|
throw new Exception("You have choosed the wrong overloaded function to calculate"
|
||||||
|
+ " Individual Allowance" + " Employee:(" + employee.EmployeeNo + ")" +
|
||||||
|
employee.Name + "; Item Name:" + param.AllowanceDeduction.Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (param.MinAmount != 0 || param.MaxAmount != 0)
|
||||||
|
{
|
||||||
|
if (nAmount < param.MinAmount)
|
||||||
|
{
|
||||||
|
nAmount = param.MinAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nAmount > param.MaxAmount)
|
||||||
|
{
|
||||||
|
nAmount = param.MaxAmount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nAmount;
|
||||||
|
}
|
||||||
public double GetGradeDefinedAmount(Employee employee, double basicSalary,
|
public double GetGradeDefinedAmount(Employee employee, double basicSalary,
|
||||||
double grossSalary, EmployeeGradeSalary oEmpGradeSalary, ADParameter param)
|
double grossSalary, EmployeeGradeSalary oEmpGradeSalary, ADParameter param)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ namespace HRM.DA
|
||||||
this.PFNEW();
|
this.PFNEW();
|
||||||
// this.OverTimeArrearProcess(); needed later
|
// this.OverTimeArrearProcess(); needed later
|
||||||
//UpdateprocessStatus("Calculating Employees Income tax....");
|
//UpdateprocessStatus("Calculating Employees Income tax....");
|
||||||
|
this.CalculateOnBalance();
|
||||||
UpdateprocessStatus("Calculating Income Tax");
|
UpdateprocessStatus("Calculating Income Tax");
|
||||||
this.Tax();
|
this.Tax();
|
||||||
UpdateprocessStatus("Calculating Cost-Center");
|
UpdateprocessStatus("Calculating Cost-Center");
|
||||||
|
|
@ -480,6 +481,7 @@ namespace HRM.DA
|
||||||
//{
|
//{
|
||||||
// basicDetail = this.AddDetail(salary, EnumSalaryGroup.Gross, EnumSalaryItemCode.Basic_Salary, (int)EnumSalaryItemCode.Basic_Salary, 0, "Ordinary Amount", PayrollPayrollGlobalFunctions.Round(basicSalary));
|
// basicDetail = this.AddDetail(salary, EnumSalaryGroup.Gross, EnumSalaryItemCode.Basic_Salary, (int)EnumSalaryItemCode.Basic_Salary, 0, "Ordinary Amount", PayrollPayrollGlobalFunctions.Round(basicSalary));
|
||||||
//}
|
//}
|
||||||
|
salary.ActualPassegeFreeAmount += salary.ThisMonthBasic;
|
||||||
}
|
}
|
||||||
#endregion Calculate Normal Salary
|
#endregion Calculate Normal Salary
|
||||||
#region calculate arrear amount
|
#region calculate arrear amount
|
||||||
|
|
@ -693,6 +695,79 @@ namespace HRM.DA
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CalculateOnBalance()
|
||||||
|
{
|
||||||
|
AllowanceDeduction allowDeduc = new AllowanceDeduction();
|
||||||
|
UpdateProgressStatus(EnumProcessStatus.Start);
|
||||||
|
double grossamount = 0, rcvgross = 0, nProjectAmount = 0;
|
||||||
|
double arrgrossamount = 0, arrrcvgross = 0;
|
||||||
|
foreach (SalaryMonthly sMonthly in _salaryMonthlys)
|
||||||
|
{
|
||||||
|
grossamount = 0; rcvgross = 0; nProjectAmount = 0;
|
||||||
|
arrgrossamount = 0; arrrcvgross = 0;
|
||||||
|
foreach (EmployeeGradeSalary item in sMonthly.GradeSalaries)
|
||||||
|
{
|
||||||
|
grossamount = grossamount + item.GrossSalary;
|
||||||
|
}
|
||||||
|
foreach (EmployeeGradeSalary item in sMonthly.ArrearGradeSalaries)
|
||||||
|
{
|
||||||
|
arrgrossamount = arrgrossamount + item.GrossSalary;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
foreach (SalaryMonthlyDetail item in sMonthly.Details)
|
||||||
|
{
|
||||||
|
if ((item.ItemCode == EnumSalaryItemCode.Basic_Salary && item.ItemID == -101 && item.itemGroupCode == EnumSalaryGroup.Gross) ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.HouseRent && item.itemGroupCode == EnumSalaryGroup.Gross ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.Medical && item.itemGroupCode == EnumSalaryGroup.Gross ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.Conveynce && item.itemGroupCode == EnumSalaryGroup.Gross
|
||||||
|
)
|
||||||
|
{
|
||||||
|
rcvgross += item.CalculatedAmount;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (SalaryMonthlyDetail item in sMonthly.Details)
|
||||||
|
{
|
||||||
|
if ((item.ItemCode == EnumSalaryItemCode.Basic_Salary && item.ItemID == -101 && item.itemGroupCode == EnumSalaryGroup.Arrear) ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.HouseRent && item.itemGroupCode == EnumSalaryGroup.Arrear ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.Medical && item.itemGroupCode == EnumSalaryGroup.Arrear ||
|
||||||
|
item.AllowanceType == EnumAllowanceType.Conveynce && item.itemGroupCode == EnumSalaryGroup.Arrear
|
||||||
|
)
|
||||||
|
{
|
||||||
|
arrrcvgross += item.CalculatedAmount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SalaryMonthlyDetail smd = sMonthly.Details.Find(x => x.ItemCode == EnumSalaryItemCode.Allowance && x.IsOnBalancing && x.itemGroupCode == EnumSalaryGroup.Gross);
|
||||||
|
if (smd != null)
|
||||||
|
{
|
||||||
|
smd.CalculatedAmount = Math.Round(grossamount - rcvgross, 0);
|
||||||
|
smd.ChangedAmount = smd.CalculatedAmount;
|
||||||
|
smd.ActualPassegeFreeAmount = sMonthly.ActualPassegeFreeAmount;
|
||||||
|
|
||||||
|
SalaryMonthlyDetail arr = sMonthly.Details.Find(x => x.ItemCode == EnumSalaryItemCode.Allowance && x.IsOnBalancing && x.itemGroupCode == EnumSalaryGroup.Arrear);
|
||||||
|
|
||||||
|
if (arr != null)
|
||||||
|
{
|
||||||
|
arr.CalculatedAmount = 0;
|
||||||
|
arr.ChangedAmount = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (arr == null && arrrcvgross != 0)
|
||||||
|
arr = this.AddDetail(sMonthly, EnumSalaryGroup.Arrear, EnumSalaryItemCode.Allowance, smd.ItemID, smd.SupportID, smd.Description + " Arrear", 0);
|
||||||
|
|
||||||
|
if (arr != null && arrrcvgross != 0)
|
||||||
|
{
|
||||||
|
arr.CalculatedAmount = Math.Round(arrgrossamount - arrrcvgross, 0);
|
||||||
|
arr.ChangedAmount = arr.CalculatedAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
private void PFNEW()
|
private void PFNEW()
|
||||||
{
|
{
|
||||||
UpdateProgressStatus(EnumProcessStatus.Start);
|
UpdateProgressStatus(EnumProcessStatus.Start);
|
||||||
|
|
@ -855,6 +930,17 @@ namespace HRM.DA
|
||||||
List<ADParameterEmployee> indvAllowances = new ADParameterEmployeeService().Get(
|
List<ADParameterEmployee> indvAllowances = new ADParameterEmployeeService().Get(
|
||||||
GlobalFunctions.FirstDateOfMonth(_processMonth),
|
GlobalFunctions.FirstDateOfMonth(_processMonth),
|
||||||
GlobalFunctions.LastDateOfMonth(_processMonth), this.PayrollTypeID);
|
GlobalFunctions.LastDateOfMonth(_processMonth), this.PayrollTypeID);
|
||||||
|
|
||||||
|
foreach (ADParameterEmployee emp in indvAllowances)
|
||||||
|
{
|
||||||
|
ADParameter adParam = _adParameters.Find(x => x.ID == emp.ADParameterID);
|
||||||
|
if (adParam != null)
|
||||||
|
{
|
||||||
|
emp.AllowanceType=adParam.AllowanceType;
|
||||||
|
emp.IsOnBalancing=adParam.IsOnBalancing;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
double totalPresentDays = 0;
|
double totalPresentDays = 0;
|
||||||
foreach (SalaryMonthly salary in _salaryMonthlys)
|
foreach (SalaryMonthly salary in _salaryMonthlys)
|
||||||
{
|
{
|
||||||
|
|
@ -864,6 +950,8 @@ namespace HRM.DA
|
||||||
this.GradeDefinedAllowDeduct(salary, salary.ArrearGradeSalaries, EnumSalaryGroup.Arrear, indvAllowances, EnumSide.Add);
|
this.GradeDefinedAllowDeduct(salary, salary.ArrearGradeSalaries, EnumSalaryGroup.Arrear, indvAllowances, EnumSide.Add);
|
||||||
// this.GradeDefinedAllowDeduct(salary, salary.ArrearPaidGradeSalaries, EnumSalaryGroup.Arrear, indvAllowances, EnumSide.Deduct); leter we can introduce
|
// this.GradeDefinedAllowDeduct(salary, salary.ArrearPaidGradeSalaries, EnumSalaryGroup.Arrear, indvAllowances, EnumSide.Deduct); leter we can introduce
|
||||||
this.IndividualAllowDeduct(salary, indvAllowances, totalPresentDays);
|
this.IndividualAllowDeduct(salary, indvAllowances, totalPresentDays);
|
||||||
|
|
||||||
|
salary.ActualPassegeFreeAmount = salary.ThisMonthGross - salary.ActualPassegeFreeAmount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void IndividualAllowDeduct(SalaryMonthly salary, List<ADParameterEmployee> indvAllowances, double toTalPresentDays)
|
private void IndividualAllowDeduct(SalaryMonthly salary, List<ADParameterEmployee> indvAllowances, double toTalPresentDays)
|
||||||
|
|
@ -925,6 +1013,22 @@ namespace HRM.DA
|
||||||
detail.Position = item.AllowDeduct.Sequence + 1;
|
detail.Position = item.AllowDeduct.Sequence + 1;
|
||||||
detail.ADParamEmployee = item;
|
detail.ADParamEmployee = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (detail != null)
|
||||||
|
{
|
||||||
|
if (parameter.AllowanceType == EnumAllowanceType.HouseRent ||
|
||||||
|
parameter.AllowanceType == EnumAllowanceType.Medical ||
|
||||||
|
parameter.AllowanceType == EnumAllowanceType.Conveynce)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (groupCode != EnumSalaryGroup.Arrear)
|
||||||
|
{
|
||||||
|
salary.ActualPassegeFreeAmount += item.MonthlyAmount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Individual Allowance
|
#endregion Individual Allowance
|
||||||
|
|
@ -953,12 +1057,17 @@ namespace HRM.DA
|
||||||
{
|
{
|
||||||
if (salary.Category.WagesType == EnumWagesType.Monthly)
|
if (salary.Category.WagesType == EnumWagesType.Monthly)
|
||||||
{
|
{
|
||||||
|
|
||||||
amount = new ADParameterService().GetGradeDefinedAmount(salary.Employee, empGradeSalary.BasicSalary, empGradeSalary.GrossSalary, empGradeSalary, parameter);
|
amount = new ADParameterService().GetGradeDefinedAmount(salary.Employee, empGradeSalary.BasicSalary, empGradeSalary.GrossSalary, empGradeSalary, parameter);
|
||||||
// for echotex
|
|
||||||
if (parameter.AllowanceDeduction.Code == "023" && parameter.AllowanceDeduction.Name == "Night shift allowance" && amount >0)
|
if ((parameter.AllowanceType == EnumAllowanceType.HouseRent && gCode == EnumSalaryGroup.Gross) ||
|
||||||
|
(parameter.AllowanceType == EnumAllowanceType.Medical && gCode == EnumSalaryGroup.Gross) ||
|
||||||
|
(parameter.AllowanceType == EnumAllowanceType.Conveynce && gCode == EnumSalaryGroup.Gross))
|
||||||
{
|
{
|
||||||
amount = parameter.FlatAmount;
|
double nAmt = new ADParameterService().GetGradeDefinedAmountForMonth(salary.Employee, salary.ThisMonthBasic, salary.ThisMonthGross, empGradeSalary, parameter, 1);
|
||||||
|
salary.ActualPassegeFreeAmount += nAmt;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
} else continue;
|
} else continue;
|
||||||
|
|
||||||
|
|
@ -993,6 +1102,10 @@ namespace HRM.DA
|
||||||
if (detail != null)
|
if (detail != null)
|
||||||
detail.Position = parameter.AllowanceDeduction.Sequence + 1;
|
detail.Position = parameter.AllowanceDeduction.Sequence + 1;
|
||||||
|
|
||||||
|
detail.AllowanceType = parameter.AllowanceType;
|
||||||
|
detail.IsOnBalancing= parameter.IsOnBalancing;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1345,6 +1345,8 @@ namespace HRM.DA
|
||||||
taxCalculator.Salary = salaries;
|
taxCalculator.Salary = salaries;
|
||||||
taxCalculator.Employee = new EmployeeService().Get(salaries.EmployeeID);
|
taxCalculator.Employee = new EmployeeService().Get(salaries.EmployeeID);
|
||||||
taxCalculator.AllowanceDeductions = new AllowanceDeductionService().Get(EnumStatus.Regardless);
|
taxCalculator.AllowanceDeductions = new AllowanceDeductionService().Get(EnumStatus.Regardless);
|
||||||
|
List<ADParameter> ads = new ADParameterService().GetWithDetail(EnumStatus.Regardless, salaries.PayrollTypeID);
|
||||||
|
taxCalculator.AdParameters = ads;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
foreach (IncomeTax item in taxCalculator.CurrentYearTax)
|
foreach (IncomeTax item in taxCalculator.CurrentYearTax)
|
||||||
|
|
@ -1353,6 +1355,49 @@ namespace HRM.DA
|
||||||
item.ProjectedAmount = 0;
|
item.ProjectedAmount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double rcvGross = 0;
|
||||||
|
// find gross amount
|
||||||
|
Employee oEmp = new EmployeeService().Get(salaries.EmployeeID);
|
||||||
|
SalaryMonthlyDetail pscFreeIime = null;
|
||||||
|
foreach (var item in salaries.Details)
|
||||||
|
{
|
||||||
|
if (item.itemGroupCode == EnumSalaryGroup.Gross)
|
||||||
|
{
|
||||||
|
if (item.ItemCode == EnumSalaryItemCode.Allowance)
|
||||||
|
{
|
||||||
|
ADParameter param = ads.Find(x=>x.AllowDeductID==item.ItemID);
|
||||||
|
if (param != null)
|
||||||
|
{
|
||||||
|
if(param.IsOnBalancing)
|
||||||
|
{
|
||||||
|
pscFreeIime = item;
|
||||||
|
}
|
||||||
|
if (param.AllowanceType ==EnumAllowanceType.HouseRent ||
|
||||||
|
param.AllowanceType == EnumAllowanceType.Medical ||
|
||||||
|
param.AllowanceType == EnumAllowanceType.Conveynce)
|
||||||
|
{
|
||||||
|
|
||||||
|
ADParameter adParam = new ADParameterService().GetApplicableParameter(oEmp, salaries.GradeID,
|
||||||
|
ads, item.ItemID);
|
||||||
|
|
||||||
|
double nAmt = new ADParameterService().GetAmount(oEmp, adParam);
|
||||||
|
|
||||||
|
rcvGross = rcvGross + nAmt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
rcvGross += salaries.ThisMonthBasic;
|
||||||
|
|
||||||
|
|
||||||
|
if (pscFreeIime!=null)
|
||||||
|
{
|
||||||
|
pscFreeIime.ActualPassegeFreeAmount = salaries.ThisMonthGross - rcvGross;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
salaries.Incometaxes = taxCalculator.SalaryTax();
|
salaries.Incometaxes = taxCalculator.SalaryTax();
|
||||||
}
|
}
|
||||||
catch (ServiceException sx)
|
catch (ServiceException sx)
|
||||||
|
|
|
||||||
|
|
@ -452,7 +452,15 @@ namespace HRM.DA
|
||||||
#region Management Payrol
|
#region Management Payrol
|
||||||
if (adparameter.EntitleType == EnumEntitleType.Grade)
|
if (adparameter.EntitleType == EnumEntitleType.Grade)
|
||||||
{
|
{
|
||||||
item.ProjectedAmount = GlobalFunctions.Round( new ADParameterService().GetGradeDefinedAmount(_employee, _employee.BasicSalary, _employee.GrossSalary, oEmpGSalary, adparameter)) * _projectedMonth;
|
if ((salaryDetail.IsOnBalancing == true)
|
||||||
|
&& salaryDetail.ItemCode == EnumSalaryItemCode.Allowance &&
|
||||||
|
salaryDetail.itemGroupCode == EnumSalaryGroup.Gross)
|
||||||
|
{
|
||||||
|
item.ProjectedAmount = salaryDetail.ActualPassegeFreeAmount * _projectedMonth;
|
||||||
|
}
|
||||||
|
else item.ProjectedAmount = GlobalFunctions.Round(new ADParameterService().GetGradeDefinedAmount(_employee, _employee.BasicSalary, _employee.GrossSalary, oEmpGSalary, adparameter)) * _projectedMonth;
|
||||||
|
|
||||||
|
//item.ProjectedAmount = GlobalFunctions.Round( new ADParameterService().GetGradeDefinedAmount(_employee, _employee.BasicSalary, _employee.GrossSalary, oEmpGSalary, adparameter)) * _projectedMonth;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { EnumPeriodicity, EnumAllowOrDeduct, EnumArrearType, EnumADEmpType, EnumValueType, EnumEntitleType, EnumGender, EnumAuthStatus } from "../enums";
|
import { EnumPeriodicity, EnumAllowOrDeduct, EnumArrearType, EnumADEmpType, EnumValueType, EnumEntitleType, EnumGender, EnumAuthStatus, EnumAllowanceType } from "../enums";
|
||||||
import { BaseObject } from '../Basic/baseObject';
|
import { BaseObject } from '../Basic/baseObject';
|
||||||
import { AllowanceDeduction } from '../../_models/HRBasic/allowanceDeduction';
|
import { AllowanceDeduction } from '../../_models/HRBasic/allowanceDeduction';
|
||||||
import { SearchEmployee } from '../../_models/Employee/searchEmployee';
|
import { SearchEmployee } from '../../_models/Employee/searchEmployee';
|
||||||
|
|
@ -42,6 +42,8 @@ export class ADParameter extends BaseObject
|
||||||
this.gradeNames='';
|
this.gradeNames='';
|
||||||
this.adParameterEmployees = [];
|
this.adParameterEmployees = [];
|
||||||
this.calculatedAmount = 0;
|
this.calculatedAmount = 0;
|
||||||
|
this.allowanceType=EnumAllowanceType.None;
|
||||||
|
this.isOnBalancing = false;
|
||||||
}
|
}
|
||||||
allowDeductID: number;
|
allowDeductID: number;
|
||||||
allowDeductName: string;
|
allowDeductName: string;
|
||||||
|
|
@ -71,6 +73,8 @@ export class ADParameter extends BaseObject
|
||||||
entitleType: EnumEntitleType;
|
entitleType: EnumEntitleType;
|
||||||
allowOrDeductType: EnumAllowOrDeduct;
|
allowOrDeductType: EnumAllowOrDeduct;
|
||||||
gender: EnumGender;
|
gender: EnumGender;
|
||||||
|
allowanceType: EnumAllowanceType;
|
||||||
|
isOnBalancing: boolean;
|
||||||
|
|
||||||
// public AllowanceDeduction AllowanceDeduction { get; set; }
|
// public AllowanceDeduction AllowanceDeduction { get; set; }
|
||||||
exception: ADParameterEmployee[] =[];
|
exception: ADParameterEmployee[] =[];
|
||||||
|
|
|
||||||
|
|
@ -1427,6 +1427,14 @@ export enum EnumEntitleType {
|
||||||
Individual = 2,
|
Individual = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum EnumAllowanceType
|
||||||
|
{
|
||||||
|
None = 0,
|
||||||
|
HouseRent = 1,
|
||||||
|
Medical = 2,
|
||||||
|
Conveynce = 3
|
||||||
|
}
|
||||||
|
|
||||||
export enum EnumOpiAvgPayType {
|
export enum EnumOpiAvgPayType {
|
||||||
NONE = 0,
|
NONE = 0,
|
||||||
OT = 1,
|
OT = 1,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,11 @@
|
||||||
{{dataItem.isTaxable ? 'Yes' : 'No'}}
|
{{dataItem.isTaxable ? 'Yes' : 'No'}}
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</kendo-grid-column>
|
</kendo-grid-column>
|
||||||
|
<kendo-grid-column field="isOnBalancing" title="On Balancing ?" [width]="10">
|
||||||
|
<ng-template kendoGridCellTemplate let-dataItem>
|
||||||
|
{{dataItem.isOnBalancing ? 'Yes' : 'No'}}
|
||||||
|
</ng-template>
|
||||||
|
</kendo-grid-column>
|
||||||
<kendo-grid-command-column title="Active" [width]="10">
|
<kendo-grid-command-column title="Active" [width]="10">
|
||||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||||
<button themeColor="primary" kendoButton (click)="DoActiveInActive(rowIndex)" >{{dataItem.isCurrentlyActive ==true ? 'In-Active' : 'Active' }}</button>
|
<button themeColor="primary" kendoButton (click)="DoActiveInActive(rowIndex)" >{{dataItem.isCurrentlyActive ==true ? 'In-Active' : 'Active' }}</button>
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,28 @@
|
||||||
</kendo-dropdownlist>
|
</kendo-dropdownlist>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="adp-field">
|
||||||
|
<label class="adp-label" for="ddlAllowanceType">Allowance Type <span class="adp-required">*</span></label>
|
||||||
|
<div class="adp-control">
|
||||||
|
<kendo-dropdownlist
|
||||||
|
class="form-control form-control-sm input-sm"
|
||||||
|
style="width: 100%"
|
||||||
|
id="ddlAllowanceType"
|
||||||
|
[data]="_allowanceTpe"
|
||||||
|
[defaultItem]="{
|
||||||
|
name: 'Select Allowance Type',
|
||||||
|
value: null
|
||||||
|
}"
|
||||||
|
[textField]="'name'"
|
||||||
|
[valueField]="'value'"
|
||||||
|
[valuePrimitive]="true"
|
||||||
|
formControlName="allowancetype"
|
||||||
|
[(ngModel)]="_selectedAllowanceType"
|
||||||
|
(selectionChange)="changeallowancetype($event)"
|
||||||
|
>
|
||||||
|
</kendo-dropdownlist>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="checkBoxGrid adp-checks">
|
<div class="checkBoxGrid adp-checks">
|
||||||
<label class="k-form-field right adp-check">
|
<label class="k-form-field right adp-check">
|
||||||
<input
|
<input
|
||||||
|
|
@ -110,6 +132,15 @@
|
||||||
kendoCheckBox/>
|
kendoCheckBox/>
|
||||||
<label class="k-checkbox-label" for="enabletaxableCheck">Taxable</label>
|
<label class="k-checkbox-label" for="enabletaxableCheck">Taxable</label>
|
||||||
</label>
|
</label>
|
||||||
|
<label class="k-form-field right adp-check">
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
formControlName="isOnBalancing"
|
||||||
|
id="enableOnBalancingCheck"
|
||||||
|
[(ngModel)]="_adPram.isOnBalancing"
|
||||||
|
kendoCheckBox/>
|
||||||
|
<label class="k-checkbox-label" for="enableOnBalancingCheck">On Balancing</label>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ import {UntilityHandlerService} from '../../../../utility.hanldler.service';
|
||||||
import {ADParameter, ADParameterGrade, ADParameterEmployee} from '../../../../_models/Payroll/adparameter';
|
import {ADParameter, ADParameterGrade, ADParameterEmployee} from '../../../../_models/Payroll/adparameter';
|
||||||
import {AllowanceDeduction} from '../../../../_models/HRBasic/allowanceDeduction';
|
import {AllowanceDeduction} from '../../../../_models/HRBasic/allowanceDeduction';
|
||||||
import {Grade} from '../../../../_models/Basic/grade';
|
import {Grade} from '../../../../_models/Basic/grade';
|
||||||
import {EnumArrearType, EnumADEmpType, EnumExtension, EnumPeriodicity, EnumGender, EnumEntitleType, EnumAllowOrDeduct, EnumValueType, EnumAuthStatus} from '../../../../_models/enums';
|
import {EnumArrearType, EnumADEmpType, EnumExtension, EnumPeriodicity, EnumGender, EnumEntitleType, EnumAllowOrDeduct, EnumValueType, EnumAuthStatus, EnumAllowanceType} from '../../../../_models/enums';
|
||||||
import { AuthService } from '../../../../_services/auth/auth.service';
|
import { AuthService } from '../../../../_services/auth/auth.service';
|
||||||
import { PayrollType } from '../../../../_models/Authentication/payrollType';
|
import { PayrollType } from '../../../../_models/Authentication/payrollType';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
@ -45,8 +45,16 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
||||||
{ name: 'Monthly-Employee-Wise', value: 3 },
|
{ name: 'Monthly-Employee-Wise', value: 3 },
|
||||||
{ name: 'Once-off', value: 2 },
|
{ name: 'Once-off', value: 2 },
|
||||||
|
|
||||||
|
];
|
||||||
|
_allowanceTpe = [
|
||||||
|
{ name: 'None', value: 0},
|
||||||
|
{ name: 'HouseRent', value: 1 },
|
||||||
|
{ name: 'Medical', value: 2 },
|
||||||
|
{ name: 'Conveynce', value: 3 },
|
||||||
|
|
||||||
];
|
];
|
||||||
_selectedPeriodicity: number =1;
|
_selectedPeriodicity: number =1;
|
||||||
|
_selectedAllowanceType: number =0;
|
||||||
_gender: any = EnumExtension.getNamesAndValues(EnumGender);
|
_gender: any = EnumExtension.getNamesAndValues(EnumGender);
|
||||||
_selectedPreiodicity: number;
|
_selectedPreiodicity: number;
|
||||||
_individualAmount: number=0;
|
_individualAmount: number=0;
|
||||||
|
|
@ -117,6 +125,7 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.AllowDeductselectionChange(this._allowDeducts.find(x => x.id == this._adPram.allowDeductID));
|
this.AllowDeductselectionChange(this._allowDeducts.find(x => x.id == this._adPram.allowDeductID));
|
||||||
|
this._selectedAllowanceType = this._adPram.allowanceType ?? EnumAllowanceType.None;
|
||||||
if (this._adPram.periodicity == EnumPeriodicity.Monthly &&
|
if (this._adPram.periodicity == EnumPeriodicity.Monthly &&
|
||||||
this._adPram.entitleType == EnumEntitleType.Grade) {
|
this._adPram.entitleType == EnumEntitleType.Grade) {
|
||||||
|
|
||||||
|
|
@ -142,6 +151,7 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
||||||
this._fromValidator = new FormBuilder().group({
|
this._fromValidator = new FormBuilder().group({
|
||||||
allowOrDeductID: ['', Validators.required],
|
allowOrDeductID: ['', Validators.required],
|
||||||
periodicity: ['', Validators.required],
|
periodicity: ['', Validators.required],
|
||||||
|
allowancetype: ['', Validators.required],
|
||||||
isIndividual: '',
|
isIndividual: '',
|
||||||
flatAmount: '',
|
flatAmount: '',
|
||||||
percentOfBasic: '',
|
percentOfBasic: '',
|
||||||
|
|
@ -153,6 +163,7 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
||||||
isFractionateApplicable: '',
|
isFractionateApplicable: '',
|
||||||
gender: '',
|
gender: '',
|
||||||
isTaxable: '',
|
isTaxable: '',
|
||||||
|
isOnBalancing: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -203,6 +214,23 @@ export class AllowanceDeductionParameterizationEntryComponent implements OnInit,
|
||||||
this.prediocityPopulate(2);
|
this.prediocityPopulate(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
changeallowancetype(item:any) {
|
||||||
|
if (item.value == 0) {
|
||||||
|
this._adPram.allowanceType = EnumAllowanceType.None;
|
||||||
|
}
|
||||||
|
else if (item.value == 1) {
|
||||||
|
this._adPram.allowanceType = EnumAllowanceType.HouseRent;
|
||||||
|
}
|
||||||
|
else if (item.value == 2) {
|
||||||
|
|
||||||
|
this._adPram.allowanceType = EnumAllowanceType.Medical;
|
||||||
|
}
|
||||||
|
else if (item.value == 3) {
|
||||||
|
|
||||||
|
this._adPram.allowanceType = EnumAllowanceType.Conveynce;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
IndividualChecked(e) {
|
IndividualChecked(e) {
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,8 @@
|
||||||
//"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDB;User Id=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
//"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDB;User Id=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
||||||
//"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=autocrop;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;", // Development
|
//"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=autocrop;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;", // Development
|
||||||
|
|
||||||
"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDBBRAC;User Id= DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
"Default": "provider=sql;sqlSyntax=SQL;server=103.197.204.164,1718;Database=MasterProjectDBUATBRAC;User Id= DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;",
|
||||||
"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=MasterProjectDBBRAC;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;" // Development
|
"SqlCommandConnection": "Data Source=103.197.204.164,1718;Initial Catalog=MasterProjectDBUATBRAC;Persist Security Info=True; User ID=DBuser;Password=ceLEa&e2025;TrustServerCertificate=True;" // Development
|
||||||
|
|
||||||
},
|
},
|
||||||
"Calendar": {
|
"Calendar": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user