This commit is contained in:
tiago.kayaya
2021-05-06 13:37:22 +01:00
parent 582efcac2d
commit bdef27b804
11 changed files with 54 additions and 54 deletions
@@ -5,12 +5,12 @@
</button>
</div>
<div class="buttons">
<button (click)="close()" full class="btn-ok" shape="round" >Efectuar Despacho</button>
<button (click)="close()" full class="btn-ok" shape="round" >Pedido de Parecer</button>
<button (click)="close()" full class="btn-ok" shape="round" >Pedido de Deferimento</button>
<button (click)="openExpedientActionsModal('0',fulltask)" full class="btn-ok" shape="round" >Efectuar Despacho</button>
<button (click)="openExpedientActionsModal('1',fulltask)" full class="btn-ok" shape="round" >Pedido de Parecer</button>
<button (click)="openExpedientActionsModal('2',fulltask)" full class="btn-ok" shape="round" >Pedido de Deferimento</button>
<button (click)="openBookMeetingModal()" full class="btn-ok" shape="round" >Marcar reunião</button>
<button (click)="close()" full class="btn-ok" shape="round" >Descartar</button>
<button (click)="close()" full class="btn-ok" shape="round" >Enviar para pendentes</button>
<button (click)="distartExpedientModal(fulltask)" full class="btn-ok" shape="round" >Descartar</button>
<button (click)="sendExpedienteToPending()" full class="btn-ok" shape="round" >Enviar para pendentes</button>
<div class="solid"></div>
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
</div>
@@ -3,6 +3,7 @@ import { ModalController, NavParams, PopoverController } from '@ionic/angular';
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page';
import { ExpedientTaskModalPage } from 'src/app/pages/gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
import { ProcessesService } from 'src/app/services/processes.service';
@Component({
selector: 'app-opts-expediente',
@@ -18,12 +19,15 @@ export class OptsExpedientePage implements OnInit {
private popoverController: PopoverController,
private modalController: ModalController,
private navParams: NavParams,
private processes: ProcessesService,
) {
this.task = this.navParams.get('task');
this.fulltask = this.navParams.get('fulltask');
}
ngOnInit() {
console.log(this.task);
this.profile = "mdgpr";
}
@@ -36,6 +40,13 @@ export class OptsExpedientePage implements OnInit {
}
}
sendExpedienteToPending(){
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
console.log(res);
this.close();
});
}
async openBookMeetingModal(task: any) {
let classs;
if( window.innerWidth <= 800){