This commit is contained in:
Peter Maquiran
2023-07-21 17:17:28 +01:00
parent 9967f52c80
commit 60078f6118
12 changed files with 29 additions and 42 deletions
+4 -2
View File
@@ -916,7 +916,8 @@ export class AgendaPage implements OnInit {
let taskParticipants = [{
EmailAddress: SessionStore.user.Email,
IsRequired: true,
Name: SessionStore.user.FullName
Name: SessionStore.user.FullName,
UserType: "GD"
}]
const modal = await this.modalCtrl.create({
component: NewEventPage,
@@ -944,7 +945,8 @@ export class AgendaPage implements OnInit {
this.taskParticipants = [{
EmailAddress: SessionStore.user.Email,
IsRequired: true,
Name: SessionStore.user.FullName
Name: SessionStore.user.FullName,
UserType: "GD"
}]
}
}
@@ -82,10 +82,6 @@ export class DespachoPrPage implements OnInit {
this.LoadTaskDetail(this.serialNumber);
// this.LoadRelatedEvents(this.serialNumber);
this.backgroundservice.registerBackService('Online', () => {
this.LoadTaskDetail(this.serialNumber);
});
}
close() {
@@ -17,11 +17,7 @@
<div *ngIf="task" class="aside-right flex-column height-100 overflow-y-auto">
<div class="buttons">
<button (click)="Assinar()" class="btn-cancel" shape="round" >Assinado</button>
<div class="solid"></div>
</div>
<div class="buttons">
<button (click)="AssinarNew()" class="btn-cancel" shape="round" >Assinar</button>
<button (click)="AssinarDraft()" class="btn-cancel" shape="round" >Assinado</button>
<div class="solid"></div>
</div>
<div class="buttons">
@@ -231,10 +231,6 @@ export class DiplomaAssinarPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Assinado')
this.TaskService.loadDiplomas()
this.goBack();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
}
@@ -244,7 +240,7 @@ export class DiplomaAssinarPage implements OnInit {
}
async AssinarNew() {
async AssinarDraft() {
let body = {
"InstanceId": this.task.InstanceID,
"FolderId": this.task.FolderID,
@@ -252,22 +248,20 @@ export class DiplomaAssinarPage implements OnInit {
"OriginalFileName": this.DraftNames
}
console.log(body)
const loader = this.toastService.loading()
try {
await this.processes.presidentialActionsSignature(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Assinado')
this.TaskService.loadDiplomas()
await this.Assinar();
this.TaskService.loadDiplomas();
this.goBack();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
}
finally {
loader.remove()
}
}
async openAddNoteModal(actionName: string) {
@@ -157,7 +157,8 @@ export class BookMeetingModalPage implements OnInit {
this.taskParticipants = [{
EmailAddress: SessionStore.user.Email,
IsRequired: true,
Name: SessionStore.user.FullName
Name: SessionStore.user.FullName,
UserType: "GD"
}]
}
@@ -290,7 +290,7 @@ export class GabineteDigitalPage implements OnInit {
if(currentFilter != this.filterName) {
this.dynamicSearch()
}
console.log('this.filterName', this.filterName)
// console.log('this.filterName', this.filterName)
}