+
@@ -253,7 +260,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html
index 66bd26b06..182110f24 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html
@@ -4,9 +4,18 @@
-
-
-
+
@@ -14,9 +23,14 @@
No
-
-
-
+
+
+
+
+
+
+
+
@@ -47,10 +61,12 @@
-
+
+
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 2a95ace92..00dec59cc 100644
--- 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
@@ -48,10 +48,14 @@ export class EmploymentInfoComponent implements OnInit {
console.log('value', value);
if (value.status == 200) {
this.employmentForm.controls['employer_name'].setValue(value.records.employer_name);
- this.employmentForm.controls['how_long'].setValue(value.records.how_long);
+ this.employmentForm.controls['how_long_year'].setValue(value.records.how_long_year);
+ this.employmentForm.controls['how_long_month'].setValue(value.records.how_long_month);
this.employmentForm.controls['was_met'].setValue(value.records.was_met);
- if (value.records.name_designation) {
- this.employmentForm.controls['name_designation'].setValue(value.records.name_designation);
+ if (value.records.name_person_met) {
+ this.employmentForm.controls['name_person_met'].setValue(value.records.name_person_met);
+ }
+ if (value.records.designation_person_met) {
+ this.employmentForm.controls['designation_person_met'].setValue(value.records.designation_person_met);
}
this.employmentForm.controls['confirm_salary'].setValue(value.records.confirm_salary);
if (value.records.confirm_salary_amount) {
@@ -59,8 +63,8 @@ export class EmploymentInfoComponent implements OnInit {
}
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['gross'].setValue(value.records.gross);
- this.employmentForm.controls['net_take_home'].setValue(value.records.net_take_home);
+ 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['any_delays'].setValue(value.records.any_delays);
this.employmentForm.controls['employment_remarks'].setValue(value.records.employment_remarks);
@@ -70,15 +74,17 @@ export class EmploymentInfoComponent implements OnInit {
public initemploymentForm(): void {
this.employmentForm = this.fb.group({
employer_name: ['', Validators.compose([Validators.required])],
- how_long: ['', Validators.compose([Validators.required])],
+ how_long_year: ['', Validators.compose([Validators.required])],
+ how_long_month: ['', Validators.compose([Validators.required])],
was_met: ['', Validators.compose([Validators.required])],
- name_designation: [''],
+ name_person_met: [''],
+ designation_person_met: [''],
confirm_salary: ['', Validators.compose([Validators.required])],
confirm_salary_amount: [''],
attendance_seen: ['', Validators.compose([Validators.required])],
sal_reg_seen: ['', Validators.compose([Validators.required])],
- gross: ['', Validators.compose([Validators.required])],
- net_take_home: ['', Validators.compose([Validators.required])],
+ gross_monthly_salary: ['', Validators.compose([Validators.required])],
+ net_monthly_salary: ['', Validators.compose([Validators.required])],
bonus_incentive: ['', Validators.compose([Validators.required])],
any_delays: ['', Validators.compose([Validators.required])],
employment_remarks: ['', Validators.compose([Validators.required])],
@@ -93,10 +99,12 @@ export class EmploymentInfoComponent implements OnInit {
records.formid = this.form_id;
records.fk_createdby = this.pdid;
records.employer_name = this.employmentForm.controls['employer_name'].value;
- records.how_long = this.employmentForm.controls['how_long'].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_designation = this.employmentForm.controls['name_designation'].value;
+ records.name_person_met = this.employmentForm.controls['name_person_met'].value;
+ records.designation_person_met = this.employmentForm.controls['designation_person_met'].value;
}
records.confirm_salary = this.employmentForm.controls['confirm_salary'].value;
if (this.employmentForm.controls['confirm_salary'].value == 'yes') {
@@ -104,8 +112,8 @@ export class EmploymentInfoComponent implements OnInit {
}
records.attendance_seen = this.employmentForm.controls['attendance_seen'].value;
records.sal_reg_seen = this.employmentForm.controls['sal_reg_seen'].value;
- records.gross = this.employmentForm.controls['gross'].value;
- records.net_take_home = this.employmentForm.controls['net_take_home'].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.any_delays = this.employmentForm.controls['any_delays'].value;
records.employment_remarks = this.employmentForm.controls['employment_remarks'].value;