|
|
|
|
@ -30,6 +30,8 @@ export class WorklistMainService {
|
|
|
|
|
public static getPRNotificationBody = "Services/ERP.svc/REST/GET_PR_NOTIFICATION_BODY";
|
|
|
|
|
public static getICNotificationBody = "Services/ERP.svc/REST/GET_ITEM_CREATION_NTF_BODY";
|
|
|
|
|
public static getBasicDetailNotificationBody = "Services/ERP.svc/REST/GET_BASIC_DET_NTF_BODY";
|
|
|
|
|
public static getStampMSNotificationBody = "Services/ERP.svc/REST/GET_STAMP_MS_NOTIFICATION_BODY";
|
|
|
|
|
public static getStampNSNotificationBody = "Services/ERP.svc/REST/GET_STAMP_NS_NOTIFICATION_BODY";
|
|
|
|
|
public static getAddressNotificationBody = "Services/ERP.svc/REST/GET_ADDRESS_NOTIFICATION_BODY";
|
|
|
|
|
public static getPOItemHistory = "Services/ERP.svc/REST/GET_PO_ITEM_HISTORY";
|
|
|
|
|
public static getMOItemHistory = "Services/ERP.svc/REST/GET_MO_ITEM_HISTORY";
|
|
|
|
|
@ -41,6 +43,8 @@ export class WorklistMainService {
|
|
|
|
|
public static getITGFormTaskCount = 'Services/COCWS.svc/REST/ITGGetTaskCountRequestType';
|
|
|
|
|
public static getITGFormTaskDetails = 'Services/COCWS.svc/REST/ITGFormsPendingTasks';
|
|
|
|
|
public static getITGFormDetails = 'Services/COCWS.svc/REST/ITGGetFormDetials';
|
|
|
|
|
public static getWorklistNotificationURL = 'Services/ERP.svc/REST/GET_USER_ITEM_TYPES';
|
|
|
|
|
public static updateWorklistNotificationURL = 'Services/ERP.svc/REST/UPDATE_USER_ITEM_TYPES';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -124,6 +128,36 @@ export class WorklistMainService {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public getStampMSNotificationBody(
|
|
|
|
|
WorkListBodyRequest: any,
|
|
|
|
|
onError?: any,
|
|
|
|
|
errorLabel?: string
|
|
|
|
|
): Observable<PRNotificatonBodyResponse> {
|
|
|
|
|
const request = WorkListBodyRequest;
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.api.post(
|
|
|
|
|
WorklistMainService.getStampMSNotificationBody,
|
|
|
|
|
request,
|
|
|
|
|
onError,
|
|
|
|
|
errorLabel
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public getStampNSNotificationBody(
|
|
|
|
|
WorkListBodyRequest: any,
|
|
|
|
|
onError?: any,
|
|
|
|
|
errorLabel?: string
|
|
|
|
|
): Observable<PRNotificatonBodyResponse> {
|
|
|
|
|
const request = WorkListBodyRequest;
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.api.post(
|
|
|
|
|
WorklistMainService.getStampNSNotificationBody,
|
|
|
|
|
request,
|
|
|
|
|
onError,
|
|
|
|
|
errorLabel
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public getAddressNotificationBody(
|
|
|
|
|
WorkListBodyRequest: any,
|
|
|
|
|
onError?: any,
|
|
|
|
|
@ -346,4 +380,33 @@ export class WorklistMainService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public getWorklistNotifications(
|
|
|
|
|
onError?: any,
|
|
|
|
|
errorLabel?: string
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
const request = new Request();
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.api.post(
|
|
|
|
|
WorklistMainService.getWorklistNotificationURL,
|
|
|
|
|
request,
|
|
|
|
|
onError,
|
|
|
|
|
errorLabel
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public updateWorklistNotifications(
|
|
|
|
|
onError?: any,
|
|
|
|
|
errorLabel?: string
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
const request = new Request();
|
|
|
|
|
this.authService.authenticateRequest(request);
|
|
|
|
|
return this.api.post(
|
|
|
|
|
WorklistMainService.updateWorklistNotificationURL,
|
|
|
|
|
request,
|
|
|
|
|
onError,
|
|
|
|
|
errorLabel
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|