From be93060dea72945dbb4bcabc1e605a78818c98e4 Mon Sep 17 00:00:00 2001 From: chapal Date: Mon, 13 Jan 2025 14:40:31 +0600 Subject: [PATCH] Job card report problem solved --- HRM.Report/Attendence/Class/AttendanceReport.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/HRM.Report/Attendence/Class/AttendanceReport.cs b/HRM.Report/Attendence/Class/AttendanceReport.cs index 6caaf01..a35c155 100644 --- a/HRM.Report/Attendence/Class/AttendanceReport.cs +++ b/HRM.Report/Attendence/Class/AttendanceReport.cs @@ -1242,6 +1242,7 @@ namespace HRM.Report string shortAttnType = ""; if (!(dAttnProcessess == null || dAttnProcessess.Count <= 0)) { + dAttnProcessess= dAttnProcessess.OrderBy(x => x.AttnDate).ToList(); foreach (DailyAttnProcess dAttnProcess in dAttnProcessess) { sLeaveName = string.Empty; @@ -1413,10 +1414,10 @@ namespace HRM.Report dTable.Rows.Add(Rowbody); } } - DataView dv = dTable.DefaultView; - dv.Sort = "Date ASC"; - DataTable sortedDT = dv.ToTable(); - return sortedDT; + //DataView dv = dTable.DefaultView; + //dv.Sort = "Date ASC"; + //DataTable sortedDT = dv.ToTable(); + return dTable; } public DataTable GetEmpDailyAttn(int EmpID, DateTime dFromDate, DateTime dToDate, int PayrollTypeID)