diff --git a/src/app/home/home.page.ts b/src/app/home/home.page.ts
index f9d675478..886ad13a3 100644
--- a/src/app/home/home.page.ts
+++ b/src/app/home/home.page.ts
@@ -87,7 +87,8 @@ export class HomePage implements OnInit {
private NativeNotificationService: NativeNotificationService,
private sqliteservice: SqliteService,
private RochetChatConnectorService: RochetChatConnectorService,
- private NetworkServiceService: NetworkServiceService
+ private NetworkServiceService: NetworkServiceService,
+ public eventService: EventsService,
) {
if (SessionStore.exist) {
this.user = SessionStore.user;
@@ -169,15 +170,22 @@ export class HomePage implements OnInit {
this.updateList()
- // var myWorker = new Worker(new URL('./nice.worker.js', import.meta.url));
-
- // myWorker.onmessage = function (oEvent) {
- // console.log('Worker said : ' + oEvent.data);
- // }
-
- // myWorker.postMessage('ali');
this.clearTabButtonSelection();
+ setTimeout(() => {
+ if(this.p.userPermission([this.p.permissionList.Gabinete.md_tasks]) && this.p.userPermission([this.p.permissionList.Gabinete.pr_tasks])) {
+ throw(SessionStore.user.FullName + 'cant have MD and PR authorization at same time');
+ }
+
+ if(this.p.userPermission([this.p.permissionList.Chat.access]) && !SessionStore.user?.ChatData?.data) {
+ throw('Chat temporarily unavailable for '+SessionStore.user.FullName + '. No ChatData');
+ }
+
+ if(this.p.userPermission([this.p.permissionList.Agenda.access]) && !this.eventService.hasAnyCalendar) {
+ throw('User '+SessionStore.user.FullName + 'has No calendar');
+ }
+ }, 1000)
+
}
clearTabButtonSelection() {
@@ -220,13 +228,6 @@ export class HomePage implements OnInit {
updateList() {
- // this.notificationsService.registerCallback(
- // 'despachos',
- // () => {
- // // this.despachoRule.getList({ updateStore: true })
- // }
- // )
-
document.addEventListener('pause', function () {
// console.log('App going to background');
});
diff --git a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts
index 90fda08ac..32a3fb7c5 100644
--- a/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts
+++ b/src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts
@@ -230,7 +230,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.docs.push({
ApplicationId: e.ApplicationId || e.ApplicationType,
Source: 1,
- SourceId: e.DocId || e.docID || e.docId || e.SourceId,
+ SourceId: e.DocId || e.docID || e.docId || e.SourceId || e.Id,
SourceName: e.Assunto
})
})
@@ -239,7 +239,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.docs.push({
ApplicationId: this.document.ApplicationId || this.document.ApplicationType,
Source: 1,
- SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId,
+ SourceId: this.document.DocId || this.document.docID || this.document.docId || this.document.SourceId || this.document.Id,
SourceName: this.document.Assunto
})
}
@@ -249,7 +249,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
Subject: this.postData.Subject,
Body: this.postData.Body.Text,
Location: this.postData.Location,
- CalendarId: this.postData.CalendarName,
+ CalendarId: this.selectedCalendarId(),
CalendarName: this.postData.CalendarName,
StartDate: this.postData.StartDate,
EndDate: this.postData.EndDate,
@@ -369,6 +369,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
modal.onDidDismiss().then((res)=> {
if(res){
const data = res.data;
+ console.log('data', data)
this.attachments.push(data.selected);
}
});
@@ -378,13 +379,27 @@ export class DocumentSetUpMeetingPage implements OnInit {
this.attachments = this.attachments.filter( (e, i) => index != i);
}
- validateFormInputs(){
+ validateFormInputs() {
let formLocation = this.postData.Location.trim();
if(!this.postData.Location && formLocation.length <= 0){
this.formLocationSatus = true;
}
}
+ selectedCalendarId () {
+
+ if (this._eventService.calendarNamesType[this.CalendarName]?.['Oficial'] && this.postData.CalendarName == 'Oficial') {
+ return this._eventService.calendarNamesType[this.CalendarName]['OficialId']
+
+ } else if (this._eventService.calendarNamesType[this.CalendarName]?.['Pessoal'] && this.postData.CalendarName == 'Pessoal') {
+
+ return this._eventService.calendarNamesType[this.CalendarName]['PessoalId']
+
+ } else {
+ return '11:11'
+ }
+ }
+
dynamicSetIntervenient({taskParticipants, taskParticipantsCc}) {
this.taskParticipants = taskParticipants;
this.taskParticipantsCc = taskParticipantsCc;
diff --git a/src/app/modals/forward/forward.page.ts b/src/app/modals/forward/forward.page.ts
index 2eacdffe3..1b70c6832 100644
--- a/src/app/modals/forward/forward.page.ts
+++ b/src/app/modals/forward/forward.page.ts
@@ -147,7 +147,7 @@ export class ForwardPage implements OnInit {
"AttachmentList" :docs,
}
this.processes.CompleteParecerPrTask(body).subscribe(res=>{
- this.toastService._successMessage('Processo delegado');
+ this.toastService._successMessage('Processo Reencaminhado');
this.goBack();
},
(error)=>{
diff --git a/src/app/pages/agenda/agenda.page.html b/src/app/pages/agenda/agenda.page.html
index 0f08bdc40..f4db62035 100644
--- a/src/app/pages/agenda/agenda.page.html
+++ b/src/app/pages/agenda/agenda.page.html
@@ -365,7 +365,7 @@
-
{{event.event.Subject}} ....
+
{{event.event.Subject}}
{{event.event.Location}}
diff --git a/src/app/pages/agenda/view-event/view-event.page.html b/src/app/pages/agenda/view-event/view-event.page.html
index 8cfe4296f..5a40b5cb3 100644
--- a/src/app/pages/agenda/view-event/view-event.page.html
+++ b/src/app/pages/agenda/view-event/view-event.page.html
@@ -85,7 +85,7 @@
Detalhes
- {{ loadedEvent.Body.Text }}
+ {{ loadedEvent.Body.Text }}
diff --git a/src/app/pages/agenda/view-event/view-event.page.ts b/src/app/pages/agenda/view-event/view-event.page.ts
index d52a17c96..093422105 100644
--- a/src/app/pages/agenda/view-event/view-event.page.ts
+++ b/src/app/pages/agenda/view-event/view-event.page.ts
@@ -189,11 +189,7 @@ export class ViewEventPage implements OnInit {
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
this.eventsService.getEvent(this.eventId).subscribe(res => {
- const div = document.createElement("div")
- div.innerHTML = res.Body.Text
- res.Body.Text = div.innerText
this.loadedEvent = res;
-
this.addEventToDb(res);
loader.remove()
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
index 515e0b03a..81d4ab200 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
+++ b/src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts
@@ -126,11 +126,6 @@ export class DespachoPrPage implements OnInit {
"activityInstanceName": res.activityInstanceName,
}
this.fulltask = res;
-
-
-
-
-
this.updateProcessOnDB(res);
let thedate = new Date(this.task.CreateDate);
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html
index 55252ed45..8ba90122d 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html
+++ b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html
@@ -35,7 +35,7 @@
diff --git a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts
index d954e6d57..6e12318df 100644
--- a/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts
+++ b/src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts
@@ -19,6 +19,7 @@ import { BackgroundService } from 'src/app/services/background.service';
import { SortService } from 'src/app/services/functions/sort.service';
import { ThemeService } from 'src/app/services/theme.service'
import { SessionStore } from 'src/app/store/session.service';
+import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
@Component({
selector: 'app-despachos-pr',
@@ -53,6 +54,8 @@ export class DespachosPrPage implements OnInit {
despachoprstore = DespachosprStore
listToPresent = [];
+ customTaskPipe = new CustomTaskPipe()
+
constructor(
private processes: ProcessesService,
private modalController: ModalController,
@@ -65,7 +68,6 @@ export class DespachosPrPage implements OnInit {
public ThemeService: ThemeService
) {
- this.loggeduser = SessionStore.user;
this.profile = 'mdgpr';
}
@@ -113,8 +115,9 @@ export class DespachosPrPage implements OnInit {
async LoadList() {
- this.processes.GetTasksList("Despacho do Presidente da República", false).subscribe(async res => {
- this.skeletonLoader = true
+ this.skeletonLoader = true
+
+ try {
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
this.despachoList = [];
@@ -124,7 +127,7 @@ export class DespachosPrPage implements OnInit {
let despachosPr;
let despachos = this.sortService.sortArrayByDate(result);
- if(this.loggeduser.Profile != "PR") {
+ if(SessionStore.user.Profile != "PR") {
if(SessionStore.user.Profile != 'Consultant') {
@@ -132,9 +135,8 @@ export class DespachosPrPage implements OnInit {
} else {
despachosPr = await despachos.reverse().filter(data => data.activityInstanceName == "Gerar Diploma" || data.activityInstanceName == "Retificar Diploma");
}
-
- } else if (this.loggeduser.Profile == "PR") {
+ } else if (SessionStore.user.Profile == "PR") {
despachosPr = await despachos.reverse().filter(data => data.activityInstanceName == "Concluir Despacho");
}
@@ -157,18 +159,24 @@ export class DespachosPrPage implements OnInit {
"DocumentsQty": element.totalDocuments,
"DocId": element.workflowInstanceDataFields.DocIdDiferimento,
"WorkflowName": element.workflowDisplayName,
+ "FolderID": element?.workflowInstanceDataFields?.FolderID,
"activityInstanceName": element.activityInstanceName,
+ "Status": element?.workflowInstanceDataFields?.Status,
}
this.despachoList.push(task);
});
+
this.despachoList = this.sortService.sortDate(this.despachoList, 'CreateDate')
this.listToPresent = this.despachoList
+ this.despachoprstore.reset(this.despachoList)
- }, (error) => {
+ } catch(error) {
this.getFromDB()
- })
+ }
+
+ this.skeletonLoader = false
}
@@ -181,9 +189,9 @@ export class DespachosPrPage implements OnInit {
let despachosPr;
- if(this.loggeduser.Profile != 'PR') {
+ if(SessionStore.user.Profile != 'PR') {
despachosPr = await process.reverse().filter(data => data.activityInstanceName == "Tarefa de Despacho");
- } else if (this.loggeduser.Profile == 'PR') {
+ } else if (SessionStore.user.Profile == 'PR') {
despachosPr = await process.reverse().filter(data => data.activityInstanceName == "Concluir Despacho");
}
diff --git a/src/app/pages/gabinete-digital/despachos/despachos.page.html b/src/app/pages/gabinete-digital/despachos/despachos.page.html
index 71291bff1..03f7b9bf1 100644
--- a/src/app/pages/gabinete-digital/despachos/despachos.page.html
+++ b/src/app/pages/gabinete-digital/despachos/despachos.page.html
@@ -33,7 +33,7 @@
diff --git a/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts b/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts
index a07296c19..31ff7ae6e 100644
--- a/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts
+++ b/src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts
@@ -73,19 +73,23 @@ export class DiplomasAssinarPage implements OnInit {
}, 1000);
}
- async LoadList(){
+ async LoadList() {
this.skeletonLoader = true
- let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
+ try {
+ let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
- let diplomasAssinar = diplomas.filter(data => data.activityInstanceName == "Assinar Diploma");
-
+ let diplomasAssinar = diplomas.filter(data => data.activityInstanceName == "Assinar Diploma");
+
+
+ this.deplomasStore.resetDiplomasParaAssinar(diplomasAssinar)
+ this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate')
+ } catch(error) {
- this.deplomasStore.resetDiplomasParaAssinar(diplomasAssinar)
+ }
- this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate')
this.skeletonLoader = false
this.showLoader = false;
diff --git a/src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.ts b/src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.ts
index 48b8f3b1c..ac7ff6049 100644
--- a/src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.ts
+++ b/src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.ts
@@ -57,10 +57,9 @@ export class DiplomasGerarPage implements OnInit {
- goToDiploma(serialNumber:any){
- this.router.navigate(['/home/gabinete-digital/diplomas-gerar',serialNumber,'gabinete-digital']);
-
- }
+ goToDiploma(serialNumber:any) {
+ this.router.navigate(['/home/gabinete-digital/diplomas-gerar',serialNumber,'gabinete-digital']);
+ }
async refreshing() {
setTimeout(() => {
@@ -77,24 +76,29 @@ export class DiplomasGerarPage implements OnInit {
async LoadList(){
- this.skeletonLoader = true
-
- let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
- this.diplomasList = [];
-
- let gerarDiploma = diplomas.reverse().filter(data => data.activityInstanceName == "Gerar Diploma" || data.activityInstanceName == "Retificar Diploma");
-
- gerarDiploma.forEach(element => {
- let task: customTask = this.customTaskPipe.transform(element)
- this.diplomasList.push(task);
- });
-
- this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate');
- this.deplomasStore.resetDiplomaGerar(this.diplomasList);
-
-
- this.skeletonLoader = false
- this.showLoader = false;
+ this.skeletonLoader = true
+
+ try {
+ let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
+ this.diplomasList = [];
+
+ let gerarDiploma = diplomas.reverse().filter(data => data.activityInstanceName == "Gerar Diploma" || data.activityInstanceName == "Retificar Diploma");
+
+ gerarDiploma.forEach(element => {
+ let task: customTask = this.customTaskPipe.transform(element)
+ this.diplomasList.push(task);
+ });
+
+ this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate');
+ this.deplomasStore.resetDiplomaGerar(this.diplomasList);
+
+ } catch(error) {
+
+ }
+
+
+ this.skeletonLoader = false
+ this.showLoader = false;
}
diff --git a/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts b/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts
index 503385732..db7e631ab 100644
--- a/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts
+++ b/src/app/pages/gabinete-digital/diplomas/diplomas.page.ts
@@ -8,6 +8,7 @@ import { BackgroundService } from 'src/app/services/background.service';
import { SortService } from 'src/app/services/functions/sort.service';
import { ThemeService } from 'src/app/services/theme.service'
import { PermissionService } from 'src/app/services/permission.service';
+import { DeplomasStore } from 'src/app/store/deplomas.service';
@Component({
@@ -26,7 +27,8 @@ export class DiplomasPage implements OnInit, OnDestroy {
segment: string;
skeletonLoader = true
-
+ deplomasStore = DeplomasStore
+
constructor(
private processes: ProcessesService,
private router: Router,
@@ -100,9 +102,7 @@ export class DiplomasPage implements OnInit, OnDestroy {
}
async LoadList() {
-
- this.processes.GetTasksList("Despacho do Presidente da República", false).subscribe(async res => {
-
+ try {
this.skeletonLoader = true
let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
@@ -118,6 +118,8 @@ export class DiplomasPage implements OnInit, OnDestroy {
diplomasList.push(task);
});
+
+ this.deplomasStore.resetDiplomasReview(diplomasValidar)
this.diplomasList = this.sortService.sortDate(diplomasList, 'CreateDate');
@@ -132,12 +134,19 @@ export class DiplomasPage implements OnInit, OnDestroy {
});
this.diplomasAssinadoList = this.sortService.sortDate(diplomasAssinadoList, 'CreateDate')
+ this.deplomasStore.resetDiplomasAssinadoList(diplomasAssinados);
+
+
+ let diplomasAssinar = diplomas.filter(data => data.activityInstanceName == "Assinar Diploma");
+ this.deplomasStore.resetDiplomasParaAssinar(diplomasAssinar)
+
// console.log('DIPLOMAS ASSINADOS', this.diplomasAssinadoList)
- }, (error) => {
+ } catch(error) {
+ this.skeletonLoader = false
this.getFromDb()
- })
-
+ }
+
}
getFromDb() {
diff --git a/src/app/pages/gabinete-digital/event-list/event-list.page.html b/src/app/pages/gabinete-digital/event-list/event-list.page.html
index 40146a6e5..1b486a7d7 100644
--- a/src/app/pages/gabinete-digital/event-list/event-list.page.html
+++ b/src/app/pages/gabinete-digital/event-list/event-list.page.html
@@ -39,10 +39,10 @@
-
+
+ *ngFor="let event of eventoaprovacaostore.listmd" (click)="goToEventToApproveDetail(event.serialNumber)">
@@ -65,10 +65,10 @@
-
+
+ *ngFor="let event of eventoaprovacaostore.listpr" (click)="goToEventToApproveDetail(event.serialNumber)">
{{event.workflowInstanceDataFields.StartDate | date: 'HH:mm'}}
@@ -92,7 +92,7 @@
Lista vazia
@@ -101,7 +101,7 @@
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 df5af192a..1a9c14aa0 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
@@ -36,6 +36,7 @@ export class EventListPage implements OnInit {
skeletonLoader = true
eventaprovacaostore = EventoAprovacaoStore;
+ eventoaprovacaostore = EventoAprovacaoStore;
constructor(
private processes: ProcessesService,
@@ -147,7 +148,7 @@ export class EventListPage implements OnInit {
}
async LoadToApproveEvents() {
- this.processes.GetTasksList('Agenda Oficial MDGPR', false).subscribe(async res => {
+ // this.processes.GetTasksList('Agenda Oficial MDGPR', false).subscribe(async res => {
this.showLoader = true;
this.skeletonLoader = true
@@ -156,11 +157,10 @@ export class EventListPage implements OnInit {
let mdEventsOficial = await this.processes.GetTasksList('Agenda Oficial MDGPR', false).toPromise();
let mdEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal MDGPR', false).toPromise();
this.eventsMDGPRList = mdEventsOficial.concat(mdEventsPessoal);
+
this.eventsMDGPRList = this.sortService.sortDate(this.eventsMDGPRList, 'taskStartDate')
this.eventsMDGPRList = this.sortService.sortArrayByDate(this.eventsMDGPRList)
- // this.eventsMDGPRList = ( this.eventsMDGPRList || []).filter(function(item) {
- // return item.activityInstanceName != 'Editar Evento'
- // })
+ this.eventoaprovacaostore.resetmd(this.eventsMDGPRList);
this.storage.set('event-to-aproveMD',this.eventsMDGPRList).then(() => {
@@ -171,11 +171,10 @@ export class EventListPage implements OnInit {
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.sortArrayByDate(this.eventsPRList)
- // this.eventsPRList = (this.eventsPRList || []).filter(function(item) {
- // return item.activityInstanceName != 'Editar Evento'
- // })
+ this.eventoaprovacaostore.resetpr(this.eventsPRList);
this.storage.set('event-to-aprovePR',this.eventsPRList).then(() => {
@@ -185,9 +184,9 @@ export class EventListPage implements OnInit {
this.showLoader = false;
this.skeletonLoader = false
- }, (error) => {
- this.getEventToAproveFromDB();
- })
+ // }, (error) => {
+ // this.getEventToAproveFromDB();
+ // })
}
diff --git a/src/app/pages/gabinete-digital/expediente/expediente.page.html b/src/app/pages/gabinete-digital/expediente/expediente.page.html
index f989f787d..a583eb11f 100644
--- a/src/app/pages/gabinete-digital/expediente/expediente.page.html
+++ b/src/app/pages/gabinete-digital/expediente/expediente.page.html
@@ -36,7 +36,7 @@
diff --git a/src/app/pages/gabinete-digital/expediente/expediente.page.ts b/src/app/pages/gabinete-digital/expediente/expediente.page.ts
index 2e04cc42b..bc27d8bea 100644
--- a/src/app/pages/gabinete-digital/expediente/expediente.page.ts
+++ b/src/app/pages/gabinete-digital/expediente/expediente.page.ts
@@ -9,7 +9,7 @@ import { Platform } from '@ionic/angular';
import { BackgroundService } from '../../../services/background.service';
import { ThemeService } from 'src/app/services/theme.service'
import { SortService } from 'src/app/services/functions/sort.service';
-import {Storage } from '@ionic/storage';
+import { Storage } from '@ionic/storage';
@Component({
selector: 'app-expediente',
@@ -73,7 +73,7 @@ export class ExpedientePage implements OnInit {
const result = res
this.taskslist = new Array();
- let ress = result.filter((data: any) => data.workflowInstanceDataFields.Status == "Active");
+ let ress = result.filter((data: any) => data.workflowInstanceDataFields.Status == "" || data.workflowInstanceDataFields.Status == "Active");
ress.forEach((element: any) => {
@@ -86,7 +86,8 @@ export class ExpedientePage implements OnInit {
})
this.listToPresent = this.sortService.sortDate(this.taskslist, 'taskStartDate')
-
+ this.expedientegbstore.reset(this.listToPresent);
+
this.skeletonLoader = false;
}, (error) => {
this.getEventsFromLocalDb();
diff --git a/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts b/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
index 0d873db35..97c563faf 100644
--- a/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
+++ b/src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
@@ -75,14 +75,12 @@ export class ExpedientesPrPage implements OnInit {
this.skeletonLoader = false
this.showLoader =false
this.taskslist = new Array();
- let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Active");
- res.forEach(element => {
- let task = this.expedienteTaskPipe.transform(element)
- this.taskslist.push(task);
- });
-
+ let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "" || data.workflowInstanceDataFields.Status == "Active");
+
+ this.taskslist = res.map((element) => this.expedienteTaskPipe.transform(element));
this.taskslist = this.sortService.sortDate(this.taskslist, 'CreateDate')
+
this.expedienteGdStore.reset(this.taskslist);
this.skeletonLoader = false
})
diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.html b/src/app/pages/gabinete-digital/gabinete-digital.page.html
index 472ba6643..ac5805b8e 100644
--- a/src/app/pages/gabinete-digital/gabinete-digital.page.html
+++ b/src/app/pages/gabinete-digital/gabinete-digital.page.html
@@ -147,14 +147,14 @@
Todas as tarefas
-
{{ getAllProcessCount }} Documentos
+
{{ getAllProcessCount }} Documentos
Eventos para Aprovação
-
{{eventoaprovacaostore.countMd + eventoaprovacaostore.countPr}} Documentos
+
{{eventoaprovacaostore.countMd + eventoaprovacaostore.countPr}} Documentos
@@ -166,7 +166,7 @@
Expediente
- {{expedientegbstore.count}} Documentos
+ {{expedientegbstore.count}} Documentos
@@ -179,7 +179,7 @@
Pendentes
Meus Pendentes
-
{{pendentesstore.count}} Documentos
+
{{pendentesstore.count}} Documentos
@@ -191,7 +191,7 @@
Despachos
-
{{despachoStore.count}} Documentos
+
{{despachoStore.count}} Documentos
@@ -204,7 +204,7 @@
Pedidos de Parecer
Pedidos de Parecer solicitados por mim
-
{{pedidosstore.countparecer}} Documentos
+
{{pedidosstore.countparecer}} Documentos
@@ -217,7 +217,7 @@
Pedidos de Deferimento
-
{{pedidosstore.countdeferimento}} Documentos
+
{{pedidosstore.countdeferimento}} Documentos
@@ -231,11 +231,12 @@
Despacho do {{ environment.despachoLabel }}
Despachos criados por mim
-
{{ despachoprstore.count }} Documentos
+
{{ despachoprstore.count }} Documentos
-
+
+
@@ -244,7 +245,7 @@
Diplomas por Validar
-
{{ deplomasStore.deplomasReviewCount }} Documentos
+
{{ deplomasStore.deplomasReviewCount }} Documentos
@@ -255,7 +256,7 @@
Diplomas assinados PR
Diplomas
- {{ deplomasStore.countDiplomasAssinadoListCount }} Documentos
+ {{ deplomasStore.countDiplomasAssinadoListCount }} Documentos
@@ -268,7 +269,7 @@
Diplomas por elaborar
-
{{ deplomasStore.DiplomaGerarList.length }} Documentos
+
{{ deplomasStore.DiplomaGerarList.length }} Documentos
@@ -281,8 +282,21 @@
Diplomas para Assinar
-
{{ deplomasStore.diplomasParaAssinartCount }} Documentos
+
{{ deplomasStore.diplomasParaAssinartCount }} Documentos
+
+
+
diff --git a/src/app/pages/gabinete-digital/gabinete-digital.page.ts b/src/app/pages/gabinete-digital/gabinete-digital.page.ts
index 72e782a4b..ab0b6f288 100644
--- a/src/app/pages/gabinete-digital/gabinete-digital.page.ts
+++ b/src/app/pages/gabinete-digital/gabinete-digital.page.ts
@@ -165,6 +165,8 @@ export class GabineteDigitalPage implements OnInit {
this.segmentVista = "boxview"
}
+ this.LoadCounts();
+
const pathname = window.location.pathname
this.router.events.forEach((event) => {
if (event instanceof NavigationEnd && event.url == pathname) {
@@ -183,6 +185,7 @@ export class GabineteDigitalPage implements OnInit {
}
});
+
this.hideRefreshButton();
// this.waitForDomService.selector({
@@ -193,84 +196,87 @@ export class GabineteDigitalPage implements OnInit {
// }
// })
- this.backgroundservice.registerBackService('Online', () => {
- // this.loadAllProcesses();
- });
+ setTimeout(() => {
+
+ this.backgroundservice.registerBackService('Online', () => {
+ // this.loadAllProcesses();
+ });
+ // this.NotificationsService.registerCallback({
+ // type:'despachos',
+ // funx:() => {
+ // // this.loadCount();
+ // console.log('refresh with notification')
+ // }
+ // })
- // this.NotificationsService.registerCallback({
- // type:'despachos',
- // funx:() => {
- // // this.loadCount();
- // console.log('refresh with notification')
- // }
- // })
+ // this.NotificationsService.registerCallback({
+ // type:'*',
+ // funx:() => {
+ // // this.LoadCounts();
+ // console.log('refresh with notification *')
+ // }
+ // })
- // this.NotificationsService.registerCallback({
- // type:'*',
- // funx:() => {
- // // this.LoadCounts();
- // console.log('refresh with notification *')
- // }
- // })
-
- // this.NotificationsService.registerCallback({
- // type:'despachos-pr',
- // funx:() => {
- // // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type:'expediente',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type:'gabinete-digital',
- // funx:() => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type:'parecer',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type: 'deferimento',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type: 'diplomas-assinar',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type: 'diplomas',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
- // this.NotificationsService.registerCallback({
- // type: 'expedientes-pr',
- // funx: () => {
- // this.LoadCounts();
- // console.log('refresh with notification')
- // }
- // })
+ // this.NotificationsService.registerCallback({
+ // type:'despachos-pr',
+ // funx:() => {
+ // // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type:'expediente',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type:'gabinete-digital',
+ // funx:() => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type:'parecer',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type: 'deferimento',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type: 'diplomas-assinar',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type: 'diplomas',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ // this.NotificationsService.registerCallback({
+ // type: 'expedientes-pr',
+ // funx: () => {
+ // this.LoadCounts();
+ // console.log('refresh with notification')
+ // }
+ // })
+ }, 100);
+
}
async loadAllProcesses() {
@@ -614,7 +620,8 @@ export class GabineteDigitalPage implements OnInit {
loadNum = 0
async LoadCounts() {
-
+ this.updateAllProcess()
+
let expedientes;
this.showLoader = true
@@ -629,7 +636,7 @@ export class GabineteDigitalPage implements OnInit {
this.loadNum++;
- expedientes = (expedientes || [] ).filter(data => data.workflowInstanceDataFields.Status == "Active")
+ expedientes = (expedientes || [] ).filter(data => data.workflowInstanceDataFields.Status == "" || data.workflowInstanceDataFields.Status == "Active")
expedientes = expedientes.filter((item) => {
return item.activityInstanceName != 'Retificar Expediente'
diff --git a/src/app/pages/gabinete-digital/pedidos/pedidos.page.html b/src/app/pages/gabinete-digital/pedidos/pedidos.page.html
index ebcd60079..4fbdd39be 100644
--- a/src/app/pages/gabinete-digital/pedidos/pedidos.page.html
+++ b/src/app/pages/gabinete-digital/pedidos/pedidos.page.html
@@ -38,13 +38,13 @@
-
+
@@ -78,11 +78,11 @@
-
+
diff --git a/src/app/pages/gabinete-digital/pendentes/pendentes.page.html b/src/app/pages/gabinete-digital/pendentes/pendentes.page.html
index 63bd7008b..c5d7b43d7 100644
--- a/src/app/pages/gabinete-digital/pendentes/pendentes.page.html
+++ b/src/app/pages/gabinete-digital/pendentes/pendentes.page.html
@@ -27,7 +27,7 @@
diff --git a/src/app/pages/gabinete-digital/pendentes/pendentes.page.ts b/src/app/pages/gabinete-digital/pendentes/pendentes.page.ts
index 3a5315aa6..4df108867 100644
--- a/src/app/pages/gabinete-digital/pendentes/pendentes.page.ts
+++ b/src/app/pages/gabinete-digital/pendentes/pendentes.page.ts
@@ -106,6 +106,7 @@ export class PendentesPage implements OnInit {
pendentesList = removeDuplicate(pendentesList)
pendentesList = this.sortService.sortDate(pendentesList, 'CreateDate');
+ this.pendentesstore.reset(pendentesList);
this.listToPresent = pendentesList;
this.storage.set('pendente-list',pendentesList).then(() => {
diff --git a/src/app/services/chat/message.service.ts b/src/app/services/chat/message.service.ts
index a641a1042..f15c16ae0 100644
--- a/src/app/services/chat/message.service.ts
+++ b/src/app/services/chat/message.service.ts
@@ -1,18 +1,18 @@
import { Injectable } from '@angular/core';
import { Message } from 'src/app/models/chatMethod';
import { SessionStore } from 'src/app/store/session.service';
-import { capitalizeTxt } from 'src/plugin/text'
-import { NfService } from 'src/app/services/chat/nf.service'
+import { capitalizeTxt } from 'src/plugin/text';
+import { NfService } from 'src/app/services/chat/nf.service';
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
import { showDateDuration } from 'src/plugin/showDateDuration';
-import { ChatMethodsService } from './chat-methods.service'
-import { MessageModel } from '../../models/beast-orm'
-import { AESEncrypt } from '../aesencrypt.service'
+import { ChatMethodsService } from './chat-methods.service';
+import { MessageModel } from '../../models/beast-orm';
+import { AESEncrypt } from '../aesencrypt.service';
import { HttpEventType } from '@angular/common/http';
import { AttachmentsService } from 'src/app/services/attachments.service';
import { NetworkServiceService , ConnectionStatus} from 'src/app/services/network-service.service';
import { ChatSystemService } from './chat-system.service';
-import { v4 as uuidv4 } from 'uuid'
+import { v4 as uuidv4 } from 'uuid';
@Injectable({
providedIn: 'root'
@@ -180,7 +180,6 @@ export class MessageService {
async send(): Promise
{
if(this.messageSend) {
- console.log('sended')
return new Promise((resolve, reject) => {
resolve('solve')
})
diff --git a/src/app/services/events.service.ts b/src/app/services/events.service.ts
index 4681e0123..695670bd1 100644
--- a/src/app/services/events.service.ts
+++ b/src/app/services/events.service.ts
@@ -110,7 +110,7 @@ export class EventsService {
if (SessionStore.user.Profile == 'MDGPR') {
for (let calendar of SessionStore.user.OwnerCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if (calendar.CalendarName == 'Oficial') {
@@ -133,7 +133,7 @@ export class EventsService {
}
for (let sharedCalendar of SessionStore.user.SharedCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if (sharedCalendar.CalendarName == 'Oficial') {
@@ -158,7 +158,7 @@ export class EventsService {
else if (SessionStore.user.Profile == 'PR') {
for (let calendar of SessionStore.user.OwnerCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if (calendar.CalendarName == 'Oficial') {
this.hasOwnOficial = true
@@ -181,7 +181,7 @@ export class EventsService {
}
for (let calendar of SessionStore.user.OwnerCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if(!this.usersCalendarIds.includes(calendar.OwnerUserId)) {
this.usersCalendarIds.push(calendar.OwnerUserId)
}
@@ -213,7 +213,7 @@ export class EventsService {
}
for (let sharedCalendar of SessionStore.user.SharedCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if(!this.usersCalendarIds.includes(sharedCalendar.OwnerUserId)) {
this.usersCalendarIds.push(sharedCalendar.OwnerUserId)
@@ -246,7 +246,7 @@ export class EventsService {
for (let sharedCalendar of SessionStore.user.SharedCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
if(sharedCalendar?.OwnerUserId) {
this.GetCalendarName(sharedCalendar.OwnerUserId).subscribe((e)=> {
this.calendarNames[sharedCalendar.CalendarId] = e.FullName
@@ -266,7 +266,7 @@ export class EventsService {
}
for (let sharedCalendar of SessionStore.user.OwnerCalendars) {
- this.hasAnyCalendar = false
+ this.hasAnyCalendar = true
this.calendarNames[sharedCalendar.CalendarId] = 'Meu calendario'
diff --git a/src/app/services/notifications.service.ts b/src/app/services/notifications.service.ts
index b04c93800..84ca59d99 100644
--- a/src/app/services/notifications.service.ts
+++ b/src/app/services/notifications.service.ts
@@ -12,6 +12,7 @@ import { EventTrigger } from '../services/eventTrigger.service';
import { SessionStore } from '../store/session.service';
import { ActionPerformed, PushNotificationSchema, PushNotifications, Token, } from '@capacitor/push-notifications';
import { notificationObject } from '../models/notifications';
+import { v4 as uuidv4 } from 'uuid'
@Injectable({
providedIn: 'root'
@@ -38,43 +39,44 @@ export class NotificationsService {
private platform: Platform,
private router: Router,
private zone: NgZone,
- private eventtrigger: EventTrigger,) {
+ private eventtrigger: EventTrigger,) {}
+
+ registerCallback({type, funx, id = uuidv4()} : {
+ type: notificationObject,
+ funx: Function
+ id?: string
+ }) {
+ this.callbacks[id] = { funx, id, type}
+ return id;
}
+ deleteCallback(id) {
+ delete this.callbacks[id]
+ }
- // registerCallback({type, funx, id = uuidv4()} : {
- // type: notificationObject,
- // funx: Function
- // id?: string
- // }) {
- // this.callbacks[id] = { funx, id, type}
- // return id;
- // }
+ private async runNotificationCallback(notification) {
+ for (const [key, value] of Object.entries(this.callbacks)) {
+ if(value.type == notification.data.Object) {
- // private async runNotificationCallback(notification) {
+ const dontRepeat = await value.funx(notification)
- // for (const [key, value] of Object.entries(this.callbacks)) {
- // if(value.type == notification.data.Object) {
+ if(dontRepeat) {
+ delete this.callbacks[key]
+ }
- // const dontRepeat = await value.funx(notification)
+ } else if (value.type == '*') {
+ const dontRepeat = await value.funx(notification)
- // if(dontRepeat) {
- // delete this.callbacks[key]
- // }
+ if(dontRepeat) {
+ delete this.callbacks[key]
+ }
+ }
- // } else if (value.type == '*') {
- // const dontRepeat = await value.funx(notification)
+ }
- // if(dontRepeat) {
- // delete this.callbacks[key]
- // }
- // }
-
- // }
-
- // }
+ }
getTokenByUserIdAndId(user, userID) {
// const geturl = environment.apiURL + 'notifications/user/' + userID;
diff --git a/src/app/services/rules/event.service.ts b/src/app/services/rules/event.service.ts
index a4f4e1be3..cb03b0a69 100644
--- a/src/app/services/rules/event.service.ts
+++ b/src/app/services/rules/event.service.ts
@@ -21,9 +21,14 @@ export class EventService {
if(this.p.userRole(['PR'])) {
+ alert('pr')
return this.eventService.postEventPr(body, calendar)
- } else {
+ } else if(this.p.userRole(['MDGPR'])) {
+ alert('md')
return this.eventService.postEventMd(body, calendar)
+ } else {
+ alert('other')
+ return this.eventService.postEventGeneric(body, calendar, body.CalendarId)
}
}
diff --git a/src/app/shared/agenda/event-list/event-list.page.ts b/src/app/shared/agenda/event-list/event-list.page.ts
index 788f91137..953e2c271 100644
--- a/src/app/shared/agenda/event-list/event-list.page.ts
+++ b/src/app/shared/agenda/event-list/event-list.page.ts
@@ -59,7 +59,7 @@ export class EventListPage implements OnInit {
ngOnChanges() {
this.LoadToApproveEvents();
setTimeout(() => {
- this.LoadToApproveEvents();
+ this.LoadToApproveEventsNoLoader();
}, 3000)
}
@@ -107,6 +107,43 @@ export class EventListPage implements OnInit {
}
+ }
+
+ async LoadToApproveEventsNoLoader() {
+
+ try {
+ if(this.segment == 'MDGPR') {
+ let mdEventsOficial = await this.processes.GetTasksList('Agenda Oficial MDGPR', false).toPromise();
+ let mdEventsPessoal = await this.processes.GetTasksList('Agenda Pessoal MDGPR', false).toPromise();
+
+ let allEvents = mdEventsOficial.concat(mdEventsPessoal);
+ if(allEvents.length > 0) {
+ this.eventsMDGPRList = this.sortService.sortArrayByDate(allEvents).reverse();
+ }
+ this.showLoader = false;
+ }
+ 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();
+ let allEvents = prEventsOficial.concat(prEventsPessoal);
+
+ if(allEvents.length > 0) {
+ this.eventsPRList = this.sortService.sortArrayByDate(allEvents).reverse();
+ }
+ this.showLoader = false;
+ } else {
+ let genericEvents = await this.processes.GetTasksList('Agendar Evento', false).toPromise();
+ if(genericEvents.length > 0) {
+ this.eventsGenericList = this.sortService.sortArrayByDate(genericEvents).reverse();
+ }
+ this.showLoader = false;
+ }
+
+ } catch(erro) {
+ this.showLoader = false;
+ }
+
+
}
async openApproveModal(eventSerialNumber, data) {
diff --git a/src/app/shared/agenda/view-event/view-event.page.html b/src/app/shared/agenda/view-event/view-event.page.html
index 137f98ba9..9aecb93c1 100644
--- a/src/app/shared/agenda/view-event/view-event.page.html
+++ b/src/app/shared/agenda/view-event/view-event.page.html
@@ -82,7 +82,7 @@
Detalhes
- {{ loadedEvent.Body.Text }}
+ {{ loadedEvent.Body.Text }}
diff --git a/src/app/shared/agenda/view-event/view-event.page.ts b/src/app/shared/agenda/view-event/view-event.page.ts
index ae151e20b..d0af86e44 100644
--- a/src/app/shared/agenda/view-event/view-event.page.ts
+++ b/src/app/shared/agenda/view-event/view-event.page.ts
@@ -105,9 +105,6 @@ export class ViewEventPage implements OnInit {
if(this.sesseionStora.user.Profile == 'MDGPR' || this.sesseionStora.user.Profile == 'PR') {
this.eventsService.getEvent(this.eventId).subscribe(res => {
- const div = document.createElement("div")
- div.innerHTML = res.Body.Text
- res.Body.Text = div.innerText
this.loadedEvent = res;
this.today = new Date(res.StartDate);
diff --git a/src/app/shared/gabinete-digital/all-processes/all-processes.page.html b/src/app/shared/gabinete-digital/all-processes/all-processes.page.html
index 9d63acd23..5d11c4f1f 100644
--- a/src/app/shared/gabinete-digital/all-processes/all-processes.page.html
+++ b/src/app/shared/gabinete-digital/all-processes/all-processes.page.html
@@ -2,11 +2,11 @@
Todas as tarefas
-
+
diff --git a/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html b/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html
index 045fab5a4..1ffee9b0d 100644
--- a/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html
+++ b/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html
@@ -24,16 +24,16 @@
-
+
-
+
-
+
@@ -52,9 +52,9 @@
-
+
-
+
-
+
-
+
@@ -90,10 +90,10 @@
-
+
+ *ngIf="eventaprovacaostore.listpr.length < 1">
Lista vazia
diff --git a/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts b/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts
index 83ec4a90d..ade3a41bb 100644
--- a/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts
+++ b/src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts
@@ -81,7 +81,7 @@ export class EventsToApprovePage implements OnInit {
})
- //this.eventaprovacaostore.resetmd(this.sortService.sortDate(this.eventsMDGPRList, 'CreateDate'));
+ this.eventaprovacaostore.resetmd(this.sortService.sortDate(this.eventsMDGPRList, 'CreateDate'));
}
else if(this.segment == 'PR') {
let prEventsOficial = await this.processes.GetTasksList('Agenda Oficial PR', false).toPromise();
@@ -97,7 +97,7 @@ export class EventsToApprovePage implements OnInit {
this.storage.set('event-to-aprovePR',this.eventsPRList).then(() => {
})
- //this.eventaprovacaostore.resetpr(this.sortService.sortDate(this.eventsPRList, 'CreateDate'));
+ this.eventaprovacaostore.resetpr(this.sortService.sortDate(this.eventsPRList, 'CreateDate'));
}
this.showLoader = false;
}
diff --git a/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts b/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
index 634e32cd5..dcdaac781 100644
--- a/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
+++ b/src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts
@@ -66,11 +66,8 @@ export class ExpedientesPrPage implements OnInit {
this.processes.GetTaskListExpediente(false).subscribe(result => {
this.taskslist = [];
- let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "Active");
- res.forEach(element => {
- let task = this.expedienteTaskPipe.transform(element);
- this.taskslist.push(task);
- });
+ let res = result.reverse().filter(data => data.workflowInstanceDataFields.Status == "" || data.workflowInstanceDataFields.Status == "Active");
+ this.taskslist = res.map((element) => this.expedienteTaskPipe.transform(element));
this.taskslist = this.sortService.sortDate(this.taskslist, 'CreateDate')
diff --git a/src/app/shared/gabinete-digital/expedients/expedients.page.ts b/src/app/shared/gabinete-digital/expedients/expedients.page.ts
index fff5fee73..1f1b46bf3 100644
--- a/src/app/shared/gabinete-digital/expedients/expedients.page.ts
+++ b/src/app/shared/gabinete-digital/expedients/expedients.page.ts
@@ -65,17 +65,16 @@ export class ExpedientsPage implements OnInit {
this.taskslist = [];
this.skeletonLoader = false
- let res = result.filter(data => data.workflowInstanceDataFields.Status == "Active");
- res.forEach(element => {
- let task = this.expedienteTaskPipe.transform(element)
- this.taskslist.push(task);
+ let res = result.filter(data => data.workflowInstanceDataFields.Status == "" || data.workflowInstanceDataFields.Status == "Active");
- });
+ this.taskslist = res.map((e) => this.expedienteTaskPipe.transform(e))
this.taskslist = this.sortService.sortDate(this.taskslist, 'CreateDate')
this.addProcessTODb(this.taskslist);
+
this.taskslist = this.taskslist.filter(function(item) {
return item.activityInstanceName != 'Retificar Expediente'
- })
+ })
+
this.expedientegbstore.reset(this.taskslist);
}, (error) => {
this.getEventsFromLocalDb();
@@ -94,16 +93,16 @@ export class ExpedientsPage implements OnInit {
})
}
- doRefresh() {
+ doRefresh() {
- setTimeout(() => {
- this.LoadList();
- }, 1000)
-
- }
-
- goToExpediente(serialNumber: any) {
- this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
- }
+ setTimeout(() => {
+ this.LoadList();
+ }, 1000)
+
+ }
+
+ goToExpediente(serialNumber: any) {
+ this.router.navigate(['/home/gabinete-digital/expediente', serialNumber, 'gabinete-digital']);
+ }
}
diff --git a/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.scss b/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.scss
index 5ece2929a..e69265ed8 100644
--- a/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.scss
+++ b/src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.scss
@@ -30,28 +30,19 @@
margin-bottom: 5px !important;
margin-top: 5px !important;
}
-@media only screen and (max-width: 800px) {
- .btn-ok, .btn-cancel, .btn-delete{
- width: 100% !important;
- }
+
+.arrow-right{
+ display: flex;
+ justify-content: flex-end;
}
-@media only screen and (min-width: 1024px) {
- .arrow-right{
- display: flex;
- justify-content: flex-end;
- }
- .btn-cancel{
- width: 100% !important;
- margin-bottom: 10px !important;
- }
- .btn-delete, .btn-ok{
- width: 100% !important;
- margin-bottom: 10px !important;
- margin-top: 10px !important;
- }
- /* .solid{
- display: block;
- } */
+.btn-cancel{
+ width: 100% !important;
+ margin-bottom: 10px !important;
+}
+.btn-delete, .btn-ok{
+ width: 100% !important;
+ margin-bottom: 10px !important;
+ margin-top: 10px !important;
}
diff --git a/src/app/shared/popover/opts-expediente/opts-expediente.page.html b/src/app/shared/popover/opts-expediente/opts-expediente.page.html
index 65e7b627b..b3a5d77c1 100644
--- a/src/app/shared/popover/opts-expediente/opts-expediente.page.html
+++ b/src/app/shared/popover/opts-expediente/opts-expediente.page.html
@@ -8,8 +8,8 @@
-
-
+
+
diff --git a/src/app/shared/popover/opts-expediente/opts-expediente.page.ts b/src/app/shared/popover/opts-expediente/opts-expediente.page.ts
index 6d271bde9..5a2262643 100644
--- a/src/app/shared/popover/opts-expediente/opts-expediente.page.ts
+++ b/src/app/shared/popover/opts-expediente/opts-expediente.page.ts
@@ -17,7 +17,6 @@ import { PermissionService } from 'src/app/services/permission.service';
import { ThemeService } from 'src/app/services/theme.service'
import { NewGroupPage } from 'src/app/pages/chat/new-group/new-group.page';
import { RouteService } from 'src/app/services/route.service';
-import { LoginUserRespose } from 'src/app/models/user.model';
import { SessionStore } from 'src/app/store/session.service';
@Component({
@@ -36,7 +35,7 @@ export class OptsExpedientePage implements OnInit {
searchDocumentPipe = new SearchDocumentPipe()
documents:SearchList[] = [];
- loggeduser: LoginUserRespose;
+ SessionStore = SessionStore;
constructor(
private popoverController: PopoverController,
diff --git a/src/app/shared/popover/request-options/request-options.page.html b/src/app/shared/popover/request-options/request-options.page.html
index 20ecf6174..55d683e44 100644
--- a/src/app/shared/popover/request-options/request-options.page.html
+++ b/src/app/shared/popover/request-options/request-options.page.html
@@ -5,7 +5,7 @@
-
+
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index 10909d23b..aaefbfe6d 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -3,4 +3,4 @@ import { oaprDev } from './suport/oapr'
import { doneITDev } from './suport/doneIt'
-export const environment: Environment = oaprDev;
\ No newline at end of file
+export const environment: Environment = doneITDev;
\ No newline at end of file
diff --git a/src/global.scss b/src/global.scss
index 92657ef51..06a847a14 100644
--- a/src/global.scss
+++ b/src/global.scss
@@ -1426,4 +1426,9 @@ $font-size: 11pt;
ngx-mat-datetime-content button.mat-stroked-button {
top: -56px;
margin-bottom: -35px;
+}
+
+pre {
+ font-family: 'Roboto' !important;
+ font-size: 12pt !important;
}
\ No newline at end of file
diff --git a/version/git-version.ts b/version/git-version.ts
index c09cdb5d6..e2586510d 100644
--- a/version/git-version.ts
+++ b/version/git-version.ts
@@ -1,12 +1,12 @@
export let versionData = {
- "shortSHA": "e0b1892de",
- "SHA": "e0b1892def4a79cbaff67ce690683ae1b3403470",
+ "shortSHA": "8df8f98c4",
+ "SHA": "8df8f98c4eccab3ae1fd0a5f6e3171f35ae3b048",
"branch": "no_bug_movemente",
"lastCommitAuthor": "'Peter Maquiran'",
- "lastCommitTime": "'Wed Feb 1 09:17:48 2023 +0100'",
- "lastCommitMessage": "remove pedido de deferimento pr",
- "lastCommitNumber": "4701",
+ "lastCommitTime": "'Wed Feb 1 09:20:58 2023 +0100'",
+ "lastCommitMessage": "fix",
+ "lastCommitNumber": "4702",
"change": "",
- "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged
...\" to unstage)\n\tmodified: src/app/modals/document-detail/document-detail.page.html\n\tmodified: src/environments/environment.prod.ts",
+ "changeStatus": "On branch no_bug_movemente\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/home/home.page.ts\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n\tmodified: src/app/modals/forward/forward.page.ts\n\tmodified: src/app/pages/agenda/agenda.page.html\n\tmodified: src/app/pages/agenda/view-event/view-event.page.html\n\tmodified: src/app/pages/agenda/view-event/view-event.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despacho-pr/despacho-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos/despachos.page.html\n\tmodified: src/app/pages/gabinete-digital/diplomas-assinar/diplomas-assinar.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas-gerar/diplomas-gerar.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas/diplomas.page.ts\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.html\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente.page.html\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente.page.ts\n\tmodified: src/app/pages/gabinete-digital/expedientes-pr/expedientes-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.ts\n\tmodified: src/app/pages/gabinete-digital/pedidos/pedidos.page.html\n\tmodified: src/app/pages/gabinete-digital/pendentes/pendentes.page.html\n\tmodified: src/app/pages/gabinete-digital/pendentes/pendentes.page.ts\n\tmodified: src/app/services/chat/message.service.ts\n\tmodified: src/app/services/events.service.ts\n\tmodified: src/app/services/notifications.service.ts\n\tmodified: src/app/services/rules/event.service.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.ts\n\tmodified: src/app/shared/agenda/view-event/view-event.page.html\n\tmodified: src/app/shared/agenda/view-event/view-event.page.ts\n\tmodified: src/app/shared/gabinete-digital/all-processes/all-processes.page.html\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts\n\tmodified: src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.page.ts\n\tmodified: src/app/shared/gabinete-digital/expedients/expedients.page.ts\n\tmodified: src/app/shared/popover/event-details-documents-options/event-details-documents-options.page.scss\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.html\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.ts\n\tmodified: src/app/shared/popover/request-options/request-options.page.html\n\tmodified: src/environments/environment.ts\n\tmodified: src/global.scss\n\tmodified: version/git-version.ts",
"changeAuthor": "peter.maquiran"
}
\ No newline at end of file