Bugs reported solved

This commit is contained in:
Eudes Inácio
2023-03-09 09:09:10 +01:00
parent 7c6bd9c0a4
commit 6c7a007812
16 changed files with 88 additions and 34 deletions
+3 -3
View File
@@ -50,7 +50,7 @@
<ion-footer class="ion-no-border">
<div class="buttons width-100">
<button class="btn-cancel cursor-pointer" shape="round" (click)="close()">Cancelar</button>
<button *ngIf="actionName == 'Executado'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Executado</button>
<!-- <button *ngIf="actionName == 'Executado'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Executado</button>
<button *ngIf="actionName == 'Gerar Diploma'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Gerar</button>
<button *ngIf="actionName == 'Arquivar'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Arquivar</button>
<button *ngIf="actionName == 'Arquivo'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Arquivar</button>
@@ -62,8 +62,8 @@
<button *ngIf="actionName == 'Aprovar'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Aprovar</button>
<button *ngIf="actionName == 'Revisão'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Enviar</button>
<button *ngIf="actionName == 'Solicitar Reapreciação'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Solicitar</button>
<button *ngIf="actionName == 'Assinar Diploma'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Assinado</button>
<button *ngIf="!actionName" class="btn-ok cursor-pointer" shape="round" (click)="save()">Enviar</button>
<button *ngIf="actionName == 'Assinar Diploma'" class="btn-ok cursor-pointer" shape="round" (click)="save()">Assinado</button> -->
<button class="btn-ok cursor-pointer" shape="round" (click)="save()">Enviar</button>
@@ -533,6 +533,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
roomId: this.roomId,
members: this.members,
isAdmin: this.isAdmin,
isCreated: this.isGroupCreated,
room: this.room,
name: this.room.name,
},
});
await modal.present();
@@ -179,9 +179,8 @@ export class DiplomaAssinarPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Assinado',() => {
this.httpErroHandle.httpsSucessMessagge('Assinado')
this.goBack();
})
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
}
@@ -79,10 +79,10 @@
<div *ngIf="task" class="aside-right flex-column height-100 overflow-y-auto">
<div class="buttons" *ngIf="task.activityInstanceName == 'Revisar Diploma'">
<button (click)="openAddNoteModal('Arquivo')" class="btn-cancel" shape="round" >Arquivar</button>
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efectuar Despacho</button>
<button (click)="openAddNoteModal('Solicitar assinatura')" class="btn-cancel" shape="round" >Solicitar assinatura do Presidente</button>
<button (click)="openAddNoteModal('Solicitar alteração')" class="btn-cancel" shape="round" >Solicitar alteração</button>
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efectuar Despacho</button>
<button (click)="openAddNoteModal('Arquivo')" class="btn-cancel" shape="round" >Arquivar</button>
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
<div class="solid"></div>
</div>
@@ -23,6 +23,7 @@ import { TaskService } from 'src/app/Rules/task.service';
import { PermissionService } from 'src/app/services/permission.service';
import { ViewDocumentPage } from 'src/app/modals/view-document/view-document.page';
import { ThemeService } from 'src/app/services/theme.service'
import { EventTrigger } from 'src/app/services/eventTrigger.service';
import { SqliteService } from 'src/app/services/sqlite.service';
@@ -89,7 +90,8 @@ export class ExpedienteDetailPage implements OnInit {
private dataService: DataService,
private storage: Storage,
private userAuth: AuthService,
private httpErroHandle: HttpErrorHandle
private httpErroHandle: HttpErrorHandle,
private eventTriger: EventTrigger
) {
this.loggeduser = SessionStore.user
console.log('SessionStore', SessionStore)
@@ -314,6 +316,8 @@ export class ExpedienteDetailPage implements OnInit {
if (actionName == 'Aprovar') {
this.approve(res.data.note, docs);
this.subscribeEventTrigger('update')
}
else if (actionName == 'Revisão') {
this.sendToReview(res.data.note, docs);
@@ -323,6 +327,11 @@ export class ExpedienteDetailPage implements OnInit {
});
}
subscribeEventTrigger(value) {
this.eventTriger.publishSomeData({
expedienteDetail: value
})
}
goBack() {
this.RouteService.goBack();
@@ -10,6 +10,7 @@ import { BackgroundService } from '../../../services/background.service';
import { ThemeService } from 'src/app/services/theme.service'
import { SortService } from 'src/app/services/functions/sort.service';
import { Storage } from '@ionic/storage';
import { EventTrigger } from 'src/app/services/eventTrigger.service';
@Component({
selector: 'app-expediente',
@@ -41,8 +42,17 @@ export class ExpedientePage implements OnInit {
private backgroundservice: BackgroundService,
public ThemeService: ThemeService,
private sortService: SortService,
private storage: Storage
) { }
private storage: Storage,
private eventTriger: EventTrigger
) {
this.eventTriger.getObservable().subscribe((event) => {
if(event.notification == "recive") {
this.refreshing();
}
console.log(event)
})
}
ngOnInit() {
+4 -2
View File
@@ -18,6 +18,7 @@ import { ChatService } from 'src/app/services/chat.service';
import { Platform } from '@ionic/angular';
import { FirstEnterService } from '../../services/first-enter.service';
import { Storage } from '@ionic/storage';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
@Component({
selector: 'app-login',
templateUrl: './login.page.html',
@@ -54,6 +55,7 @@ export class LoginPage implements OnInit {
private platform: Platform,
private FirstEnterService: FirstEnterService,
private storage:Storage,
private httpErrorHandle: HttpErrorHandle
) {}
ngOnInit() {}
@@ -176,10 +178,10 @@ export class LoginPage implements OnInit {
}
}
}/*
else{
this.toastService._badRequest('Ocorreu um problema por favor valide o username e password');
}
} */
}
else {
this.toastService._badRequest('Por favor, insira a sua palavra-passe');
+4 -2
View File
@@ -18,6 +18,7 @@ import { Storage } from '@ionic/storage';
import { InitialsService } from './functions/initials.service';
import { PermissionService } from './permission.service';
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
@Injectable({
providedIn: 'root'
})
@@ -42,7 +43,8 @@ export class AuthService {
private storage: Storage,
private initialsService: InitialsService,
public p: PermissionService,
public ChatSystemService: ChatSystemService) {
public ChatSystemService: ChatSystemService,
private httpErroHandle: HttpErrorHandle) {
if (SessionStore.exist) {
if(this.p.userPermission(this.p.permissionList.Chat.access) == true ) {
@@ -72,7 +74,7 @@ export class AuthService {
this.SetSession(response, user)
}
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
} finally {
return response
}
@@ -6,6 +6,7 @@ import { ExpedienteTaskPipe } from 'src/app/pipes/expediente-task.pipe';
import { ThemeService } from 'src/app/services/theme.service'
import { SortService } from 'src/app/services/functions/sort.service';
import { Storage } from '@ionic/storage';
import { EventTrigger } from 'src/app/services/eventTrigger.service';
@Component({
selector: 'app-expedients',
@@ -29,9 +30,16 @@ export class ExpedientsPage implements OnInit {
private router: Router,
public ThemeService: ThemeService,
private sortService: SortService,
private storage: Storage
private storage: Storage,
private eventTriger: EventTrigger
) {
this.profile = 'mdgpr';
this.eventTriger.getObservable().subscribe((event) => {
if(event.expedienteDetail == "update") {
this.LoadList();
}
console.log(event)
})
}
@@ -6,7 +6,7 @@
</button>
</div>
<div class="buttons">
<button class="btn-cancel" shape="round" >Adicionar</button>
<button (click)="addContacts()" class="btn-cancel" shape="round" >Adicionar</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>
<div class="solid"></div>
@@ -7,6 +7,7 @@ import { SetRoomOwnerPage } from 'src/app/modals/set-room-owner/set-room-owner.p
import { ChatSystemService } from 'src/app/services/chat/chat-system.service';
import { HttpErrorResponse } from '@angular/common/http';
import { SessionStore } from 'src/app/store/session.service';
import { GroupContactsPage } from '../../chat/group-messages/group-contacts/group-contacts.page';
@Component({
@@ -19,6 +20,7 @@ export class ChatPopoverPage implements OnInit {
room: any;
members:any;
isAdmin = false;
isGroupCreated: boolean;
constructor(
private popoverController: PopoverController,
@@ -138,4 +140,26 @@ export class ChatPopoverPage implements OnInit {
}
}
async addContacts() {
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(); */
});
}
}
@@ -12,9 +12,11 @@
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Revisar Diploma'">
<button (click)="openAddNoteModal('Solicitar assinatura')" class="btn-cancel" shape="round" >Solicitar assinatura do Presidente</button>
<button (click)="openAddNoteModal('Solicitar alteração')" class="btn-cancel" shape="round" >Solicitar alteração</button>
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
<button (click)="openAddNoteModal('Arquivo')" class="btn-cancel" shape="round" >Arquivar</button>
<button (click)="openExpedientActionsModal('0',fulltask)" class="btn-cancel" shape="round" >Efetuar despacho</button>
<button (click)="openAddNoteModal('Arquivo')" class="btn-cancel" shape="round" >Arquivar</button>
<button (click)="openBookMeetingModal(task)" class="btn-cancel" shape="round" >Marcar Reunião</button>
<div class="solid"></div>
</div>
<div class="buttons width-100" *ngIf="task.activityInstanceName == 'Diploma Assinado'">
@@ -294,14 +294,9 @@ export class OptsExpedientePage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise();
this.close();
this.toastService._successMessage('Processo aprovado')
this.httpErrorHanlde.httpsSucessMessagge('Avaliação Superiror')
} catch(error) {
if(error.status == 0) {
this.toastService._badRequest('Sem acesso à internet. Por favor verifique sua conexão')
} else {
this.toastService._badRequest('Processo não aprovado')
}
this.httpErrorHanlde.httpStatusHandle(error)
} finally {
loader.remove()
}
+1 -1
View File
@@ -3,4 +3,4 @@ import { oaprProd } from './suport/oapr'
import { doneITProd } from './suport/doneIt'
export const environment: Environment = oaprProd;
export const environment: Environment = doneITProd;
+1 -1
View File
@@ -3,4 +3,4 @@ import { oaprDev } from './suport/oapr'
import { doneITDev } from './suport/doneIt'
export const environment: Environment = oaprDev;
export const environment: Environment = doneITDev;
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = {
"shortSHA": "c037078ca",
"SHA": "c037078ca77a5a2eb316af91a9ec76493f0b908e",
"shortSHA": "7c6bd9c0a",
"SHA": "7c6bd9c0a4253974d796326c6506491c97e9915c",
"branch": "no_bug_movemente",
"lastCommitAuthor": "'Eudes Inácio'",
"lastCommitTime": "'Mon Feb 27 22:16:15 2023 +0100'",
"lastCommitMessage": "Saidas testastas",
"lastCommitNumber": "4841",
"lastCommitTime": "'Mon Feb 27 22:52:33 2023 +0100'",
"lastCommitMessage": "pr eftu<r despachp",
"lastCommitNumber": "4847",
"change": "",
"changeStatus": "On branch no_bug_movemente\nYour branch and 'origin/no_bug_movemente' have diverged,\nand have 1 and 5 different commits each, respectively.\n (use \"git pull\" to merge the remote branch into yours)\n\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/home/home.page.ts\n\tmodified: src/app/modals/create-process/create-process.page.ts\n\tmodified: src/app/modals/view-document/view-document.page.scss\n\tmodified: src/app/pages/agenda/agenda.page.ts\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.ts\n\tmodified: src/app/pages/publications/publications.page.ts\n\tmodified: src/app/pages/publications/view-publications/view-publications.page.html\n\tmodified: src/app/pages/publications/view-publications/view-publications.page.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.ts\n\tmodified: src/app/shared/agenda/view-event/view-event.page.scss\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts\n\tmodified: src/app/shared/popover/chat-popover/chat-popover.page.html\n\tmodified: src/app/shared/publication/view-publications/view-publications.page.html\n\tmodified: src/app/shared/publication/view-publications/view-publications.page.ts\n\tmodified: src/global.scss",
"changeStatus": "On branch no_bug_movemente\nYour branch is up to date with 'origin/no_bug_movemente'.\n\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: src/app/modals/add-note/add-note.page.html\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas-assinar/diploma-assinar/diploma-assinar.page.ts\n\tmodified: src/app/pages/gabinete-digital/diplomas/diploma/diploma.page.html\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/expediente.page.ts\n\tmodified: src/app/pages/login/login.page.ts\n\tmodified: src/app/services/auth.service.ts\n\tmodified: src/app/shared/gabinete-digital/expedients/expedients.page.ts\n\tmodified: src/app/shared/popover/chat-popover/chat-popover.page.html\n\tmodified: src/app/shared/popover/chat-popover/chat-popover.page.ts\n\tmodified: src/app/shared/popover/deploma-options/deploma-options.page.html\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.ts\n\tmodified: src/environments/environment.prod.ts\n\tmodified: src/environments/environment.ts",
"changeAuthor": "eudes.inacio"
}