mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
git pull made and peter chnages recived
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
||||||
import { IonicModule } from '@ionic/angular';
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
import { HomePageRoutingModule } from './home-routing.module';
|
import { HomePageRoutingModule } from './home-routing.module';
|
||||||
@@ -15,7 +15,8 @@ import { HomePage } from './home.page';
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
HomePageRoutingModule,
|
HomePageRoutingModule,
|
||||||
LazyLoadImageModule
|
LazyLoadImageModule,
|
||||||
|
HeaderPageModule
|
||||||
],
|
],
|
||||||
declarations: [HomePage],
|
declarations: [HomePage],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
|
|
||||||
|
|
||||||
<ion-tabs class="tab" >
|
<ion-tabs class="tab" >
|
||||||
|
|
||||||
|
<ion-header class="ion-no-border ">
|
||||||
|
<app-header ></app-header>
|
||||||
|
</ion-header>
|
||||||
|
|
||||||
|
|
||||||
<ion-tab-bar *ngIf="p.userPermissionCount([permissionList.Agenda.access, permissionList.Gabinete.access, permissionList.Actions.access, permissionList.Chat.access]) >= 2 || (p.userPermission([permissionList.Agenda.access]) && SessionStore.user.OwnerCalendars.length != 0) || p.userPermission([permissionList.Gabinete.access])" class="bottoms" slot="bottom">
|
<ion-tab-bar *ngIf="p.userPermissionCount([permissionList.Agenda.access, permissionList.Gabinete.access, permissionList.Actions.access, permissionList.Chat.access]) >= 2 || (p.userPermission([permissionList.Agenda.access]) && SessionStore.user.OwnerCalendars.length != 0) || p.userPermission([permissionList.Gabinete.access])" class="bottoms" slot="bottom">
|
||||||
|
|
||||||
<ion-tab-button *ngIf="SessionStore.user.OwnerCalendars.length >= 1 || p.userPermission([permissionList.Gabinete.access])" (click)="goto('/home/events')" tab="events" [class.active]="ActiveTabService.pages.home">
|
<ion-tab-button *ngIf="SessionStore.user.OwnerCalendars.length >= 1 || p.userPermission([permissionList.Gabinete.access])" (click)="goto('/home/events')" tab="events" [class.active]="ActiveTabService.pages.home">
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
|
|
||||||
import { IonicModule } from '@ionic/angular';
|
import { IonicModule } from '@ionic/angular';
|
||||||
|
|
||||||
import { IndexPageRoutingModule } from './index-routing.module';
|
import { IndexPageRoutingModule } from './index-routing.module';
|
||||||
@@ -13,7 +12,7 @@ import { IndexPage } from './index.page';
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
IndexPageRoutingModule
|
IndexPageRoutingModule,
|
||||||
],
|
],
|
||||||
declarations: [IndexPage]
|
declarations: [IndexPage]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { models } from 'beast-orm'
|
// import { models } from 'beast-orm'
|
||||||
|
import { models } from 'src/plugin/src'
|
||||||
import { environment } from 'src/environments/environment'
|
import { environment } from 'src/environments/environment'
|
||||||
const { ArrayField, JsonField} = models.indexedDB.fields
|
const { ArrayField, JsonField} = models.indexedDB.fields
|
||||||
|
|
||||||
@@ -47,4 +48,37 @@ models.register({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
window['MessageModel'] = MessageModel
|
window['MessageModel'] = MessageModel
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export class ActionModel extends models.Model{
|
||||||
|
ProcessId = models.IntegerField({unique: true})
|
||||||
|
Description = models.CharField()
|
||||||
|
Detail = models.CharField()
|
||||||
|
DateBegin = models.CharField()
|
||||||
|
DateEnd = models.CharField()
|
||||||
|
ActionType = models.CharField()
|
||||||
|
}
|
||||||
|
|
||||||
|
export class PublicationModel extends models.Model{
|
||||||
|
DateIndex = models.CharField()
|
||||||
|
DocumentId = models.IntegerField({unique: true})
|
||||||
|
ProcessId = models.CharField()
|
||||||
|
Title = models.CharField()
|
||||||
|
Message = models.CharField()
|
||||||
|
DatePublication = models.CharField()
|
||||||
|
OriginalFileName = models.CharField()
|
||||||
|
FileBase64 = models.CharField()
|
||||||
|
FileExtension = models.CharField()
|
||||||
|
OrganicEntityId = models.IntegerField()
|
||||||
|
}
|
||||||
|
|
||||||
|
models.register({
|
||||||
|
databaseName: 'actions'+environment.version.lastCommitNumber + environment.id,
|
||||||
|
type: 'indexedDB',
|
||||||
|
version: 14,
|
||||||
|
models: [PublicationModel, ActionModel]
|
||||||
|
})
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
export class Publication{
|
export class Publication{
|
||||||
DateIndex: Date | string;
|
DateIndex: Date | string;
|
||||||
DocumentId:string;
|
DocumentId: number;
|
||||||
ProcessId:string;
|
ProcessId:string;
|
||||||
Title: string;
|
Title: string;
|
||||||
Message: string;
|
Message: string;
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import { CalendarModule, DateAdapter } from 'angular-calendar';
|
|||||||
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
||||||
|
|
||||||
import { AttendeeModalPageModule } from 'src/app/shared/event/attendee-modal/attendee-modal.module';
|
import { AttendeeModalPageModule } from 'src/app/shared/event/attendee-modal/attendee-modal.module';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { ViewEventPageModule } from 'src/app/shared/agenda/view-event/view-event.module';
|
import { ViewEventPageModule } from 'src/app/shared/agenda/view-event/view-event.module';
|
||||||
import { ApproveEventPageModule } from 'src/app/shared/agenda/approve-event/approve-event.module';
|
import { ApproveEventPageModule } from 'src/app/shared/agenda/approve-event/approve-event.module';
|
||||||
import { NewEventPageModule } from 'src/app/shared/agenda/new-event/new-event.module';
|
import { NewEventPageModule } from 'src/app/shared/agenda/new-event/new-event.module';
|
||||||
@@ -43,7 +42,6 @@ import { EditEventToApprovePageModule } from 'src/app/shared/agenda/edit-event-t
|
|||||||
AgendaPageRoutingModule,
|
AgendaPageRoutingModule,
|
||||||
NgCalendarModule,
|
NgCalendarModule,
|
||||||
// entryComponents
|
// entryComponents
|
||||||
HeaderPageModule,
|
|
||||||
ViewEventPageModule,
|
ViewEventPageModule,
|
||||||
AttendeeModalPageModule,
|
AttendeeModalPageModule,
|
||||||
EventsToApprovePageModule,
|
EventsToApprovePageModule,
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border ">
|
|
||||||
<app-header ></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<!-- Progress bar -->
|
<!-- Progress bar -->
|
||||||
<ion-content id="timeline-conteiner agenda-container pt-20" class="timeline ">
|
<ion-content id="timeline-conteiner agenda-container pt-20" class="timeline ">
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
@@ -252,7 +248,7 @@
|
|||||||
<div class="height-100">
|
<div class="height-100">
|
||||||
<div class="timeline-container height-100 d-flex pt-20 pl-20 pl-20 filter-{{segment}}" >
|
<div class="timeline-container height-100 d-flex pt-20 pl-20 pl-20 filter-{{segment}}" >
|
||||||
|
|
||||||
<div class="ss-timeline timeline-mobile flex-grow-1 d-md-none text-black height-100 width-100 overflow-y-auto" >
|
<div class="ss-timeline timeline-mobile flex-grow-1 pr-10 d-md-none text-black height-100 width-100 overflow-y-auto" >
|
||||||
<div *ngFor="let events of TimelineMDList | keyvalue;" >
|
<div *ngFor="let events of TimelineMDList | keyvalue;" >
|
||||||
|
|
||||||
<div class="EventListBox-container" >
|
<div class="EventListBox-container" >
|
||||||
|
|||||||
@@ -226,6 +226,7 @@ export class NewEventPage implements OnInit {
|
|||||||
_date .setMinutes(minutes + 15)
|
_date .setMinutes(minutes + 15)
|
||||||
return _date
|
return _date
|
||||||
}
|
}
|
||||||
|
|
||||||
setStartDate() {
|
setStartDate() {
|
||||||
if(!this.postEvent.StartDate) {
|
if(!this.postEvent.StartDate) {
|
||||||
this.postEvent.StartDate = this.roundTimeQuarterHour();
|
this.postEvent.StartDate = this.roundTimeQuarterHour();
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { ViewEventPageRoutingModule } from './view-event-routing.module';
|
|||||||
import { ViewEventPage } from './view-event.page';
|
import { ViewEventPage } from './view-event.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +18,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ViewEventPageRoutingModule,
|
ViewEventPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ViewEventPage]
|
declarations: [ViewEventPage]
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border" [class.d-md-none]="isModal" *ngIf="header">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="container-wrapper main-content-l height-100 white ">
|
<ion-content class="container-wrapper main-content-l height-100 white ">
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
<ion-progress-bar type="indeterminate" *ngIf="showLoader"></ion-progress-bar>
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ import { EditGroupPageModule } from 'src/app/shared/chat/edit-group/edit-group.m
|
|||||||
import { GroupContactsPageModule } from 'src/app/shared/chat/group-messages/group-contacts/group-contacts.module';
|
import { GroupContactsPageModule } from 'src/app/shared/chat/group-messages/group-contacts/group-contacts.module';
|
||||||
import { MessagesPageModule } from 'src/app/shared/chat/messages/messages.module';
|
import { MessagesPageModule } from 'src/app/shared/chat/messages/messages.module';
|
||||||
import { EmptyChatPageModule } from 'src/app/shared/chat/empty-chat/empty-chat.module';
|
import { EmptyChatPageModule } from 'src/app/shared/chat/empty-chat/empty-chat.module';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { NewEventPageModule } from 'src/app/shared/agenda/new-event/new-event.module';
|
import { NewEventPageModule } from 'src/app/shared/agenda/new-event/new-event.module';
|
||||||
import { AttendeeModalPageModule } from 'src/app/shared/event/attendee-modal/attendee-modal.module';
|
import { AttendeeModalPageModule } from 'src/app/shared/event/attendee-modal/attendee-modal.module';
|
||||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||||
@@ -32,7 +31,6 @@ import { ImageCropperModule } from 'ngx-image-cropper';
|
|||||||
PipesModule,
|
PipesModule,
|
||||||
ChatPageRoutingModule,
|
ChatPageRoutingModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
HeaderPageModule,
|
|
||||||
MessagesPageModule,
|
MessagesPageModule,
|
||||||
ContactsPageModule,
|
ContactsPageModule,
|
||||||
GroupMessagesPageModule,
|
GroupMessagesPageModule,
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="height-100 container-wrapper">
|
<ion-content class="height-100 container-wrapper">
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
|
||||||
|
|||||||
@@ -549,6 +549,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
else if (res.data == 'edit') {
|
else if (res.data == 'edit') {
|
||||||
this.editGroup(this.roomId);
|
this.editGroup(this.roomId);
|
||||||
|
} else if (res.data == 'addUser') {
|
||||||
|
|
||||||
|
this.addContacts();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -823,25 +826,27 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addContacts() {
|
async addContacts() {
|
||||||
|
if(this.isAdmin) {
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: GroupContactsPage,
|
component: GroupContactsPage,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
isCreated: this.isGroupCreated,
|
isCreated: this.isGroupCreated,
|
||||||
room: this.room,
|
room: this.room,
|
||||||
members: this.members,
|
members: this.members,
|
||||||
name: this.room.name,
|
name: this.room.name,
|
||||||
},
|
},
|
||||||
cssClass: 'contacts',
|
cssClass: 'contacts',
|
||||||
backdropDismiss: false
|
backdropDismiss: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await modal.present();
|
||||||
|
|
||||||
|
modal.onDidDismiss().then(() => {
|
||||||
|
this.getRoomInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
await modal.present();
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
|
||||||
this.getRoomInfo();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async editGroup(roomId) {
|
async editGroup(roomId) {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { FormsModule } from '@angular/forms';
|
|||||||
import { IonicModule } from '@ionic/angular';
|
import { IonicModule } from '@ionic/angular';
|
||||||
import { EventsPageRoutingModule } from './events-routing.module';
|
import { EventsPageRoutingModule } from './events-routing.module';
|
||||||
import { EventsPage } from './events.page';
|
import { EventsPage } from './events.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -12,7 +11,6 @@ import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
EventsPageRoutingModule,
|
EventsPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
//
|
//
|
||||||
],
|
],
|
||||||
declarations: [EventsPage],
|
declarations: [EventsPage],
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<!-- <ion-header class="ion-no-border init-event-header"> -->
|
<!-- <ion-header class="ion-no-border init-event-header"> -->
|
||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
|
|||||||
@@ -1,5 +1,21 @@
|
|||||||
@import '~src/function.scss';
|
@import '~src/function.scss';
|
||||||
|
|
||||||
|
:host {
|
||||||
|
// mobile
|
||||||
|
background: var(--background-mobile);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// desktop
|
||||||
|
@media only screen and (min-width: 1365px) {
|
||||||
|
// set color to body
|
||||||
|
:host {
|
||||||
|
// mobile
|
||||||
|
background: var(--background-desktop) !important ;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* HEADER */
|
/* HEADER */
|
||||||
.bg-blue{
|
.bg-blue{
|
||||||
--background:#0782c9;
|
--background:#0782c9;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { ExpedienteGdStore } from 'src/app/store/expedientegd-store.service';
|
|||||||
import { SqliteService } from 'src/app/services/sqlite.service';
|
import { SqliteService } from 'src/app/services/sqlite.service';
|
||||||
import { BackgroundService } from 'src/app/services/background.service';
|
import { BackgroundService } from 'src/app/services/background.service';
|
||||||
import { momentG } from 'src/plugin/momentG';
|
import { momentG } from 'src/plugin/momentG';
|
||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service';
|
||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
import { ViewEventPage } from 'src/app/modals/view-event/view-event.page';
|
import { ViewEventPage } from 'src/app/modals/view-event/view-event.page';
|
||||||
@@ -130,8 +130,8 @@ export class EventsPage implements OnInit {
|
|||||||
if (event) {
|
if (event) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
event?.target?.complete();
|
event?.target?.complete();
|
||||||
} catch(error) {}
|
} catch(error) {}
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
this.RefreshEvents();
|
this.RefreshEvents();
|
||||||
@@ -166,7 +166,7 @@ export class EventsPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.showAgendaLoader = false;
|
this.showAgendaLoader = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,9 +8,6 @@ import { DespachoPrPageRoutingModule } from './despacho-pr-routing.module';
|
|||||||
|
|
||||||
import { DespachoPrPage } from './despacho-pr.page';
|
import { DespachoPrPage } from './despacho-pr.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -18,7 +15,6 @@ import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DespachoPrPageRoutingModule,
|
DespachoPrPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
],
|
],
|
||||||
declarations: [DespachoPrPage]
|
declarations: [DespachoPrPage]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
<ion-content class="container-wrapper">
|
<ion-content class="container-wrapper">
|
||||||
<div class="main-content d-flex height-100 pl-20 overflow-hidden">
|
<div class="main-content d-flex height-100 pl-20 overflow-hidden">
|
||||||
<div class="content d-flex flex-column" *ngIf="task">
|
<div class="content d-flex flex-column" *ngIf="task">
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { DespachosPrPageRoutingModule } from './despachos-pr-routing.module';
|
import { DespachosPrPageRoutingModule } from './despachos-pr-routing.module';
|
||||||
|
|
||||||
import { DespachosPrPage } from './despachos-pr.page';
|
import { DespachosPrPage } from './despachos-pr.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DespachosPrPageRoutingModule,
|
DespachosPrPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [DespachosPrPage]
|
declarations: [DespachosPrPage]
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { DespachoPageRoutingModule } from './despacho-routing.module';
|
|||||||
|
|
||||||
import { DespachoPage } from './despacho.page';
|
import { DespachoPage } from './despacho.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { TaskDetailsPageModule } from 'src/app/shared/gabinete-digital/generic/task-details/task-details.module'
|
import { TaskDetailsPageModule } from 'src/app/shared/gabinete-digital/generic/task-details/task-details.module'
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,8 +17,6 @@ import { TaskDetailsPageModule } from 'src/app/shared/gabinete-digital/generic/t
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DespachoPageRoutingModule,
|
DespachoPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
// entries
|
|
||||||
TaskDetailsPageModule
|
TaskDetailsPageModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="container-wrapper">
|
<ion-content class="container-wrapper">
|
||||||
<div class="main-content d-flex height-100 overflow-hidden">
|
<div class="main-content d-flex height-100 overflow-hidden">
|
||||||
<div class="content d-flex flex-column" *ngIf="task">
|
<div class="content d-flex flex-column" *ngIf="task">
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { DespachosPageRoutingModule } from './despachos-routing.module';
|
|||||||
|
|
||||||
import { DespachosPage } from './despachos.page';
|
import { DespachosPage } from './despachos.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +17,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DespachosPageRoutingModule,
|
DespachosPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|||||||
-3
@@ -8,8 +8,6 @@ import { DiplomaAssinarPageRoutingModule } from './diploma-assinar-routing.modul
|
|||||||
|
|
||||||
import { DiplomaAssinarPage } from './diploma-assinar.page';
|
import { DiplomaAssinarPage } from './diploma-assinar.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +17,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DiplomaAssinarPageRoutingModule,
|
DiplomaAssinarPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [DiplomaAssinarPage]
|
declarations: [DiplomaAssinarPage]
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { DiplomasAssinarPageRoutingModule } from './diplomas-assinar-routing.module';
|
import { DiplomasAssinarPageRoutingModule } from './diplomas-assinar-routing.module';
|
||||||
|
|
||||||
import { DiplomasAssinarPage } from './diplomas-assinar.page';
|
import { DiplomasAssinarPage } from './diplomas-assinar.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -18,7 +15,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
DiplomasAssinarPageRoutingModule,
|
DiplomasAssinarPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { DiplomasGerarPageRoutingModule } from './diplomas-gerar-routing.module';
|
import { DiplomasGerarPageRoutingModule } from './diplomas-gerar-routing.module';
|
||||||
|
|
||||||
import { DiplomasGerarPage } from './diplomas-gerar.page';
|
import { DiplomasGerarPage } from './diplomas-gerar.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -16,7 +15,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
DiplomasGerarPageRoutingModule,
|
DiplomasGerarPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule
|
BtnModalDismissPageModule
|
||||||
],
|
],
|
||||||
declarations: [DiplomasGerarPage]
|
declarations: [DiplomasGerarPage]
|
||||||
|
|||||||
@@ -7,15 +7,12 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { DiplomasGerarPageRoutingModule } from './diplomas-gerar-routing.module';
|
import { DiplomasGerarPageRoutingModule } from './diplomas-gerar-routing.module';
|
||||||
|
|
||||||
import { DiplomasGerarPage } from './diplomas-gerar.page';
|
import { DiplomasGerarPage } from './diplomas-gerar.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
DiplomasGerarPageRoutingModule,
|
DiplomasGerarPageRoutingModule,
|
||||||
HeaderPageModule
|
|
||||||
],
|
],
|
||||||
declarations: [DiplomasGerarPage]
|
declarations: [DiplomasGerarPage]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { DiplomaPageRoutingModule } from './diploma-routing.module';
|
import { DiplomaPageRoutingModule } from './diploma-routing.module';
|
||||||
|
|
||||||
import { DiplomaPage } from './diploma.page';
|
import { DiplomaPage } from './diploma.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
DiplomaPageRoutingModule,
|
DiplomaPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [DiplomaPage]
|
declarations: [DiplomaPage]
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="container-wrapper">
|
<ion-content class="container-wrapper">
|
||||||
<div class="main-content d-flex height-100 overflow-hidden">
|
<div class="main-content d-flex height-100 overflow-hidden">
|
||||||
<div class="content d-flex flex-column" *ngIf="task">
|
<div class="content d-flex flex-column" *ngIf="task">
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
DiplomasPageRoutingModule,
|
DiplomasPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [DiplomasPage]
|
declarations: [DiplomasPage]
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
|
|
||||||
<ion-header class="ion-no-border header-2">
|
<ion-header class="ion-no-border header-2">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<app-btn-modal-dismiss (click)="goBack()"></app-btn-modal-dismiss>
|
<app-btn-modal-dismiss (click)="goBack()"></app-btn-modal-dismiss>
|
||||||
|
|||||||
-2
@@ -7,7 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { ApproveEventModalPageRoutingModule } from './approve-event-modal-routing.module';
|
import { ApproveEventModalPageRoutingModule } from './approve-event-modal-routing.module';
|
||||||
|
|
||||||
import { ApproveEventModalPage } from './approve-event-modal.page';
|
import { ApproveEventModalPage } from './approve-event-modal.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -16,7 +15,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
ApproveEventModalPageRoutingModule,
|
ApproveEventModalPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ApproveEventModalPage]
|
declarations: [ApproveEventModalPage]
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { ApproveEventPageRoutingModule } from './approve-event-routing.module';
|
import { ApproveEventPageRoutingModule } from './approve-event-routing.module';
|
||||||
|
|
||||||
import { ApproveEventPage } from './approve-event.page';
|
import { ApproveEventPage } from './approve-event.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ApproveEventPageRoutingModule,
|
ApproveEventPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ApproveEventPage]
|
declarations: [ApproveEventPage]
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
<ion-content id="main-content" class="container-wrapper">
|
<ion-content id="main-content" class="container-wrapper">
|
||||||
<div class="main-content height-100" *ngIf="loadedEvent" >
|
<div class="main-content height-100" *ngIf="loadedEvent" >
|
||||||
<div class="d-flex width-100">
|
<div class="d-flex width-100">
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { EventListPageRoutingModule } from './event-list-routing.module';
|
|||||||
import { EventListPage } from './event-list.page';
|
import { EventListPage } from './event-list.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +18,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
EventListPageRoutingModule,
|
EventListPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [EventListPage],
|
declarations: [EventListPage],
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-header class="ion-no-border header-2">
|
<ion-header class="ion-no-border header-2">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="header-icon-left">
|
<div class="header-icon-left">
|
||||||
|
|||||||
-3
@@ -8,8 +8,6 @@ import { ExpedienteDetailPageRoutingModule } from './expediente-detail-routing.m
|
|||||||
|
|
||||||
import { ExpedienteDetailPage } from './expediente-detail.page';
|
import { ExpedienteDetailPage } from './expediente-detail.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +17,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ExpedienteDetailPageRoutingModule,
|
ExpedienteDetailPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ExpedienteDetailPage]
|
declarations: [ExpedienteDetailPage]
|
||||||
|
|||||||
-4
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<div class="ion-page d-none" id="main-content">
|
<div class="ion-page d-none" id="main-content">
|
||||||
<ion-menu-button></ion-menu-button>
|
<ion-menu-button></ion-menu-button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import { ExpedientePageRoutingModule } from './expediente-routing.module';
|
|||||||
import { ExpedientePage } from './expediente.page';
|
import { ExpedientePage } from './expediente.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -18,7 +17,6 @@ import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ExpedientePageRoutingModule,
|
ExpedientePageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
],
|
],
|
||||||
declarations: [ExpedientePage],
|
declarations: [ExpedientePage],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
|
|
||||||
<ion-header class="ion-no-border header-2">
|
<ion-header class="ion-no-border header-2">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="header-icon-left">
|
<div class="header-icon-left">
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { ExpedientePrPageRoutingModule } from './expediente-pr-routing.module';
|
import { ExpedientePrPageRoutingModule } from './expediente-pr-routing.module';
|
||||||
|
|
||||||
import { ExpedientePrPage } from './expediente-pr.page';
|
import { ExpedientePrPage } from './expediente-pr.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ExpedientePrPageRoutingModule,
|
ExpedientePrPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ExpedientePrPage]
|
declarations: [ExpedientePrPage]
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { ExpedientesPrPageRoutingModule } from './expedientes-pr-routing.module';
|
import { ExpedientesPrPageRoutingModule } from './expedientes-pr-routing.module';
|
||||||
|
|
||||||
import { ExpedientesPrPage } from './expedientes-pr.page';
|
import { ExpedientesPrPage } from './expedientes-pr.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -18,8 +15,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
ExpedientesPrPageRoutingModule,
|
ExpedientesPrPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [ExpedientesPrPage]
|
declarations: [ExpedientesPrPage]
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import { DiplomasGerarPageModule } from 'src/app/shared/gabinete-digital/diploma
|
|||||||
import { DiplomasPageModule } from 'src/app/shared/gabinete-digital/diplomas/diplomas.module';
|
import { DiplomasPageModule } from 'src/app/shared/gabinete-digital/diplomas/diplomas.module';
|
||||||
import { ExpedientesPrPageModule } from 'src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.module';
|
import { ExpedientesPrPageModule } from 'src/app/shared/gabinete-digital/expedientes-pr/expedientes-pr.module';
|
||||||
import { DiplomasAssinarPageModule } from 'src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module';
|
import { DiplomasAssinarPageModule } from 'src/app/shared/gabinete-digital/diplomas-assinar/diplomas-assinar.module';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||||
import { AllProcessesPageModule } from 'src/app/shared/gabinete-digital/all-processes/all-processes.module';
|
import { AllProcessesPageModule } from 'src/app/shared/gabinete-digital/all-processes/all-processes.module';
|
||||||
@@ -32,8 +31,6 @@ import { AllProcessesPageModule } from 'src/app/shared/gabinete-digital/all-proc
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
GabineteDigitalPageRoutingModule,
|
GabineteDigitalPageRoutingModule,
|
||||||
//
|
|
||||||
HeaderPageModule,
|
|
||||||
EmptyContainerPageModule,
|
EmptyContainerPageModule,
|
||||||
AllProcessesPageModule,
|
AllProcessesPageModule,
|
||||||
EventsToApprovePageModule,
|
EventsToApprovePageModule,
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
<!-- {{ NotificationsService.active }} -->
|
<!-- {{ NotificationsService.active }} -->
|
||||||
<ion-content class="height-100 container-wrapper">
|
<ion-content class="height-100 container-wrapper">
|
||||||
<ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
|||||||
@@ -481,12 +481,13 @@ export class GabineteDigitalPage implements OnInit {
|
|||||||
/* else if (workflowName == "Expediente") {
|
/* else if (workflowName == "Expediente") {
|
||||||
this.router.navigate(['/home/gabinete-digital/pedidos',serialNumber,'gabinete-digital']);
|
this.router.navigate(['/home/gabinete-digital/pedidos',serialNumber,'gabinete-digital']);
|
||||||
} */
|
} */
|
||||||
else if (workflowName == 'Agenda Pessoal PR' || workflowName == 'Agenda Oficial PR' || workflowName == 'Agenda Oficial MDGPR' || workflowName == 'Agenda Pessoal MDGPR') {
|
else if (workflowName == 'Agenda Pessoal PR' || workflowName == 'Agenda Oficial PR' || workflowName == 'Agenda Oficial MDGPR' || workflowName == 'Agenda Pessoal MDGPR' || activityName == "Aprovar Evento" || workflowName == "Agendar Evento") {
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list/approve-event', serialNumber, 'gabinete-digital']);
|
this.router.navigate(['/home/gabinete-digital/event-list/approve-event', serialNumber, 'gabinete-digital']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
throw(`${workflowName} && ${activityName} no route`)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSegmentVistaChange() {
|
onSegmentVistaChange() {
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { PedidoPageRoutingModule } from './pedido-routing.module';
|
import { PedidoPageRoutingModule } from './pedido-routing.module';
|
||||||
|
|
||||||
import { PedidoPage } from './pedido.page';
|
import { PedidoPage } from './pedido.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
PedidoPageRoutingModule,
|
PedidoPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [PedidoPage]
|
declarations: [PedidoPage]
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="container-wrapper">
|
<ion-content class="container-wrapper">
|
||||||
<div class="main-content d-flex height-100 overflow-hidden">
|
<div class="main-content d-flex height-100 overflow-hidden">
|
||||||
<div class="content d-flex flex-column" *ngIf="task">
|
<div class="content d-flex flex-column" *ngIf="task">
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { PedidosPageRoutingModule } from './pedidos-routing.module';
|
import { PedidosPageRoutingModule } from './pedidos-routing.module';
|
||||||
|
|
||||||
import { PedidosPage } from './pedidos.page';
|
import { PedidosPage } from './pedidos.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@@ -19,7 +16,6 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
PedidosPageRoutingModule,
|
PedidosPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
],
|
],
|
||||||
declarations: [PedidosPage]
|
declarations: [PedidosPage]
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { PendentesPageRoutingModule } from './pendentes-routing.module';
|
|||||||
|
|
||||||
import { PendentesPage } from './pendentes.page';
|
import { PendentesPage } from './pendentes.page';
|
||||||
import { SharedModule } from 'src/app/shared/shared.module';
|
import { SharedModule } from 'src/app/shared/shared.module';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
import { TaskListPageModule } from 'src/app/shared/gabinete-digital/generic/task-list/task-list.module';
|
import { TaskListPageModule } from 'src/app/shared/gabinete-digital/generic/task-list/task-list.module';
|
||||||
|
|
||||||
@@ -18,9 +16,7 @@ import { TaskListPageModule } from 'src/app/shared/gabinete-digital/generic/task
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
PendentesPageRoutingModule,
|
PendentesPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
// entryComponents
|
// entryComponents
|
||||||
TaskListPageModule
|
TaskListPageModule
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
/* this.folderId = this.navParams.get('folderIdId'); */
|
/* this.folderId = this.navParams.get('folderIdId'); */
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: null,
|
DateIndex: null,
|
||||||
DocumentId: '',
|
DocumentId: null,
|
||||||
ProcessId:'',
|
ProcessId:'',
|
||||||
Title:'',
|
Title:'',
|
||||||
Message: '',
|
Message: '',
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import { ViewPublicationsPageModule } from 'src/app/shared/publication/view-publ
|
|||||||
import { NewPublicationPageModule } from 'src/app/shared/publication/new-publication/new-publication.module';
|
import { NewPublicationPageModule } from 'src/app/shared/publication/new-publication/new-publication.module';
|
||||||
import { NewActionPageModule } from 'src/app/shared/publication/new-action/new-action.module';
|
import { NewActionPageModule } from 'src/app/shared/publication/new-action/new-action.module';
|
||||||
import { PublicationDetailPageModule } from 'src/app/shared/publication/view-publications/publication-detail/publication-detail.module';
|
import { PublicationDetailPageModule } from 'src/app/shared/publication/view-publications/publication-detail/publication-detail.module';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
import { EditActionPageModule } from 'src/app/shared/publication/edit-action/edit-action.module';
|
import { EditActionPageModule } from 'src/app/shared/publication/edit-action/edit-action.module';
|
||||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||||
import { LazyLoadImageModule } from 'ng-lazyload-image'; // <-- import it
|
import { LazyLoadImageModule } from 'ng-lazyload-image'; // <-- import it
|
||||||
@@ -24,7 +23,6 @@ import { LazyLoadImageModule } from 'ng-lazyload-image'; // <-- import it
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
FontAwesomeModule,
|
FontAwesomeModule,
|
||||||
PublicationsPageRoutingModule,
|
PublicationsPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
ViewPublicationsPageModule,
|
ViewPublicationsPageModule,
|
||||||
NewPublicationPageModule,
|
NewPublicationPageModule,
|
||||||
PublicationDetailPageModule,
|
PublicationDetailPageModule,
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-content class="container-wrapper">
|
<ion-content class="container-wrapper">
|
||||||
<div class="d-md-none" *ngIf="hideRefreshBtn">
|
<div class="d-md-none" *ngIf="hideRefreshBtn">
|
||||||
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
<ion-refresher name="refresher" slot="fixed" (ionRefresh)="doRefresh($event)">
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import { BackgroundService } from 'src/app/services/background.service';
|
|||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
|
import { ActionModel, PublicationModel } from 'src/app/models/beast-orm';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -146,7 +147,10 @@ export class PublicationsPage implements OnInit {
|
|||||||
this.publications.GetPublicationFolderList().subscribe(async res => {
|
this.publications.GetPublicationFolderList().subscribe(async res => {
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
const folders: PublicationFolder[] = this.getPublicationFolderMap(res)
|
const folders: PublicationFolder[] = this.getPublicationFolderMap(res)
|
||||||
|
|
||||||
|
// let publications = await ActionModel.create(folders)
|
||||||
|
// console.log('publications', publications)
|
||||||
|
|
||||||
this.publicationsEventFolderList = folders.filter((e)=>e.ActionType == 'Evento')
|
this.publicationsEventFolderList = folders.filter((e)=>e.ActionType == 'Evento')
|
||||||
this.publicationsTravelFolderList = folders.filter((e)=>e.ActionType != 'Evento')
|
this.publicationsTravelFolderList = folders.filter((e)=>e.ActionType != 'Evento')
|
||||||
|
|
||||||
|
|||||||
-3
@@ -7,15 +7,12 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { PublicationDetailPageRoutingModule } from './publication-detail-routing.module';
|
import { PublicationDetailPageRoutingModule } from './publication-detail-routing.module';
|
||||||
|
|
||||||
import { PublicationDetailPage } from './publication-detail.page';
|
import { PublicationDetailPage } from './publication-detail.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
PublicationDetailPageRoutingModule,
|
PublicationDetailPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
],
|
],
|
||||||
declarations: [PublicationDetailPage]
|
declarations: [PublicationDetailPage]
|
||||||
})
|
})
|
||||||
|
|||||||
+1
-1
@@ -46,7 +46,7 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
|
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: null,
|
DateIndex: null,
|
||||||
DocumentId: '',
|
DocumentId: null,
|
||||||
ProcessId:'',
|
ProcessId:'',
|
||||||
Title:'',
|
Title:'',
|
||||||
Message: '',
|
Message: '',
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { ViewPublicationsPageRoutingModule } from './view-publications-routing.m
|
|||||||
|
|
||||||
import { ViewPublicationsPage } from './view-publications.page';
|
import { ViewPublicationsPage } from './view-publications.page';
|
||||||
|
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
|
import { Attributes, IntersectionObserverHooks, LazyLoadImageModule, LAZYLOAD_IMAGE_HOOKS } from 'ng-lazyload-image';
|
||||||
|
|
||||||
export class LazyLoadImageHooks extends IntersectionObserverHooks {
|
export class LazyLoadImageHooks extends IntersectionObserverHooks {
|
||||||
@@ -28,7 +26,6 @@ setup(attributes: Attributes) {
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
|
|
||||||
ViewPublicationsPageRoutingModule,
|
ViewPublicationsPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
LazyLoadImageModule
|
LazyLoadImageModule
|
||||||
],
|
],
|
||||||
exports: [ViewPublicationsPage],
|
exports: [ViewPublicationsPage],
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border">
|
|
||||||
<app-header > </app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-header class="ion-no-border">
|
<ion-header class="ion-no-border">
|
||||||
<!-- <ion-toolbar class="bg-blue"> -->
|
<!-- <ion-toolbar class="bg-blue"> -->
|
||||||
<div class="main-header">
|
<div class="main-header">
|
||||||
@@ -14,7 +10,7 @@
|
|||||||
<div *ngIf="publicationItem[folderId]" class="div-title flex-grow-1">
|
<div *ngIf="publicationItem[folderId]" class="div-title flex-grow-1">
|
||||||
<ion-label class="title">{{publicationItem[folderId].Description}}</ion-label>
|
<ion-label class="title">{{publicationItem[folderId].Description}}</ion-label>
|
||||||
<p class="item-content-detail">{{publicationItem[folderId].Detail}}</p>
|
<p class="item-content-detail">{{publicationItem[folderId].Detail}}</p>
|
||||||
<p class="item-content-date">{{publicationItem[folderId].DateBegin | date: 'dd-MM-yy HH:mm'}}</p>
|
<p class="item-content-date" *ngIf="publicationItem[folderId].DateBegin != null">{{publicationItem[folderId].DateBegin | date: 'dd-MM-yy HH:mm'}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="p.userPermission([p.permissionList.Actions.createPost]) && publicationItem[folderId]" class="actions-icon cursor-pointer" (click)="AddPublication('2',publicationItem[folderId].ProcessId)">
|
<div *ngIf="p.userPermission([p.permissionList.Actions.createPost]) && publicationItem[folderId]" class="actions-icon cursor-pointer" (click)="AddPublication('2',publicationItem[folderId].ProcessId)">
|
||||||
<!-- <ion-icon (click)="AddPublication('1',item.ProcessId)" slot="end" src='assets/images/icons-add-photo.svg'></ion-icon> -->
|
<!-- <ion-icon (click)="AddPublication('1',item.ProcessId)" slot="end" src='assets/images/icons-add-photo.svg'></ion-icon> -->
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import { ToastService } from 'src/app/services/toast.service';
|
|||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
|
import { PublicationModel } from 'src/app/models/beast-orm';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-view-publications',
|
selector: 'app-view-publications',
|
||||||
@@ -136,7 +137,7 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
getPublicationDetail() {
|
getPublicationDetail() {
|
||||||
this.showLoader = true;
|
this.showLoader = true;
|
||||||
const folderId = this.folderId
|
const folderId = this.folderId
|
||||||
this.publications.GetPresidentialAction(folderId).subscribe(res=>{
|
this.publications.GetPresidentialAction(folderId).subscribe(res =>{
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.publicationItem[folderId] = res
|
this.publicationItem[folderId] = res
|
||||||
this.storage.set(folderId+"name", res)
|
this.storage.set(folderId+"name", res)
|
||||||
@@ -162,20 +163,24 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
const folderId = this.folderId
|
const folderId = this.folderId
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await this.publications.GetPublicationsImages(folderId).toPromise();
|
const publicationIds = await this.publications.GetPublicationsList(folderId).toPromise();
|
||||||
let publicationList = []
|
|
||||||
|
|
||||||
for (let element of res) {
|
for (let publicationId of publicationIds) {
|
||||||
let ress = await this.publications.GetPublicationById(element).toPromise();
|
let Publication = await this.publications.GetPublicationById(publicationId).toPromise();
|
||||||
let item: Publication = this.publicationPipe.itemList(ress)
|
let publicationDetails: Publication = this.publicationPipe.itemList(Publication)
|
||||||
publicationList.push(item);
|
|
||||||
|
const found = this.publicationList[folderId].find( e => e.DocumentId == publicationId )
|
||||||
|
|
||||||
|
if(!found) {
|
||||||
|
PublicationModel.create(publicationDetails)
|
||||||
|
this.publicationList[folderId].push(publicationDetails)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
|
|
||||||
this.publicationList[folderId] = publicationList
|
this.storage.set(folderId, this.publicationList[folderId]);
|
||||||
this.storage.set(folderId, publicationList);
|
this.getpublication = this.publicationList[folderId];
|
||||||
this.getpublication = publicationList;
|
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,21 @@ import { SearchPage } from './search.page';
|
|||||||
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-modal-dismiss.module';
|
||||||
/* */
|
/* */
|
||||||
/* import { TagCloudModule } from 'angular-tag-cloud-module'; */
|
/* import { TagCloudModule } from 'angular-tag-cloud-module'; */
|
||||||
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
||||||
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
|
||||||
|
import { MatNativeDateModule } from '@angular/material/core';
|
||||||
|
|
||||||
|
import {
|
||||||
|
NgxMatDatetimePickerModule,
|
||||||
|
NgxMatNativeDateModule,
|
||||||
|
NgxMatTimepickerModule
|
||||||
|
} from '@angular-material-components/datetime-picker';
|
||||||
|
|
||||||
|
import { ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
import { NgxMatMomentModule } from '@angular-material-components/moment-adapter';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -20,6 +35,16 @@ import { BtnModalDismissPageModule } from 'src/app/shared/btn-modal-dismiss/btn-
|
|||||||
/* */
|
/* */
|
||||||
SearchPageRoutingModule,
|
SearchPageRoutingModule,
|
||||||
BtnModalDismissPageModule,
|
BtnModalDismissPageModule,
|
||||||
|
NgxMatDatetimePickerModule,
|
||||||
|
NgxMatNativeDateModule,
|
||||||
|
NgxMatTimepickerModule,
|
||||||
|
NgxMatMomentModule,
|
||||||
|
MatDatepickerModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatNativeDateModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatSelectModule
|
||||||
],
|
],
|
||||||
declarations: [SearchPage],
|
declarations: [SearchPage],
|
||||||
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
||||||
|
|||||||
@@ -59,18 +59,37 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ion-form>
|
</ion-form>
|
||||||
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<li *ngIf="showAdvanceSearch" class="d-flex date-container ion-justify-content-between">
|
<li *ngIf="showAdvanceSearch" class="d-flex date-container ion-justify-content-between">
|
||||||
<div class="icon-mer icon">
|
<div class="icon-mer icon">
|
||||||
<ion-icon name="restaurant-outline" src="assets/images/icons-advance-search-document.svg"></ion-icon>
|
<ion-icon name="restaurant-outline" src="assets/images/icons-advance-search-document.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-container d-flex ion-align-items-">
|
<div class="input-container d-flex flex-grow-1 justify-center align-center materia-top">
|
||||||
<ion-datetime class="cursor-pointer" [(ngModel)]='searchDocumentDate' placeholder="Data" display-timezone="utc"></ion-datetime>
|
|
||||||
|
<mat-form-field appearance="none" class="date-hour-picker" (click)="clickDate()" style="
|
||||||
|
margin-top: -11px;
|
||||||
|
margin-left: 10px;
|
||||||
|
">
|
||||||
|
<input matInput [ngxMatDatetimePicker]="picker1"
|
||||||
|
placeholder="Data Inicio*"
|
||||||
|
[(ngModel)]="searchDocumentDate"
|
||||||
|
>
|
||||||
|
<mat-datepicker-toggle id="new-inicio" matSuffix [for]="picker1" (click)="clickDate()" ></mat-datepicker-toggle>
|
||||||
|
<ngx-mat-datetime-picker #picker1 (click)="clickDate()"
|
||||||
|
[showSpinners]="showSpinners"
|
||||||
|
[showSeconds]="showSeconds"
|
||||||
|
[stepHour]="stepHour" [stepMinute]="stepMinute"
|
||||||
|
[stepSecond]="stepSecond"
|
||||||
|
[touchUi]="touchUi"
|
||||||
|
>
|
||||||
|
</ngx-mat-datetime-picker>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
<div class="icon cursor-pointer" (click)="clearInputDocumentDate()">
|
<div class="icon cursor-pointer" (click)="clearInputDocumentDate()">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " name="restaurant-outline" src="assets/images/theme/gov/icons-search-close.svg"></ion-icon>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<!-- Sender -->
|
<!-- Sender -->
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ModalController, NavParams } from '@ionic/angular';
|
import { ModalController, NavParams } from '@ionic/angular';
|
||||||
import { SearchService } from "../../services/search.service";
|
import { SearchService } from "../../services/search.service";
|
||||||
import { formatDate } from '@angular/common';
|
import { formatDate } from '@angular/common';
|
||||||
@@ -14,14 +14,40 @@ import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.pag
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { environment } from 'src/environments/environment';
|
import { environment } from 'src/environments/environment';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
|
||||||
|
import { NgxMatDateFormats } from '@angular-material-components/datetime-picker';
|
||||||
|
|
||||||
|
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||||
|
parse: {
|
||||||
|
dateInput: "YYYY-MMMM-DD HH:mm"
|
||||||
|
},
|
||||||
|
display: {
|
||||||
|
dateInput: "DD MMM YYYY H:mm",
|
||||||
|
monthYearLabel: "MMM YYYY",
|
||||||
|
dateA11yLabel: "LL",
|
||||||
|
monthYearA11yLabel: "MMMM YYYY"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-search',
|
selector: 'app-search',
|
||||||
templateUrl: './search.page.html',
|
templateUrl: './search.page.html',
|
||||||
styleUrls: ['./search.page.scss'],
|
styleUrls: ['./search.page.scss'],
|
||||||
|
providers: [
|
||||||
|
{ provide: NGX_MAT_DATE_FORMATS, useValue: CUSTOM_DATE_FORMATS },
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class SearchPage implements OnInit {
|
export class SearchPage implements OnInit {
|
||||||
|
|
||||||
|
public showSpinners = true;
|
||||||
|
public showSeconds = false;
|
||||||
|
public touchUi = false;
|
||||||
|
public enableMeridian = false;
|
||||||
|
public stepHour = 1;
|
||||||
|
public stepMinute = 15;
|
||||||
|
public stepSecond = 15;
|
||||||
|
//
|
||||||
|
|
||||||
// https params
|
// https params
|
||||||
searchSubject: string;
|
searchSubject: string;
|
||||||
searchDocumentDate: string;
|
searchDocumentDate: string;
|
||||||
@@ -61,6 +87,9 @@ export class SearchPage implements OnInit {
|
|||||||
|
|
||||||
showSearchInput = false
|
showSearchInput = false
|
||||||
|
|
||||||
|
|
||||||
|
@ViewChild('picker1') picker1: any;
|
||||||
|
|
||||||
constructor(private modalController: ModalController,
|
constructor(private modalController: ModalController,
|
||||||
private search: SearchService,
|
private search: SearchService,
|
||||||
private modalCtrl: ModalController,
|
private modalCtrl: ModalController,
|
||||||
@@ -213,6 +242,38 @@ export class SearchPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
roundTimeQuarterHour(timeToReturn = new Date()) {
|
||||||
|
let date: any = new Date(timeToReturn) || new Date();
|
||||||
|
const minutes = date.getMinutes();
|
||||||
|
date.setSeconds(0);
|
||||||
|
|
||||||
|
if(minutes % 15 != 0) {
|
||||||
|
|
||||||
|
if (minutes > 45) {
|
||||||
|
date.setMinutes(60)
|
||||||
|
} else if (minutes > 30) {
|
||||||
|
date.setMinutes(45)
|
||||||
|
} else if (minutes > 15) {
|
||||||
|
date.setMinutes(30)
|
||||||
|
} else if (minutes > 0) {
|
||||||
|
date.setMinutes(15)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return date
|
||||||
|
}
|
||||||
|
|
||||||
|
clickDate() {
|
||||||
|
if(!this.searchDocumentDate) {
|
||||||
|
this.searchDocumentDate = this.roundTimeQuarterHour()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
clearInputDocumentDate() {
|
||||||
|
this.searchDocumentDate = "";
|
||||||
|
}
|
||||||
|
|
||||||
loadWordCloud() {
|
loadWordCloud() {
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -720,9 +781,7 @@ export class SearchPage implements OnInit {
|
|||||||
this.searchSender = "";
|
this.searchSender = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
clearInputDocumentDate(){
|
|
||||||
this.searchDocumentDate = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
clearInputOrganicEntity(){
|
clearInputOrganicEntity(){
|
||||||
this.searchOrganicEntiry = "";
|
this.searchOrganicEntiry = "";
|
||||||
|
|||||||
@@ -4,15 +4,12 @@ import { FormsModule } from '@angular/forms';
|
|||||||
import { IonicModule } from '@ionic/angular';
|
import { IonicModule } from '@ionic/angular';
|
||||||
import { EventsPageRoutingModule } from './events-routing.module';
|
import { EventsPageRoutingModule } from './events-routing.module';
|
||||||
import { EventsPage } from './events.page';
|
import { EventsPage } from './events.page';
|
||||||
import { HeaderPageModule } from 'src/app/shared/header/header.module';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
IonicModule,
|
IonicModule,
|
||||||
EventsPageRoutingModule,
|
EventsPageRoutingModule,
|
||||||
HeaderPageModule,
|
|
||||||
//
|
//
|
||||||
],
|
],
|
||||||
declarations: [EventsPage],
|
declarations: [EventsPage],
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
<ion-header class="ion-no-border ">
|
|
||||||
<app-header></app-header>
|
|
||||||
</ion-header>
|
|
||||||
|
|
||||||
<ion-header class="ion-no-border text-white">
|
<ion-header class="ion-no-border text-white">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<p class="time ion-text-center">{{customDate}}</p>
|
<p class="time ion-text-center">{{customDate}}</p>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ export class PublicationsService {
|
|||||||
return this.http.delete<any>(`${geturl}`, options);
|
return this.http.delete<any>(`${geturl}`, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
GetPublicationsImages(folder:any) {
|
GetPublicationsList(folder:any) {
|
||||||
const geturl = environment.apiURL + 'presidentialActions/'+ folder +'/posts/ids';
|
const geturl = environment.apiURL + 'presidentialActions/'+ folder +'/posts/ids';
|
||||||
let params = new HttpParams();
|
let params = new HttpParams();
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ export class PublicationsService {
|
|||||||
headers: this.headers,
|
headers: this.headers,
|
||||||
params: params
|
params: params
|
||||||
};
|
};
|
||||||
return this.http.get<Publication[]>(`${geturl}`, options)
|
return this.http.get<number[]>(`${geturl}`, options)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -528,7 +528,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
});
|
});
|
||||||
await modal.present();
|
await modal.present();
|
||||||
modal.onDidDismiss().then(res => {
|
modal.onDidDismiss().then(res => {
|
||||||
|
console.log(res)
|
||||||
if (res.data == 'leave') {
|
if (res.data == 'leave') {
|
||||||
this.getRoomInfo();
|
this.getRoomInfo();
|
||||||
this.closeAllDesktopComponents.emit();
|
this.closeAllDesktopComponents.emit();
|
||||||
@@ -546,6 +546,9 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
|
|
||||||
//this.closeAllDesktopComponents.emit();
|
//this.closeAllDesktopComponents.emit();
|
||||||
this.openEditGroupPage.emit(this.roomId);
|
this.openEditGroupPage.emit(this.roomId);
|
||||||
|
} else if (res.data == 'addUser') {
|
||||||
|
|
||||||
|
this.openGroupContactsPage();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
@@ -616,24 +619,26 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
|||||||
}
|
}
|
||||||
async addContacts() {
|
async addContacts() {
|
||||||
|
|
||||||
|
if(this.isAdmin) {
|
||||||
|
const modal = await this.modalController.create({
|
||||||
|
component: GroupContactsPage,
|
||||||
|
componentProps: {
|
||||||
|
isCreated: this.isGroupCreated,
|
||||||
|
room: this.room,
|
||||||
|
members: this.members,
|
||||||
|
name: this.room.name,
|
||||||
|
},
|
||||||
|
cssClass: 'contacts',
|
||||||
|
backdropDismiss: false
|
||||||
|
});
|
||||||
|
|
||||||
|
await modal.present();
|
||||||
|
|
||||||
|
modal.onDidDismiss().then(() => {
|
||||||
|
//this.getRoomInfo();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
|
||||||
component: GroupContactsPage,
|
|
||||||
componentProps: {
|
|
||||||
isCreated: this.isGroupCreated,
|
|
||||||
room: this.room,
|
|
||||||
members: this.members,
|
|
||||||
name: this.room.name,
|
|
||||||
},
|
|
||||||
cssClass: 'contacts',
|
|
||||||
backdropDismiss: false
|
|
||||||
});
|
|
||||||
|
|
||||||
await modal.present();
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
|
||||||
//this.getRoomInfo();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -172,11 +172,11 @@ export class AllProcessesPage implements OnInit {
|
|||||||
else if (workflowName == "Pedido de Parecer do Presidente") {
|
else if (workflowName == "Pedido de Parecer do Presidente") {
|
||||||
this.router.navigate(['/home/gabinete-digital/pedidos', serialNumber, 'gabinete-digital']);
|
this.router.navigate(['/home/gabinete-digital/pedidos', serialNumber, 'gabinete-digital']);
|
||||||
}
|
}
|
||||||
else if (workflowName == 'Agenda Pessoal PR' || workflowName == 'Agenda Oficial PR' || workflowName == 'Agenda Oficial MDGPR' || workflowName == 'Agenda Pessoal MDGPR') {
|
else if (workflowName == 'Agenda Pessoal PR' || workflowName == 'Agenda Oficial PR' || workflowName == 'Agenda Oficial MDGPR' || workflowName == 'Agenda Pessoal MDGPR' || activityName == "Aprovar Evento" || workflowName == "Agendar Evento") {
|
||||||
this.router.navigate(['/home/gabinete-digital/event-list/approve-event', serialNumber, 'gabinete-digital']);
|
this.router.navigate(['/home/gabinete-digital/event-list/approve-event', serialNumber, 'gabinete-digital']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
throw(`${workflowName} && ${activityName} no route`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export class HeaderPage implements OnInit {
|
|||||||
) {
|
) {
|
||||||
this.loggeduser = SessionStore.user;
|
this.loggeduser = SessionStore.user;
|
||||||
router.events.subscribe((val) => {
|
router.events.subscribe((val) => {
|
||||||
|
this.hideSearch();
|
||||||
this.showSearch = false;
|
this.showSearch = false;
|
||||||
this.canOpenSearch = true;
|
this.canOpenSearch = true;
|
||||||
this.showProfileModal = false
|
this.showProfileModal = false
|
||||||
@@ -94,8 +95,10 @@ export class HeaderPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hideSearch() {
|
hideSearch() {
|
||||||
if (this.router.url == '/home/events' || this.router.url == '/home/chat') {
|
if (this.router.url.startsWith('/home/events') || this.router.url.startsWith('/home/chat')) {
|
||||||
this.hideSearchBtn = true;
|
this.hideSearchBtn = true;
|
||||||
|
} else {
|
||||||
|
this.hideSearchBtn = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button (click)="addContacts()" class="btn-cancel" shape="round" >Adicionar</button>
|
<button *ngIf="isAdmin" (click)="addUser()" class="btn-cancel" shape="round" >Adicionar</button>
|
||||||
<button (click)="leaveGroup()" class="btn-cancel" shape="round" >Sair do Grupo</button>
|
<button (click)="leaveGroup()" class="btn-cancel" shape="round" >Sair do Grupo</button>
|
||||||
<button *ngIf="isAdmin" (click)="openChangeGroupName()" class="btn-cancel btn-cancel mt-10" shape="round" >Alterar nome do grupo</button>
|
<button *ngIf="isAdmin" (click)="openChangeGroupName()" class="btn-cancel btn-cancel mt-10" shape="round" >Alterar nome do grupo</button>
|
||||||
<div class="solid"></div>
|
<div class="solid"></div>
|
||||||
|
|||||||
@@ -5,9 +5,12 @@ import { ToastService } from 'src/app/services/toast.service';
|
|||||||
import { ThemeService } from 'src/app/services/theme.service'
|
import { ThemeService } from 'src/app/services/theme.service'
|
||||||
import { SetRoomOwnerPage } from 'src/app/modals/set-room-owner/set-room-owner.page';
|
import { SetRoomOwnerPage } from 'src/app/modals/set-room-owner/set-room-owner.page';
|
||||||
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
|
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
|
||||||
|
<<<<<<< HEAD
|
||||||
import { HttpErrorResponse } from '@angular/common/http';
|
import { HttpErrorResponse } from '@angular/common/http';
|
||||||
import { SessionStore } from 'src/app/store/session.service';
|
import { SessionStore } from 'src/app/store/session.service';
|
||||||
import { GroupContactsPage } from '../../chat/group-messages/group-contacts/group-contacts.page';
|
import { GroupContactsPage } from '../../chat/group-messages/group-contacts/group-contacts.page';
|
||||||
|
=======
|
||||||
|
>>>>>>> b8a1734abbbe321eedb202ddde21592f161acf12
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -43,11 +46,11 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
close(action:any){
|
close(action:any){
|
||||||
if( window.innerWidth < 701){
|
if( window.innerWidth < 701){
|
||||||
this.popoverController.dismiss(action);
|
this.popoverController.dismiss(action);
|
||||||
this.modalController.dismiss(action);
|
this.modalController.dismiss(action)
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.popoverController.dismiss(action);
|
this.popoverController.dismiss(action);
|
||||||
this.modalController.dismiss(action);
|
this.modalController.dismiss(action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,38 +131,24 @@ export class ChatPopoverPage implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.popoverController.dismiss('delete');
|
this.popoverController.dismiss('delete');
|
||||||
this.modalController.dismiss('delete');
|
this.modalController.dismiss('delete')
|
||||||
}
|
}
|
||||||
|
|
||||||
async openChangeGroupName(){
|
async openChangeGroupName(){
|
||||||
if( window.innerWidth < 701){
|
if( window.innerWidth < 701){
|
||||||
this.popoverController.dismiss('edit');
|
this.popoverController.dismiss('edit');
|
||||||
|
this.modalController.dismiss('edit')
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
this.modalController.dismiss('edit');
|
this.popoverController.dismiss('edit');
|
||||||
|
this.modalController.dismiss('edit')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async addContacts() {
|
|
||||||
|
|
||||||
|
|
||||||
const modal = await this.modalController.create({
|
async addUser() {
|
||||||
component: GroupContactsPage,
|
this.popoverController.dismiss('addUser');
|
||||||
componentProps: {
|
this.modalController.dismiss('addUser')
|
||||||
isCreated: this.isGroupCreated,
|
|
||||||
room: this.room,
|
|
||||||
members: this.members,
|
|
||||||
name: this.room.name,
|
|
||||||
},
|
|
||||||
cssClass: 'contacts',
|
|
||||||
backdropDismiss: false
|
|
||||||
});
|
|
||||||
|
|
||||||
await modal.present();
|
|
||||||
|
|
||||||
modal.onDidDismiss().then(() => {
|
|
||||||
/* this.getRoomInfo(); */
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ export class PublicationDetailPage implements OnInit {
|
|||||||
/* this.folderId = this.navParams.get('folderIdId'); */
|
/* this.folderId = this.navParams.get('folderIdId'); */
|
||||||
this.publication = {
|
this.publication = {
|
||||||
DateIndex: null,
|
DateIndex: null,
|
||||||
DocumentId: '',
|
DocumentId: null,
|
||||||
ProcessId:'',
|
ProcessId:'',
|
||||||
Title:'',
|
Title:'',
|
||||||
Message: '',
|
Message: '',
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
</button >
|
</button >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="div-body width-100">
|
<div class="div-body width-100" *ngIf="publicationItem[folderId].DateBegin">
|
||||||
<p class="item-content-detail">{{publicationItem[folderId].Detail}}</p>
|
<p class="item-content-detail">{{publicationItem[folderId].Detail}}</p>
|
||||||
<p class="item-content-date">{{ publicationItem[folderId].DateBegin | date: 'dd-MM-yy HH:mm'}}</p>
|
<p class="item-content-date" *ngIf="publicationItem[folderId].DateBegin != null">{{ publicationItem[folderId].DateBegin | date: 'dd-MM-yy HH:mm'}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { EditActionPage } from 'src/app/pages/publications/edit-action/edit-acti
|
|||||||
import { Storage } from '@ionic/storage';
|
import { Storage } from '@ionic/storage';
|
||||||
import { PermissionService } from 'src/app/services/permission.service';
|
import { PermissionService } from 'src/app/services/permission.service';
|
||||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||||
|
import { PublicationModel } from 'src/app/models/beast-orm';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-view-publications',
|
selector: 'app-view-publications',
|
||||||
@@ -116,20 +117,24 @@ export class ViewPublicationsPage implements OnInit {
|
|||||||
const folderId = this.folderId
|
const folderId = this.folderId
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await this.publications.GetPublicationsImages(folderId).toPromise();
|
const publicationIds = await this.publications.GetPublicationsList(folderId).toPromise();
|
||||||
let publicationList = []
|
|
||||||
|
for (let publicationId of publicationIds) {
|
||||||
for (let element of res) {
|
let Publication = await this.publications.GetPublicationById(publicationId).toPromise();
|
||||||
let ress = await this.publications.GetPublicationById(element).toPromise();
|
let publicationDetails: Publication = this.publicationPipe.itemList(Publication)
|
||||||
let item: Publication = this.publicationPipe.itemList(ress)
|
|
||||||
publicationList.push(item);
|
const found = this.publicationList[folderId].find( e => e.DocumentId == publicationId )
|
||||||
|
|
||||||
|
if(!found) {
|
||||||
|
PublicationModel.create(publicationDetails)
|
||||||
|
this.publicationList[folderId].push(publicationDetails)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
|
|
||||||
this.publicationList[folderId] = publicationList
|
this.storage.set(folderId, this.publicationList[folderId]);
|
||||||
this.storage.set(folderId, publicationList);
|
this.getpublication = this.publicationList[folderId];
|
||||||
this.getpublication = publicationList;
|
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user