employeement : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-14 13:31:33 +05:30
parent ea2fee4dc1
commit 92c96afbb0
6 changed files with 722 additions and 84 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,79 +1,230 @@
<ion-header>
<ion-navbar color="optblue">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title *ngIf="!viewchange">Employee Salary Category</ion-title>
<ion-title *ngIf="!viewchange">Employee Salary Category</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<form [formGroup]="empInfo">
<form [formGroup]="employmentForm">
<mat-card>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Name Of Emp" type="text" name="nameOfEmp" formControlName="nameOfEmp">
<!-- <mat-error *ngIf="pdforms.controls['lenAppID'].hasError('required')">Applicant ID Required</mat-error> -->
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Name of Employer" formControlName="employer_name">
<mat-option *ngFor="let cl of company_list" [value]="cl.company_order_id+'-'+cl.company_name">{{
cl.company_name }}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<!-- <mat-label>How many yrs with this emp</mat-label> -->
<input matInput placeholder="How many yrs with this emp" type="text" name="yearWithEmp" formControlName="yearWithEmp">
<!-- <mat-error *ngIf="pdforms.controls['lenAppID'].hasError('required')">Applicant ID Required</mat-error> -->
</mat-form-field>
</div>
<mat-list>
<p mat-subheader>Emp Met</p>
<mat-radio-group name="empMet" formControlName="empMet">
<mat-radio-button value="YES">YES</mat-radio-button>
<mat-radio-button value="NO">NO</mat-radio-button>
</mat-radio-group>
</mat-list>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<!-- <mat-label>How many yrs with this emp</mat-label> -->
<input matInput placeholder="Name and Designation of person met" type="text" name="designationOfEmp" formControlName="designationOfEmp">
<!-- <mat-error *ngIf="pdforms.controls['lenAppID'].hasError('required')">Applicant ID Required</mat-error> -->
</mat-form-field>
</div>
<mat-list>
<p mat-subheader>Salary amt confirmed</p>
<mat-radio-group name="salaryConfirm" formControlName="salaryConfirm">
<mat-radio-button value="YES">YES</mat-radio-button>
<mat-radio-button value="NO">NO</mat-radio-button>
</mat-radio-group>
</mat-list>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<!-- <mat-label>How many yrs with this emp</mat-label> -->
<input matInput placeholder="What is the salary amt confirmed" type="text" name="actualSalary" formControlName="actualSalary">
<!-- <mat-error *ngIf="pdforms.controls['lenAppID'].hasError('required')">Applicant ID Required</mat-error> -->
<mat-label>How many yrs with this emp</mat-label>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 48%">
<input matInput type="text" formControlName="how_long_year" autocomplete="off" placeholder="Year" min='0'>
</mat-form-field>
<mat-form-field style="width: 48%">
<input matInput type="text" placeholder="Month" formControlName="how_long_month" min='0' (change)="ConvertMonthintoYear($event.target.value)">
</mat-form-field>
</div>
<mat-list>
<p mat-subheader>Attendance Register seen</p>
<mat-radio-group name="attRegisterSeen" formControlName="attRegisterSeen">
<mat-radio-button value="YES">YES</mat-radio-button>
<mat-radio-button value="NO">NO</mat-radio-button>
</mat-radio-group>
</mat-list>
<mat-list>
<P mat-subheader>Salary register seen</P>
<mat-radio-group name="salaryRegisterSeen" formControlName="salaryRegisterSeen">
<mat-radio-button value="YES">YES</mat-radio-button>
<mat-radio-button value="NO">NO</mat-radio-button>
<div *ngIf="pd_cus_segment!='SAL-CHQ'">
<p>Emp Met</p>
<mat-radio-group name="was_met" formControlName="was_met"><!-- //(change)="checkotherDetails($event.value)" -->
<mat-radio-button value="yes">YES</mat-radio-button>
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
<!-- *ngIf="otherIncomeForm.controls.other_income.value == 'Yes'" -->
<div *ngIf="employmentForm.controls.was_met.value == 'yes'">
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="pd_cus_segment!='SAL-CHQ'">
<mat-form-field style="width: 100%">
<mat-select placeholder="Name of Person Met" formControlName="name_person_met"
required (selectionChange)="filtercompanyrelationship(employmentForm.controls.employer_name.value,$event.value)">
<mat-option>Select</mat-option>
<mat-option *ngFor="let person of person_met_list" [value]="person.pd_co_applicant_id">
{{person.applicant_name | titlecase}}
</mat-option>
</mat-select>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="pd_cus_segment!='SAL-CHQ'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Designation of Person Met" formControlName="designation_person_met"
required>
</mat-form-field>
</div>
</div>
</div>
<div *ngIf="pd_cus_segment!='SAL-CHQ'">
<p>Salary amt confirmed</p>
<mat-radio-group formControlName="confirm_salary">
<mat-radio-button value="yes">YES</mat-radio-button>
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
<div *ngIf="employmentForm.controls.confirm_salary.value == 'yes'">
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="What is the salary amount confirmed?" formControlName="confirm_salary_amount"
OnlyNumber (keyup)="inWords($event.target.value,1)">
<mat-hint align="end" *ngIf="employmentForm.controls.confirm_salary_amount.value != ''">{{"&#8377;"}} {{mthlySlryAmtInWords}} Only</mat-hint>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Total Work Experience" formControlName="total_business_experience"
OnlyNumber autocomplete="off">
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['total_business_experience'].value > employmentForm.controls['how_long_year'].value">
<mat-form-field style="width: 100%">
<input matInput placeholder="Previous Work Experience Details" formControlName="total_business_previous_experience">
</mat-form-field>
</div>
</div>
</div>
<div *ngIf="pd_cus_segment!='SAL-CHQ'">
<p>Attendance Register seen</p>
<mat-radio-group name="attendance_seen" formControlName="attendance_seen">
<mat-radio-button value="yes">YES</mat-radio-button>
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
</div>
<div *ngIf="pd_cus_segment!='SAL-CHQ'">
<P >Salary register seen</P>
<mat-radio-group name="sal_reg_seen" formControlName="sal_reg_seen">
<mat-radio-button value="yes">YES</mat-radio-button>
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
</mat-list>
</div>
</mat-card>
<mat-card>
<h5>Salary Details</h5>
<mat-card-content>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="From Date of Salary" formControlName="from_date_the_salary_is_rcv"
OnlyNumber type="number" min='1' max='31'>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="To Date of Salary" formControlName="to_date_the_salary_is_rcv"
OnlyNumber type="number" min='1' max='31'>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Gross Monthly Salary" formControlName="gross_monthly_salary"
OnlyNumber required (keyup)="inWords($event.target.value,2)">
<mat-hint align="end" *ngIf="employmentForm.controls.gross_monthly_salary.value != ''">{{"&#8377;"}} {{grossMthlySlryAmtInWords}} Only</mat-hint>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Net Monthly Salary" formControlName="net_monthly_salary"
OnlyNumber required (keyup)="inWords($event.target.value,3)">
<mat-hint align="end" *ngIf="employmentForm.controls.net_monthly_salary.value != ''">{{"&#8377;"}} {{netMthlySlryAmtInWords}} Only</mat-hint>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Bonus or Incentive" formControlName="bonus_incentive"
OnlyNumber required (keyup)="inWords($event.target.value,4)">
<mat-hint align="end" *ngIf="employmentForm.controls.bonus_incentive.value != ''">{{"&#8377;"}} {{bonusIncentiveAmtInWords}} Only</mat-hint>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<mat-select placeholder="Amount paid in Cash ?" formControlName="amount_paid_in_cash">
<mat-option>Select</mat-option>
<mat-option value="validated">Validated</mat-option>
<mat-option value="not validated">Not Validated</mat-option>
</mat-select>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['amount_paid_in_cash'].value == 'validated'">
<mat-form-field style="width: 100%">
<input matInput placeholder="How was it Validated" formControlName="how_was_it_validated">
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['amount_paid_in_cash'].value == 'not validated'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Why was it not Validated"
formControlName="why_was_it_not_validated">
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch">
<mat-form-field style="width: 100%">
<input matInput placeholder="Amount paid through Bank"
formControlName="amount_paid_through_bank">
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['bonus_incentive'].value != '' && employmentForm.controls['bonus_incentive'].value != '0' ">
<mat-form-field style="width: 100%">
<mat-select placeholder="Bonus Frequency" formControlName="bonus_frequency">
<mat-option>Select</mat-option>
<mat-option *ngFor="let fd of frequency_data" [value]="fd.frequency_id">{{
fd.name }}</mat-option>
</mat-select>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['bonus_incentive'].value != '' && employmentForm.controls['bonus_incentive'].value != '0' ">
<mat-form-field style="width: 100%">
<mat-select placeholder="Type of Bonus" formControlName="bonus_type">
<mat-option>Select</mat-option>
<mat-option value="fixed">Fixed</mat-option>
<mat-option value="variable depending on performance">Variable
depending on performance</mat-option>
<mat-option value="others">Others</mat-option>
</mat-select>
</mat-form-field>
</div>
<div fxLayout="column" fxLayoutAlign="start stretch" *ngIf="employmentForm.controls['bonus_type'].value == 'others'">
<mat-form-field style="width: 100%">
<input matInput placeholder="Bonus Type Others" formControlName="bonus_type_other">
</mat-form-field>
</div>
<P>Any Delays</P>
<mat-radio-group name="any_delays" formControlName="any_delays">
<mat-radio-button value="yes">YES</mat-radio-button>
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
</mat-card-content>
</mat-card>
<ion-row>
<button ion-button full color="optblue" (click)="saveEmpInfo()"> Save</button>
</ion-row>
</form>
</ion-content>

