applicant changes done
This commit is contained in:
parent
3078057dcd
commit
9ff7b93657
@ -16,7 +16,7 @@ import { BaseChartDirective } from 'ng2-charts/ng2-charts';
|
||||
export class DashboardComponent {
|
||||
|
||||
dashboardTitle : any = 'PD Status';
|
||||
access : boolean;
|
||||
access : boolean = true;
|
||||
|
||||
/** Declaration Part Of Doughnut Chart */
|
||||
doughnutChartLabels: string[] = ['Triggered','Allocated','Scheduled','InProgress','Completed','QC Completed'];
|
||||
@ -46,7 +46,7 @@ export class DashboardComponent {
|
||||
ngOnInit(){
|
||||
// console.clear();
|
||||
// this.access = this.userRoleID == 3 || this.userRoleID == 4 || this.userRoleID == 6 ? false : true;
|
||||
this.access = this.userRoleID == 4 || this.userRoleID == 6 ? false : true;
|
||||
// this.access = this.userRoleID == 4 || this.userRoleID == 6 ? false : true;
|
||||
this.getDoughnutChartData();
|
||||
}
|
||||
|
||||
|
||||
@ -55,7 +55,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
|
||||
alertMsgAllocateType : any[];
|
||||
alertCount: any;
|
||||
userRoleType: String;
|
||||
permissionDeined : boolean;
|
||||
permissionDeined : boolean = true;
|
||||
alertTAT: any;
|
||||
countTAT: number;
|
||||
|
||||
@ -115,7 +115,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
|
||||
|
||||
ngOnInit(): void {
|
||||
this.userRoleType=localStorage.getItem('user_role');
|
||||
this.permissionDeined = this.userRoleType == '4' || this.userRoleType == '6' ? false : true;
|
||||
// this.permissionDeined = this.userRoleType == '4' || this.userRoleType == '6' ? false : true;
|
||||
// console.clear();
|
||||
const elemSidebar = <HTMLElement>document.querySelector('.sidebar-container ');
|
||||
|
||||
|
||||
@ -12,9 +12,9 @@ export class RoleMenuItemsPipe implements PipeTransform {
|
||||
case '1': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion");
|
||||
case '2': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion");
|
||||
case '3': return value.filter(val=>val.state!="settings");
|
||||
case '4': return;
|
||||
case '4': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||
case '5': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports");
|
||||
case '6': return;
|
||||
case '6': return value.filter(val=>val.state!="settings" && val.state!="personal_discussion" && val.state!="reports");
|
||||
case '7': return value.filter(val=>val.state!="settings" && val.state!="personal_discussion" && val.state!="reports");
|
||||
case '8': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion");
|
||||
case '9': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion");
|
||||
|
||||
@ -16,6 +16,7 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
||||
titleList: any = [];
|
||||
qualificationList: any = [];
|
||||
individuals_order_id: any;
|
||||
role_id: string;
|
||||
//EditGeneralFormData: any=[];
|
||||
//EditFlag: boolean = false;
|
||||
|
||||
@ -34,7 +35,9 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
||||
else{
|
||||
this.pageTitle="Add Name of Person(s) Met and Individual Loan Applicant(s) "
|
||||
}
|
||||
}
|
||||
this.role_id=localStorage.getItem('user_role')
|
||||
console.log('User Role',this.role_id);
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
if(this.data.edit_data){
|
||||
@ -82,7 +85,7 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
||||
return this._fb.group({
|
||||
pd_co_applicant_id: [elementValue.pd_co_applicant_id],
|
||||
applicant_title_name: [elementValue.applicant_title_name, Validators.required],
|
||||
applicant_name: [{value:elementValue.applicant_name, disabled : elementValue.individuals_order_id == 1 ? true : false} || '', Validators.required],
|
||||
applicant_name: [{value:elementValue.applicant_name, disabled : elementValue.individuals_order_id == 1 && this.role_id != '10' && this.role_id != '3' && this.role_id != '7' && this.role_id != '6' ? true : false} || '', Validators.required],
|
||||
is_applicant: [elementValue.is_applicant || false],
|
||||
is_person_met: [elementValue.is_person_met || false],
|
||||
age: [elementValue.age || ''],
|
||||
|
||||
@ -109,6 +109,7 @@ export class GeneralInfoComponent implements OnInit {
|
||||
}
|
||||
this.disableAfterSubmit = false;
|
||||
this.role_id=localStorage.getItem('user_role')
|
||||
console.log('User Role',this.role_id);
|
||||
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
|
||||
}
|
||||
/********************** Constructor Section Ends Here ****************/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user