mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
68 lines
1.4 KiB
TypeScript
68 lines
1.4 KiB
TypeScript
import { Injectable } from '@angular/core';
|
|
import { ProcessesService } from '../services/processes.service';
|
|
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class DespachoMdService {
|
|
|
|
/**
|
|
* @description para terminar o
|
|
* 95 - signfica
|
|
* 98 - significa
|
|
*/
|
|
ActionTypeId: 95 | 98
|
|
|
|
action: "Arquivo" | "Reencaminhar"
|
|
|
|
constructor(
|
|
private processes: ProcessesService,
|
|
) { }
|
|
|
|
arquivar(note:string, documents:any, serialnumber) {
|
|
|
|
let body = {
|
|
"serialNumber": serialnumber,
|
|
"action": "Arquivo",
|
|
"ActionTypeId": 95,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList" :documents,
|
|
}
|
|
return this.processes.CompleteTask(body)
|
|
}
|
|
|
|
reencaminhar(note:string, documents:any, serialnumber) {
|
|
|
|
let body = {
|
|
"serialNumber": serialnumber,
|
|
"action": "Reencaminhar",
|
|
"ActionTypeId": 98,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList" :documents,
|
|
}
|
|
|
|
return this.processes.CompleteTask(body)
|
|
}
|
|
|
|
async executado(note:string, documents:any , serialnumber) {
|
|
|
|
let body = {
|
|
"serialNumber": serialnumber,
|
|
"action": "Conhecimento",
|
|
"ActionTypeId": 104,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList" :documents,
|
|
}
|
|
|
|
return this.processes.CompleteTask(body)
|
|
}
|
|
|
|
}
|