mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add domain layer
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
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
|
||||
* @event '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()
|
||||
}
|
||||
|
||||
/**
|
||||
* @event '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()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @event 'Revisar Diploma', 'Diploma Assinado',
|
||||
* @description Arquivar
|
||||
* @param note
|
||||
* @param documents
|
||||
* @param serialNumber
|
||||
* @returns
|
||||
*/
|
||||
static async arquivar(note: string, documents: AttachmentList, serialNumber) {
|
||||
|
||||
let body = {
|
||||
"serialNumber": serialNumber,
|
||||
"action": "Arquivo",
|
||||
"ActionTypeId": 95,
|
||||
"dataFields": {
|
||||
"ReviewUserComment": note,
|
||||
},
|
||||
"AttachmentList" :documents,
|
||||
}
|
||||
|
||||
return this.processes.CompleteTask(body)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @event 'Revisar Diploma', 'Diploma Assinado',
|
||||
*/
|
||||
static async PerformeDispatch(body) {
|
||||
return GenericBehaviorProcess.PerformeDispatch(body)
|
||||
}
|
||||
|
||||
/**
|
||||
* need to work on
|
||||
* @event 'Revisar Diploma'
|
||||
*/
|
||||
static async setUpMeeting() {}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user