View File

@ -1,3 +1,16 @@
page-pd-question-emp-info {
mat-hint{
font-size:11px;
}
mat-card{
margin-bottom: 15px;
border-radius: 10px !important;
box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
}
.mat-card-content{
margin-bottom: 0px !important;
}
.scroll-content{
background-color: #eee;
}
}

View File

@ -1,7 +1,10 @@
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import {FormBuilder,FormControl,FormArray, FormGroup} from '@angular/forms';
import { QuestionCategoryProvider } from '../../../providers/question-category/question-category';
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
import { ToastProvider } from '../../../providers/common-provider/toast';
import { ConstantsProvider } from '../../../providers/constants/constants';
/**
* Generated class for the PdQuestionEmpInfoPage page.
*
@ -17,22 +20,72 @@ import {FormBuilder,FormControl,FormArray, FormGroup} from '@angular/forms';
export class PdQuestionEmpInfoPage {
questionDetails: any;
pdDetails: any;
empInfo:FormGroup;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder) {
employmentForm:FormGroup;
FormId: any;
pd_cus_segment: string;
customer_segment_abbr: string;
users: any;
pdid: any;
frequency_data: any[];
company_list: any[];
person_met_list: any[];
company_related_applicants_list: any[];
company_relationship_list: any[];
filtered_company_relationship_list: any[];
mthlySlryAmtInWords
grossMthlySlryAmtInWords
netMthlySlryAmtInWords
bonusIncentiveAmtInWords
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,public qustCat:QuestionCategoryProvider,public aws: AwsServiceProvider, public toast: ToastProvider,public constant:ConstantsProvider) {
this.FormId = this.navParams.get('FormId');
this.questionDetails = this.navParams.get('questionDetails');
this.pdDetails = this.navParams.get('pdDetails');
this.empInfo = this.fb.group(
this.users = this.aws.getlocale();
this.pdid=this.pdDetails.pd_id;
this.customer_segment_abbr = this.pdDetails.customer_segment_abbr;
this.pd_cus_segment = this.pdDetails.customer_segment_abbr.toUpperCase();
this.getDropDownList();
this.getCompanyFromGeneralDetails();
this.getEmploymentDetails();
this.employmentForm = this.fb.group(
{
nameOfEmp:[null],
yearWithEmp:[null],
empMet:[null],
designationOfEmp:[null],
salaryConfirm:[null],
actualSalary:[null],
attRegisterSeen:[null],
salaryRegisterSeen:[null]
employer_name: [''],
how_long_year: [''],
how_long_month: [''],
was_met: [this.pd_cus_segment == 'SAL-CHQ' ? 'No' : ''],
name_person_met: [''],
designation_person_met: [''],
confirm_salary: [this.pd_cus_segment == 'SAL-CHQ' ? 'No' : ''],
confirm_salary_amount: [''],
total_business_experience: [''],
total_business_previous_experience: [''],
attendance_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'No' : ''],
sal_reg_seen: [this.pd_cus_segment == 'SAL-CHQ' ? 'No' : ''],
from_date_the_salary_is_rcv: [''],
to_date_the_salary_is_rcv: [''],
gross_monthly_salary: [''],
net_monthly_salary: [''],
bonus_incentive: [''],
amount_paid_in_cash: [''],
how_was_it_validated: [''],
why_was_it_not_validated: [''],
amount_paid_through_bank: [''],
bonus_frequency: [''],
bonus_type: [''],
bonus_type_other: [''],
any_delays: [''],
employment_remarks: [''],
// nameOfEmp:[null],
// yearWithEmp:[null],
// empMet:[null],
// designationOfEmp:[null],
// salaryConfirm:[null],
// actualSalary:[null],
// attRegisterSeen:[null],
// salaryRegisterSeen:[null]
})
}
@ -40,6 +93,199 @@ export class PdQuestionEmpInfoPage {
console.log('ionViewDidLoad PdQuestionEmpInfoPage');
}
getDropDownList()
{
this.qustCat.getcommondrop('FREQUENCY').subscribe(
data => {
if(data['dataStatus']==true){
this.frequency_data = data['records'];
this.frequency_data = this.frequency_data.filter(freq => freq.isactive == 1);
}
});
this.qustCat.getcommondrop('COMPANYRELATIONSHIPS').subscribe(
data => {
if(data['dataStatus']==true){
this.company_relationship_list = data['records'].filter(item => item.isactive == 1);
this.company_relationship_list = data['records'].filter(item => item.name != 'Others');
this.company_relationship_list.push({ 'company_relationship_id': 0, 'name': 'Not Applicable' });
}
});
}
getCompanyFromGeneralDetails(){
let records = { 'pd_id': this.pdDetails.pd_id, 'pd_form_id': '18' };
this.qustCat.retiverForm(records).subscribe(value => {
if (value['dataStatus'] == true) {
this.company_list = value['records'].companies.filter(com => com.is_active == true);
this.person_met_list = value['records'].individuals.filter(app => app.is_person_met == true && app.is_active == true);
this.company_related_applicants_list = value['records'].company_with_relationships;
}
else {
}
})
}
saveEmpInfo(){
if (!this.employmentForm.valid) {
this.toast.pdTriggerappmessage('Form Invalid Try Again.!');
return;
}
let records: any = {};
records.pdid = this.pdDetails.pd_id;
records.formid = this.FormId.form_id;
records.fk_createdby = this.users;
records.employer_name = this.employmentForm.controls['employer_name'].value;
records.how_long_year = this.employmentForm.controls['how_long_year'].value;
records.how_long_month = this.employmentForm.controls['how_long_month'].value;
records.was_met = this.employmentForm.controls['was_met'].value;
if (this.employmentForm.controls['was_met'].value == 'yes') {
records.name_person_met = this.employmentForm.controls['name_person_met'].value;
records.designation_person_met = this.employmentForm.controls['designation_person_met'].value;
}else{
records.name_person_met = '';
records.designation_person_met = '';
}
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;
}
else{
records.confirm_salary_amount = '';
records.total_business_experience = '';
records.total_business_previous_experience = '';
}
records.attendance_seen = this.employmentForm.controls['attendance_seen'].value;
records.sal_reg_seen = this.employmentForm.controls['sal_reg_seen'].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;
records.any_delays = this.employmentForm.controls['any_delays'].value;
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;
this.qustCat.saveForm(records).subscribe(data => {
if(data['dataStatus']== true){
this.toast.pdTriggerappmessage('Record Saved Successfully.!');
setTimeout(()=>{
this.navCtrl.pop();
},2000);
}
else {
this.toast.pdTriggerappmessage('Something Wents Wrong Try Again.!');
}
})
}
filtercompanyrelationship(companyid, applicantid) {
var array = companyid.split("-");
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]);
}
else {
this.employmentForm.controls['designation_person_met'].setValue('');
}
}
ConvertMonthintoYear(e) {
let how_long_year = this.employmentForm.controls.how_long_year.value;
let converted_month: number = e % 12;
let converted_year: number = e / 12;
this.employmentForm.controls.how_long_year.setValue(+how_long_year + +Math.floor(converted_year));
this.employmentForm.controls.how_long_month.setValue(Math.floor(converted_month));
}
inWords(val,flag:number){
switch(flag){
case 1 :
this.mthlySlryAmtInWords= this.constant.convertNumberToWords(val);
break;
case 2 :
this.grossMthlySlryAmtInWords = this.constant.convertNumberToWords(val);
break;
case 3 :
this.netMthlySlryAmtInWords = this.constant.convertNumberToWords(val);
break;
case 4 :
this.bonusIncentiveAmtInWords = this.constant.convertNumberToWords(val);
break;
}
}
getEmploymentDetails(){
let records = { 'pd_id': this.pdDetails.pd_id, 'pd_form_id': this.FormId.form_id };
this.qustCat.retiverForm(records).subscribe(value => {
if (value['dataStatus'] == true) {
let Emp = value['records'];
console.log('emp',Emp);
this.employmentForm.controls['employer_name'].setValue(Emp.employer_name);
this.employmentForm.controls['how_long_year'].setValue(Emp.how_long_year);
this.employmentForm.controls['how_long_month'].setValue(Emp.how_long_month);
this.employmentForm.controls['was_met'].setValue(Emp.was_met);
if (Emp.name_person_met) {
this.employmentForm.controls['name_person_met'].setValue(Emp.name_person_met);
}
if (Emp.designation_person_met) {
this.employmentForm.controls['designation_person_met'].setValue(Emp.designation_person_met);
}
this.employmentForm.controls['confirm_salary'].setValue(Emp.confirm_salary);
console.log('Emp.confirm_salary_amount',Emp.confirm_salary_amount,Emp.confirm_salary);
if (Emp.confirm_salary) {
this.employmentForm.controls['confirm_salary_amount'].setValue(Emp.confirm_salary_amount);
this.inWords(Emp.confirm_salary_amount,1);
this.employmentForm.controls['total_business_experience'].setValue(Emp.total_business_experience);
this.employmentForm.controls['total_business_previous_experience'].setValue(Emp.total_business_previous_experience);
}
this.employmentForm.controls['attendance_seen'].setValue(Emp.attendance_seen);
this.employmentForm.controls['sal_reg_seen'].setValue(Emp.sal_reg_seen);
this.employmentForm.controls['from_date_the_salary_is_rcv'].setValue(Emp.from_date_the_salary_is_rcv);
this.employmentForm.controls['to_date_the_salary_is_rcv'].setValue(Emp.to_date_the_salary_is_rcv);
this.employmentForm.controls['gross_monthly_salary'].setValue(Emp.gross_monthly_salary);
this.employmentForm.controls['net_monthly_salary'].setValue(Emp.net_monthly_salary);
this.employmentForm.controls['bonus_incentive'].setValue(Emp.bonus_incentive);
this.employmentForm.controls['amount_paid_in_cash'].setValue(Emp.amount_paid_in_cash);
this.employmentForm.controls['how_was_it_validated'].setValue(Emp.how_was_it_validated);
this.employmentForm.controls['why_was_it_not_validated'].setValue(Emp.why_was_it_not_validated);
this.employmentForm.controls['amount_paid_through_bank'].setValue(Emp.amount_paid_through_bank);
this.employmentForm.controls['bonus_frequency'].setValue(Emp.bonus_frequency);
this.employmentForm.controls['bonus_type'].setValue(Emp.bonus_type);
this.employmentForm.controls['bonus_type_other'].setValue(Emp.bonus_type_other);
this.employmentForm.controls['any_delays'].setValue(Emp.any_delays);
this.employmentForm.controls['employment_remarks'].setValue(Emp.employment_remarks);
this.inWords(Emp.gross_monthly_salary,2);
this.inWords(Emp.net_monthly_salary,3);
this.inWords(Emp.bonus_incentive,4);
}
})
}
}

View File

@ -29566,6 +29566,25 @@ page-pd-question-current-loans .mat-card-content {
margin-bottom: 0px !important;
}
page-pd-question-emp-info mat-hint {
font-size: 11px;
}
page-pd-question-emp-info mat-card {
margin-bottom: 15px;
border-radius: 10px !important;
-webkit-box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0 rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2) !important;
}
page-pd-question-emp-info .mat-card-content {
margin-bottom: 0px !important;
}
page-pd-question-emp-info .scroll-content {
background-color: #eee;
}
page-pd-question-family mat-form-field {
width: 100%;
}

File diff suppressed because one or more lines are too long