mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
save
This commit is contained in:
+9
-1
@@ -39,9 +39,17 @@ export class DiscartExpedientModalPage implements OnInit {
|
|||||||
|
|
||||||
} */
|
} */
|
||||||
save(){
|
save(){
|
||||||
|
|
||||||
let body = { "serialNumber": this.serialNumber, "action": "Tratado" }
|
let body = { "serialNumber": this.serialNumber, "action": "Tratado" }
|
||||||
|
let body2 = { "serialNumber": this.serialNumber, "action": "Passivo" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
|
||||||
|
if(this.folderId){
|
||||||
|
this.processes.PostTaskAction(body);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
this.processes.PostTaskAction(body2);
|
||||||
|
}
|
||||||
this.router.navigate(['/home/gabinete-digital/expediente']);
|
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -135,7 +135,7 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
discartExpedient() {
|
discartExpedient() {
|
||||||
let body = { "serialNumber": this.serialnumber, "action": "Task Completed" }
|
let body = { "serialNumber": this.serialnumber, "action": "Passivo" }
|
||||||
console.log(body);
|
console.log(body);
|
||||||
this.processes.PostTaskAction(body);
|
this.processes.PostTaskAction(body);
|
||||||
this.router.navigate(['/home/gabinete-digital/expediente']);
|
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||||
|
|||||||
Reference in New Issue
Block a user