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