procc jobs

This commit is contained in:
CHIEFSOFT\ameye
2023-11-18 17:29:00 -05:00
parent 184d5248d5
commit 5db307b75f
4 changed files with 59 additions and 10 deletions
@@ -38,11 +38,11 @@
<ion-grid>
<ion-row>
<ion-col style="padding: 10px">
<ion-button expand="block" (click)="approveStart()">Approve Start</ion-button>
<ion-button expand="block" (click)="approveStart(intData)">Approve Start</ion-button>
</ion-col>
<ion-col style="padding: 10px">
<ion-button expand="block" color="danger" (click)="rejectStart()">Reject</ion-button>
<ion-button expand="block" color="danger" (click)="rejectStart(intData)">Reject</ion-button>
</ion-col>
</ion-row>
</ion-grid>
@@ -28,11 +28,34 @@ currData:any;
}
async approveStart(){
this.intResponse(this.thisObj, this.intData, "APPROVED");
async approveStart(intDataR){
var reqData = {
member_id: this.thisObj.sessionDataProviderService.member_id,
uid: this.thisObj.sessionDataProviderService.member_uid,
sessionid: this.thisObj.sessionDataProviderService.session ,
proc : 'ACCEPT',
client_uid: intDataR.client_uid,
offer_code: intDataR.offer_code,
offer_uid: intDataR.offer_code
};
// debugger;
this.intResponse( this.thisObj, reqData, "APPROVED");
}
async rejectStart(){
this.intResponse(this.thisObj,this.intData, "REJECT");
async rejectStart(intDataR){
var reqData = {
member_id: this.thisObj.sessionDataProviderService.member_id,
uid: this.thisObj.sessionDataProviderService.member_uid,
sessionid: this.thisObj.sessionDataProviderService.session ,
proc : 'REJECT',
client_uid: intDataR.client_uid,
offer_code: intDataR.offer_code,
offer_uid: intDataR.offer_code
};
this.intResponse(this.thisObj ,reqData,"REJECT"); // "REJECT"
}
}