mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix data
This commit is contained in:
@@ -73,12 +73,12 @@ export class DespachoPrPage implements OnInit {
|
||||
window['tinyupdate'] = () => {
|
||||
this.LoadTaskDetail(this.serialNumber);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.profile = "mdgpr";
|
||||
|
||||
|
||||
|
||||
this.LoadTaskDetail(this.serialNumber);
|
||||
// this.LoadRelatedEvents(this.serialNumber);
|
||||
@@ -96,7 +96,7 @@ export class DespachoPrPage implements OnInit {
|
||||
async LoadTaskDetail(serial: string) {
|
||||
this.processes.GetTask(serial).subscribe((res: fullTask) => {
|
||||
this.TaskService.loadDiplomas();
|
||||
|
||||
|
||||
this.task = {
|
||||
"SerialNumber": res.serialNumber,
|
||||
"Folio": res.workflowInstanceDataFields.Subject,
|
||||
@@ -126,7 +126,7 @@ export class DespachoPrPage implements OnInit {
|
||||
console.log(error)
|
||||
}
|
||||
this.getDocumentPdf(this.fulltask.Documents)
|
||||
|
||||
|
||||
// this.updateProcessOnDB(res);
|
||||
// console.log('this.fulltask', this.fulltask)
|
||||
let thedate = new Date(this.task.CreateDate);
|
||||
@@ -170,7 +170,7 @@ export class DespachoPrPage implements OnInit {
|
||||
// this.sqliteservice.updateProcess(res);
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// updateProcessInterveners(users) {
|
||||
// if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
// } else {
|
||||
@@ -389,7 +389,7 @@ export class DespachoPrPage implements OnInit {
|
||||
|
||||
|
||||
modal.onDidDismiss().then(async (res) => {
|
||||
|
||||
|
||||
if (res.data) {
|
||||
|
||||
const DocumentToSave = res.data.documents.map((e) => {
|
||||
@@ -453,9 +453,9 @@ export class DespachoPrPage implements OnInit {
|
||||
});
|
||||
|
||||
modal.onDidDismiss().then(res => {
|
||||
|
||||
|
||||
if (res['data'] == 'openDiscart') {
|
||||
|
||||
|
||||
this.distartExpedientModal();
|
||||
}
|
||||
|
||||
@@ -549,7 +549,7 @@ export class DespachoPrPage implements OnInit {
|
||||
}
|
||||
|
||||
async distartExpedientModal() {
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: DiscartExpedientModalPage,
|
||||
componentProps: {
|
||||
@@ -630,17 +630,17 @@ export class DespachoPrPage implements OnInit {
|
||||
this.processes.GetDraftByID(element).subscribe((resd) => {
|
||||
let object = {
|
||||
"ApplicationId": "",
|
||||
"Assunto": resd.data.document.description,
|
||||
"Assunto": resd.data.description,
|
||||
"DocDate": "",
|
||||
"DocId": resd.data.document.id,
|
||||
"DocId": resd.data.id,
|
||||
"DocNumber": "",
|
||||
"FolderId": "",
|
||||
"Sender": "",
|
||||
"SourceDocId": "",
|
||||
"content": resd.data.document.content,
|
||||
"path": resd.data.document.path,
|
||||
"ownerId": resd.data.document.ownerId,
|
||||
"status": resd.data.document.status,
|
||||
"content": resd.data.content,
|
||||
"path": resd.data.path,
|
||||
"ownerId": resd.data.ownerId,
|
||||
"status": resd.data.status,
|
||||
}
|
||||
this.mergedArray.push(object)
|
||||
console.log('List of draff', resd)
|
||||
|
||||
@@ -208,17 +208,17 @@ export class DespachoPage implements OnInit {
|
||||
this.processes.GetDraftByID(element).subscribe((resd) => {
|
||||
let object = {
|
||||
"ApplicationId": "",
|
||||
"Assunto": resd.data.document.description,
|
||||
"Assunto": resd.data.description,
|
||||
"DocDate": "",
|
||||
"DocId": resd.data.document.id,
|
||||
"DocId": resd.data.id,
|
||||
"DocNumber": "",
|
||||
"FolderId": "",
|
||||
"Sender": "",
|
||||
"SourceDocId": "",
|
||||
"content": resd.data.document.content,
|
||||
"path": resd.data.document.path,
|
||||
"ownerId": resd.data.document.ownerId,
|
||||
"status": resd.data.document.status,
|
||||
"content": resd.data.content,
|
||||
"path": resd.data.path,
|
||||
"ownerId": resd.data.ownerId,
|
||||
"status": resd.data.status,
|
||||
}
|
||||
this.mergedArray.push(object)
|
||||
// console.log('List of draff', resd)
|
||||
|
||||
+6
-6
@@ -481,17 +481,17 @@ export class DiplomaAssinarPage implements OnInit {
|
||||
|
||||
let object = {
|
||||
"ApplicationId": "",
|
||||
"Assunto": resd.data.document.description,
|
||||
"Assunto": resd.data.description,
|
||||
"DocDate": "",
|
||||
"DocId": resd.data.document.id,
|
||||
"DocId": resd.data.id,
|
||||
"DocNumber": "",
|
||||
"FolderId": "",
|
||||
"Sender": "",
|
||||
"SourceDocId": "",
|
||||
"content": resd.data.document.content,
|
||||
"path": resd.data.document.path,
|
||||
"ownerId": resd.data.document.ownerId,
|
||||
"status": resd.data.document.status,
|
||||
"content": resd.data.content,
|
||||
"path": resd.data.path,
|
||||
"ownerId": resd.data.ownerId,
|
||||
"status": resd.data.status,
|
||||
};
|
||||
this.draftArray.push(object);
|
||||
this.mergedArray.push(object);
|
||||
|
||||
@@ -539,17 +539,17 @@ export class DiplomaPage implements OnInit {
|
||||
|
||||
let object = {
|
||||
"ApplicationId": "",
|
||||
"Assunto": resd.data.document.description,
|
||||
"Assunto": resd.data.description,
|
||||
"DocDate": "",
|
||||
"DocId": resd.data.document.id,
|
||||
"DocId": resd.data.id,
|
||||
"DocNumber": "",
|
||||
"FolderId": "",
|
||||
"Sender": "",
|
||||
"SourceDocId": "",
|
||||
"content": resd.data.document.content,
|
||||
"path": resd.data.document.path,
|
||||
"ownerId": resd.data.document.ownerId,
|
||||
"status": resd.data.document.status,
|
||||
"content": resd.data.content,
|
||||
"path": resd.data.path,
|
||||
"ownerId": resd.data.ownerId,
|
||||
"status": resd.data.status,
|
||||
}
|
||||
this.mergedArray.push(object)
|
||||
this.DraftNames = this.DraftNames + resd.data.description+";"
|
||||
|
||||
Reference in New Issue
Block a user