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 {
|
export class DashboardComponent {
|
||||||
|
|
||||||
dashboardTitle : any = 'PD Status';
|
dashboardTitle : any = 'PD Status';
|
||||||
access : boolean;
|
access : boolean = true;
|
||||||
|
|
||||||
/** Declaration Part Of Doughnut Chart */
|
/** Declaration Part Of Doughnut Chart */
|
||||||
doughnutChartLabels: string[] = ['Triggered','Allocated','Scheduled','InProgress','Completed','QC Completed'];
|
doughnutChartLabels: string[] = ['Triggered','Allocated','Scheduled','InProgress','Completed','QC Completed'];
|
||||||
@ -46,7 +46,7 @@ export class DashboardComponent {
|
|||||||
ngOnInit(){
|
ngOnInit(){
|
||||||
// console.clear();
|
// console.clear();
|
||||||
// this.access = this.userRoleID == 3 || this.userRoleID == 4 || this.userRoleID == 6 ? false : true;
|
// 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();
|
this.getDoughnutChartData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
|
|||||||
alertMsgAllocateType : any[];
|
alertMsgAllocateType : any[];
|
||||||
alertCount: any;
|
alertCount: any;
|
||||||
userRoleType: String;
|
userRoleType: String;
|
||||||
permissionDeined : boolean;
|
permissionDeined : boolean = true;
|
||||||
alertTAT: any;
|
alertTAT: any;
|
||||||
countTAT: number;
|
countTAT: number;
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.userRoleType=localStorage.getItem('user_role');
|
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();
|
// console.clear();
|
||||||
const elemSidebar = <HTMLElement>document.querySelector('.sidebar-container ');
|
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 '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 '2': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion");
|
||||||
case '3': return value.filter(val=>val.state!="settings");
|
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 '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 '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 '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");
|
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 = [];
|
titleList: any = [];
|
||||||
qualificationList: any = [];
|
qualificationList: any = [];
|
||||||
individuals_order_id: any;
|
individuals_order_id: any;
|
||||||
|
role_id: string;
|
||||||
//EditGeneralFormData: any=[];
|
//EditGeneralFormData: any=[];
|
||||||
//EditFlag: boolean = false;
|
//EditFlag: boolean = false;
|
||||||
|
|
||||||
@ -34,6 +35,8 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
|||||||
else{
|
else{
|
||||||
this.pageTitle="Add Name of Person(s) Met and Individual Loan Applicant(s) "
|
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() {
|
ngOnInit() {
|
||||||
@ -82,7 +85,7 @@ export class OtherApplicantDetailsComponent implements OnInit {
|
|||||||
return this._fb.group({
|
return this._fb.group({
|
||||||
pd_co_applicant_id: [elementValue.pd_co_applicant_id],
|
pd_co_applicant_id: [elementValue.pd_co_applicant_id],
|
||||||
applicant_title_name: [elementValue.applicant_title_name, Validators.required],
|
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_applicant: [elementValue.is_applicant || false],
|
||||||
is_person_met: [elementValue.is_person_met || false],
|
is_person_met: [elementValue.is_person_met || false],
|
||||||
age: [elementValue.age || ''],
|
age: [elementValue.age || ''],
|
||||||
|
|||||||
@ -109,6 +109,7 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
this.disableAfterSubmit = false;
|
this.disableAfterSubmit = false;
|
||||||
this.role_id=localStorage.getItem('user_role')
|
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:''}
|
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
|
||||||
}
|
}
|
||||||
/********************** Constructor Section Ends Here ****************/
|
/********************** Constructor Section Ends Here ****************/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user