Lista vazia
diff --git a/src/app/pages/gabinete-digital/event-list/event-list.page.ts b/src/app/pages/gabinete-digital/event-list/event-list.page.ts
index aa7a02372..9344d7087 100644
--- a/src/app/pages/gabinete-digital/event-list/event-list.page.ts
+++ b/src/app/pages/gabinete-digital/event-list/event-list.page.ts
@@ -84,18 +84,48 @@ export class EventListPage implements OnInit {
this.platform.ready().then(() => {
this.sqliteservice.getListOfEventAprove('Agenda Oficial MDGPR', 'Agenda Pessoal MDGPR').then((event: any[]) => {
- this.eventsMDGPRList = this.sortService.sortDate(event, 'taskStartDate')
-
+
+ this.eventsMDGPRList = this.sortService.sortDate(this.transformaDataDB(event), 'taskStartDate')
+ //this.eventsMDGPRList = this.eventsMDGPRList.filter(element => element.interveners != null)
+ console.log('MD event to aprove', this.eventsMDGPRList)
+
})
this.sqliteservice.getListOfEventAprove('Agenda Oficial PR', 'Agenda Pessoal PR').then((event: any[]) => {
- this.eventsPRList = this.sortService.sortDate(event, 'taskStartDate')
+ this.eventsPRList = this.sortService.sortDate(this.transformaDataDB(event), 'taskStartDate')
+ console.log('PR event to aprove', this.eventsPRList)
})
})
console.log('Offlineee')
}
+ transformaDataDB(events) {
+ let MdEventsArray = [];
+ for (let i of events) {
+ let eventMD = {
+ Documents: i.Documents,
+ actions: i.actions,
+ activityInstanceName: i.activityInstanceName,
+ formURL: i.formURL,
+ interveners: i.interveners,
+ originator: i.originator,
+ serialNumber: i.serialNumber,
+ taskStartDate: i.taskStartDate,
+ totalDocuments: i.totalDocuments,
+ workflowDisplayName: i.workflowDisplayName,
+ workflowID: i.workflowID,
+ workflowInstanceDataFields: JSON.parse(i.workflowInstanceDataFields),
+ workflowInstanceFolio: i.workflowInstanceFolio,
+ workflowInstanceID: i.workflowInstanceID,
+ workflowName: i.workflowName,
+ }
+
+ MdEventsArray.push(eventMD);
+ }
+ return MdEventsArray;
+ }
+
segmentChanged(ev: any) {
this.LoadToApproveEvents();
}
@@ -111,13 +141,15 @@ export class EventListPage implements OnInit {
let mdEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal MDGPR', false).toPromise();
this.eventsMDGPRList = mdEventsOficial.concat(mdEventsPessoal);
this.eventsMDGPRList = this.sortService.sortDate(this.eventsMDGPRList, 'taskStartDate')
+ console.log('MD EVENT TO APROVE ONLINE',this.eventsMDGPRList)
this.eventaprovacaostore.resetmd(this.sortService.sortArrayByDate(this.eventsMDGPRList).reverse());
}
else if (this.segment == 'PR') {
let prEventsOficial = await this.processes.GetTasksList('Agenda Oficial PR', false).toPromise();
let prEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal PR', false).toPromise();
this.eventsPRList = prEventsOficial.concat(prEventsPessoal);
- this.eventsPRList = this.sortService.sortDate(this.eventsPRList, 'taskStartDate')
+ this.eventsPRList = this.sortService.sortDate(this.eventsPRList, 'taskStartDate')
+ console.log('PR EVENT TO APROVE ONLINE',this.eventsPRList)
this.eventaprovacaostore.resetpr(this.sortService.sortArrayByDate(this.eventsPRList).reverse());
}
this.showLoader = false;
diff --git a/src/app/pages/publications/new-publication/new-publication.page.ts b/src/app/pages/publications/new-publication/new-publication.page.ts
index cf37bd3e8..60a6eaa06 100644
--- a/src/app/pages/publications/new-publication/new-publication.page.ts
+++ b/src/app/pages/publications/new-publication/new-publication.page.ts
@@ -108,7 +108,7 @@ export class NewPublicationPage implements OnInit {
async takePicture() {
const image = await Camera.getPhoto({
- quality: 20,
+ quality: 90,
allowEditing: false,
width:50,
height: 50,
@@ -398,7 +398,7 @@ export class NewPublicationPage implements OnInit {
async selectImage() {
const image = await Camera.getPhoto({
- quality: 20,
+ quality: 90,
allowEditing: false,
resultType: CameraResultType.Uri,
source: CameraSource.Camera // Camera, Photos or Prompt!
@@ -521,10 +521,10 @@ export class NewPublicationPage implements OnInit {
compressFile() {
- //this.imgResultBeforeCompress = image;
+ //this.imgResultBeforeCompress = image;s
this.imageCompress.getOrientation(this.capturedImage).then((orientation) => {
console.log('Size in bytes was:', this.imageCompress.byteCount(this.capturedImage));
- this.imageCompress.compressFile(this.capturedImage, orientation, 20, 20).then(
+ this.imageCompress.compressFile(this.capturedImage, orientation, 90, 90).then(
result => {
this.capturedImage = result;
console.log('Size in bytes is now:', this.imageCompress.byteCount(result));
diff --git a/src/app/pages/publications/view-publications/view-publications.page.ts b/src/app/pages/publications/view-publications/view-publications.page.ts
index 8d8839623..3f25ff651 100644
--- a/src/app/pages/publications/view-publications/view-publications.page.ts
+++ b/src/app/pages/publications/view-publications/view-publications.page.ts
@@ -120,6 +120,7 @@ export class ViewPublicationsPage implements OnInit {
setTimeout(() => {
let allActions = this.publicationEventFolderStorage.list.concat(this.publicationTravelFolderService.list)
+ console.log('ACTION ACTION', this.publicationList)
this.item = allActions.find((e) => e.ProcessId == this.folderId);
this.publicationDitails = this.item
console.log('item', this.item)