import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ApiService, PubSubService } from '../../app.api.service'; import {Bank} from '../../_models/Basic/bank'; import {Shift} from '../../_models/Attendance/shift'; import {EmployeeTaxInvestment} from '../../_models/Payroll/Tax/employeeTaxInvestment'; import {HolidayCalendar} from '../../_models/Attendance/holidayCalendar'; import { AttnNationalHoliday } from '../../_models/Attendance/attnNationalHoliday'; import { DailyAttnByStatusReport } from '../../_models/Attendance/dailyAttnByStatusReport'; import { EnumDayOfWeek, EnumAttendanceType, EnumClaimWFStatus, EnumStatus, EnumWFAttnStatus, EnumWorkPlanGroup } from '../../_models/enums'; import {AttnNationalHolidayLocation} from '../../_models/Attendance/attnNationalHolidayLocation'; import {AttnShiftWiseNationalHoliday} from '../../_models/Attendance/attnShiftWiseNationalHoliday'; import {WorkPlanGroup} from '../../_models/Attendance/workPlanGroup'; import {EmployeeWorkPlanSetup} from '../../_models/Attendance/employeeWorkPlanSetup'; import {ShiftRotation} from '../../_models/Attendance/shiftRotation'; import {DailyAttnProcess} from '../../_models/Attendance/dailyAttnProcess'; import {EmployeeOutsideDuty} from '../../_models/Attendance/employeeOutsideDuty'; import { SearchEmployee } from '../../_models/Employee/searchEmployee'; import { MonthlyWorkPlan } from '../../_models/Attendance/monthlyWorkPlan'; import { ActingResponsibilitySetup } from '../../_models/Attendance/actingResponsibilitySetup'; import { AttnRawData } from '../../_models/Attendance/attnRawData'; import { Employee } from '../../_models/Employee/employee'; import { JobCardReport } from '../../reports/date-wise-job-card/date-wise-job-card'; import { AttendanceRegularizationDTO } from '../../_models/Attendance/attendanceRegularizationDTO'; import { global } from '@angular/compiler/src/util'; import { PayrollComponentList } from 'src/app/_models/Attendance/PayrollComponentList'; import { AllowanceDeduction } from 'src/app/_models/Basic/allowanceDeduction'; import { Term } from 'src/app/_models/Basic/term'; import { updateRosterModel } from 'src/app/_models/Attendance/HelperModels/updateRosterModel'; import { OutsideDuty } from '../../_models/Attendance/outsideDuty'; @Injectable({ providedIn: 'root' }) export class AttendanceServices { baseUrl = ApiService.BASE_URL + 'Attendance/'; constructor(public apiService: ApiService, private http: HttpClient) { } // shift getShifts(status: EnumStatus, code?: string, name?: string) { /*return this.http.get(this.baseUrl + 'getShifts');*/ const nname = this.apiService.getApiDefaultData(name); const ncode = this.apiService.getApiDefaultData(code); return this.apiService.httpGet('/Attendance' + '/getShifts/' + ncode + '/' + nname + '/' + status); } saveTemporaryShift(rosterModelForUpdate: updateRosterModel){ return this.apiService.httpPost('/Attendance' + '/saveTemporaryShift', rosterModelForUpdate); } getShiftById(id: number) { return this.apiService.httpGet('/Attendance' + '/getShiftById' + '/' + id); } getShiftByName(name: string) { return this.apiService.httpGet('/Attendance' + '/getShiftByName' + '/' + name); } getShiftByCounterClock(isCounterClock: boolean) { return this.apiService.httpGet('/Attendance' + '/getShiftByCounterClock' + '/' + isCounterClock); } isShiftExist(shiftCode: string, shortName: string, shiftId: number) { return this.apiService.httpGet('/Attendance' + '/isShiftExist' + '/' + shiftCode + '/' + shortName + '/' + shiftId); } deleteShiftById(param: Shift) { return this.apiService.httpPost('/Attendance' + '/deleteShiftById', param); } saveShift(params: any) { return this.apiService.httpPost('/Attendance' + '/saveShift', params); } // holiday calendar getHolidaysByLocId(locId: number) { return this.apiService.httpGet('/Attendance' + '/getHolidaysByLocId' + '/' + locId); } getNationalHolidays() { return this.apiService.httpGet('/Attendance' + '/getNationalHolidays'); } getHolidayById(id: number) { return this.apiService.httpGet('/Attendance' + '/getHolidayById' + '/' + id); } getTotalMonthlyHolidays(locationNumber: number, firstDateOfMonth: Date, lastDateOfMonth: Date) { return this.apiService.httpGet('/Attendance' + '/getTotalMonthlyHolidays' + '/' + locationNumber + '/' + firstDateOfMonth + '/' + lastDateOfMonth); } getAllHolidays() { return this.apiService.httpGet('/Attendance' + '/getAllHolidays'); } getWeeklyHolidays() { return this.apiService.httpGet('/Attendance' + '/getWeeklyHolidays'); } getWeeklyAndLocHoliday(locId: number) { return this.apiService.httpGet('/Attendance' + '/getWeeklyAndLocHoliday' + '/' + locId); } getNoOfHoliday() { return this.apiService.httpGet('/Attendance' + '/getNoOfHoliday'); } getHolidaysByMonthRange(locationId: number, startDate: Date, endDate: Date) { return this.apiService.httpGet('/Attendance' + '/getHolidaysByMonthRange' + '/' + locationId + '/' + startDate + '/' + endDate); } getHolidaysByDateRange(startDate: Date, endDate: Date) { return this.apiService.httpGet('/Attendance' + '/getHolidaysByDateRange' + '/' + startDate + '/' + endDate); } saveHoliday(param: any) { return this.apiService.httpPost('/Attendance' + '/saveHoliday', param); } ProcessHoliday(item: HolidayCalendar) { return this.apiService.httpPost('/Attendance' + '/ProcessHoliday', item); } deleteHolidayById(id: number) { return this.apiService.httpPost('/Attendance' + '/deleteHolidayById', id); } /* deleteAllHoliday() { return this.apiService.httpPost('/Attendance' + '/deleteAllHoliday'); }*/ deleteAllHolidayByYear(year: number) { return this.apiService.httpPost('/Attendance' + '/deleteAllHolidayByYear', year); } // AttnNationalHoliday getAttnNationalHolidayById(id: number) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayById' + '/' + id); } getAttnNationalHolidayListByDateRange(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayByDateRange' + '/' + fromDate + '/' + toDate); } getupcommingNationalHoliday(fromDate: Date) { return this.apiService.httpGet('/Attendance' + '/getupcommingNationalHoliday' + '/' + fromDate.toDateString()); } getAttnNationalHolidayListByStatus(status: EnumStatus) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayListByStatus' + '/' + status); } getAttnNationalHolidayLocationList(id: number) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayLocationList' + '/' + id); } getAttnNationalHolidayShiftList(id: number) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayShiftList' + '/' + id); } getAttnNationalHolidayListByMonthAndPayrollType(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance' + '/getAttnNationalHolidayListByMonthAndPayrollType' + '/' + fromDate + '/' + toDate); } deleteAttnNationalHolidayById(nationalHoliday: AttnNationalHoliday) { return this.apiService.httpPost('/Attendance' + '/deleteAttnNationalHolidayById', nationalHoliday); } saveAttnNationalHoliday(param: any) { return this.apiService.httpPost('/Attendance' + '/saveAttnNationalHoliday', param); } // WorkPlanGroup getWorkPlanGroupById(id: number) { return this.apiService.httpGet('/Attendance' + '/GetWorkPlanGroups' + '/' + id); } getWorkPlanGroupList(status: EnumStatus, name?: string, grouptype?: EnumWorkPlanGroup) { const nname = this.apiService.getApiDefaultData(name); const grouptypeInt = this.apiService.getApiDefaultIntData(grouptype); return this.apiService.httpGet('/Attendance' + '/GetWorkPlanGroups/' + status + '/' + nname + '/' + grouptypeInt); } // getWorkPlanGroupListByStatus(status: EnumStatus) { // return this.apiService.httpGet('/Attendance' + '/getWorkPlanGroupListByStatus' + '/' + status); // } // getWorkPlanGroupListByWorkPlanGroup(workPlanGroup: EnumWorkPlanGroup) { // return this.apiService.httpGet('/Attendance' + '/getWorkPlanGroupListByWorkPlanGroup' + '/' + workPlanGroup); // } // getWorkPlanGroupListByName(name: string) { // return this.apiService.httpGet('/Attendance' + '/getWorkPlanGroupListByName' + '/' + name); // } getAllWorkPlanGroupList() { return this.apiService.httpGet('/Attendance' + '/getAllWorkPlanGroupList'); } saveWorkPlanGroup(param: any) { return this.apiService.httpPost('/Attendance' + '/saveWorkPlanGroup', param); } deleteWorkPlanGroupById(id: any) { return this.apiService.httpPost('/Attendance' + '/deleteWorkPlanGroupById', id); } // EmployeeWorkPlanSetup getEmployeeWorkPlanSetupById(id: number) { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupById' + '/' + id); } getEmployeeWorkPlanSetupByEmpId(empId: number) { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupByEmpId' + '/' + empId); } getEmployeeWorkPlanSetupList() { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupList'); } getEmployeeWorkPlanSetupByWorkPlanGroup(type: EnumWorkPlanGroup) { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupByWorkPlanGroup' + '/' + type); } getEmployeeWorkPlanSetupForFixedWP(groupId: number, holiday: EnumDayOfWeek) { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupForFixedWP' + '/' + groupId + '/' + holiday); } getNotYetAssiged() { // 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); } isEmployeeExistInWorkPlan(empId: number) { return this.apiService.httpGet('/Attendance' + '/isEmployeeExistInWorkPlan' + '/' + empId); } isEmployeeWorkPlanSetupExist(groupId: number, weekendOn: EnumDayOfWeek) { return this.apiService.httpGet('/Attendance' + '/isEmployeeExistInWorkPlan' + '/' + groupId + '/' + weekendOn); } getEmployeeWorkPlanSetupByPayrollTypeID() { return this.apiService.httpGet('/Attendance' + '/getEmployeeWorkPlanSetupByPayrollTypeID'); } getAllEmployeeWorkPlanSetup() { return this.apiService.httpGet('/Attendance' + '/getAllEmployeeWorkPlanSetup'); } saveEmployeeWorkPlanSetup(param: any) { return this.apiService.httpPost('/Attendance' + '/saveEmployeeWorkPlanSetup', param); } saveEmployeeWorkPlanSetupList(param: any) { return this.apiService.httpPost('/Attendance' + '/saveEmployeeWorkPlanSetupList', param); } IsEmpExistInWorkplan(param: SearchEmployee[]) { return this.apiService.httpPost('/Attendance' + '/IsEmpExistInWorkplan', param); } saveFixedWPlansList(param: any) { return this.apiService.httpPost('/Attendance' + '/saveFixedWPlansList', param); } deleteEmployeeWorkPlanSetupById(item: EmployeeWorkPlanSetup) { return this.apiService.httpPost('/Attendance' + '/deleteEmployeeWorkPlanSetupById', item); } deleteEmployeeWorkPlanSetupByGroupId(groupId: number) { return this.apiService.httpPost('/Attendance' + '/deleteEmployeeWorkPlanSetupByGroupId', groupId); } // shift rotation getShiftRotationById(id: number) { return this.apiService.httpGet('/Attendance' + '/getShiftRotationById' + '/' + id); } getShiftRotationByWorkPlanGroupType(workPlanGroupType: EnumWorkPlanGroup) { return this.apiService.httpGet('/Attendance' + '/getShiftRotationByWorkPlanGroupType' + '/' + workPlanGroupType); } getShiftRotationByWorkPlanGroup(workPlanGroup: EnumWorkPlanGroup) { return this.apiService.httpGet('/Attendance' + '/getShiftRotationByWorkPlanGroup' + '/' + workPlanGroup); } getShiftRotationByStatus(status: EnumStatus) { return this.apiService.httpGet('/Attendance' + '/getShiftRotationByStatus' + '/' + status); } getShiftRotationByWorkGroupType(workPlanGroup: EnumWorkPlanGroup, sequence: number) { return this.apiService.httpGet('/Attendance' + '/getShiftRotationByWorkGroupType' + '/' + workPlanGroup + '/' + sequence); } saveShiftRotation(param: any) { return this.apiService.httpPost('/Attendance' + '/saveShiftRotation', param); } deleteShiftRotationById(param: any) { return this.apiService.httpPost('/Attendance' + '/deleteShiftRotationById', param); } getDailyAttnProcessByEmp(empList: any) { return this.apiService.httpPost('/Attendance' + '/getDailyAttnProcessByEmp', empList); } // DailyAttnProcess getDailyAttnProcessByEmployeeId(employeeId: number) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByEmployeeId' + '/' + employeeId); } //getDailyAttnProcessByWFStatus(fromDate: Date, toDate: Date, empId: string, status: EnumWFAttnStatus) { // return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByWFStatus' + '/' + fromDate + // '/' + toDate + '/' + empId + '/' + status); //} getDailyAttnProcessByWFStatus(param: any) { return this.apiService.httpPost('/Attendance/getDailyAttnProcessByWFStatus/', param); } getDailyAttnProcessByEmpIdandWFStatus(param: any) { return this.apiService.httpPost('/Attendance/getDailyAttnProcessByEmpIdandWFStatus/', param); } updateAttendanceRegularization(param: any) { return this.apiService.httpPost('/Attendance/updateAttendanceRegularization/', param); } updateAttendanceRegularizationForApprove(param: any) { return this.apiService.httpPost('/Attendance/UpdateAttendanceRegularizationForApprove/', param); } RejectAttnStatusByLM(param: any) { return this.apiService.httpPost('/Attendance/RejectAttnStatusByLM/', param); } updateActingResponsibilitySetupForApproveOrRejected(param: any) { return this.apiService.httpPost('/Attendance/updateActingResponsibilitySetupForApproveOrRejected/', param); } getLastProcessDateByEmpId(empId: number) { return this.apiService.httpGet('/Attendance' + '/getLastProcessDateByEmpId' + '/' + empId); } getAttnSubmittedDataByDateRange(empId: string, fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance' + '/getAttnSubmittedDataByDateRange' + '/' + empId + '/' + fromDate + '/' + toDate); } getAttnSubmittedData(empId: string, isCurrentMonth: boolean) { return this.apiService.httpGet('/Attendance' + '/getAttnSubmittedData' + '/' + empId + '/' + isCurrentMonth); } getAttnDataByWFStatus(empId: string, status: EnumWFAttnStatus) { return this.apiService.httpGet('/Attendance' + '/getAttnDataByWFStatus' + '/' + empId + '/' + status); } getAttnDataByWFStatusCount(empId: string, status: EnumWFAttnStatus) { return this.apiService.httpGet('/Attendance' + '/getAttnDataByWFStatusCount' + '/' + empId + '/' + status); } getDailyAttnProcessById(id: number) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessById' + '/' + id); } getDailyAttnProcessByEmpId(empId: number, attnDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByEmpId' + '/' + empId + '/' + attnDate); } getAllDailyAttnProcess() { return this.apiService.httpGet('/Attendance' + '/getAllDailyAttnProcess'); } getDailyAttnProcessByWPG(wpg: EnumWorkPlanGroup, attnDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByWPG' + '/' + wpg + '/' + attnDate); } getDailyAttnProcessByAttnDate(attnDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByAttnDate' + '/' + attnDate); } getDailyAttnManualProcess(attnDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnManualProcess' + '/' + attnDate); } getDailyAttnProcessByEmpIdAndDateRange(empId: number, fromDate: string, toDate: string) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByEmpIdAndDateRange' + '/' + empId + '/' + fromDate + '/' + toDate); } getDailyAttnProcessByDateRangeEss(empId: number, fromDate: string, toDate: string) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByDateRangeEss' + '/' + empId + '/' + fromDate + '/' + toDate); } getRegularizableAttendance(empId: number, fromDate: string, toDate: string) { return this.apiService.httpGet('/Attendance' + '/getRegularizableAttendance' + '/' + empId + '/' + fromDate + '/' + toDate); } getDailyAttnProcessBysEmpIdAndDateRange(sEmpId: string, fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessBysEmpIdAndDateRange' + '/' + sEmpId + '/' + fromDate.toDateString() + '/' + toDate.toDateString()); } getDailyAttnProcessByDateRange(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByDateRange' + '/' + fromDate + '/' + toDate); } getDailyAttnProcessByAttnDateAndShiftId(attnDate: Date, shiftId: number, attnType: EnumAttendanceType) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByAttnDateAndShiftId' + '/' + attnDate + '/' + shiftId + '/' + attnType); } getDailyEmployeeAbsentById(id: number, date: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyEmployeeAbsentById' + '/' + id + '/' + date); } getDailyAttnWhereOutTimeIsNull(attnDate: Date, shiftId: number) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnWhereOutTimeIsNull' + '/' + attnDate + '/' + shiftId); } getEmployeesFirstAttendances(employeeIds: string) { return this.apiService.httpGet('/Attendance' + '/getEmployeesFirstAttendances' + '/' + employeeIds); } getMyNotSubmittedAbsentList() { return this.apiService.httpGet('/Attendance' + '/getMyNotSubmittedAbsentList'); } getMyTeamNotApprovedList() { return this.apiService.httpGet('/Attendance' + '/getMyTeamNotApprovedList'); } getMyTeamAbsentAndLeaveList(frommonth: string, tomonth: string) { return this.apiService.httpGet('/Attendance' + '/getMyTeamAbsentAndLeaveList/' + frommonth + '/' + tomonth); } getLastProcessDate() { return this.apiService.httpGet('/Attendance' + '/getLastProcessDate'); } getDailyAttnProcessByEmpIdAndShiftIdAndDateRange(empId: number, shiftId: number, fromDate: Date, toDate: Date, attendanceType: EnumAttendanceType) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByEmpIdAndShiftIdAndDateRange' + '/' + empId + '/' + shiftId + '/' + fromDate + '/' + toDate + '/' + attendanceType); } getDailyAttnProcessByAttnDateAndEmpIds(attnDate: Date, empIds: string) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnProcessByAttnDateAndEmpIds' + '/' + attnDate + '/' + empIds); } getAttnDataByWFStatusCountByDateRange(fromDate: Date, toDate: Date, status: EnumWFAttnStatus) { return this.apiService.httpGet('/Attendance' + '/getAttnDataByWFStatusCountByDateRange' + '/' + fromDate + '/' + toDate + '/' + status); } getDailyAttnBySalaryMonth(salaryMonth: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnBySalaryMonth' + '/' + salaryMonth); } getDailyAttnByStatusAndDateRange(empId: number, fromDate: Date, toDate: Date, status: string) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnByStatusAndDateRange' + '/' + empId + '/' + fromDate + '/' + toDate + '/' + status); } getDailyAttnByStatusAndDateRangeAndsEmpId(sEmpId: number, fromDate: Date, toDate: Date, status: EnumClaimWFStatus) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnByStatusAndDateRangeAndsEmpId' + '/' + sEmpId + '/' + fromDate + '/' + toDate + '/' + status); } getDailyAttnLastProcessDate() { return this.apiService.httpGet('/Attendance' + '/getDailyAttnLastProcessDate'); } getDailyAttnManualProcessByAttnDate(attnDate: Date) { return this.apiService.httpGet('/Attendance' + '/getDailyAttnManualProcessByAttnDate' + '/' + attnDate); } getAttnDataByWFStatusByProcessId(dailyAttnProcessId: number, status: EnumWFAttnStatus) { return this.apiService.httpGet('/Attendance' + '/getAttnDataByWFStatusByProcessId' + '/' + dailyAttnProcessId + '/' + status); } saveDailyAttnProcess(param: any) { return this.apiService.httpPost('/Attendance' + '/saveDailyAttnProcess', param); } UpdateManualEntry(param: any) { return this.apiService.httpPost('/Attendance' + '/UpdateManualEntry', param); } saveDailyAttnProcessListWithCounterClock(param: any) { return this.apiService.httpPost('/Attendance' + '/saveDailyAttnProcessListWithCounterClock', param); } saveDailyAttnProcessList(param: any) { return this.apiService.httpPost('/Attendance' + '/saveDailyAttnProcessList', param); } saveDailyAttnProcessListAndAttnMonthlyBenefits(param: any) { return this.apiService.httpPost('/Attendance' + '/saveDailyAttnProcessListAndAttnMonthlyBenefits', param); } deleteDailyAttnProcessById(param: any) { return this.apiService.httpPost('/Attendance' + '/deleteDailyAttnProcessById', param); } updateLeave(param: any) { return this.apiService.httpPost('/Attendance' + '/updateLeave', param); } updateLateAttnBenefitStatus(param: any) { return this.apiService.httpPost('/Attendance' + '/updateLateAttnBenefitStatus', param); } saveForBridgeHoliday(param: any) { return this.apiService.httpPost('/Attendance' + '/saveForBridgeHoliday', param); } saveAutoForLmApproved(param: any) { return this.apiService.httpPost('/Attendance' + '/saveAutoForLmApproved', param); } saveAutoDailyAttnProcess(param: any) { return this.apiService.httpPost('/Attendance' + '/saveAutoDailyAttnProcess', param); } dailyAttnProcessManual(param: any) { return this.apiService.httpPost('/Attendance' + '/dailyAttnProcessManual', param); } DoBenifitProcess(param: any) { return this.apiService.httpPost('/Attendance' + '/BenifitProcess', param); } // EmployeeOutsideDuty getAllEmployeeOutsideDuties() { return this.apiService.httpGet('/Attendance/getAllEmployeeOutsideDuties'); } getOutSideDutyTypes(){ return this.apiService.httpGet('/Attendance/getOutSideDutyTypes'); } getOutsideDutiesByEmployeeId(param: number) { return this.apiService.httpGet('/Attendance/getOutsideDutiesByEmployeeId/' + param); } deleteEmployeeOutsideDuty(param: EmployeeOutsideDuty){ return this.apiService.httpPost('/Attendance/deleteEmployeeOutsideDuty', param); } saveEmployeeOutsideDuty(param: any) { return this.apiService.httpPost('/Attendance/saveEmployeeOutsideDuty', param); } SaveMontlhyWorkPlan(param: MonthlyWorkPlan[]) { return this.apiService.httpPost('/Attendance/SaveMontlhyWorkPlan', param); } DeleteMontlhyWorkPlan(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance/DeleteMontlhyWorkPlan/' + fromDate.toString() + '/' + toDate.toString()); } DeleteOnwardMonthyworkPlan(fromDate: Date) { return this.apiService.httpGet('/Attendance/DeleteOnwardMonthyworkPlan/' + fromDate.toDateString() ); } GetWorkPlan(monthDate: Date) { return this.apiService.httpGet('/Attendance/GetWorkPlan/' + monthDate.toString()); } GetLastSavedWorkDate() { return this.apiService.httpGet('/Attendance/GetLastSavedWorkDate' ); } GetWorkPlanByDate(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance/GetWorkPlanByDate/' + fromDate.toString() + '/' + toDate.toString()); } GetEmployeeRoster(param: any) { return this.apiService.httpPost('/Attendance/GetEmployeeRoster', param); } RefreshMonthlyWorkplan(monthDate: Date) { return this.apiService.httpGet('/Attendance/RefreshMonthlyWorkplan/' + this.apiService.getApiDateString(monthDate)); } GetRosterTable(monthlyworkPlan: MonthlyWorkPlan[]) { return this.apiService.httpPost('/Attendance/GetRosterTable', monthlyworkPlan); } updateWorkPlan(monthlyworkPlan: MonthlyWorkPlan) { return this.apiService.httpPost('/Attendance/UpdateMonthlyWorkplan', monthlyworkPlan); } getActingResponsiblityByEmpID(fromDate: Date, toDate: Date, empid: number) { return this.apiService.httpGet('/Attendance/getActingResponsiblityByEmpID/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + empid); } getActingResponsiblityByEmpIDAndStatus(fromDate: Date, toDate: Date, empid: number, wfStatus: number) { return this.apiService.httpGet('/Attendance/getActingResponsiblityByEmpIDAndStatus/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + empid + '/' + wfStatus); } getActingResponsiblityForApprove(fromDate: Date, toDate: Date, wfStatus: number) { return this.apiService.httpGet('/Attendance/getActingResponsiblityForApprove/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + wfStatus); } getActingResponsiblity(fromDate: Date, toDate: Date) { return this.apiService.httpGet('/Attendance/getActingResponsiblity/' + fromDate.toDateString() + '/' + toDate.toDateString()); } getOnWardActingResponsiblity(fromDate: Date, empid: number) { return this.apiService.httpGet('/Attendance/getOnWardActingResponsiblity/' + fromDate.toDateString() + '/' + empid); } SaveActingResponsiblity(item: ActingResponsibilitySetup) { return this.apiService.httpPost('/Attendance/SaveActingResponsiblities/', item); } SaveActingResponsiblities(item: ActingResponsibilitySetup[]) { return this.apiService.httpPost('/Attendance/SaveActingResponsiblities/', item); } DeleteActingResponsiblity(item: ActingResponsibilitySetup) { return this.apiService.httpPost('/Attendance/DeleteActingResponsiblity/', item); } saveAttnRawData(param: any) { return this.apiService.httpPost('/Attendance/saverawdata/', param); } getAttnRawData(fromDate: string, toDate: string, empIDs: string) { return this.apiService.httpGet('/Attendance' + '/getrawdata' + '/' + fromDate + '/' + toDate + '/' + empIDs); } getMonthJobCardByEmployeeId(employeeId: number, attnMonth: string,) { return this.apiService.httpGet('/Attendance' + '/getMonthJobCardByEmployeeId' + '/' + employeeId + '/' + attnMonth); } getMonthJobCardNewByEmployeeId(employeeId: number, attnMonth: string,) { return this.apiService.httpGet('/Attendance' + '/getMonthJobCardNewByEmployeeId' + '/' + employeeId + '/' + attnMonth); } getDailyAttnByStatusReport(param:any) { return this.apiService.httpPost('/Attendance/getDailyDataByStatusReport/',param); } getAttnByStatusReport(param: any) { return this.apiService.httpPost('/Attendance/getDataByStatusReport/', param); } getDailyOddDataByStatusReport(param: any) { return this.apiService.httpPost('/Attendance/getDailyOddDataByStatusReport/', param); } getDateWiseAttnRecords(param: any) { return this.apiService.httpPost('/Attendance/getDateWiseAttnRecords/', param); } getDateRangeWiseDataByStatusReport(param: any) { return this.apiService.httpPost('/Attendance/getDateRangeWiseDataByStatusReport/', param); } getAttendanceAllowance(){ return this.apiService.httpGet('/Attendance' + '/getAttendanceAllowance'); } getAttendanceOverTimeAllowance(){ return this.apiService.httpGet('/Attendance' + '/getAttendanceOverTimeAllowance'); } GetAttendanceDashboard(){ return this.apiService.httpGet('/Attendance' + '/getAttendanceDashboard'); } getTopEmpAbsentData(){ return this.apiService.httpGet('/Attendance' + '/getTopEmpAbsentData'); } getcorehrAbsentData(){ return this.apiService.httpGet('/Attendance' + '/getcorehrAbsentData'); } getAccessCard(id:number) { return this.apiService.httpGet('/Attendance' + '/getAccessCard/' + id); } assignCardToEmployee(param: any) { return this.apiService.httpPost('/Attendance' + '/assignCard', param); } lostCardFromEmployee(param: any) { return this.apiService.httpPost('/Attendance' + '/lostCardFromEmployee/', param); } getCardInformation(enumCardStatus: number){ return this.apiService.httpGet('/Attendance' + '/getCardInformation/'+ enumCardStatus); } foundCard(param: any){ return this.apiService.httpPost('/Attendance' + '/foundCard/', param); } detachCardInfoFromEmployee(param: any) { return this.apiService.httpPost('/Attendance' + '/detachCardInfoFromEmployee', param); } getAttandanceDashboardData(param: any) { return this.apiService.httpPost('/Attendance' + '/getAttandanceDashboardData', param); } }