This commit is contained in:
Peter Maquiran
2024-02-29 09:40:51 +01:00
parent fcc75eb8e2
commit b47154d313
56 changed files with 225 additions and 3383 deletions
@@ -62,7 +62,7 @@ export class CreateProcessPage implements OnInit {
taskDescription: string;
loadedAttachments: any;
subjectTypes: any;
selectedTypes: string[] = [];
selectedTypes: string = '';
placeholderSubject: string;
postData: Despacho;
@@ -127,7 +127,7 @@ export class CreateProcessPage implements OnInit {
this.participants = this.participants = new Array();
//Initialize SubjectTypes Array with the value "Indefinido"
if(this.loggeduser.Profile == 'PR') {
this.selectedTypes = ['99999850'];
this.selectedTypes = '99999850';
this.placeholderSubject = 'Indefinido'
} else {
this.placeholderSubject = 'Selecione o tipo de assunto*'
@@ -199,7 +199,7 @@ export class CreateProcessPage implements OnInit {
this.selectedTypes = ev.filter(data => data != '99999850');
}
if (ev.length == 0) {
this.selectedTypes = ["99999850"];
this.selectedTypes = "99999850";
}
}
@@ -211,6 +211,8 @@ export class CreateProcessPage implements OnInit {
this.processes.GetSubjectType().subscribe(res => {
// console.log('subjectTypes',res)
this.subjectTypes = res;
this.placeholderSubject = 'Selecione o tipo de assunto*'
this.selectedTypes = '99999844';
});
}