diff --git a/HRM.DA/DA/Salary/SalaryProcessDA.cs b/HRM.DA/DA/Salary/SalaryProcessDA.cs index 3c28259..d0cef7e 100644 --- a/HRM.DA/DA/Salary/SalaryProcessDA.cs +++ b/HRM.DA/DA/Salary/SalaryProcessDA.cs @@ -223,7 +223,7 @@ namespace HRM.DA id); tc.ExecuteNonQuery("DELETE FROM SalaryMonthly WHERE SalaryProcessID=%n", id); //} - tc.ExecuteNonQuery("DELETE FROM SalaryProcess WHERE SalaryProcessID=%n", id); + //tc.ExecuteNonQuery("DELETE FROM SalaryProcess WHERE SalaryProcessID=%n", id); } internal static void UndoMonthlySalaryByIDs(TransactionContext tc, string ids) diff --git a/HRM.DA/Service/Attendance/AttendanceProcess.cs b/HRM.DA/Service/Attendance/AttendanceProcess.cs index 19500fb..16f57b4 100644 --- a/HRM.DA/Service/Attendance/AttendanceProcess.cs +++ b/HRM.DA/Service/Attendance/AttendanceProcess.cs @@ -473,7 +473,7 @@ namespace HRM.DA } _attnRunSummary = new AttnProcessRunSummary(); _attnRunSummary.ProcessMode = prMode; - // bool isInOutApplicable = false; + //bool isInOutApplicable = false; _shifts = _shifts ?? new ShiftService().GetAllShift(); @@ -483,7 +483,7 @@ namespace HRM.DA #region Initialization for Attendence Process Attdate = fromDate; - // isInOutApplicable = new SystemConfigarationService().GetconfigBooleanValue(EnumConfigurationType.Logic, "attendence", "inoutapplicable"); + //isInOutApplicable = new SystemConfigarationService().GetconfigBooleanValue(EnumConfigurationType.Logic, "attendence", "inoutapplicable"); List dailyattProcesses = new List(); List dailyAttendanceAllowances = new List(); @@ -2597,7 +2597,11 @@ namespace HRM.DA List shifts =new ShiftService().GetAllShift(); List workPlanGroups = new WorkPlanGroupService().GetAll(); - if( employees == null) employees = new EmployeeService().GetAllLive(); + //if( employees == null) employees = new EmployeeService().GetAllLive(); + if( employees == null) + employees = new EmployeeService().Get(EnumEmployeeStatus.Live, payrolltypeid) + .OrderBy(num => num.EmployeeNo.Length).ThenBy(num => Convert.ToInt32(num.EmployeeNo)).ToList(); + List discontinueEmps =new EmployeeService().GetDiscontinueEmp(Attdate, DateTime.Now, payrolltypeid); //List attRawdata = new AttnRawDataService().Get(startTime, ToTime, payrolltypeid);// get raw data by a date and order by date, employee, punchTime @@ -2636,7 +2640,6 @@ namespace HRM.DA foreach (Employee emp in employees) { - //EmpTempid = emp.ID.Integer; #region EmployeeWise Setup diff --git a/HRM.DA/Service/Attendance/DailyAttnProcessService.cs b/HRM.DA/Service/Attendance/DailyAttnProcessService.cs index 46bc8c5..14f6208 100644 --- a/HRM.DA/Service/Attendance/DailyAttnProcessService.cs +++ b/HRM.DA/Service/Attendance/DailyAttnProcessService.cs @@ -2960,9 +2960,9 @@ namespace HRM.DA } } - public DateTime GetLastProcessDateUsingPayrollType(int PayrolltypeID) + public DateTime? GetLastProcessDateUsingPayrollType(int PayrolltypeID) { - DateTime lastProcessDate = DateTime.MinValue; + DateTime? lastProcessDate = null; TransactionContext tc = null; try { @@ -2972,7 +2972,7 @@ namespace HRM.DA { lastProcessDate = oreader.GetDateTime("LastProcessDate").HasValue ? oreader.GetDateTime("LastProcessDate").Value - : DateTime.MinValue; + : null; } oreader.Close(); diff --git a/HRM.UI/ClientApp/src/app/_services/attendance/attendance.service.ts b/HRM.UI/ClientApp/src/app/_services/attendance/attendance.service.ts index f656581..24e305e 100644 --- a/HRM.UI/ClientApp/src/app/_services/attendance/attendance.service.ts +++ b/HRM.UI/ClientApp/src/app/_services/attendance/attendance.service.ts @@ -209,6 +209,10 @@ export class AttendanceServices { // return this.apiService.httpGet('/Attendance' + '/getNotYetAssiged'); return this.apiService.httpGet('/Attendance' + '/getNotYetAssiged'); } + getLastAttnProcessDate() { + // return this.apiService.httpGet('/Attendance' + '/getNotYetAssiged'); + return this.apiService.httpGet('/Attendance' + '/getLastAttnProcessDate'); + } getEmployeeWorkPlanSetupByWPGroupID(groupId: number) { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupByWPGroupID' + '/' + groupId); } diff --git a/HRM.UI/ClientApp/src/app/attendance/attendance-process/attendance-process.component.html b/HRM.UI/ClientApp/src/app/attendance/attendance-process/attendance-process.component.html index b5db01a..524f43f 100644 --- a/HRM.UI/ClientApp/src/app/attendance/attendance-process/attendance-process.component.html +++ b/HRM.UI/ClientApp/src/app/attendance/attendance-process/attendance-process.component.html @@ -2,7 +2,7 @@
-
+
@@ -17,7 +17,7 @@
-
+
@@ -33,12 +33,23 @@
+
+ +
+
+ +
+
+ +
@@ -47,7 +58,11 @@
- + + +
+
+