Merge branch 'master' of https://hmg.git.cloudforge.com/mohemmionic5
commit
6407421ccd
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,42 @@
|
|||||||
|
export class DayHoursTypeDetailsList {
|
||||||
|
public RTP_ID: number;
|
||||||
|
public ASSIGNMENT_ID: number;
|
||||||
|
public SCHEDULE_DATE: Date;
|
||||||
|
public SCHEDULED_HRS: string;
|
||||||
|
public SCHEDULED_PLANNED_OT_HRS: string;
|
||||||
|
public SCHEDULED_ON_CALL_HRS: string;
|
||||||
|
public ACTUAL_HRS: string;
|
||||||
|
public PLANNED_OT_HRS: string;
|
||||||
|
public ON_CALL_HRS: string;
|
||||||
|
public EXCESS_HRS: string;
|
||||||
|
public COMP_OFF_HRS: string;
|
||||||
|
public COMP_OFF_H_HRS: string;
|
||||||
|
public COMP_OFF_N_HRS: string;
|
||||||
|
public COMP_OFF_W_HRS: string;
|
||||||
|
public TIMEBACK_HRS: string;
|
||||||
|
public SHORTAGE_HRS: string;
|
||||||
|
public LATE_IN_HRS: string;
|
||||||
|
public EARLY_OUT_HRS: string;
|
||||||
|
public APPROVED_TIMEBACK_HRS: string;
|
||||||
|
public REMARKS: string;
|
||||||
|
public ABSENCE_ATTENDANCE_TYPE_ID: number;
|
||||||
|
public PERSON_EXTRA_INFO_ID: number;
|
||||||
|
public DAY_TYPE: string;
|
||||||
|
public MISSING_SWIPE_FLAG: string;
|
||||||
|
public EXCESS_FLAG: string;
|
||||||
|
public COMP_OFF_FLAG: string;
|
||||||
|
public TIMEBACK_FLAG: string;
|
||||||
|
public SHORTAGE_FLAG: string;
|
||||||
|
public LATE_IN_FLAG: string;
|
||||||
|
public EARLY_OUT_FLA: string;
|
||||||
|
public APPR_TIMEBACK_FLAG: string;
|
||||||
|
public PLANNED_OT_HRS_FLAG: string;
|
||||||
|
public ANALAYZED_FLAG: string;
|
||||||
|
public NON_SCHEDULED_FLAG: string;
|
||||||
|
public ROW_NUM: number;
|
||||||
|
public NO_OF_ROWS: number;
|
||||||
|
public FROM_ROW_NUM: number;
|
||||||
|
public TO_ROW_NUM: number;
|
||||||
|
public CALENDAR_ENTRY_ID: number;
|
||||||
|
public ABSENCE_ATTENDANCE_ID: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
import { Request } from "src/app/hmg-common/services/models/request";
|
||||||
|
import { DateTimeInput } from "src/app/uI-elements/date-time.input";
|
||||||
|
|
||||||
|
export class GetDayAndHoursDetailsRequest extends Request {
|
||||||
|
public P_SELECTED_EMPLOYEE_NUMBER: string;
|
||||||
|
public P_MENU_TYPE: string;
|
||||||
|
public P_SELECTED_RESP_ID: number;
|
||||||
|
public P_SCHEDULE_DATE_FROM: DateTimeInput;
|
||||||
|
public P_SCHEDULE_DATE_TO: DateTimeInput;
|
||||||
|
public P_EXCESS_FLAG: string;
|
||||||
|
public P_TIMEBACK_FLAG: string;
|
||||||
|
public P_COMP_OFF_FLAG: string;
|
||||||
|
public P_NON_SCHEDULED_FLAG: string;
|
||||||
|
public P_LATE_IN_FLAG: string;
|
||||||
|
public P_EARLY_OUT_FLAG: string;
|
||||||
|
public P_SHORTAGE_FLAG: string;
|
||||||
|
public P_MISSING_SWIPE_FLAG: string;
|
||||||
|
public P_ANALAYZED_FLAG: string;
|
||||||
|
public P_APPR_TIMEBACK_FLAG: string;
|
||||||
|
public P_SHT_TYPE: string;
|
||||||
|
public P_ACTUAL_WOB_SEC: string;
|
||||||
|
public P_PAGE_NUM: number;
|
||||||
|
public P_PAGE_LIMIT: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
import { Response } from "src/app/hmg-common/services/models/response";
|
||||||
|
import { DayHoursTypeDetailsList } from './DayHoursTypeDetailsList';
|
||||||
|
|
||||||
|
export class GetDayAndHoursDetailsResponse extends Response {
|
||||||
|
public GetDayHoursTypeDetailsList: DayHoursTypeDetailsList[];
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
import { Request } from "src/app/hmg-common/services/models/request";
|
||||||
|
|
||||||
|
export class GetShiftDetailRequest extends Request {
|
||||||
|
public P_RTP_ID: number;
|
||||||
|
public P_PAGE_NUM: number;
|
||||||
|
public P_PAGE_LIMIT: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
import { Response } from "src/app/hmg-common/services/models/response";
|
||||||
|
import { ScheduleShiftsDetailsList } from "./scheduleShiftsDetailsList";
|
||||||
|
|
||||||
|
export class GetShiftDetailResponse extends Response {
|
||||||
|
public GetScheduleShiftsDetailsList: ScheduleShiftsDetailsList[];
|
||||||
|
}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
import { Response } from "src/app/hmg-common/services/models/response";
|
||||||
|
import { ShiftTypeList } from "./shiftTypeList";
|
||||||
|
export class GetShiftTypeResponse extends Response {
|
||||||
|
public GetShiftTypesList: ShiftTypeList[];
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
import { Request } from "src/app/hmg-common/services/models/request";
|
||||||
|
import { DateTimeInput } from "src/app/uI-elements/date-time.input";
|
||||||
|
|
||||||
|
export class GetSwipesRequest extends Request {
|
||||||
|
public P_SELECTED_EMPLOYEE_NUMBER: string;
|
||||||
|
public P_SCHEDULE_DATE: DateTimeInput;
|
||||||
|
public P_PAGE_NUM: number;
|
||||||
|
public P_PAGE_LIMIT: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
import { Response } from "src/app/hmg-common/services/models/response";
|
||||||
|
import { SwipesList } from './swipesList';
|
||||||
|
|
||||||
|
export class GetSwipesResponse extends Response {
|
||||||
|
public GetSwipesList: SwipesList[];
|
||||||
|
}
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
import { Request } from "src/app/hmg-common/services/models/request";
|
||||||
|
import { DateTimeInput } from "src/app/uI-elements/date-time.input";
|
||||||
|
|
||||||
|
export class GetTimeCardSummaryRequest extends Request {
|
||||||
|
public P_SELECTED_EMPLOYEE_NUMBER: string;
|
||||||
|
public P_MENU_TYPE: string;
|
||||||
|
public P_SELECTED_RESP_ID: number;
|
||||||
|
public P_SCHEDULE_DATE_FROM: DateTimeInput;
|
||||||
|
public P_SCHEDULE_DATE_TO: DateTimeInput;
|
||||||
|
public P_EXCESS_FLAG: string;
|
||||||
|
public P_TIMEBACK_FLAG: string;
|
||||||
|
public P_COMP_OFF_FLAG: string;
|
||||||
|
public P_NON_SCHEDULED_FLAG: string;
|
||||||
|
public P_LATE_IN_FLAG: string;
|
||||||
|
public P_EARLY_OUT_FLAG: string;
|
||||||
|
public P_SHORTAGE_FLAG: string;
|
||||||
|
public P_MISSING_SWIPE_FLAG: string;
|
||||||
|
public P_ANALAYZED_FLAG: string;
|
||||||
|
public P_APPR_TIMEBACK_FLAG: string;
|
||||||
|
public P_SHT_TYPE: string;
|
||||||
|
public P_ACTUAL_WOB_SEC: string;
|
||||||
|
}
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
import { Response } from "src/app/hmg-common/services/models/response";
|
||||||
|
import { TimeCardSummaryList } from './timeCardSummaryList';
|
||||||
|
|
||||||
|
export class GetTimeCardSummaryResponse extends Response {
|
||||||
|
public GetTimeCardSummaryList: TimeCardSummaryList[];
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
export class ScheduleShiftsDetailsList {
|
||||||
|
public st: string;
|
||||||
|
|
||||||
|
public RTP_ID: number;
|
||||||
|
public ASSIGNMENT_ID: number;
|
||||||
|
public RTP_SCHEDULE_ID: number;
|
||||||
|
public SCHEDULE_DATE: Date;
|
||||||
|
public SEQ_NO: number;
|
||||||
|
public SHT_NAME: string;
|
||||||
|
public SHT_CODE: string;
|
||||||
|
public SHT_TYPE: string;
|
||||||
|
public SHT_TYPE_DESC: string;
|
||||||
|
public BREAK_NAME: string;
|
||||||
|
public ACTUAL_WOB_HRS: string;
|
||||||
|
public SHT_ACTUAL_START_DATETIME: string;
|
||||||
|
public SHT_ACTUAL_START_TIME: string;
|
||||||
|
public SHT_ACTUAL_END_DATETIME: string;
|
||||||
|
public SHT_ACTUAL_END_TIME: string;
|
||||||
|
public APPROVED_START_DATETIME: string;
|
||||||
|
public APPROVED_START_TIME: string;
|
||||||
|
public APPROVED_START_REASON: string;
|
||||||
|
public APPROVED_START_REASON_DESC: string;
|
||||||
|
public APPROVED_END_DATETIME: string;
|
||||||
|
public APPROVED_END_TIME: string;
|
||||||
|
public APPROVED_END_REASON: string;
|
||||||
|
public APPROVED_END_REASON_DESC: string;
|
||||||
|
public SHT_ACTUAL_HRS: string;
|
||||||
|
public ROW_NUM: number;
|
||||||
|
public NO_OF_ROWS: number;
|
||||||
|
public FROM_ROW_NUM: number;
|
||||||
|
public TO_ROW_NUM: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
export class ShiftTypeList {
|
||||||
|
public SHT_TYPE: string;
|
||||||
|
public SHT_TYPE_DESC: string;
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
export class SwipesList {
|
||||||
|
public SWIPE_DATE: number;
|
||||||
|
public SWIPE_TIME: number;
|
||||||
|
public SWIPE_STATUS: string;
|
||||||
|
public MACHINE_LOCATION: string;
|
||||||
|
public UNIT_NAME: string;
|
||||||
|
public UNIT_NUMBER: string;
|
||||||
|
public EXCLUDE_FLAG: string;
|
||||||
|
public RETURN_MESSAGE: string;
|
||||||
|
public RETURN_STATUS: string;
|
||||||
|
public NO_OF_ROWS: number;
|
||||||
|
public ROW_NUM: number;
|
||||||
|
public FROM_ROW_NUM: number;
|
||||||
|
public TO_ROW_NUM: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
export class TimeCardSummaryList {
|
||||||
|
public ASSIGNMENT_ID: number;
|
||||||
|
public COMP_OFF_W_HRS: number;
|
||||||
|
public ATTENDED_DAYS: number;
|
||||||
|
public COMP_OFF_N_HRS: number;
|
||||||
|
public COMP_OFF_H_HRS: number;
|
||||||
|
public EXCESS_HRS: number;
|
||||||
|
public ON_CALL_HRS: number;
|
||||||
|
public LATE_IN_HRS: number;
|
||||||
|
public EARLY_OUT_HRS: number;
|
||||||
|
public UNCOVERD_SHORTAGE_HRS: number;
|
||||||
|
public DESIRED_SCHEDULED_HRS: number;
|
||||||
|
public PERIOD_DAYS: number;
|
||||||
|
public SHORTAGE_HRS: number;
|
||||||
|
public OFF_DAYS: number;
|
||||||
|
public APPROVED_TIMEBACK_HRS: number;
|
||||||
|
public TIMEBACK_HRS: number;
|
||||||
|
public PLANNED_OTHRS: number;
|
||||||
|
public ACTUAL_HRS: number;
|
||||||
|
public SCHEDULED_ON_CALL_HRS: number;
|
||||||
|
public SCHEDULED_PLANNED_OT_HRS: number;
|
||||||
|
public SCHEDULED_HRS: number;
|
||||||
|
public NOT_ANALYZED_DAYS: number;
|
||||||
|
public LEAVES_HOLIDAYS_HRS: number;
|
||||||
|
public HALF_DAY_LEAVE: number;
|
||||||
|
public UNPAID_LEAVE: number;
|
||||||
|
public PAID_LEAVE: number;
|
||||||
|
public BUSINESS_TRIP: number;
|
||||||
|
public SHORTAGE_SCHEDULE_HRS: number;
|
||||||
|
public SCHEDULE_DAYS: number;
|
||||||
|
public NON_SCHEDULE_DAYS: number;
|
||||||
|
public ABSENT_DAYS: number;
|
||||||
|
public SICK_LEAVE: number;
|
||||||
|
public UNAUTHORIZED_LEAVE: number;
|
||||||
|
public PUBLIC_HOLIDAY: number;
|
||||||
|
public TIME_BACK_BALANCE: number;
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
import { TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TimeCardService } from './time-card.service';
|
||||||
|
|
||||||
|
describe('TimeCardService', () => {
|
||||||
|
beforeEach(() => TestBed.configureTestingModule({}));
|
||||||
|
|
||||||
|
it('should be created', () => {
|
||||||
|
const service: TimeCardService = TestBed.get(TimeCardService);
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
import { Injectable } from "@angular/core";
|
||||||
|
import { AuthenticationService } from "src/app/hmg-common/services/authentication/authentication.service";
|
||||||
|
import { ConnectorService } from "src/app/hmg-common/services/connector/connector.service";
|
||||||
|
import { Request } from "src/app/hmg-common/services/models/request";
|
||||||
|
|
||||||
|
import { Observable } from "rxjs";
|
||||||
|
import { GetShiftTypeResponse } from "./models/get-shift-type.response";
|
||||||
|
import { GetDayAndHoursDetailsResponse } from "./models/get-day-hours-type-details.response";
|
||||||
|
import { GetTimeCardSummaryResponse } from "./models/get-time-card-summary.response";
|
||||||
|
import { GetShiftDetailResponse } from "./models/get-shift-detail.response";
|
||||||
|
import { GetSwipesResponse } from "./models/get-swipes-response";
|
||||||
|
|
||||||
|
@Injectable({
|
||||||
|
providedIn: "root"
|
||||||
|
})
|
||||||
|
export class TimeCardService {
|
||||||
|
public static getShiftTypeUrl = "Services/ERP.svc/REST/GET_SHIFT_TYPES";
|
||||||
|
public static getTimeCardSummaryUrl =
|
||||||
|
"Services/ERP.svc/REST/GET_TIME_CARD_SUMMARY";
|
||||||
|
public static getDayHourDetailsUrl =
|
||||||
|
"Services/ERP.svc/REST/GET_DAY_HOURS_TYPE_DETAILS";
|
||||||
|
public static getShiftDetailUrl =
|
||||||
|
"Services/ERP.svc/REST/GET_SCHEDULE_SHIFTS_DETAILS";
|
||||||
|
public static getSwipeUrl = "Services/ERP.svc/REST/GET_SWIPES";
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
public con: ConnectorService,
|
||||||
|
private authService: AuthenticationService
|
||||||
|
) {}
|
||||||
|
|
||||||
|
public getShiftType(
|
||||||
|
onError?: any,
|
||||||
|
errorLabel?: string
|
||||||
|
): Observable<GetShiftTypeResponse> {
|
||||||
|
const request = new Request();
|
||||||
|
this.authService.authenticateRequest(request);
|
||||||
|
return this.con.post(
|
||||||
|
TimeCardService.getShiftTypeUrl,
|
||||||
|
request,
|
||||||
|
onError,
|
||||||
|
errorLabel
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getTimeCardSummary(
|
||||||
|
timeCardSummaryReq,
|
||||||
|
onError?: any,
|
||||||
|
errorLabel?: string
|
||||||
|
): Observable<GetTimeCardSummaryResponse> {
|
||||||
|
const request = timeCardSummaryReq;
|
||||||
|
this.authService.authenticateRequest(request);
|
||||||
|
return this.con.post(
|
||||||
|
TimeCardService.getTimeCardSummaryUrl,
|
||||||
|
request,
|
||||||
|
onError,
|
||||||
|
errorLabel
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getDayHoursTypeDetails(
|
||||||
|
dayHoursDetailsReq,
|
||||||
|
onError?: any,
|
||||||
|
errorLabel?: string
|
||||||
|
): Observable<GetDayAndHoursDetailsResponse> {
|
||||||
|
const request = dayHoursDetailsReq;
|
||||||
|
this.authService.authenticateRequest(request);
|
||||||
|
return this.con.post(
|
||||||
|
TimeCardService.getDayHourDetailsUrl,
|
||||||
|
request,
|
||||||
|
onError,
|
||||||
|
errorLabel
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getShiftDetail(
|
||||||
|
shiftDetailReq,
|
||||||
|
onError?: any,
|
||||||
|
errorLabel?: string
|
||||||
|
): Observable<GetShiftDetailResponse> {
|
||||||
|
const request = shiftDetailReq;
|
||||||
|
this.authService.authenticateRequest(request);
|
||||||
|
return this.con.post(
|
||||||
|
TimeCardService.getShiftDetailUrl,
|
||||||
|
request,
|
||||||
|
onError,
|
||||||
|
errorLabel
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public getSwipes(
|
||||||
|
getSwipeReq,
|
||||||
|
onError?: any,
|
||||||
|
errorLabel?: string
|
||||||
|
): Observable<GetSwipesResponse> {
|
||||||
|
const request = getSwipeReq;
|
||||||
|
this.authService.authenticateRequest(request);
|
||||||
|
return this.con.post(
|
||||||
|
TimeCardService.getSwipeUrl,
|
||||||
|
request,
|
||||||
|
onError,
|
||||||
|
errorLabel
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
|
import { TimeCardPage } from './time-card.page';
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: TimeCardPage
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
FormsModule,
|
||||||
|
IonicModule,
|
||||||
|
RouterModule.forChild(routes)
|
||||||
|
],
|
||||||
|
declarations: [TimeCardPage]
|
||||||
|
})
|
||||||
|
export class TimeCardPageModule {}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
<ion-header>
|
||||||
|
<ion-toolbar>
|
||||||
|
<ion-title>time-card</ion-title>
|
||||||
|
</ion-toolbar>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
<ion-content>
|
||||||
|
|
||||||
|
</ion-content>
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { TimeCardPage } from './time-card.page';
|
||||||
|
|
||||||
|
describe('TimeCardPage', () => {
|
||||||
|
let component: TimeCardPage;
|
||||||
|
let fixture: ComponentFixture<TimeCardPage>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ TimeCardPage ],
|
||||||
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(TimeCardPage);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-time-card',
|
||||||
|
templateUrl: './time-card.page.html',
|
||||||
|
styleUrls: ['./time-card.page.scss'],
|
||||||
|
})
|
||||||
|
export class TimeCardPage implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 2d03ed75f3f34aac5e80668b6a2b75849b18de51
|
||||||
Loading…
Reference in New Issue