change words to english

This commit is contained in:
Peter Maquiran
2023-06-23 12:14:24 +01:00
parent e991ba5f4e
commit 2c28e37a4b
12 changed files with 110 additions and 128 deletions
+4 -12
View File
@@ -1,4 +1,5 @@
import { ProcessesService } from "src/app/services/processes.service";
import { GenericBehaviorProcess } from "./GenericBehaviorTaskActions";
// check 1
export class DiplomaGenerates {
@@ -9,7 +10,7 @@ export class DiplomaGenerates {
* @event 'All'
* @returns
*/
async enviarDiploma({note = '', docs = [], serialnumber}) {
async SendDiploma({note = '', docs = [], serialnumber}) {
let body = {
"serialNumber": serialnumber,
"action": "Enviar diploma",
@@ -27,17 +28,8 @@ export class DiplomaGenerates {
* @event 'All'
* @returns
*/
delegar(task: any, note, EmailAddress) {
let body = {
"SerialNumber": task.SerialNumber,
"DispatchDocId": task.DocId,
"FolderID": task.FolderId || task.FolderID,
"Subject": task.Folio,
"Comment": note,
"DelegatedUserEmail": EmailAddress,
}
return this.processes.DelegateTask(body).toPromise();
delegate(task: any, note, EmailAddress) {
return GenericBehaviorProcess.Delegate(task, note, EmailAddress)
}
/**
+1 -1
View File
@@ -14,7 +14,7 @@ export class DiplomasSignPrDomain {
* @param serialNumber
* @returns
*/
async arquivar(note: string, documents: AttachmentList, serialNumber) {
async archive(note: string, documents: AttachmentList, serialNumber) {
let body = {
"serialNumber": serialNumber,
+1 -1
View File
@@ -61,7 +61,7 @@ export class DiplomasValidate {
* @param serialNumber
* @returns
*/
static async arquivar(note: string, documents: AttachmentList, serialNumber) {
static async archive(note: string, documents: AttachmentList, serialNumber) {
let body = {
"serialNumber": serialNumber,
+2 -11
View File
@@ -101,7 +101,7 @@ export class DispatchDomain {
* @event 'Reexecutar Despacho', 'Tarefa de Despacho'
*/
static async requestAppear() {
return GenericBehaviorProcess.requestAppear(task, {})
return GenericBehaviorProcess.RequestAppear(task, {})
}
/**
@@ -122,16 +122,7 @@ export class DispatchDomain {
* @event 'Reexecutar Despacho' , 'Tarefa de Despacho'
*/
static async Delegar(task, note, taskParticipants) {
let body = {
"SerialNumber": task.SerialNumber,
"DispatchDocId": task.DocId,
"FolderID": task.FolderId || task.FolderID,
"Subject": task.Folio,
"Comment": note,
"DelegatedUserEmail": taskParticipants[0].EmailAddress,
}
return this.processes.DelegateTask(body).toPromise()
return GenericBehaviorProcess.Delegate(task, note, taskParticipants)
}
}
+9 -19
View File
@@ -36,7 +36,7 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async generateDiploma(note: string, documents: any, serialNumber) {
static async SendDiploma(note: string, documents: any, serialNumber) {
let body = {
"serialNumber": serialNumber,
@@ -60,7 +60,7 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async conclude(note: string, documents: any, serialNumber) {
static async Conclude(note: string, documents: any, serialNumber) {
let body = {
"serialNumber": serialNumber,
"action": "Executado",
@@ -83,7 +83,7 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async rerun(note: string, documents: any, serialNumber) {
static async Rerun(note: string, documents: any, serialNumber) {
let body = {
"serialNumber": serialNumber,
"action": "Reexecução",
@@ -105,8 +105,8 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async requestAppear(task, postData) {
return GenericBehaviorProcess.requestAppear(task, {})
static async RequestAppear(task, postData) {
return GenericBehaviorProcess.RequestAppear(task, {})
}
@@ -117,7 +117,7 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async setUpMeeting() {}
static async SetUpMeeting() {}
/**
@@ -153,19 +153,9 @@ export class DispatchPrDomain {
* @param serialNumber
* @returns
*/
static async Delegate(task: any, note, taskParticipants) {
let body = {
"SerialNumber": task.SerialNumber,
"DispatchDocId": task.DocId,
"FolderID": task.FolderId || task.FolderID,
"Subject": task.Folio,
"Comment": note,
"DelegatedUserEmail": taskParticipants[0].EmailAddress,
}
return await this.processes.DelegateTask(body).toPromise()
}
static async Delegate(task: any, note, EmailAddress) {
return GenericBehaviorProcess.Delegate(task, note, EmailAddress)
}
/**
* @pt Efetuar Despacho
+8 -15
View File
@@ -35,7 +35,7 @@ export class Expediente {
* @PT Submeter para revisão
* @event 'Concluir Despacho', 'Tarefa de Despacho',
*/
async sendToReview(note:string, documents:any, serialnumber) {
async SendToReview(note:string, documents:any, serialnumber) {
let body = {
"serialNumber": serialnumber,
"action": "Retificar",
@@ -55,7 +55,7 @@ export class Expediente {
* @pt Arquivar
* @event 'Concluir Despacho', 'Tarefa de Despacho',
*/
async archive(SerialNumber) {
async Archive(SerialNumber) {
let otherbody = {
"serialNumber": SerialNumber,
@@ -72,7 +72,7 @@ export class Expediente {
* @Profile PR
* @event 'Concluir Despacho', 'Tarefa de Despacho',
*/
sendToPending(serialnumber) {
SendToPending(serialnumber) {
this.processes.SetTaskToPending(serialnumber)
}
@@ -171,24 +171,17 @@ export class Expediente {
}
static async requestAppear(task) {
return await GenericBehaviorProcess.requestAppear(task, {})
return await GenericBehaviorProcess.RequestAppear(task, {})
}
static async ApplicationForDeferment(task) {
return await GenericBehaviorProcess.ApplicationForDeferment(task)
return await GenericBehaviorProcess.ApplicationForDeferment(task, [], [], {}, '', '')
}
static async setUpMeeting(task) {
return await GenericBehaviorProcess.setUpMeeting(task, {})
static async SetUpMeeting(task) {
return await GenericBehaviorProcess.SetUpMeeting(task, {})
}
/**
* @pr Enviar para pendentes
* @param task
* @returns
*/
static async SetTaskToPending(task) {
return await GenericBehaviorProcess.setUpMeeting(task, {})
}
}
@@ -7,7 +7,7 @@ export class GenericBehaviorProcess {
static processes: ProcessesService
static p: any
static async setUpMeeting(task, createEventFromData) {
static async SetUpMeeting(task, createEventFromData) {
const eventBody = {
BodyType: '1',
Text: 'this.postData.Body.Text',
@@ -86,7 +86,7 @@ export class GenericBehaviorProcess {
* @param serialNumber
* @returns
*/
static async archive(note: string, documents: AttachmentList, serialNumber) {
static async Archive(note: string, documents: AttachmentList, serialNumber) {
let body = {
"serialNumber": serialNumber,
@@ -110,7 +110,7 @@ export class GenericBehaviorProcess {
* @returns
* @emits finish proceses
*/
static async executed(note:string, documents:any, serialNumber) {
static async Executed(note:string, documents:any, serialNumber) {
let body = {
"serialNumber": serialNumber,
"action": "Conhecimento",
@@ -132,7 +132,7 @@ export class GenericBehaviorProcess {
* @param serialNumber
* @returns
*/
static async rerun(note:string, documents:any, serialNumber) {
static async Rerun(note:string, documents:any, serialNumber) {
let body = {
"serialNumber": serialNumber,
"action": "Reexecução",
@@ -155,7 +155,7 @@ export class GenericBehaviorProcess {
* @param serialNumber
* @returns
*/
static async conclude(note: string, documents: any, serialNumber) {
static async Conclude(note: string, documents: any, serialNumber) {
let body = {
"serialNumber": serialNumber,
@@ -172,17 +172,15 @@ export class GenericBehaviorProcess {
}
static async Delegar() {
static async Delegate(task: any, note, EmailAddress) {
let body = {
"SerialNumber": 'this.task.SerialNumber',
"DispatchDocId": 'this.task.DocId',
"FolderID": 'this.task.FolderId' || 'this.task.FolderID',
"Subject": 'this.task.Folio',
"Comment": 'this.note',
"DelegatedUserEmail": 'this.taskParticipants[0].EmailAddress',
"SerialNumber": task.SerialNumber,
"DispatchDocId": task.DocId,
"FolderID": task.FolderId || task.FolderID,
"Subject": task.Folio,
"Comment": note,
"DelegatedUserEmail": EmailAddress,
}
return await this.processes.DelegateTask(body).toPromise()
}
@@ -209,7 +207,7 @@ export class GenericBehaviorProcess {
}
}
static async requestAppear(task, _postData) {
static async RequestAppear(task, _postData) {
const postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',
@@ -281,15 +279,15 @@ export class GenericBehaviorProcess {
}
static async ApplicationForDeferment(task) {
static async ApplicationForDeferment(task, attendees, docs, dispatchFolder, Email, Priority) {
const postData = {
DistributionType: "Paralelo",
CountryCode: 'AO',
Priority: 'this.postData.Priority',
UserEmail: 'this.loggeduser.Email',
UsersSelected: 'attendees',
DispatchFolder: 'this.dispatchFolder',
AttachmentList: 'docs'
Priority: Priority,
UserEmail: Email,
UsersSelected: attendees,
DispatchFolder: dispatchFolder,
AttachmentList: docs
}
await this.processes.postDeferimento(postData).toPromise()
+15 -22
View File
@@ -7,15 +7,15 @@ export class RequestForApproval {
/**
* @activityInstanceName 'Tarefa de Deferimento', 'Reapreciar Deferimento', 'Concluir Deferimento'
*/
static Arquivar() {
static Archive(serialNumber, note, documents) {
let body = {
"serialNumber": 'serialNumber',
"serialNumber": serialNumber,
"action": "Arquivo",
"ActionTypeId": 95,
"dataFields": {
"ReviewUserComment": 'note',
"ReviewUserComment": note,
},
"AttachmentList" :'documents',
"AttachmentList" :documents,
}
return this.processes.CompleteTask(body)
@@ -24,47 +24,40 @@ export class RequestForApproval {
/**
* @activityInstanceName 'Tarefa de Deferimento', 'Reapreciar Deferimento', 'Concluir Deferimento'
*/
static async Delegar() {
let body = {
"serialNumber": 'this.serialNumber',
"action": "Registar",
"ActionTypeId": 104,
"dataFields": {
"ReviewUserComment": 'this.note',
},
"AttachmentList": 'docs',
}
return await this.processes.CompleteTask(body).toPromise();
static async Delegate(task, serialNumber, note, EmailAddress) {
return GenericBehaviorProcess.Delegate(task, note, EmailAddress)
}
/**
* @evactivityInstanceNameent 'Tarefa de Deferimento', 'Reapreciar Deferimento', 'Concluir Deferimento'
*/
static EfetuarDespacho(body) {
static PerfomeceDispatch(body) {
return GenericBehaviorProcess.PerformeDispatch(body)
}
/**
* @activityInstanceName 'Tarefa de Deferimento', 'Reapreciar Deferimento', 'Concluir Deferimento'
*/
static MarcarReuniao() {}
static SetUpMeeting(task) {
return GenericBehaviorProcess.SetUpMeeting(task, {});
}
/**
* @activityInstanceName 'Tarefa de Deferimento', 'Concluir Deferimento', 'Reapreciar Deferimento'
*/
static enviarParaPendente(serialNumber) {
static SetTaskToPending(serialNumber) {
return GenericBehaviorProcess.SetTaskToPending(serialNumber)
}
/**
* @activityInstanceName 'Concluir Deferimento'
*/
static SolicitarParecer(task) {
return GenericBehaviorProcess.requestAppear(task, {})
static RequestAppear(task) {
return GenericBehaviorProcess.RequestAppear(task, {})
}
/**
* @pt Solicitar Reapreciação
* @activityInstanceName 'Concluir Deferimento'
*/
static SolicitarReapreciação() {
static RequestReview() {
let body = {
"serialNumber": 'this.serialnumber',
"action": "Reapreciação",
+21 -18
View File
@@ -7,15 +7,15 @@ export class RequestForOpinion {
/**
* @activityInstanceName 'Pedido de Parecer'
*/
static arquivar() {
static arquivar(serialNumber, note, documents) {
let body = {
"serialNumber": 'serialNumber',
"serialNumber": serialNumber,
"action": "Arquivo",
"ActionTypeId": 95,
"dataFields": {
"ReviewUserComment": 'note',
"ReviewUserComment": note,
},
"AttachmentList" :'documents',
"AttachmentList" : documents,
}
return this.processes.CompleteTask(body)
@@ -29,14 +29,14 @@ export class RequestForOpinion {
* @activityInstanceName 'Pedido de Parecer'
*/
static SolicitarParecer(task) {
return GenericBehaviorProcess.requestAppear(task, {})
return GenericBehaviorProcess.RequestAppear(task, {})
}
/**
* @profile != PR
* @activityInstanceName 'Pedido de Parecer'
*/
static PedidoDedeferimento(task) {
return GenericBehaviorProcess.requestAppear(task, {})
static RequestsForDeferment(task) {
return GenericBehaviorProcess.RequestAppear(task, {})
}
/**
* @activityInstanceName 'Pedido de Parecer'
@@ -51,17 +51,18 @@ export class RequestForOpinion {
/**
* @pt Dar O Meu Parecer
* @activityInstanceName 'Pedido de Parecer', 'Pedido de Parecer do Presidente'
*/
static async DarOMeuParecer() {
static async GiveMyOpinion(serialNumber, note, documents) {
let body = {
"serialNumber": 'serialNumber',
"serialNumber": serialNumber,
"action": "Registar",
"ActionTypeId": 104,
"dataFields": {
"ReviewUserComment": 'note',
"ReviewUserComment": note,
},
"AttachmentList": 'docs',
"AttachmentList": documents,
}
return await this.processes.CompleteTask(body).toPromise();
@@ -69,24 +70,26 @@ export class RequestForOpinion {
/**
* @activityInstanceName 'Pedido de Parecer', 'Pedido de Parecer do Presidente'
*/
static MarcarReuniao() {}
static MarcarReuniao(task) {
return GenericBehaviorProcess.SetUpMeeting(task, {})
}
/**
* @Profile PR
* @pt Reencaminhar
* @activityInstanceName 'Pedido de Parecer do Presidente'
*/
static async Reencaminhar() {
static async Reencaminhar(serialNumber, note, documents, attendees, FolderId) {
let body = {
"usersSelected": 'attendees',
"serialNumber": 'this.task.SerialNumber',
"usersSelected": attendees,
"serialNumber": serialNumber,
"action": "Reencaminhar",
"actionTypeId": 98,
"dataFields": {
"ReviewUserComment": 'this.note',
"ReviewUserComment": note,
},
"FolderId": 'this.task.FolderId',
"AttachmentList" : 'docs',
"FolderId": FolderId,
"AttachmentList" : documents,
}
return await this.processes.CompleteParecerPrTask(body).toPromise();