mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
93 lines
2.2 KiB
TypeScript
93 lines
2.2 KiB
TypeScript
import { AttachmentList } from "src/app/models/Excludetask"
|
|
import { GenericBehaviorProcess } from "src/app/domain/process/GenericBehaviorTaskActions"
|
|
import { ProcessesService } from "src/app/services/processes.service"
|
|
|
|
// check
|
|
export class DiplomasValidate {
|
|
static processes: ProcessesService
|
|
static p: any
|
|
|
|
/**
|
|
* @pt solicitar assinatura
|
|
* @activityInstanceName 'Revisar Diploma'
|
|
* @description Solicitar assinatura do Presidente
|
|
* @param note
|
|
* @param documents
|
|
* @param serialNumber
|
|
* @returns
|
|
*/
|
|
static async askSignature(note: string, documents: any, serialNumber) {
|
|
let body = {
|
|
"serialNumber": serialNumber,
|
|
"action": "Aprovar",
|
|
"ActionTypeId": 99999840,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList": documents,
|
|
}
|
|
|
|
return await this.processes.CompleteTask(body).toPromise()
|
|
}
|
|
|
|
/**
|
|
* @activityInstanceName 'Revisar Diploma',
|
|
* @description Solicitar alteração
|
|
* @param note
|
|
* @param documents
|
|
* @param serialNumber
|
|
* @returns
|
|
*/
|
|
static async askToChange(note: string, documents: any, serialNumber) {
|
|
let body = {
|
|
"serialNumber": serialNumber,
|
|
"action": "Retificar",
|
|
"ActionTypeId": 99999841,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList": documents,
|
|
}
|
|
|
|
return await this.processes.CompleteTask(body).toPromise()
|
|
}
|
|
|
|
|
|
/**
|
|
* @activityInstanceName 'Revisar Diploma', 'Diploma Assinado',
|
|
* @description Arquivar
|
|
* @param note
|
|
* @param documents
|
|
* @param serialNumber
|
|
* @returns
|
|
*/
|
|
static async archive(note: string, documents: AttachmentList, serialNumber) {
|
|
|
|
let body = {
|
|
"serialNumber": serialNumber,
|
|
"action": "Arquivo",
|
|
"ActionTypeId": 95,
|
|
"dataFields": {
|
|
"ReviewUserComment": note,
|
|
},
|
|
"AttachmentList" :documents,
|
|
}
|
|
|
|
return this.processes.CompleteTask(body)
|
|
|
|
}
|
|
|
|
/**
|
|
* @activityInstanceName 'Revisar Diploma', 'Diploma Assinado',
|
|
*/
|
|
static async PerformeDispatch(body) {
|
|
return GenericBehaviorProcess.PerformeDispatch(body)
|
|
}
|
|
|
|
/**
|
|
* need to work on
|
|
* @activityInstanceName 'Revisar Diploma'
|
|
*/
|
|
static async setUpMeeting() {}
|
|
|
|
} |