Compare commits

..

No commits in common. "4488b66be3fe2d84ecbf9eab2d37529b14e089b0" and "b8f4347f09bf817985ab63eeb65268f83f0e2c07" have entirely different histories.

2 changed files with 14 additions and 19 deletions

View File

@ -710,7 +710,7 @@ namespace HRM.DA
{ {
bonusIntime = dailyAtt.InTime; bonusIntime = dailyAtt.InTime;
bonusOuttime = dailyAtt.OutTime; bonusOuttime = dailyAtt.OutTime;
if (dailyAtt.OutTime != null && dailyAtt.InTime != null && dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue) if (dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue)
{ {
// oShift = oShifts.FirstOrDefault(x => x.ID == dailyAtt.ShiftID); // oShift = oShifts.FirstOrDefault(x => x.ID == dailyAtt.ShiftID);
if (oProductionBonusSetup.FromDate.Date == dailyAtt.AttnDate.Date) if (oProductionBonusSetup.FromDate.Date == dailyAtt.AttnDate.Date)
@ -770,7 +770,7 @@ namespace HRM.DA
double wh = 0; double wh = 0;
if (dailyAtt != null) if (dailyAtt != null)
{ {
if (dailyAtt.OutTime != null && dailyAtt.InTime != null && dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue) if (dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue)
{ {
bonusIntime = dailyAtt.InTime; bonusIntime = dailyAtt.InTime;
bonusOuttime = dailyAtt.OutTime; bonusOuttime = dailyAtt.OutTime;

View File

@ -356,31 +356,28 @@ namespace HRM.Report
} }
if (prodAttn != null && prodAttn.Count > 0) if (prodAttn != null && prodAttn.Count > 0)
{ {
foreach (Employee item in attnEmp) foreach (Employee item in attnEmp)
{ {
List<ProdBonusAttn> tempAttn = prodAttn.Where(o => o.EmployeeID == item.ID).ToList();//.Sum(x => x.BonusHour); List<ProdBonusAttn> tempAttn = prodAttn.Where(o => o.EmployeeID == item.ID).ToList();//.Sum(x => x.BonusHour);
double hour = 0; double hour = 0;
foreach (ProdBonusAttn tAtt in tempAttn) foreach (ProdBonusAttn tAtt in tempAttn)
{ {
DailyAttnProcess dailyAtt = oDailyAttnProsess.FirstOrDefault(o => o.AttnDate.Date == tAtt.InTime.Date && DailyAttnProcess dailyAtt = oDailyAttnProsess.FirstOrDefault(o => o.AttnDate.Date == tAtt.InTime.Date &&
o.EmployeeID == item.ID && o.EmployeeID == item.ID &&
(o.AttenType == EnumAttendanceType.Present || (o.AttenType == EnumAttendanceType.Present ||
o.AttenType == EnumAttendanceType.HalfDay || o.AttenType == EnumAttendanceType.HalfDay ||
o.AttenType == EnumAttendanceType.Delay || o.AttenType == EnumAttendanceType.Delay ||
o.AttenType == EnumAttendanceType.Early || o.AttenType == EnumAttendanceType.Early ||
o.AttenType == EnumAttendanceType.Late || o.AttenType == EnumAttendanceType.Late ||
o.AttenType == EnumAttendanceType.OutSideDuty)); o.AttenType == EnumAttendanceType.OutSideDuty));
double wh = 0; double wh = 0;
if (dailyAtt != null) if (dailyAtt != null)
{ {
if (dailyAtt.OutTime != null && dailyAtt.InTime != null && dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue) if (dailyAtt.OutTime != DateTime.MinValue && dailyAtt.InTime != DateTime.MinValue)
{ {
bonusIntime = dailyAtt.InTime; bonusIntime = dailyAtt.InTime;
bonusOuttime = dailyAtt.OutTime; bonusOuttime = dailyAtt.OutTime;
@ -431,7 +428,6 @@ namespace HRM.Report
} }
} }
if (dTable.Rows.Count > 0) if (dTable.Rows.Count > 0)
@ -455,7 +451,6 @@ namespace HRM.Report
//form.CommonReportViewer(null, RDLC, dSet, _reportParameters, true); //form.CommonReportViewer(null, RDLC, dSet, _reportParameters, true);
ReportProcessor reportProcessor = new ReportProcessor(); ReportProcessor reportProcessor = new ReportProcessor();
return reportProcessor.CommonReportViewForReports(null, dSet, null, RDLC, _reportParameters, true, payrollTypeId, reportType); return reportProcessor.CommonReportViewForReports(null, dSet, null, RDLC, _reportParameters, true, payrollTypeId, reportType);
} }
#endregion Production Bonus #endregion Production Bonus