ok
This commit is contained in:
parent
a0150b0eed
commit
7b04c7a3e5
|
@ -2454,23 +2454,26 @@ namespace HRM.DA
|
|||
DataSet EmpOTHours = new ShiftTermService().GetEmpOT(oPayrollType.NextPayProcessDate, trm.ID);
|
||||
foreach (DataRow Dr in EmpOTHours.Tables[0].Rows)
|
||||
{
|
||||
Employee tempEmployee = employees.Where(emp => emp.ID.ToString() == Dr["EmployeeID"].ToString()).FirstOrDefault();
|
||||
if (tempEmployee == null || tempEmployee.IsEligibleOT == false) continue;
|
||||
//if (Convert.ToDouble(Dr["TotalOT"])>0)
|
||||
//{
|
||||
Employee tempEmployee = employees.Where(emp => emp.ID.ToString() == Dr["EmployeeID"].ToString()).FirstOrDefault();
|
||||
if (tempEmployee == null || tempEmployee.IsEligibleOT == false) continue;
|
||||
|
||||
if (tempEmployee.GradeID == null)
|
||||
{
|
||||
ErrorList.Add(new SalaryProcessStatus(tempEmployee.EmployeeNo, tempEmployee.Name, "Grade not assinged"));
|
||||
continue;
|
||||
if (tempEmployee.GradeID == null)
|
||||
{
|
||||
ErrorList.Add(new SalaryProcessStatus(tempEmployee.EmployeeNo, tempEmployee.Name, "Grade not assinged"));
|
||||
continue;
|
||||
|
||||
}
|
||||
if (Dr["TotalOT"] == DBNull.Value)
|
||||
{
|
||||
// ErrorList.Add(new SalaryProcessStatus(tempEmployee.EmployeeNo, tempEmployee.Name, "value can't be null "));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (Dr["TotalOT"] == DBNull.Value)
|
||||
{
|
||||
// ErrorList.Add(new SalaryProcessStatus(tempEmployee.EmployeeNo, tempEmployee.Name, "value can't be null "));
|
||||
continue;
|
||||
}
|
||||
|
||||
EmpOverTimes = MakeEmployeeOvertimeObj(ref EmpOverTimes, ref ErrorList, tempEmployee, termParameters,
|
||||
oPayrollType, trm.ID, Convert.ToDouble(Dr["TotalOT"]), userid);
|
||||
EmpOverTimes = MakeEmployeeOvertimeObj(ref EmpOverTimes, ref ErrorList, tempEmployee, termParameters,
|
||||
oPayrollType, trm.ID, Convert.ToDouble(Dr["TotalOT"]), userid);
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user