mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
add headers
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
<div class="bottom-content width-100">
|
<div class="bottom-content width-100">
|
||||||
<ion-list *ngIf="attachments">
|
<ion-list *ngIf="attachments">
|
||||||
<h5>Documentos Anexados</h5>
|
<h5>Documentos Anexados</h5>
|
||||||
<ion-item *ngFor="let attachment of attachments"
|
<ion-item *ngFor="let attachment of fulltask.Documents"
|
||||||
class="ion-no-margin ion-no-padding cursor-pointer">
|
class="ion-no-margin ion-no-padding cursor-pointer">
|
||||||
<ion-label
|
<ion-label
|
||||||
(click)="viewDocument(attachment.DocId)">
|
(click)="viewDocument(attachment.DocId)">
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
this.getDocumentDetails(this.task.FolderId, '361');
|
|
||||||
|
|
||||||
}, (error)=>{
|
}, (error)=>{
|
||||||
try {
|
try {
|
||||||
@@ -146,13 +145,6 @@ export class DespachoPrPage implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
getDocumentDetails(forlderId:string, applicationId:string) {
|
|
||||||
this.processes.GetDocumentDetails(forlderId,applicationId).subscribe(res=>{
|
|
||||||
this.attachments = res.Documents;
|
|
||||||
console.log(res['Documents']);
|
|
||||||
console.log(this.attachments);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// async LoadRelatedEvents(serial: string) {
|
// async LoadRelatedEvents(serial: string) {
|
||||||
// if (this.eventsList == null) {
|
// if (this.eventsList == null) {
|
||||||
|
|||||||
@@ -98,12 +98,10 @@ export class DespachosPrPage implements OnInit {
|
|||||||
|
|
||||||
openExpedientDetailPage(data){
|
openExpedientDetailPage(data){
|
||||||
console.log(data);
|
console.log(data);
|
||||||
// this.openExpedientDetail.emit(data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async LoadList() {
|
async LoadList() {
|
||||||
|
|
||||||
|
|
||||||
this.skeletonLoader = true
|
this.skeletonLoader = true
|
||||||
|
|
||||||
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
let result = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
||||||
@@ -120,8 +118,6 @@ export class DespachosPrPage implements OnInit {
|
|||||||
console.log(result);
|
console.log(result);
|
||||||
|
|
||||||
despachosPr = await result.reverse().filter(data => data.activityInstanceName == "Concluir Despacho");
|
despachosPr = await result.reverse().filter(data => data.activityInstanceName == "Concluir Despacho");
|
||||||
console.log(despachosPr);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,22 +5,40 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="buttons" *ngIf="task.activityInstanceName == 'Tarefa de Despacho'">
|
<div class="width-100">
|
||||||
<button (click)="openAddNoteModal('Executado')" class="btn-cancel" shape="round" >Executado</button>
|
<div *ngIf="task && !p.userRole(['PR'])" class="d-flex width-100">
|
||||||
<button (click)="openDelegarModal(task)" class="btn-cancel" shape="round" >Delegar</button>
|
<div class="flex-grow-1">
|
||||||
<button (click)="openAddNoteModal('Gerar Diploma')" class="btn-cancel" shape="round" >Gerar Diploma </button>
|
<button class="btn-cancel desk" shape="round"> Enviar para o PR </button>
|
||||||
|
<button (click)="openAddNoteModal('Aprovar')" class="btn-cancel" shape="round" >Avaliação Superior</button>
|
||||||
|
<button class="btn-cancel desk" shape="round"> Solicitar revisão </button>
|
||||||
|
<button (click)="openAddNoteModal('Revisão')" class="btn-cancel" shape="round" >Mandar para Revisão</button>
|
||||||
|
<button class="btn-cancel desk" shape="round">Outras opções </button>
|
||||||
|
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-ok" shape="round" >Efetuar Despacho</button>
|
||||||
|
</div>
|
||||||
|
<div class="flex-grow-1">
|
||||||
|
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
||||||
|
<button (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button>
|
||||||
|
<button (click)="openBookMeetingModal()" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||||
|
<button *ngIf="!p.userRole(['PR'])" (click)="attachDocument()" class="btn-cancel" shape="round" >Anexar Documentos</button>
|
||||||
|
<button (click)="distartExpedientModal('descartar')" class="btn-cancel" shape="round" >Descartar</button>
|
||||||
|
<button (click)="sendExpedienteToPending()" *ngIf="task.Status != 'Pending'" full class="btn-ok" shape="round" >Enviar para pendentes</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="task && p.userRole(['PR'])" class="d-flex width-100">
|
||||||
|
<div class="flex-grow-1">
|
||||||
|
<button (click)="openExpedientActionsModal('0', fulltask)" class="btn-ok" shape="round" >Efetuar Despacho</button>
|
||||||
|
<button (click)="distartExpedientModal('descartar')" class="btn-cancel" shape="round" >Descartar</button>
|
||||||
|
<div class="solid"></div>
|
||||||
|
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
||||||
|
<button (click)="openBookMeetingModal()" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
||||||
|
<button (click)="sendExpedienteToPending()" *ngIf="task.Status != 'Pending'" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
||||||
|
<div hidden class="solid"></div>
|
||||||
|
<button hidden class="btn-cancel" shape="round" >Delegar</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="solid"></div>
|
<div class="solid"></div>
|
||||||
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-ok" shape="round" >Efetuar Despacho</button>
|
<button (click)="close()" full class="btn-cancel" shape="round" >Cancelar</button>
|
||||||
<button (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
|
|
||||||
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
|
||||||
<div class="solid"></div>
|
|
||||||
<button (click)="sendExpedienteToPending()" *ngIf="task.Status != 'Pending'" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
|
||||||
</div>
|
|
||||||
<div class="buttons" *ngIf="task.activityInstanceName == 'Concluir Despacho'">
|
|
||||||
<button (click)="openAddNoteModal('Concluido')" class="btn-cancel" shape="round" >Marcar como Concluído</button>
|
|
||||||
<button (click)="openAddNoteModal('Reexecução')" class="btn-cancel" shape="round" >Enviar para Reexecução</button>
|
|
||||||
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
|
|
||||||
<button (click)="sendExpedienteToPending()" *ngIf="task.Status != 'Pending'" class="btn-cancel" shape="round" >Enviar para Pendentes</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
|||||||
@@ -3,18 +3,19 @@
|
|||||||
--padding-bottom:20px !important;
|
--padding-bottom:20px !important;
|
||||||
--padding-start:20px !important;
|
--padding-start:20px !important;
|
||||||
--padding-end:20px !important;
|
--padding-end:20px !important;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.arrow-right {
|
.arrow-right{
|
||||||
display: none;
|
display: none;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
.arrow-right-icon {
|
.arrow-right-icon{
|
||||||
width: 37px;
|
width: 37px;
|
||||||
float: right;
|
float: right;
|
||||||
font-size: 35px;
|
font-size: 35px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.buttons {
|
.buttons{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
@@ -30,10 +31,8 @@
|
|||||||
margin-bottom: 5px !important;
|
margin-bottom: 5px !important;
|
||||||
margin-top: 5px !important;
|
margin-top: 5px !important;
|
||||||
}
|
}
|
||||||
@media only screen and (max-width: 800px) {
|
.btn-ok, .btn-cancel, .btn-delete{
|
||||||
.btn-ok, .btn-cancel, .btn-delete{
|
width: 100% !important;
|
||||||
width: 47% !important;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@media only screen and (min-width: 1024px) {
|
@media only screen and (min-width: 1024px) {
|
||||||
.arrow-right{
|
.arrow-right{
|
||||||
@@ -54,3 +53,9 @@
|
|||||||
display: block;
|
display: block;
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.desk{
|
||||||
|
text-align: left;
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@ import { BookMeetingModalPage } from 'src/app/pages/gabinete-digital/expediente/
|
|||||||
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
|
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
|
||||||
import { ToastService } from 'src/app/services/toast.service';
|
import { ToastService } from 'src/app/services/toast.service';
|
||||||
import { Location } from '@angular/common'
|
import { Location } from '@angular/common'
|
||||||
|
import { PermissionService } from 'src/app/OtherService/permission.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-despachos-pr-options',
|
selector: 'app-despachos-pr-options',
|
||||||
@@ -29,18 +30,14 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
constructor(private activateRoute: ActivatedRoute,
|
constructor(private activateRoute: ActivatedRoute,
|
||||||
private processes: ProcessesService,
|
private processes: ProcessesService,
|
||||||
private iab: InAppBrowser,
|
|
||||||
private attachmentsService: AttachmentsService,
|
|
||||||
private events: EventsService,
|
|
||||||
private menu: MenuController,
|
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
private alertService: AlertService,
|
|
||||||
public popoverController: PopoverController,
|
public popoverController: PopoverController,
|
||||||
private activatedRoute: ActivatedRoute,
|
private activatedRoute: ActivatedRoute,
|
||||||
private animationController: AnimationController,
|
|
||||||
private toastService: ToastService,
|
private toastService: ToastService,
|
||||||
private location: Location,) { }
|
private location: Location,
|
||||||
|
public p: PermissionService,
|
||||||
|
) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
@@ -331,13 +328,15 @@ export class DespachosPrOptionsPage implements OnInit {
|
|||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
|
|
||||||
let navigationExtras: NavigationExtras = {
|
// let navigationExtras: NavigationExtras = {
|
||||||
queryParams: {
|
// queryParams: {
|
||||||
"despachospr": true,
|
// "despachospr": true,
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
|
|
||||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
// this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||||
|
|
||||||
|
this.location.back()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user