mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Pull made
This commit is contained in:
@@ -55,6 +55,10 @@ export class ApproveEventPage implements OnInit {
|
||||
) {
|
||||
// Event to approve list
|
||||
|
||||
|
||||
window['edit-approve-event-desktop'] = ()=> {
|
||||
this.getTask()
|
||||
}
|
||||
}
|
||||
|
||||
toDateString(e) {
|
||||
@@ -168,6 +172,7 @@ export class ApproveEventPage implements OnInit {
|
||||
});
|
||||
return await popover.present().then(() =>{
|
||||
this.TaskService.loadEventosParaAprovacao()
|
||||
this.getTask()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -375,14 +375,14 @@ export class EditEventToApprovePage implements OnInit {
|
||||
if(document['action'] == 'add') {
|
||||
delete document.action
|
||||
this.attachmentsService.setEventAttachmentById(document).subscribe(()=>{
|
||||
|
||||
window['edit-approve-event-desktop']()
|
||||
}, error =>{
|
||||
this.toastService.badRequest();
|
||||
});
|
||||
} else if(document['action'] == 'delete') {
|
||||
delete document.action
|
||||
this.attachmentsService.deleteEventAttachmentById(document.Id).subscribe( res=>{
|
||||
|
||||
window['edit-approve-event-desktop']()
|
||||
}, error =>{
|
||||
this.toastService.badRequest()
|
||||
})
|
||||
|
||||
@@ -61,15 +61,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -77,7 +77,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
@@ -58,15 +58,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -54,15 +54,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
@@ -52,15 +52,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -57,15 +57,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -55,15 +55,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -56,15 +56,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -72,7 +72,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -60,15 +60,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="OverdueTasks">
|
||||
@@ -76,7 +76,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
</mat-select>
|
||||
|
||||
@@ -56,15 +56,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -55,15 +55,15 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Novos" >
|
||||
Novos
|
||||
Novas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Lidos" >
|
||||
Lidos
|
||||
Lidas
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Não lidos" >
|
||||
Não lidos
|
||||
Não lidas
|
||||
</mat-option>
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
</mat-option>
|
||||
|
||||
<mat-option value="Todos" >
|
||||
Todos
|
||||
Todas
|
||||
</mat-option>
|
||||
|
||||
|
||||
|
||||
@@ -47,12 +47,9 @@ export class DespachosOptionsPage implements OnInit {
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
close () {
|
||||
this.goBack()
|
||||
}
|
||||
|
||||
async openTaskProcessModal(taskAction: any, task: any) {
|
||||
this.popoverController.dismiss();
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800){
|
||||
classs = 'modal modal-desktop'
|
||||
@@ -70,18 +67,17 @@ export class DespachosOptionsPage implements OnInit {
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then( res => {
|
||||
this.goBack();
|
||||
// this.goBack();
|
||||
});
|
||||
}
|
||||
|
||||
sendExpedienteToPending() {
|
||||
const loader = this.toastService.loading()
|
||||
this.popoverController.dismiss();
|
||||
this.processes.SetTaskToPending(this.task.SerialNumber).subscribe(res=>{
|
||||
this.httpErrorHandle.httpsSucessMessagge('Enviar para Pendentes')
|
||||
loader.remove()
|
||||
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
},(error)=>{
|
||||
loader.remove()
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
@@ -89,7 +85,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
}
|
||||
|
||||
async distartExpedientModal(){
|
||||
this.popoverController.dismiss();
|
||||
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: DiscartExpedientModalPage,
|
||||
@@ -105,14 +101,14 @@ export class DespachosOptionsPage implements OnInit {
|
||||
await modal.present();
|
||||
modal.onDidDismiss().then(res=>{
|
||||
if(res['data']=='close'){
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
async openBookMeetingModal(task: any) {
|
||||
this.popoverController.dismiss();
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800){
|
||||
classs = 'book-meeting-modal modal modal-desktop'
|
||||
@@ -128,11 +124,13 @@ export class DespachosOptionsPage implements OnInit {
|
||||
backdropDismiss: false
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss();
|
||||
modal.onDidDismiss().then(() => {
|
||||
this.goBack('no');
|
||||
})
|
||||
}
|
||||
|
||||
async openDelegarModal(task: any) {
|
||||
this.popoverController.dismiss();
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800){
|
||||
classs = 'book-meeting-modal modal modal-desktop'
|
||||
@@ -152,7 +150,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
if(res){
|
||||
const data = res.data;
|
||||
if(data == 'close') {
|
||||
this.goBack();
|
||||
this.goBack('back');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +173,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService._successMessage()
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
} catch (error) {
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
@@ -191,7 +189,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
|
||||
async openAddNoteModal(actionName:string) {
|
||||
|
||||
this.popoverController.dismiss();
|
||||
|
||||
let classs;
|
||||
if( window.innerWidth <= 800){
|
||||
classs = 'modal modal-desktop'
|
||||
@@ -229,7 +227,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
if(actionName == 'Executado') {
|
||||
await this.executado(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Arquivar'){
|
||||
else if(actionName == 'Arquivar') {
|
||||
await this.arquivar(res.data.note, docs);
|
||||
}
|
||||
else if(actionName == 'Gerar Diploma') {
|
||||
@@ -241,7 +239,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
else if(actionName == 'Reexecução') {
|
||||
await this.reexecutar(res.data.note, docs);
|
||||
}
|
||||
this.goBack();
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -262,7 +260,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService._successMessage('Processo arquivado')
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
} catch (error) {
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
@@ -293,7 +291,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
this.toastService._successMessage()
|
||||
} catch(error) {
|
||||
if(error.status == 0) {
|
||||
@@ -326,7 +324,7 @@ export class DespachosOptionsPage implements OnInit {
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.toastService._successMessage()
|
||||
this.close();
|
||||
this.goBack('back');
|
||||
} catch (error) {
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
|
||||
@@ -340,8 +338,8 @@ export class DespachosOptionsPage implements OnInit {
|
||||
|
||||
}
|
||||
|
||||
goBack() {
|
||||
this.RouteService.goBack();
|
||||
goBack(params) {
|
||||
this.popoverController.dismiss()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -303,7 +303,7 @@ export class DespachosPrOptionsPage implements OnInit {
|
||||
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.httpErroHandle.httpsSucessMessagge('Concluir')
|
||||
this.httpErroHandle.httpsSucessMessagge('Concluir Despacho')
|
||||
this.close();
|
||||
} catch (error) {
|
||||
if(error.status == 0) {
|
||||
|
||||
@@ -87,54 +87,7 @@ export class OptsExpedientePage implements OnInit {
|
||||
}
|
||||
|
||||
goBack() {
|
||||
if(this.task.Status == "Pending" && this.caller != 'events') {
|
||||
if (window.innerWidth <= 800) {
|
||||
this.router.navigate(['/home/gabinete-digital/pendentes']);
|
||||
}
|
||||
else {
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"pendentes": true,
|
||||
}
|
||||
}
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.RouteService.goBack()
|
||||
|
||||
|
||||
/* this.activatedRoute.paramMap.subscribe(params => {
|
||||
|
||||
|
||||
|
||||
|
||||
switch (params["params"].caller) {
|
||||
case 'events':
|
||||
|
||||
|
||||
this.router.navigate(['/home',params["params"].caller]);
|
||||
break;
|
||||
|
||||
case 'gabinete-digital':
|
||||
|
||||
let navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
"expedientes": true,
|
||||
}
|
||||
}
|
||||
if( window.innerWidth < 801) {
|
||||
this.router.navigate(['/home/gabinete-digital/expediente']);
|
||||
|
||||
|
||||
} else {
|
||||
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
}); */
|
||||
}
|
||||
this.RouteService.goBack()
|
||||
}
|
||||
|
||||
attachDocument(){
|
||||
|
||||
Reference in New Issue
Block a user