mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into developer
This commit is contained in:
+2
-1
@@ -49,4 +49,5 @@ src/app/store/notification.service.spec.ts
|
||||
src/app/store/notification.service.ts
|
||||
|
||||
|
||||
src/assets/www/pdfjs/web/compressed.tracemonkey-pldi-09.pdf.pdf
|
||||
src/assets/www/pdfjs/web/compressed.tracemonkey-pldi-09.pdf.pdf
|
||||
node_modules_
|
||||
Generated
+21
-4
@@ -2304,14 +2304,31 @@
|
||||
}
|
||||
},
|
||||
"@ionic/angular": {
|
||||
"version": "5.8.1",
|
||||
"resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-5.8.1.tgz",
|
||||
"integrity": "sha512-VKgq71yPPyiS+wN8cyfTsVmp0EEamUAGaYq7lZuupnhZ+/8LNyo5Xp/kl8txtCnGFTNIDZpMpmI8+/7KnU8Zuw==",
|
||||
"version": "5.8.4",
|
||||
"resolved": "https://registry.npmjs.org/@ionic/angular/-/angular-5.8.4.tgz",
|
||||
"integrity": "sha512-pvy7qOTVih3mqcyIV6C3BK8seeZOEoanRFw+Z5m+soXDcvgrouHBBAKzURu2RUx8uDZqlX38Pkn89ontvqIZUg==",
|
||||
"requires": {
|
||||
"@ionic/core": "5.8.1",
|
||||
"@ionic/core": "5.8.4",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ionic/core": {
|
||||
"version": "5.8.4",
|
||||
"resolved": "https://registry.npmjs.org/@ionic/core/-/core-5.8.4.tgz",
|
||||
"integrity": "sha512-ioaH7wXAtexcpk23III0KArjSXStkpPrpZ5BCNkyter3EbOmDVd8XIXRcT86zRG68rbGI7Pd9GrugxeaDyMk/g==",
|
||||
"requires": {
|
||||
"@stencil/core": "^2.4.0",
|
||||
"ionicons": "^5.5.3",
|
||||
"tslib": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"tslib": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz",
|
||||
"integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"tslib": {
|
||||
"version": "1.14.1",
|
||||
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@
|
||||
"@ionic-native/sqlite-porter": "^4.20.0",
|
||||
"@ionic-native/status-bar": "^5.0.0",
|
||||
"@ionic-native/wheel-selector": "^5.31.1",
|
||||
"@ionic/angular": "^5.5.4",
|
||||
"@ionic/angular": "^5.8.4",
|
||||
"@ionic/core": "^5.8.1",
|
||||
"@ionic/pwa-elements": "^3.0.2",
|
||||
"@ionic/storage": "^2.3.1",
|
||||
|
||||
@@ -72,33 +72,9 @@ export class DocumentDetailPage implements OnInit {
|
||||
let folder: SearchFolderDetails = this.LoadedDocument
|
||||
|
||||
if(this.LoadedDocument.ApplicationID == 361 || this.LoadedDocument.ApplicationId == 361) {
|
||||
// task = {
|
||||
// serialNumber: folder.DispatchNumber,
|
||||
// taskStartDate: folder.DateDispatch,
|
||||
// isEvent: true,
|
||||
// workflowInstanceDataFields: {
|
||||
// FolderID: folder['FolderId'] || folder['FolderID'] || folder.folderId,
|
||||
// Subject: folder.Assunto,
|
||||
// SourceSecFsID: folder.ApplicationID || folder['ApplicationId'],
|
||||
// SourceType: 'FOLDER',
|
||||
// SourceID: folder.folderId,
|
||||
// DispatchNumber: folder.DispatchNumber
|
||||
// },
|
||||
// }
|
||||
|
||||
} else if (document.ApplicationID == 8 || document.ApplicationId == 8) {
|
||||
// task = {
|
||||
// serialNumber: document.DocId,
|
||||
// taskStartDate: document.DocDate,
|
||||
// isEvent: true,
|
||||
// workflowInstanceDataFields: {
|
||||
// FolderID: null,
|
||||
// Subject: document.Assunto,
|
||||
// DispatchNumber: null,
|
||||
// SourceSecFsID: document.ApplicationID || document.folderId,
|
||||
// SourceType: 'DOC',
|
||||
// SourceID: document.DocId,
|
||||
// }
|
||||
// }
|
||||
|
||||
} else {
|
||||
console.log('unexpected ApplicationID')
|
||||
}
|
||||
@@ -155,7 +131,7 @@ export class DocumentDetailPage implements OnInit {
|
||||
|
||||
const selectedDoc = this.LoadedDocument.Documents[ this.dicIndex]
|
||||
|
||||
this.task = {
|
||||
let task = {
|
||||
serialNumber: '',
|
||||
taskStartDate: '',
|
||||
isEvent: true,
|
||||
@@ -174,15 +150,15 @@ export class DocumentDetailPage implements OnInit {
|
||||
componentProps: {
|
||||
trustedUrl: '',
|
||||
file: {
|
||||
title: this.task.workflowInstanceDataFields.Subject,
|
||||
title: task.workflowInstanceDataFields.Subject,
|
||||
url: '',
|
||||
title_link: '',
|
||||
},
|
||||
Document: this.LoadedDocument.Documents[ this.dicIndex],
|
||||
applicationId: this.task.workflowInstanceDataFields.SourceSecFsID,
|
||||
docId: this.task.workflowInstanceDataFields.SourceID ,
|
||||
applicationId: task.workflowInstanceDataFields.SourceSecFsID,
|
||||
docId: task.workflowInstanceDataFields.SourceID ,
|
||||
folderId: '',
|
||||
task: this.task
|
||||
task: task
|
||||
},
|
||||
cssClass: 'modal modal-desktop'
|
||||
});
|
||||
@@ -215,7 +191,7 @@ export class DocumentDetailPage implements OnInit {
|
||||
component: ExpedientTaskModalPage,
|
||||
componentProps: {
|
||||
taskAction: taskAction,
|
||||
task: this.task,
|
||||
task: this.DocumentTask,
|
||||
seachDocuments: this.LoadedDocument,
|
||||
aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID
|
||||
},
|
||||
@@ -238,7 +214,7 @@ export class DocumentDetailPage implements OnInit {
|
||||
const modal = await this.modalController.create({
|
||||
component: DocumentSetUpMeetingPage,
|
||||
componentProps: {
|
||||
subject: this.task.workflowInstanceDataFields.Subject,
|
||||
subject: this.LoadedDocument.Assunto,
|
||||
document: this.LoadedDocument,
|
||||
},
|
||||
cssClass: classs,
|
||||
|
||||
@@ -184,7 +184,6 @@ export class DocumentSetUpMeetingPage implements OnInit {
|
||||
}
|
||||
else{
|
||||
console.log(this.document);
|
||||
alert('PARA')
|
||||
this.docs.push({
|
||||
ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
|
||||
Source: 1,
|
||||
|
||||
@@ -508,23 +508,7 @@ export class AgendaPage implements OnInit {
|
||||
this.CalendarStore.pushEvent(response, 'md');
|
||||
|
||||
console.log('CALENDAR STORE', this.CalendarStore.eventSource)
|
||||
|
||||
let array = []
|
||||
response.forEach(element => {
|
||||
let event = {
|
||||
startTime: new Date(element.StartDate),
|
||||
endTime: new Date(element.EndDate),
|
||||
allDay: false,
|
||||
event: element,
|
||||
calendarName: element.CalendarName,
|
||||
profile: "md",
|
||||
id: element.EventId,
|
||||
}
|
||||
array.push(event)
|
||||
});
|
||||
|
||||
this.listToPresent = array;
|
||||
console.log('LIST TO PRESET', this.listToPresent)
|
||||
this.trasnformData(response,'md');
|
||||
|
||||
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
|
||||
@@ -550,7 +534,7 @@ export class AgendaPage implements OnInit {
|
||||
this.CalendarStore.removeRange(startTime, endTime, 'pr')
|
||||
// calendar
|
||||
this.CalendarStore.pushEvent(response, 'pr');
|
||||
this.listToPresent = response;
|
||||
this.trasnformData(response,'pr');
|
||||
|
||||
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
|
||||
@@ -576,23 +560,7 @@ export class AgendaPage implements OnInit {
|
||||
// startTime = 1, endTime = 31
|
||||
this.CalendarStore.removeRange(startTime, endTime, 'pr')
|
||||
this.CalendarStore.pushEvent(response, 'pr');
|
||||
let array = []
|
||||
response.array.forEach(element => {
|
||||
let event = {
|
||||
startTime: new Date(element.StartDate),
|
||||
endTime: new Date(element.EndDate),
|
||||
allDay: false,
|
||||
event: element,
|
||||
calendarName: element.CalendarName,
|
||||
profile: element.profile,
|
||||
id: element.EventId,
|
||||
}
|
||||
array.push(event)
|
||||
});
|
||||
|
||||
this.listToPresent = array;
|
||||
|
||||
// this.CalendarStore.eventSource
|
||||
this.trasnformData(response,'pr')
|
||||
|
||||
|
||||
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
@@ -629,7 +597,7 @@ export class AgendaPage implements OnInit {
|
||||
|
||||
// loop
|
||||
this.CalendarStore.pushEvent(eventsList, 'md');
|
||||
this.listToPresent = eventsList;
|
||||
this.trasnformData(response,'md')
|
||||
|
||||
this.TimelineMDList = this.listBoxService.list(this.listToPresent, 'md', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
|
||||
@@ -659,7 +627,7 @@ export class AgendaPage implements OnInit {
|
||||
/* this.CalendarStore.removeRange(startTime, endTime, 'pr')
|
||||
|
||||
this.CalendarStore.pushEvent(eventsList, 'pr'); */
|
||||
this.listToPresent = eventsList;
|
||||
this.trasnformData(response,'pr')
|
||||
|
||||
this.TimelinePRList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
|
||||
@@ -699,7 +667,7 @@ export class AgendaPage implements OnInit {
|
||||
this.CalendarStore.removeRange(startTime, endTime, 'pr')
|
||||
|
||||
this.CalendarStore.pushEvent(eventsList, 'pr');
|
||||
this.listToPresent = eventsList;
|
||||
this.trasnformData(eventsList,'pr')
|
||||
|
||||
this.TimelinePRList = this.listBoxService.list(this.listToPresent, 'pr', this.rangeStartDate, this.rangeEndDate, { segment: this.segment, selectedDate: this.eventSelectedDate })
|
||||
|
||||
@@ -726,6 +694,25 @@ export class AgendaPage implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
trasnformData(response,profile) {
|
||||
let array = []
|
||||
response.forEach(element => {
|
||||
let event = {
|
||||
startTime: new Date(element.StartDate),
|
||||
endTime: new Date(element.EndDate),
|
||||
allDay: false,
|
||||
event: element,
|
||||
calendarName: element.CalendarName,
|
||||
profile: profile,
|
||||
id: element.EventId,
|
||||
}
|
||||
array.push(event)
|
||||
});
|
||||
|
||||
this.listToPresent = array;
|
||||
console.log('LIST TO PRESET', this.listToPresent)
|
||||
}
|
||||
|
||||
addEventToDB(response, profile) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
@@ -756,20 +743,7 @@ export class AgendaPage implements OnInit {
|
||||
this.sqliteservice.getAllEvents().then((events: any[]) => {
|
||||
console.log('ALL EVENTS FROM DB', events)
|
||||
let eventArray = [];
|
||||
events.forEach(element => {
|
||||
let event = {
|
||||
startTime: new Date(element.StartDate),
|
||||
endTime: new Date(element.EndDate),
|
||||
allDay: false,
|
||||
event: element,
|
||||
calendarName: element.CalendarName,
|
||||
profile: element.Profile,
|
||||
id: element.EventId,
|
||||
}
|
||||
eventArray.push(event);
|
||||
});
|
||||
|
||||
this.listToPresent = eventArray
|
||||
this.trasnformData(events,this.profile)
|
||||
this.updateEventListBox()
|
||||
|
||||
this.myCal.update();
|
||||
@@ -777,7 +751,7 @@ export class AgendaPage implements OnInit {
|
||||
|
||||
this.showLoader = false;
|
||||
this.showTimeline = true;
|
||||
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
@@ -118,6 +118,8 @@ export class DespachoPrPage implements OnInit {
|
||||
"activityInstanceName": res.activityInstanceName,
|
||||
}
|
||||
this.fulltask = res;
|
||||
|
||||
|
||||
console.log(this.task);
|
||||
|
||||
console.log('GetTask', res);
|
||||
|
||||
+3
@@ -111,6 +111,9 @@ export class ExpedientTaskModalPage implements OnInit {
|
||||
|
||||
this.loggeduser = userAuth.ValidatedUser;
|
||||
this.task = this.navParams.get('task');
|
||||
|
||||
console.log('create dispatch with this data', this.task);
|
||||
|
||||
this.SearchFolder = this.navParams.get('SearchFolder');
|
||||
this.aplicationId = this.navParams.get('aplicationId')
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { ActivatedRoute, NavigationStart, Router } from '@angular/router';
|
||||
import { CalendarComponent } from 'ionic2-calendar';
|
||||
import { customTask, DailyWorkTask } from '../../../models/dailyworktask.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { ModalController, NavParams } from '@ionic/angular';
|
||||
import { ModalController, NavParams, Platform } from '@ionic/angular';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
import { PedidosStore } from 'src/app/store/pedidos-store.service';
|
||||
import { ModalService } from 'src/app/services/modal.service';
|
||||
@@ -48,7 +48,8 @@ export class PedidosPage implements OnInit {
|
||||
private modalService: ModalService,
|
||||
private sqliteservice: SqliteService,
|
||||
private sortService: SortService,
|
||||
private backgroundservice: BackgroundService
|
||||
private backgroundservice: BackgroundService,
|
||||
private platform: Platform
|
||||
) {
|
||||
//Inicializar segment
|
||||
this.segment = 'parecer';
|
||||
@@ -158,7 +159,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
this.parecerList.push(task);
|
||||
});
|
||||
this.sqliteservice.addProcess(this.parecerList);
|
||||
this.addPedidoToDb(this.parecerList);
|
||||
this.listToPresentparecerList = this.sortService.sortArrayISODate(this.parecerList);
|
||||
|
||||
}
|
||||
@@ -198,7 +199,7 @@ export class PedidosPage implements OnInit {
|
||||
}
|
||||
});
|
||||
});
|
||||
this.sqliteservice.addProcess(this.deferimentoList);
|
||||
this.addPedidoToDb(this.deferimentoList);
|
||||
this.listToPresentdeferimentoList = this.sortService.sortArrayISODate(this.deferimentoList);
|
||||
}
|
||||
|
||||
@@ -209,6 +210,13 @@ export class PedidosPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
addPedidoToDb(pedido) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
this.sqliteservice.addProcess(pedido);
|
||||
}
|
||||
}
|
||||
|
||||
getFromDb() {
|
||||
|
||||
let parecerlist = [];
|
||||
|
||||
Reference in New Issue
Block a user