638 lines
32 KiB
TypeScript
638 lines
32 KiB
TypeScript
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<shift[]>(this.baseUrl + 'getShifts');*/
|
|
const nname = this.apiService.getApiDefaultData(name);
|
|
const ncode = this.apiService.getApiDefaultData(code);
|
|
|
|
return this.apiService.httpGet<Shift[]>('/Attendance' + '/getShifts/' + ncode + '/' + nname + '/' + status);
|
|
}
|
|
saveTemporaryShift(rosterModelForUpdate: updateRosterModel){
|
|
return this.apiService.httpPost<number>('/Attendance' + '/saveTemporaryShift', rosterModelForUpdate);
|
|
}
|
|
getShiftById(id: number) {
|
|
return this.apiService.httpGet<Shift>('/Attendance' + '/getShiftById' + '/' + id);
|
|
}
|
|
getShiftByName(name: string) {
|
|
return this.apiService.httpGet<Shift[]>('/Attendance' + '/getShiftByName' + '/' + name);
|
|
}
|
|
getShiftByCounterClock(isCounterClock: boolean) {
|
|
return this.apiService.httpGet<Shift[]>('/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<number>('/Attendance' + '/saveShift', params);
|
|
}
|
|
|
|
// holiday calendar
|
|
getHolidaysByLocId(locId: number) {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getHolidaysByLocId' + '/' + locId);
|
|
}
|
|
getNationalHolidays() {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getNationalHolidays');
|
|
}
|
|
getHolidayById(id: number) {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getHolidayById' + '/' + id);
|
|
}
|
|
getTotalMonthlyHolidays(locationNumber: number, firstDateOfMonth: Date, lastDateOfMonth: Date) {
|
|
return this.apiService.httpGet('/Attendance' + '/getTotalMonthlyHolidays' + '/' + locationNumber + '/'
|
|
+ firstDateOfMonth + '/' + lastDateOfMonth);
|
|
}
|
|
getAllHolidays() {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getAllHolidays');
|
|
}
|
|
getWeeklyHolidays() {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getWeeklyHolidays');
|
|
}
|
|
getWeeklyAndLocHoliday(locId: number) {
|
|
return this.apiService.httpGet<HolidayCalendar[]>('/Attendance' + '/getWeeklyAndLocHoliday' + '/' + locId);
|
|
}
|
|
getNoOfHoliday() {
|
|
return this.apiService.httpGet('/Attendance' + '/getNoOfHoliday');
|
|
}
|
|
getHolidaysByMonthRange(locationId: number, startDate: Date, endDate: Date) {
|
|
return this.apiService.httpGet<HolidayCalendar>('/Attendance' + '/getHolidaysByMonthRange' + '/' + locationId + '/'
|
|
+ startDate + '/' + endDate);
|
|
}
|
|
getHolidaysByDateRange(startDate: Date, endDate: Date) {
|
|
return this.apiService.httpGet<HolidayCalendar>('/Attendance' + '/getHolidaysByDateRange' + '/'
|
|
+ startDate + '/' + endDate);
|
|
}
|
|
saveHoliday(param: any) {
|
|
return this.apiService.httpPost<HolidayCalendar>('/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<AttnNationalHoliday>('/Attendance' + '/getAttnNationalHolidayById' + '/' + id);
|
|
}
|
|
getAttnNationalHolidayListByDateRange(fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<AttnNationalHoliday[]>('/Attendance' + '/getAttnNationalHolidayByDateRange' + '/' + fromDate
|
|
+ '/' + toDate);
|
|
}
|
|
getupcommingNationalHoliday(fromDate: Date) {
|
|
return this.apiService.httpGet<AttnNationalHoliday[]>('/Attendance' + '/getupcommingNationalHoliday' + '/' + fromDate.toDateString());
|
|
}
|
|
getAttnNationalHolidayListByStatus(status: EnumStatus) {
|
|
return this.apiService.httpGet<AttnNationalHoliday[]>('/Attendance' + '/getAttnNationalHolidayListByStatus' + '/' + status);
|
|
}
|
|
getAttnNationalHolidayLocationList(id: number) {
|
|
return this.apiService.httpGet<AttnNationalHolidayLocation[]>('/Attendance' + '/getAttnNationalHolidayLocationList' + '/' + id);
|
|
}
|
|
getAttnNationalHolidayShiftList(id: number) {
|
|
return this.apiService.httpGet<AttnShiftWiseNationalHoliday[]>('/Attendance' + '/getAttnNationalHolidayShiftList' + '/' + id);
|
|
}
|
|
getAttnNationalHolidayListByMonthAndPayrollType(fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<AttnNationalHoliday[]>('/Attendance' + '/getAttnNationalHolidayListByMonthAndPayrollType'
|
|
+ '/' + fromDate + '/' + toDate);
|
|
}
|
|
deleteAttnNationalHolidayById(nationalHoliday: AttnNationalHoliday) {
|
|
return this.apiService.httpPost('/Attendance' + '/deleteAttnNationalHolidayById', nationalHoliday);
|
|
}
|
|
saveAttnNationalHoliday(param: any) {
|
|
return this.apiService.httpPost<AttnNationalHoliday>('/Attendance' + '/saveAttnNationalHoliday', param);
|
|
}
|
|
|
|
// WorkPlanGroup
|
|
getWorkPlanGroupById(id: number) {
|
|
return this.apiService.httpGet<WorkPlanGroup>('/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<WorkPlanGroup[]>('/Attendance' + '/GetWorkPlanGroups/'
|
|
+ status + '/' + nname + '/' + grouptypeInt);
|
|
}
|
|
// getWorkPlanGroupListByStatus(status: EnumStatus) {
|
|
// return this.apiService.httpGet<WorkPlanGroup[]>('/Attendance' + '/getWorkPlanGroupListByStatus' + '/' + status);
|
|
// }
|
|
// getWorkPlanGroupListByWorkPlanGroup(workPlanGroup: EnumWorkPlanGroup) {
|
|
// return this.apiService.httpGet<WorkPlanGroup[]>('/Attendance' + '/getWorkPlanGroupListByWorkPlanGroup' + '/' + workPlanGroup);
|
|
// }
|
|
// getWorkPlanGroupListByName(name: string) {
|
|
// return this.apiService.httpGet<WorkPlanGroup[]>('/Attendance' + '/getWorkPlanGroupListByName' + '/' + name);
|
|
// }
|
|
getAllWorkPlanGroupList() {
|
|
return this.apiService.httpGet<WorkPlanGroup[]>('/Attendance' + '/getAllWorkPlanGroupList');
|
|
}
|
|
saveWorkPlanGroup(param: any) {
|
|
return this.apiService.httpPost<number>('/Attendance' + '/saveWorkPlanGroup', param);
|
|
}
|
|
deleteWorkPlanGroupById(id: any) {
|
|
return this.apiService.httpPost('/Attendance' + '/deleteWorkPlanGroupById', id);
|
|
}
|
|
|
|
// EmployeeWorkPlanSetup
|
|
getEmployeeWorkPlanSetupById(id: number) {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup>('/Attendance' + '/getEmployeeWorkPlanSetupById' + '/' + id);
|
|
}
|
|
getEmployeeWorkPlanSetupByEmpId(empId: number) {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup>('/Attendance' + '/getEmployeeWorkPlanSetupByEmpId' + '/' + empId);
|
|
}
|
|
getEmployeeWorkPlanSetupList() {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/Attendance' + '/getEmployeeWorkPlanSetupList');
|
|
}
|
|
getEmployeeWorkPlanSetupByWorkPlanGroup(type: EnumWorkPlanGroup) {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/Attendance' + '/getEmployeeWorkPlanSetupByWorkPlanGroup' + '/' + type);
|
|
}
|
|
getEmployeeWorkPlanSetupForFixedWP(groupId: number, holiday: EnumDayOfWeek) {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/Attendance' + '/getEmployeeWorkPlanSetupForFixedWP'
|
|
+ '/' + groupId + '/' + holiday);
|
|
}
|
|
getNotYetAssiged() {
|
|
// return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/Attendance' + '/getNotYetAssiged');
|
|
return this.apiService.httpGet<Employee[]>('/Attendance' + '/getNotYetAssiged');
|
|
}
|
|
getLastAttnProcessDate() {
|
|
// return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/Attendance' + '/getNotYetAssiged');
|
|
return this.apiService.httpGet<Date>('/Attendance' + '/getLastAttnProcessDate');
|
|
}
|
|
getEmployeeWorkPlanSetupByWPGroupID(groupId: number) {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup[]>('/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<EmployeeWorkPlanSetup>('/Attendance' + '/getEmployeeWorkPlanSetupByPayrollTypeID');
|
|
}
|
|
getAllEmployeeWorkPlanSetup() {
|
|
return this.apiService.httpGet<EmployeeWorkPlanSetup>('/Attendance' + '/getAllEmployeeWorkPlanSetup');
|
|
}
|
|
saveEmployeeWorkPlanSetup(param: any) {
|
|
return this.apiService.httpPost<EmployeeWorkPlanSetup>('/Attendance' + '/saveEmployeeWorkPlanSetup', param);
|
|
}
|
|
saveEmployeeWorkPlanSetupList(param: any) {
|
|
return this.apiService.httpPost<EmployeeWorkPlanSetup[]>('/Attendance' + '/saveEmployeeWorkPlanSetupList', param);
|
|
}
|
|
|
|
IsEmpExistInWorkplan(param: SearchEmployee[]) {
|
|
return this.apiService.httpPost<EmployeeWorkPlanSetup[]>('/Attendance' + '/IsEmpExistInWorkplan', param);
|
|
}
|
|
saveFixedWPlansList(param: any) {
|
|
return this.apiService.httpPost<EmployeeWorkPlanSetup[]>('/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<ShiftRotation>('/Attendance' + '/getShiftRotationById' + '/' + id);
|
|
}
|
|
getShiftRotationByWorkPlanGroupType(workPlanGroupType: EnumWorkPlanGroup) {
|
|
return this.apiService.httpGet<ShiftRotation[]>('/Attendance' + '/getShiftRotationByWorkPlanGroupType' + '/' + workPlanGroupType);
|
|
}
|
|
getShiftRotationByWorkPlanGroup(workPlanGroup: EnumWorkPlanGroup) {
|
|
return this.apiService.httpGet<ShiftRotation[]>('/Attendance' + '/getShiftRotationByWorkPlanGroup' + '/' + workPlanGroup);
|
|
}
|
|
getShiftRotationByStatus(status: EnumStatus) {
|
|
return this.apiService.httpGet<ShiftRotation[]>('/Attendance' + '/getShiftRotationByStatus' + '/' + status);
|
|
}
|
|
getShiftRotationByWorkGroupType(workPlanGroup: EnumWorkPlanGroup, sequence: number) {
|
|
return this.apiService.httpGet<ShiftRotation>('/Attendance' + '/getShiftRotationByWorkGroupType'
|
|
+ '/' + workPlanGroup + '/' + sequence);
|
|
}
|
|
saveShiftRotation(param: any) {
|
|
return this.apiService.httpPost<ShiftRotation>('/Attendance' + '/saveShiftRotation', param);
|
|
}
|
|
deleteShiftRotationById(param: any) {
|
|
return this.apiService.httpPost('/Attendance' + '/deleteShiftRotationById', param);
|
|
}
|
|
|
|
|
|
getDailyAttnProcessByEmp(empList: any) {
|
|
return this.apiService.httpPost<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByEmp', empList);
|
|
}
|
|
|
|
// DailyAttnProcess
|
|
getDailyAttnProcessByEmployeeId(employeeId: number) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByEmployeeId' + '/' + employeeId);
|
|
}
|
|
//getDailyAttnProcessByWFStatus(fromDate: Date, toDate: Date, empId: string, status: EnumWFAttnStatus) {
|
|
// return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByWFStatus' + '/' + fromDate +
|
|
// '/' + toDate + '/' + empId + '/' + status);
|
|
//}
|
|
getDailyAttnProcessByWFStatus(param: any) {
|
|
return this.apiService.httpPost<AttendanceRegularizationDTO[]>('/Attendance/getDailyAttnProcessByWFStatus/', param);
|
|
}
|
|
getDailyAttnProcessByEmpIdandWFStatus(param: any) {
|
|
return this.apiService.httpPost<AttendanceRegularizationDTO[]>('/Attendance/getDailyAttnProcessByEmpIdandWFStatus/', param);
|
|
}
|
|
updateAttendanceRegularization(param: any) {
|
|
return this.apiService.httpPost<AttendanceRegularizationDTO>('/Attendance/updateAttendanceRegularization/', param);
|
|
}
|
|
|
|
updateAttendanceRegularizationForApprove(param: any) {
|
|
return this.apiService.httpPost<AttendanceRegularizationDTO>('/Attendance/UpdateAttendanceRegularizationForApprove/', param);
|
|
}
|
|
|
|
RejectAttnStatusByLM(param: any) {
|
|
return this.apiService.httpPost<any>('/Attendance/RejectAttnStatusByLM/', param);
|
|
}
|
|
|
|
updateActingResponsibilitySetupForApproveOrRejected(param: any) {
|
|
return this.apiService.httpPost<AttendanceRegularizationDTO>('/Attendance/updateActingResponsibilitySetupForApproveOrRejected/', param);
|
|
}
|
|
getLastProcessDateByEmpId(empId: number) {
|
|
return this.apiService.httpGet('/Attendance' + '/getLastProcessDateByEmpId' + '/' + empId);
|
|
}
|
|
getAttnSubmittedDataByDateRange(empId: string, fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getAttnSubmittedDataByDateRange' + '/' + empId
|
|
+ '/' + fromDate + '/' + toDate);
|
|
}
|
|
getAttnSubmittedData(empId: string, isCurrentMonth: boolean) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getAttnSubmittedData' + '/' + empId
|
|
+ '/' + isCurrentMonth);
|
|
}
|
|
getAttnDataByWFStatus(empId: string, status: EnumWFAttnStatus) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getAttnDataByWFStatus' + '/' + empId
|
|
+ '/' + status);
|
|
}
|
|
getAttnDataByWFStatusCount(empId: string, status: EnumWFAttnStatus) {
|
|
return this.apiService.httpGet('/Attendance' + '/getAttnDataByWFStatusCount' + '/' + empId
|
|
+ '/' + status);
|
|
}
|
|
getDailyAttnProcessById(id: number) {
|
|
return this.apiService.httpGet<DailyAttnProcess>('/Attendance' + '/getDailyAttnProcessById' + '/' + id);
|
|
}
|
|
getDailyAttnProcessByEmpId(empId: number, attnDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess>('/Attendance' + '/getDailyAttnProcessByEmpId' + '/' + empId
|
|
+ '/' + attnDate);
|
|
}
|
|
getAllDailyAttnProcess() {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getAllDailyAttnProcess');
|
|
}
|
|
getDailyAttnProcessByWPG(wpg: EnumWorkPlanGroup, attnDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByWPG' + '/' + wpg
|
|
+ '/' + attnDate);
|
|
}
|
|
getDailyAttnProcessByAttnDate(attnDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByAttnDate' + '/' + attnDate);
|
|
}
|
|
getDailyAttnManualProcess(attnDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnManualProcess' + '/' + attnDate);
|
|
}
|
|
getDailyAttnProcessByEmpIdAndDateRange(empId: number, fromDate: string, toDate: string) {
|
|
return this.apiService.httpGet<AttendanceRegularizationDTO[]>('/Attendance' + '/getDailyAttnProcessByEmpIdAndDateRange'
|
|
+ '/' + empId + '/' + fromDate + '/' + toDate);
|
|
}
|
|
getDailyAttnProcessByDateRangeEss(empId: number, fromDate: string, toDate: string) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByDateRangeEss'
|
|
+ '/' + empId + '/' + fromDate + '/' + toDate);
|
|
}
|
|
|
|
getRegularizableAttendance(empId: number, fromDate: string, toDate: string) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getRegularizableAttendance'
|
|
+ '/' + empId + '/' + fromDate + '/' + toDate);
|
|
}
|
|
|
|
|
|
getDailyAttnProcessBysEmpIdAndDateRange(sEmpId: string, fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessBysEmpIdAndDateRange'
|
|
+ '/' + sEmpId + '/' + fromDate.toDateString() + '/' + toDate.toDateString());
|
|
}
|
|
getDailyAttnProcessByDateRange(fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByDateRange'
|
|
+ '/' + fromDate + '/' + toDate);
|
|
}
|
|
getDailyAttnProcessByAttnDateAndShiftId(attnDate: Date, shiftId: number, attnType: EnumAttendanceType) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByAttnDateAndShiftId'
|
|
+ '/' + attnDate + '/' + shiftId + '/' + attnType);
|
|
}
|
|
getDailyEmployeeAbsentById(id: number, date: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess>('/Attendance' + '/getDailyEmployeeAbsentById'
|
|
+ '/' + id + '/' + date);
|
|
}
|
|
getDailyAttnWhereOutTimeIsNull(attnDate: Date, shiftId: number) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnWhereOutTimeIsNull'
|
|
+ '/' + attnDate + '/' + shiftId);
|
|
}
|
|
getEmployeesFirstAttendances(employeeIds: string) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getEmployeesFirstAttendances'
|
|
+ '/' + employeeIds);
|
|
}
|
|
|
|
getMyNotSubmittedAbsentList() {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getMyNotSubmittedAbsentList');
|
|
}
|
|
|
|
getMyTeamNotApprovedList() {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getMyTeamNotApprovedList');
|
|
}
|
|
|
|
getMyTeamAbsentAndLeaveList(frommonth: string, tomonth: string) {
|
|
return this.apiService.httpGet<any[]>('/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<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnProcessByEmpIdAndShiftIdAndDateRange'
|
|
+ '/' + empId + '/' + shiftId + '/' + fromDate + '/' + toDate + '/' + attendanceType);
|
|
}
|
|
getDailyAttnProcessByAttnDateAndEmpIds(attnDate: Date, empIds: string) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/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<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnBySalaryMonth'
|
|
+ '/' + salaryMonth);
|
|
}
|
|
getDailyAttnByStatusAndDateRange(empId: number, fromDate: Date, toDate: Date, status: string) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnByStatusAndDateRange'
|
|
+ '/' + empId + '/' + fromDate + '/' + toDate + '/' + status);
|
|
}
|
|
getDailyAttnByStatusAndDateRangeAndsEmpId(sEmpId: number, fromDate: Date, toDate: Date, status: EnumClaimWFStatus) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnByStatusAndDateRangeAndsEmpId'
|
|
+ '/' + sEmpId + '/' + fromDate + '/' + toDate + '/' + status);
|
|
}
|
|
getDailyAttnLastProcessDate() {
|
|
return this.apiService.httpGet('/Attendance' + '/getDailyAttnLastProcessDate');
|
|
}
|
|
getDailyAttnManualProcessByAttnDate(attnDate: Date) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getDailyAttnManualProcessByAttnDate' + '/' + attnDate);
|
|
}
|
|
getAttnDataByWFStatusByProcessId(dailyAttnProcessId: number, status: EnumWFAttnStatus) {
|
|
return this.apiService.httpGet<DailyAttnProcess[]>('/Attendance' + '/getAttnDataByWFStatusByProcessId' + '/' + dailyAttnProcessId
|
|
+ '/' + status);
|
|
}
|
|
saveDailyAttnProcess(param: any) {
|
|
return this.apiService.httpPost<DailyAttnProcess>('/Attendance' + '/saveDailyAttnProcess', param);
|
|
}
|
|
UpdateManualEntry(param: any) {
|
|
return this.apiService.httpPost('/Attendance' + '/UpdateManualEntry', param);
|
|
}
|
|
|
|
saveDailyAttnProcessListWithCounterClock(param: any) {
|
|
return this.apiService.httpPost<DailyAttnProcess[]>('/Attendance' + '/saveDailyAttnProcessListWithCounterClock', param);
|
|
}
|
|
saveDailyAttnProcessList(param: any) {
|
|
return this.apiService.httpPost<DailyAttnProcess[]>('/Attendance' + '/saveDailyAttnProcessList', param);
|
|
}
|
|
saveDailyAttnProcessListAndAttnMonthlyBenefits(param: any) {
|
|
return this.apiService.httpPost<DailyAttnProcess[]>('/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<any>('/Attendance' + '/BenifitProcess', param);
|
|
}
|
|
|
|
|
|
// EmployeeOutsideDuty
|
|
getAllEmployeeOutsideDuties() {
|
|
return this.apiService.httpGet<EmployeeOutsideDuty[]>('/Attendance/getAllEmployeeOutsideDuties');
|
|
}
|
|
getOutSideDutyTypes(){
|
|
return this.apiService.httpGet<OutsideDuty[]>('/Attendance/getOutSideDutyTypes');
|
|
}
|
|
getOutsideDutiesByEmployeeId(param: number) {
|
|
return this.apiService.httpGet<EmployeeOutsideDuty[]>('/Attendance/getOutsideDutiesByEmployeeId/' + param);
|
|
}
|
|
deleteEmployeeOutsideDuty(param: EmployeeOutsideDuty){
|
|
return this.apiService.httpPost<EmployeeOutsideDuty>('/Attendance/deleteEmployeeOutsideDuty', param);
|
|
}
|
|
saveEmployeeOutsideDuty(param: any) {
|
|
return this.apiService.httpPost<EmployeeOutsideDuty>('/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<MonthlyWorkPlan[]>('/Attendance/GetWorkPlan/' + monthDate.toString());
|
|
}
|
|
GetLastSavedWorkDate() {
|
|
return this.apiService.httpGet<any>('/Attendance/GetLastSavedWorkDate' );
|
|
}
|
|
GetWorkPlanByDate(fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet('/Attendance/GetWorkPlanByDate/' + fromDate.toString() + '/' + toDate.toString());
|
|
}
|
|
|
|
GetEmployeeRoster(param: any) {
|
|
return this.apiService.httpPost<any>('/Attendance/GetEmployeeRoster', param);
|
|
}
|
|
|
|
RefreshMonthlyWorkplan(monthDate: Date) {
|
|
|
|
return this.apiService.httpGet<MonthlyWorkPlan[]>('/Attendance/RefreshMonthlyWorkplan/' +
|
|
this.apiService.getApiDateString(monthDate));
|
|
}
|
|
|
|
GetRosterTable(monthlyworkPlan: MonthlyWorkPlan[]) {
|
|
return this.apiService.httpPost<any>('/Attendance/GetRosterTable', monthlyworkPlan);
|
|
}
|
|
|
|
updateWorkPlan(monthlyworkPlan: MonthlyWorkPlan) {
|
|
return this.apiService.httpPost<any>('/Attendance/UpdateMonthlyWorkplan', monthlyworkPlan);
|
|
}
|
|
|
|
getActingResponsiblityByEmpID(fromDate: Date, toDate: Date, empid: number) {
|
|
return this.apiService.httpGet<ActingResponsibilitySetup[]>('/Attendance/getActingResponsiblityByEmpID/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + empid);
|
|
}
|
|
getActingResponsiblityByEmpIDAndStatus(fromDate: Date, toDate: Date, empid: number, wfStatus: number) {
|
|
return this.apiService.httpGet<ActingResponsibilitySetup[]>('/Attendance/getActingResponsiblityByEmpIDAndStatus/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + empid + '/' + wfStatus);
|
|
}
|
|
|
|
getActingResponsiblityForApprove(fromDate: Date, toDate: Date, wfStatus: number) {
|
|
return this.apiService.httpGet<ActingResponsibilitySetup[]>('/Attendance/getActingResponsiblityForApprove/' + fromDate.toDateString() + '/' + toDate.toDateString() + '/' + wfStatus);
|
|
}
|
|
|
|
getActingResponsiblity(fromDate: Date, toDate: Date) {
|
|
return this.apiService.httpGet<ActingResponsibilitySetup[]>('/Attendance/getActingResponsiblity/' + fromDate.toDateString() + '/' + toDate.toDateString());
|
|
}
|
|
|
|
getOnWardActingResponsiblity(fromDate: Date, empid: number) {
|
|
return this.apiService.httpGet<ActingResponsibilitySetup[]>('/Attendance/getOnWardActingResponsiblity/' + fromDate.toDateString() + '/' + empid);
|
|
}
|
|
|
|
SaveActingResponsiblity(item: ActingResponsibilitySetup) {
|
|
return this.apiService.httpPost<any>('/Attendance/SaveActingResponsiblities/', item);
|
|
}
|
|
|
|
SaveActingResponsiblities(item: ActingResponsibilitySetup[]) {
|
|
return this.apiService.httpPost<any>('/Attendance/SaveActingResponsiblities/', item);
|
|
}
|
|
|
|
|
|
DeleteActingResponsiblity(item: ActingResponsibilitySetup) {
|
|
return this.apiService.httpPost('/Attendance/DeleteActingResponsiblity/', item);
|
|
}
|
|
|
|
saveAttnRawData(param: any) {
|
|
return this.apiService.httpPost<any>('/Attendance/saverawdata/', param);
|
|
}
|
|
|
|
getAttnRawData(fromDate: string, toDate: string, empIDs: string) {
|
|
return this.apiService.httpGet<AttnRawData[]>('/Attendance' + '/getrawdata' + '/' + fromDate +
|
|
'/' + toDate + '/' + empIDs);
|
|
}
|
|
getMonthJobCardByEmployeeId(employeeId: number, attnMonth: string,) {
|
|
return this.apiService.httpGet<JobCardReport>('/Attendance' + '/getMonthJobCardByEmployeeId' + '/' + employeeId +
|
|
'/' + attnMonth);
|
|
}
|
|
getMonthJobCardNewByEmployeeId(employeeId: number, attnMonth: string,) {
|
|
return this.apiService.httpGet<JobCardReport>('/Attendance' + '/getMonthJobCardNewByEmployeeId' + '/' + employeeId +
|
|
'/' + attnMonth);
|
|
}
|
|
getDailyAttnByStatusReport(param:any) {
|
|
return this.apiService.httpPost<DailyAttnByStatusReport[]>('/Attendance/getDailyDataByStatusReport/',param);
|
|
}
|
|
getAttnByStatusReport(param: any) {
|
|
return this.apiService.httpPost<DailyAttnByStatusReport[]>('/Attendance/getDataByStatusReport/', param);
|
|
}
|
|
getDailyOddDataByStatusReport(param: any) {
|
|
return this.apiService.httpPost<DailyAttnByStatusReport[]>('/Attendance/getDailyOddDataByStatusReport/', param);
|
|
}
|
|
getDateWiseAttnRecords(param: any) {
|
|
return this.apiService.httpPost<DailyAttnByStatusReport[]>('/Attendance/getDateWiseAttnRecords/', param);
|
|
}
|
|
getDateRangeWiseDataByStatusReport(param: any) {
|
|
return this.apiService.httpPost<DailyAttnByStatusReport[]>('/Attendance/getDateRangeWiseDataByStatusReport/', param);
|
|
}
|
|
getAttendanceAllowance(){
|
|
return this.apiService.httpGet<AllowanceDeduction[]>('/Attendance' + '/getAttendanceAllowance');
|
|
}
|
|
getAttendanceOverTimeAllowance(){
|
|
return this.apiService.httpGet<Term[]>('/Attendance' + '/getAttendanceOverTimeAllowance');
|
|
}
|
|
GetAttendanceDashboard(){
|
|
return this.apiService.httpGet<any>('/Attendance' + '/getAttendanceDashboard');
|
|
}
|
|
getTopEmpAbsentData(){
|
|
return this.apiService.httpGet<any>('/Attendance' + '/getTopEmpAbsentData');
|
|
}
|
|
getcorehrAbsentData(){
|
|
return this.apiService.httpGet<any>('/Attendance' + '/getcorehrAbsentData');
|
|
}
|
|
|
|
|
|
getAccessCard(id:number) {
|
|
return this.apiService.httpGet<any>('/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<any>('/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<any[]>('/Attendance' + '/getAttandanceDashboardData', param);
|
|
}
|
|
}
|