mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
@@ -244,17 +244,44 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
else if(actionName == 'Gerar Diploma'){
|
else if(actionName == 'Gerar Diploma'){
|
||||||
await this.generateDiploma(res.data.note, docs);
|
await this.generateDiploma(res.data.note, docs);
|
||||||
}
|
}
|
||||||
else if(actionName == 'Concluido'){
|
|
||||||
//this.concluir(res.data.note, docs);
|
|
||||||
}
|
|
||||||
else if(actionName == 'Reexecução'){
|
else if(actionName == 'Reexecução'){
|
||||||
await this.reexecutar(res.data.note, docs);
|
await this.reexecutar(res.data.note, docs);
|
||||||
}
|
}
|
||||||
|
else if(actionName == 'Concluido'){
|
||||||
|
await this.concluir(res.data.note, docs);
|
||||||
|
}
|
||||||
this.goBack();
|
this.goBack();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async concluir(note:string, documents:any){
|
||||||
|
let body = {
|
||||||
|
"serialNumber": this.serialNumber,
|
||||||
|
"action": "Executado",
|
||||||
|
"ActionTypeId": 104,
|
||||||
|
"dataFields": {
|
||||||
|
"ReviewUserComment": note,
|
||||||
|
},
|
||||||
|
"AttachmentList" :documents,
|
||||||
|
}
|
||||||
|
|
||||||
|
const loader = this.toastService.loading()
|
||||||
|
|
||||||
|
try {
|
||||||
|
await this.processes.CompleteTask(body).toPromise()
|
||||||
|
this.toastService.successMessage('')
|
||||||
|
this.close();
|
||||||
|
} catch (error) {
|
||||||
|
this.toastService.badRequest()
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
loader.remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
async arquivar(note:string, documents:any){
|
async arquivar(note:string, documents:any){
|
||||||
let body = {
|
let body = {
|
||||||
"serialNumber": this.serialNumber,
|
"serialNumber": this.serialNumber,
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export class LocalstoreService {
|
|||||||
|
|
||||||
export const localstoreService = new LocalstoreService()
|
export const localstoreService = new LocalstoreService()
|
||||||
|
|
||||||
// console.log( AES.encrypt( 'peter', 'v14-dba29fd8bdbf24ffe4840b0f778f70f6a163d424').toString())
|
console.log( AES.encrypt( 'pode ser qualquer', 'ayrton').toString() )
|
||||||
|
|
||||||
// // Create WebSocket connection.
|
// // Create WebSocket connection.
|
||||||
// const socket = new WebSocket('ws://localhost:8080');
|
// const socket = new WebSocket('ws://localhost:8080');
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Injectable } from '@angular/core'
|
import { Injectable } from '@angular/core'
|
||||||
import { Publication } from 'src/app/models/publication'
|
|
||||||
import { localstoreService } from './localstore.service'
|
import { localstoreService } from './localstore.service'
|
||||||
import { SHA1 } from 'crypto-js'
|
import { SHA1 } from 'crypto-js'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user