This commit is contained in:
Peter Maquiran
2023-07-21 10:12:55 +01:00
parent 4d7c80a739
commit 65a67902d4
5 changed files with 79 additions and 51 deletions
@@ -25,6 +25,8 @@ export class DiplomaOptionsPage implements OnInit {
profile: string;
task: any
fulltask: any
DraftIds = ""
DraftNames= ""
constructor(
@@ -41,6 +43,13 @@ export class DiplomaOptionsPage implements OnInit {
this.serialNumber = this.navParams.get('serialNumber');
this.task = this.navParams.get('task');
this.fulltask = this.navParams.get('fulltask');
this.DraftIds = this.navParams.get("DraftIds");
this.DraftNames = this.navParams.get("DraftNames");
console.log('this.task', this.task)
}
ngOnInit() {
@@ -200,6 +209,7 @@ export class DiplomaOptionsPage implements OnInit {
"action": "Assinado",
"ActionTypeId": 99999842,
"dataFields": {
"DraftIds": "",
"ReviewUserComment": note,
"InstanceIDNew": this.task.InstanceID,
},
@@ -229,10 +239,9 @@ export class DiplomaOptionsPage implements OnInit {
let body = {
"InstanceId": this.task.InstanceID,
"FolderId": this.task.FolderID,
"DraftIds": "163;164;77",
"OriginalFileName": "Doc1;Doc2;Doc3"
"DraftIds": this.DraftIds,
"OriginalFileName": this.DraftNames
}
const loader = this.toastService.loading()
try {
@@ -240,7 +249,7 @@ export class DiplomaOptionsPage implements OnInit {
this.httpErroHandle.httpsSucessMessagge('Assinado')
this.TaskService.loadDiplomas()
this.goBack();
this.popoverController.dismiss("")
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
}