mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
59 lines
1.2 KiB
TypeScript
59 lines
1.2 KiB
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { ProcessesService } from '../services/processes.service';
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root'
|
||
|
|
})
|
||
|
|
export class DeplomaService {
|
||
|
|
|
||
|
|
constructor(
|
||
|
|
private processes: ProcessesService,
|
||
|
|
) { }
|
||
|
|
|
||
|
|
|
||
|
|
async askSignature({note, documents, serialNumber}) {
|
||
|
|
let body = {
|
||
|
|
"serialNumber": serialNumber,
|
||
|
|
"action": "Aprovar",
|
||
|
|
"ActionTypeId": 99999840,
|
||
|
|
"dataFields": {
|
||
|
|
"ReviewUserComment": note,
|
||
|
|
},
|
||
|
|
"AttachmentList" :documents,
|
||
|
|
}
|
||
|
|
|
||
|
|
return this.processes.CompleteTask(body)
|
||
|
|
}
|
||
|
|
|
||
|
|
async askToChange({note, documents, serialNumber}) {
|
||
|
|
let body = {
|
||
|
|
"serialNumber": serialNumber,
|
||
|
|
"action": "Retificar",
|
||
|
|
"ActionTypeId": 99999841,
|
||
|
|
"dataFields": {
|
||
|
|
"ReviewUserComment": note,
|
||
|
|
},
|
||
|
|
"AttachmentList" :documents,
|
||
|
|
}
|
||
|
|
|
||
|
|
return this.processes.CompleteTask(body)
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
async finish({note, documents, serialNumber}) {
|
||
|
|
|
||
|
|
let body = {
|
||
|
|
"serialNumber": serialNumber,
|
||
|
|
"action": "Concluir",
|
||
|
|
"ActionTypeId": 95,
|
||
|
|
"dataFields": {
|
||
|
|
"ReviewUserComment": note,
|
||
|
|
},
|
||
|
|
"AttachmentList" :documents,
|
||
|
|
}
|
||
|
|
|
||
|
|
return this.processes.CompleteTask(body);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|