add questions in employment form
This commit is contained in:
parent
bc127b30bd
commit
4953bffdad
@ -17,7 +17,7 @@
|
||||
<mat-tab label="Details">
|
||||
<ng-template matTabContent>
|
||||
<div fxLayout="row wrap">
|
||||
<div fxFlex="100">
|
||||
<div fxFlex="100">
|
||||
<mat-card>
|
||||
|
||||
<mat-form-field style="width:22%">
|
||||
@ -404,7 +404,33 @@
|
||||
<input matInput placeholder="Bonus Type Others" formControlName="bonus_type_other">
|
||||
<mat-error *ngIf="employmentForm.controls['bonus_type_other'].hasError('required')">Bonus Type Others Required</mat-error>
|
||||
</mat-form-field>
|
||||
|
||||
<div *ngIf="pd_cus_segment!='SAL-CHQ'">
|
||||
<mat-form-field style="width: 90%">
|
||||
<mat-select placeholder="Is there any relationship between applicant and employer?" formControlName="employer_applicant_relation"
|
||||
>
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option value="yes">Yes</mat-option>
|
||||
<mat-option value="no">No</mat-option>
|
||||
</mat-select>
|
||||
<mat-error *ngIf="employmentForm.controls['employer_applicant_relation'].hasError('required')">Is there any relationship between applicant and employer ? Required</mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 45%" *ngIf="employmentForm.controls['employer_applicant_relation'].value == 'yes'">
|
||||
<input matInput placeholder="Enter relationship" formControlName="employer_applicant_relation_type"
|
||||
autocomplete="off">
|
||||
<!-- <mat-hint style="color: red;" *ngIf="employmentForm.controls['total_business_experience'].value !=undefined && this.workExperienceErrorFlag">
|
||||
Total working Experience is Lower
|
||||
</mat-hint> -->
|
||||
<mat-error *ngIf="employmentForm.controls.total_business_experience.hasError('min')">Total working Experience is Lower</mat-error>
|
||||
</mat-form-field>
|
||||
<mat-form-field style="width: 45%">
|
||||
<input matInput placeholder="Number of employees working in firm? " formControlName="no_of_employee_in_firm"
|
||||
autocomplete="off" >
|
||||
<!-- <mat-hint style="color: red;" *ngIf="employmentForm.controls['total_business_experience'].value !=undefined && this.workExperienceErrorFlag">
|
||||
Total working Experience is Lower
|
||||
</mat-hint> -->
|
||||
<mat-error *ngIf="employmentForm.controls.total_business_experience.hasError('min')">Total working Experience is Lower</mat-error>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<mat-form-field style="width: 45%">
|
||||
<mat-select placeholder="ID Card issued by the Company seen ?" formControlName="id_card_issued_company"
|
||||
required>
|
||||
|
||||
@ -194,7 +194,12 @@ export class EmploymentInfoComponent implements OnInit {
|
||||
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);
|
||||
this.employmentForm.controls['employer_applicant_relation'].setValue(value.records.employer_applicant_relation);
|
||||
this.employmentForm.controls['employer_applicant_relation_type'].setValue(value.records.employer_applicant_relation_type);
|
||||
|
||||
this.employmentForm.controls['no_of_employee_in_firm'].setValue(value.records.no_of_employee_in_firm);
|
||||
this.employmentForm.controls['id_card_issued_company'].setValue(value.records.id_card_issued_company);
|
||||
|
||||
if(value.records.id_card_issued_company == 'no'){
|
||||
this.employmentForm.controls['why_company_id_proof_not_available'].setValue(value.records.why_company_id_proof_not_available);
|
||||
}
|
||||
@ -310,6 +315,9 @@ export class EmploymentInfoComponent implements OnInit {
|
||||
bonus_frequency: [''],
|
||||
bonus_type: [''],
|
||||
bonus_type_other: [''],
|
||||
employer_applicant_relation:[],
|
||||
employer_applicant_relation_type:[],
|
||||
no_of_employee_in_firm:[],
|
||||
id_card_issued_company: [''],
|
||||
why_company_id_proof_not_available: [''],
|
||||
// employment_details: this.fb.array([]),
|
||||
@ -679,7 +687,10 @@ export class EmploymentInfoComponent implements OnInit {
|
||||
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;
|
||||
|
||||
records.employer_applicant_relation = this.employmentForm.controls['employer_applicant_relation'].value;
|
||||
records.employer_applicant_relation_type = this.employmentForm.controls['employer_applicant_relation_type'].value;
|
||||
|
||||
records.no_of_employee_in_firm = this.employmentForm.controls['no_of_employee_in_firm'].value;
|
||||
records.id_card_issued_company = this.employmentForm.controls['id_card_issued_company'].value;
|
||||
if(this.employmentForm.controls['id_card_issued_company'].value == 'no'){
|
||||
records.why_company_id_proof_not_available = this.employmentForm.controls['why_company_id_proof_not_available'].value;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user