-
+
+
+
+
@@ -117,6 +135,26 @@
formControlName="bonus_incentive" (keypress)="keyPress($event)" required>
+
+
+ Select
+ Validated
+ Not Validated
+
+
+
+
+
+
+
+
+
+
+
Select
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.scss
index 1da78ad94..9ce3b1694 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.scss
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.scss
@@ -11,7 +11,7 @@
width: 80%;
}
.matcard mat-form-field {
- margin: 0 2%;
+ margin: 0 1%;
}
.address .button {
float: right;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
index c7d4c40e7..a1f2c4885 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.ts
@@ -118,13 +118,22 @@ export class EmploymentInfoComponent implements OnInit {
this.employmentForm.controls['confirm_salary'].setValue(value.records.confirm_salary);
if (value.records.confirm_salary_amount) {
this.employmentForm.controls['confirm_salary_amount'].setValue(value.records.confirm_salary_amount);
+ // this.employmentForm.controls['salary_from_date'].setValue(value.records.salary_from_date);
+ // this.employmentForm.controls['salary_to_date'].setValue(value.records.salary_to_date);
+ this.employmentForm.controls['total_business_experience'].setValue(value.records.total_business_experience);
+ this.employmentForm.controls['total_business_previous_experience'].setValue(value.records.total_business_previous_experience);
}
this.employmentForm.controls['attendance_seen'].setValue(value.records.attendance_seen);
this.employmentForm.controls['sal_reg_seen'].setValue(value.records.sal_reg_seen);
- this.employmentForm.controls['which_date_the_salary_is_rcv'].setValue(value.records.which_date_the_salary_is_rcv);
+ this.employmentForm.controls['from_date_the_salary_is_rcv'].setValue(value.records.from_date_the_salary_is_rcv);
+ this.employmentForm.controls['to_date_the_salary_is_rcv'].setValue(value.records.to_date_the_salary_is_rcv);
this.employmentForm.controls['gross_monthly_salary'].setValue(value.records.gross_monthly_salary);
this.employmentForm.controls['net_monthly_salary'].setValue(value.records.net_monthly_salary);
this.employmentForm.controls['bonus_incentive'].setValue(value.records.bonus_incentive);
+ this.employmentForm.controls['amount_paid_in_cash'].setValue(value.records.amount_paid_in_cash);
+ this.employmentForm.controls['how_was_it_validated'].setValue(value.records.how_was_it_validated);
+ this.employmentForm.controls['why_was_it_not_validated'].setValue(value.records.why_was_it_not_validated);
+ this.employmentForm.controls['amount_paid_through_bank'].setValue(value.records.amount_paid_through_bank);
this.employmentForm.controls['bonus_frequency'].setValue(value.records.bonus_frequency);
this.employmentForm.controls['bonus_type'].setValue(value.records.bonus_type);
this.employmentForm.controls['bonus_type_other'].setValue(value.records.bonus_type_other);
@@ -161,12 +170,19 @@ export class EmploymentInfoComponent implements OnInit {
designation_person_met: [''],
confirm_salary: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
confirm_salary_amount: [''],
+ total_business_experience:[''],
+ total_business_previous_experience:[''],
attendance_seen: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
sal_reg_seen: [this.pd_cus_segment=='SAL-CHQ' ? 'No' : '', Validators.compose([Validators.required])],
- which_date_the_salary_is_rcv:[''],
+ from_date_the_salary_is_rcv:[''],
+ to_date_the_salary_is_rcv:[''],
gross_monthly_salary: ['', Validators.compose([Validators.required])],
net_monthly_salary: ['', Validators.compose([Validators.required])],
bonus_incentive: ['', Validators.compose([Validators.required])],
+ amount_paid_in_cash: [''],
+ how_was_it_validated: [''],
+ why_was_it_not_validated: [''],
+ amount_paid_through_bank: [''],
bonus_frequency: [''],
bonus_type: [''],
bonus_type_other: [''],
@@ -178,13 +194,8 @@ export class EmploymentInfoComponent implements OnInit {
filtercompanyrelationship(companyid,applicantid){
var array = companyid.split("-");
- // console.log(array[0]);
- // console.log('companyid',companyid);
- // console.log('applicantid',applicantid);
- let data = this.company_related_applicants_list.filter(freq=>freq.relation_to_company == array[0] &&freq.applicant_name == applicantid);
-
+ let data = this.company_related_applicants_list.filter(cmpy=>cmpy.relation_to_company == array[0] && cmpy.applicant_name == applicantid);
if(data.length>0){
-
this.filtered_company_relationship_list = this.company_relationship_list.filter(freq=>freq.company_relationship_id == data[0].company_relationship );
this.employmentForm.controls['designation_person_met'].setValue(this.filtered_company_relationship_list[0]['name'] +' '+array[1]);
}
@@ -225,13 +236,20 @@ export class EmploymentInfoComponent implements OnInit {
records.confirm_salary = this.employmentForm.controls['confirm_salary'].value;
if (this.employmentForm.controls['confirm_salary'].value == 'yes') {
records.confirm_salary_amount = this.employmentForm.controls['confirm_salary_amount'].value;
+ records.total_business_experience = this.employmentForm.controls['total_business_experience'].value;
+ records.total_business_previous_experience = this.employmentForm.controls['total_business_previous_experience'].value;
}
records.attendance_seen = this.employmentForm.controls['attendance_seen'].value;
records.sal_reg_seen = this.employmentForm.controls['sal_reg_seen'].value;
- records.which_date_the_salary_is_rcv = this.employmentForm.controls['which_date_the_salary_is_rcv'].value;
+ records.from_date_the_salary_is_rcv = this.employmentForm.controls['from_date_the_salary_is_rcv'].value;
+ records.to_date_the_salary_is_rcv = this.employmentForm.controls['to_date_the_salary_is_rcv'].value;
records.gross_monthly_salary = this.employmentForm.controls['gross_monthly_salary'].value;
records.net_monthly_salary = this.employmentForm.controls['net_monthly_salary'].value;
records.bonus_incentive = this.employmentForm.controls['bonus_incentive'].value;
+ records.amount_paid_in_cash = this.employmentForm.controls['amount_paid_in_cash'].value;
+ records.how_was_it_validated = this.employmentForm.controls['how_was_it_validated'].value;
+ records.why_was_it_not_validated = this.employmentForm.controls['why_was_it_not_validated'].value;
+ records.amount_paid_through_bank = this.employmentForm.controls['amount_paid_through_bank'].value;
records.bonus_frequency = this.employmentForm.controls['bonus_frequency'].value;
records.bonus_type = this.employmentForm.controls['bonus_type'].value;
records.bonus_type_other = this.employmentForm.controls['bonus_type_other'].value;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
index 47a10bbf4..19e51a7d4 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
@@ -362,9 +362,9 @@ export class FamilyDetailsComponent implements OnInit {
}
selectedPerson(e,inx){
-
+ console.log('1)','e',e,'index',inx);
this.FamilyMemberAsLabel[inx] = this.selectPerson.filter(item => item.pd_co_applicant_id == e)[0].applicant_name;
-
+ console.log('2)','this.FamilyMemberAsLabel[inx]',this.FamilyMemberAsLabel[inx]);
const control = this.familyForm.controls['family_details']['controls'][inx].controls.family_members_details;
let newControlLength: number;
@@ -375,12 +375,12 @@ export class FamilyDetailsComponent implements OnInit {
let arraydata : any;
let data = this.apiFamilyMembers.filter(item => item.relation_to == e);
-
+ console.log('3)','data',data);
// data_gets_from:'GeneralForm'
// data_gets_from:'BusinessForm'
if(data.length > 0){
-
+
newControlLength = data.length;
let index: number = 0;
@@ -393,13 +393,14 @@ export class FamilyDetailsComponent implements OnInit {
data.forEach((val,inx) => {
-
+ console.log('b4 this.isReadOnly[inx]',this.isReadOnly[inx],val.age);
// family_member_earning_status
if(val.age){
this.isReadOnly[inx] = true;
}else{
this.isReadOnly[inx] = false;
}
+ console.log('aftr this.isReadOnly[inx]',this.isReadOnly[inx],val.age);
arraydata = {
'family_member_name' : val.name,
'family_member_relationship' : val.relationship,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
index 093d95fed..4e6522ac7 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
@@ -34,6 +34,13 @@
+
+
+ Select
+ {{list.name }} ( {{list.abbr}} )
+
+
{
-
// });
const dialogRef = this.dialog.open(RentalInfoComponent, {
data: this.pd_all_details,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
index 0c4ce1a5f..52ca499f2 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
@@ -6,11 +6,11 @@
{{pdMasterList.customer_segment_name}}
-
{{pdMasterList.product_name}}/{{pdMasterList.subproduct_name}}
+ {{pdMasterList.product_name}}/{{pdMasterList.subproduct_name}}
- {{pdMasterList.lender_full_name}}/{{pdMasterList.lender_applicant_id}}
+ {{pdMasterList.lender_full_name}}/{{pdMasterList.lender_applicant_id}}