mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Fix store and improve search
This commit is contained in:
@@ -51,19 +51,16 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{ LoadedDocument | json }}
|
||||
|
||||
<div *ngIf="LoadedDocument" class="aside-right flex-column height-100">
|
||||
<div class="buttons">
|
||||
<button (click)="notImplemented()" class="btn-ok" shape="round" >Efectuar Despacho</button>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Descartar</button>
|
||||
<button (click)="openExpedientActionsModal('0')" class="btn-ok" shape="round" >Efectuar Despacho</button>
|
||||
<div class="solid"></div>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||
<button (click)="notImplemented()" *ngIf="LoadedDocument.Status != 'Pending'" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||
<div class="solid"></div>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Executar</button>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Delegar</button>
|
||||
<button (click)="notImplemented()" class="btn-cancel" shape="round" >Arquivar</button>
|
||||
<button (click)="openExpedientActionsModal('0')" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
||||
<button (click)="openExpedientActionsModal('2')" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
|
||||
<button (click)="openBookMeetingModal()" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ import { MenuController, ModalController, NavParams } from '@ionic/angular';
|
||||
import { AlertService } from 'src/app/services/alert.service';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { InAppBrowser } from '@ionic-native/in-app-browser/ngx';
|
||||
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
|
||||
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
|
||||
|
||||
@Component({
|
||||
selector: 'app-document-detail',
|
||||
@@ -63,11 +65,112 @@ export class DocumentDetailPage implements OnInit {
|
||||
this.menu.open();
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
close(){
|
||||
close() {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
notImplemented(){
|
||||
notImplemented() {
|
||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||
}
|
||||
|
||||
}
|
||||
// efetuar despacho
|
||||
async openExpedientActionsModal( taskAction: any) {
|
||||
|
||||
let task;
|
||||
|
||||
if(this.LoadedDocument.ApplicationID == 361) {
|
||||
task = {
|
||||
serialNumber: this.LoadedDocument.DispatchNumber,
|
||||
taskStartDate: this.LoadedDocument.DateDispatch,
|
||||
isEvent: true,
|
||||
workflowInstanceDataFields: {
|
||||
FsId: this.LoadedDocument.ApplicationID,
|
||||
FolderID: null,
|
||||
DocId: this.LoadedDocument.DispatchNumber,
|
||||
Subject: this.LoadedDocument.Assunto
|
||||
},
|
||||
}
|
||||
} else if (this.LoadedDocument.ApplicationID == 8) {
|
||||
task = {
|
||||
serialNumber: this.LoadedDocument.SourceId,
|
||||
taskStartDate: this.LoadedDocument.CreateDate,
|
||||
isEvent: true,
|
||||
workflowInstanceDataFields: {
|
||||
FsId: this.LoadedDocument.ApplicationID,
|
||||
FolderID: null,
|
||||
DocId: this.LoadedDocument.SourceId,
|
||||
Subject: this.LoadedDocument.SourceName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800) {
|
||||
classs = 'modal modal-desktop'
|
||||
} else {
|
||||
classs = 'modal modal-desktop showAsideOptions'
|
||||
}
|
||||
const modal = await this.modalController.create({
|
||||
component: ExpedientTaskModalPage,
|
||||
componentProps: {
|
||||
taskAction: taskAction,
|
||||
task: task,
|
||||
},
|
||||
cssClass: classs,
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then( async(res)=>{});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
async openBookMeetingModal() {
|
||||
|
||||
let task;
|
||||
|
||||
if(this.LoadedDocument.ApplicationID == 361) {
|
||||
task = {
|
||||
serialNumber: this.LoadedDocument.DispatchNumber,
|
||||
taskStartDate: this.LoadedDocument.DateDispatch,
|
||||
isEvent: true,
|
||||
workflowInstanceDataFields: {
|
||||
FsId: this.LoadedDocument.ApplicationID,
|
||||
FolderID: null,
|
||||
DocId: this.LoadedDocument.DispatchNumber,
|
||||
Subject: this.LoadedDocument.Assunto
|
||||
},
|
||||
}
|
||||
} else if (this.LoadedDocument.ApplicationID == 8) {
|
||||
task = {
|
||||
serialNumber: this.LoadedDocument.SourceId,
|
||||
taskStartDate: this.LoadedDocument.CreateDate,
|
||||
isEvent: true,
|
||||
workflowInstanceDataFields: {
|
||||
FsId: this.LoadedDocument.ApplicationID,
|
||||
FolderID: null,
|
||||
DocId: this.LoadedDocument.SourceId,
|
||||
Subject: this.LoadedDocument.SourceName
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800) {
|
||||
classs = 'book-meeting-modal modal modal-desktop'
|
||||
} else {
|
||||
classs = 'modal modal-desktop showAsideOptions'
|
||||
}
|
||||
const modal = await this.modalController.create({
|
||||
component: BookMeetingModalPage,
|
||||
componentProps: {
|
||||
task: task,
|
||||
},
|
||||
cssClass: classs,
|
||||
backdropDismiss: false
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user