merge : kms
This commit is contained in:
parent
405b920d5c
commit
c59d79ace4
@ -39,7 +39,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width: 28%">
|
<mat-form-field style="width: 28%">
|
||||||
<input matInput autocomplete="off" placeholder="Lender Applicant ID" formControlName="lender_applicant_id" type="text" required>
|
<input matInput autocomplete="off" placeholder="Loan Applicant ID" formControlName="lender_applicant_id" type="text" required>
|
||||||
<!-- <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')">Applicant ID Required</mat-error> -->
|
<!-- <mat-error *ngIf="pdMain.lender_applicant_id.hasError('required')">Applicant ID Required</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
@ -48,24 +48,23 @@
|
|||||||
<!-- <mat-error *ngIf="pdMain.lender_contact_person.hasError('required')">Lender Contact Person Required</mat-error> -->
|
<!-- <mat-error *ngIf="pdMain.lender_contact_person.hasError('required')">Lender Contact Person Required</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 28%">
|
<mat-form-field style="width: 28%">
|
||||||
<input matInput autocomplete="off" placeholder="Lender's Mobile Number" formControlName="" type="text" maxlength="10">
|
<input matInput autocomplete="off" placeholder="Lender's Mobile Number" formControlName="lender_contact_mobile" type="text" (keypress)="keyPress($event)" maxlength="10">
|
||||||
</mat-form-field>
|
<mat-error *ngIf="pdMain.lender_contact_mobile.hasError('pattern') || pdMain.lender_contact_mobile.hasError('maxlength') || pdMain.lender_contact_mobile.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
<!--<mat-form-field style="width: 32%">
|
<!--<mat-form-field style="width: 32%">
|
||||||
<input matInput autocomplete="off" placeholder="Lender Contact Number" formControlName="lender_contact_mobile" type="text" (keypress)="keyPress($event)" maxlength="10" required>
|
<input matInput autocomplete="off" placeholder="Lender Contact Number" formControlName="lender_contact_mobile" type="text" (keypress)="keyPress($event)" maxlength="10" required>
|
||||||
<mat-error *ngIf="pdMain.lender_contact_mobile.hasError('pattern') || pdMain.lender_contact_mobile.hasError('maxlength') || pdMain.lender_contact_mobile.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
<mat-error *ngIf="pdMain.lender_contact_mobile.hasError('pattern') || pdMain.lender_contact_mobile.hasError('maxlength') || pdMain.lender_contact_mobile.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||||
|
</mat-form-field>-->
|
||||||
</mat-form-field>-->
|
|
||||||
|
|
||||||
<mat-form-field style="width: 8%">
|
<mat-form-field style="width: 8%">
|
||||||
<input matInput autocomplete="off" placeholder="STD Code" formControlName="stdcode" type="text" (keypress)="keyPress($event)">
|
<input matInput autocomplete="off" placeholder="STD Code" formControlName="lender_stdcode" type="text" (keypress)="keyPress($event)">
|
||||||
<span matPrefix>+91</span>
|
<mat-error *ngIf="pdMain.lender_stdcode.hasError('maxlength') || pdMain.lender_stdcode.hasError('minlength')">Enter Valid STD Code Number.</mat-error>
|
||||||
<mat-error *ngIf="pdMain.stdcode.hasError('maxlength') || pdMain.stdcode.hasError('minlength')">Enter Valid STD Code Number. </mat-error>
|
</mat-form-field> -
|
||||||
</mat-form-field> -
|
<mat-form-field style="width: 17%">
|
||||||
<mat-form-field style="width: 17%">
|
<input matInput autocomplete="off" placeholder="Landline Number" formControlName="lender_landline" type="text" (keypress)="keyPress($event)">
|
||||||
<input matInput autocomplete="off" placeholder="Landline Number" formControlName="lender_contact_mobile" type="text" (keypress)="keyPress($event)" maxlength="10">
|
<mat-error *ngIf="pdMain.lender_landline.hasError('maxlength') || pdMain.lender_landline.hasError('minlength')">Enter Valid LandLine Number. </mat-error>
|
||||||
<mat-error *ngIf="pdMain.lender_contact_mobile.hasError('pattern') || pdMain.lender_contact_mobile.hasError('maxlength') || pdMain.lender_contact_mobile.hasError('minlength')">Enter Valid LandLine Number. </mat-error>
|
</mat-form-field>
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field style="width: 28%">
|
<mat-form-field style="width: 28%">
|
||||||
<mat-select placeholder="Product Name" formControlName="fk_product_id" (selectionChange)="getSubproductList(pdMain.fk_product_id.value)">
|
<mat-select placeholder="Product Name" formControlName="fk_product_id" (selectionChange)="getSubproductList(pdMain.fk_product_id.value)">
|
||||||
@ -206,13 +205,13 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width: 15%">
|
<mat-form-field style="width: 15%">
|
||||||
<input matInput autocomplete="off" placeholder="STD Code" formControlName="stdcode" type="text" (keypress)="keyPress($event)">
|
<input matInput autocomplete="off" placeholder="STD Code" formControlName="applicant_stdcode" type="text" (keypress)="keyPress($event)">
|
||||||
<span matPrefix>+91</span>
|
<!-- <span matPrefix>+91</span> -->
|
||||||
<mat-error *ngIf="pdMain.stdcode.hasError('maxlength') || pdMain.stdcode.hasError('minlength')">Enter Valid STD Code Number. </mat-error>
|
<mat-error *ngIf="pdMain.applicant_stdcode.hasError('maxlength') || pdMain.applicant_stdcode.hasError('minlength')">Enter Valid STD Code Number. </mat-error>
|
||||||
</mat-form-field> -
|
</mat-form-field> -
|
||||||
<mat-form-field style="width: 20%">
|
<mat-form-field style="width: 20%">
|
||||||
<input matInput autocomplete="off" placeholder="Landline Number" formControlName="landline" type="text" (keypress)="keyPress($event)">
|
<input matInput autocomplete="off" placeholder="Landline Number" formControlName="applicant_landline" type="text" (keypress)="keyPress($event)">
|
||||||
<mat-error *ngIf="pdMain.landline.hasError('maxlength') || pdMain.landline.hasError('minlength')">Enter Valid LandLine Number. </mat-error>
|
<mat-error *ngIf="pdMain.applicant_landline.hasError('maxlength') || pdMain.applicant_landline.hasError('minlength')">Enter Valid LandLine Number. </mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- Phone field to be split into 2 parts. Mobile Number mandatory and optional land line number with std code. -->
|
<!-- Phone field to be split into 2 parts. Mobile Number mandatory and optional land line number with std code. -->
|
||||||
|
|||||||
@ -71,7 +71,9 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
pd_branch_id: [null],
|
pd_branch_id: [null],
|
||||||
lender_applicant_id: [null, Validators.compose([Validators.required])],
|
lender_applicant_id: [null, Validators.compose([Validators.required])],
|
||||||
lender_contact_person: [null, Validators.compose([Validators.required])],
|
lender_contact_person: [null, Validators.compose([Validators.required])],
|
||||||
lender_contact_mobile: [null, Validators.compose([Validators.required,Validators.minLength(10),Validators.maxLength(12),Validators.required,Validators.pattern('^[0-9]*$')])],
|
lender_contact_mobile: [null, Validators.compose([Validators.minLength(10),Validators.maxLength(12),Validators.pattern('^[0-9]*$')])],
|
||||||
|
lender_stdcode:[null, Validators.compose([Validators.minLength(3),Validators.maxLength(5),Validators.pattern('^[0-9]*$')])],
|
||||||
|
lender_landline:[null, Validators.compose([Validators.minLength(6),Validators.maxLength(8),Validators.pattern('^[0-9]*$')])],
|
||||||
//lender_billing: [null],
|
//lender_billing: [null],
|
||||||
fk_product_id: [null],
|
fk_product_id: [null],
|
||||||
fk_subproduct_id: [null],
|
fk_subproduct_id: [null],
|
||||||
@ -83,8 +85,6 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
|
mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
|
||||||
// landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
|
// landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
|
||||||
// email: [null],
|
// email: [null],
|
||||||
lender_stdcode:[null, Validators.compose([Validators.minLength(3),Validators.maxLength(5),Validators.pattern('^[0-9]*$')])],
|
|
||||||
lender_landline:[null, Validators.compose([Validators.minLength(6),Validators.maxLength(8),Validators.pattern('^[0-9]*$')])],
|
|
||||||
applicant_stdcode:[null, Validators.compose([Validators.minLength(3),Validators.maxLength(5),Validators.pattern('^[0-9]*$')])],
|
applicant_stdcode:[null, Validators.compose([Validators.minLength(3),Validators.maxLength(5),Validators.pattern('^[0-9]*$')])],
|
||||||
applicant_landline:[null, Validators.compose([Validators.minLength(6),Validators.maxLength(8),Validators.pattern('^[0-9]*$')])],
|
applicant_landline:[null, Validators.compose([Validators.minLength(6),Validators.maxLength(8),Validators.pattern('^[0-9]*$')])],
|
||||||
company_name: [null],
|
company_name: [null],
|
||||||
@ -220,8 +220,8 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
generateDocuments(): FormGroup {
|
generateDocuments(): FormGroup {
|
||||||
return this._fb.group({
|
return this._fb.group({
|
||||||
doc_name: [null, Validators.compose([Validators.required])],
|
doc_name: [null],//Validators.compose([Validators.required])
|
||||||
documentFile : [null, Validators.compose([Validators.required])],
|
documentFile : [null],//, Validators.compose([Validators.required])
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -385,14 +385,18 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// common function for both draft and process pd
|
// common function for both draft and process pd
|
||||||
submitPdDetails(formValue: any, status:string) {
|
submitPdDetails(formValue: any, status:string) {
|
||||||
//alert('Inside Function Submit Function');
|
|
||||||
if(this._PDtriggerForm.invalid) {
|
if(this._PDtriggerForm.invalid) {
|
||||||
this.validateAllFormFields(this._PDtriggerForm);
|
this.validateAllFormFields(this._PDtriggerForm);
|
||||||
//alert('validationError');
|
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
|
||||||
//console.log(this._PDtriggerForm);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if((formValue.lender_contact_mobile == '') || (formValue.lender_stdcode == '' && formValue.lender_landline == '')){
|
||||||
|
this.notifier.notify('warning', 'Either Mobile or Landline Need.!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else{
|
||||||
this.disableAfterSubmit=true;
|
this.disableAfterSubmit=true;
|
||||||
let pd_details:any={
|
let pd_details:any={
|
||||||
"fk_lender_id":formValue.fk_lender_id,
|
"fk_lender_id":formValue.fk_lender_id,
|
||||||
@ -479,7 +483,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
loadPdListCompoent(from:boolean) {
|
loadPdListCompoent(from:boolean) {
|
||||||
if(from){
|
if(from){
|
||||||
|
|||||||
@ -134,10 +134,16 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
get pdCoApplicant() { return this._EditApplicantForm.get('coApplicantItems') as FormArray; }
|
get pdCoApplicant() { return this._EditApplicantForm.get('coApplicantItems') as FormArray; }
|
||||||
updatePdApplicant(formValue: any) {
|
updatePdApplicant(formValue: any) {
|
||||||
if(this._EditApplicantForm.invalid) {
|
if(this._EditApplicantForm.invalid) {
|
||||||
this.validateAllFormFields(this._EditApplicantForm)
|
this.validateAllFormFields(this._EditApplicantForm);
|
||||||
|
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if((formValue.mobile_no == '') || (formValue.stdcode == '' && formValue.landline == '')){
|
||||||
|
this.notifier.notify('warning', 'Either Mobile or Landline Need.!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else{
|
||||||
let pd_applicant_details : any=[{
|
let pd_applicant_details : any=[{
|
||||||
"fk_pd_id": this.data.pdID,
|
"fk_pd_id": this.data.pdID,
|
||||||
"pd_co_applicant_id": formValue.fk_applicant_primary_id,
|
"pd_co_applicant_id": formValue.fk_applicant_primary_id,
|
||||||
@ -195,7 +201,7 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
// }, error => {
|
// }, error => {
|
||||||
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
// });
|
// });
|
||||||
}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get relation master details
|
// get relation master details
|
||||||
|
|||||||
@ -36,8 +36,8 @@
|
|||||||
<mat-form-field style="width: 32%">
|
<mat-form-field style="width: 32%">
|
||||||
<input matInput placeholder="Lender Contact Person" formControlName="pd_contact_person" type="text" required>
|
<input matInput placeholder="Lender Contact Person" formControlName="pd_contact_person" type="text" required>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 32%">
|
<mat-form-field style="width: 25%">
|
||||||
<input matInput placeholder="Lender Contact Number" formControlName="pd_contact_mobileno" type="text" required (keypress)="keyPress($event)">
|
<input matInput placeholder="Lender Contact Number" formControlName="pd_contact_mobileno" type="text" (keypress)="keyPress($event)">
|
||||||
<mat-error *ngIf="pdMain.pd_contact_mobileno.hasError('pattern') || pdMain.pd_contact_mobileno.hasError('maxlength') || pdMain.pd_contact_mobileno.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
<mat-error *ngIf="pdMain.pd_contact_mobileno.hasError('pattern') || pdMain.pd_contact_mobileno.hasError('maxlength') || pdMain.pd_contact_mobileno.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 10%">
|
<mat-form-field style="width: 10%">
|
||||||
@ -45,10 +45,10 @@
|
|||||||
<!-- <span matPrefix>+91</span> -->
|
<!-- <span matPrefix>+91</span> -->
|
||||||
<mat-error *ngIf="pdMain.lender_stdcode.hasError('maxlength') || pdMain.lender_stdcode.hasError('minlength')">Enter Valid STD Code. </mat-error>
|
<mat-error *ngIf="pdMain.lender_stdcode.hasError('maxlength') || pdMain.lender_stdcode.hasError('minlength')">Enter Valid STD Code. </mat-error>
|
||||||
</mat-form-field> -
|
</mat-form-field> -
|
||||||
<mat-form-field style="width: 20%">
|
<mat-form-field style="width: 20%">
|
||||||
<input matInput placeholder="LandLine Number" formControlName="lender_landline" type="text" (keypress)="keyPress($event)">
|
<input matInput placeholder="LandLine Number" formControlName="lender_landline" type="text" (keypress)="keyPress($event)">
|
||||||
<mat-error *ngIf="pdMain.lender_landline.hasError('maxlength') || pdMain.lender_landline.hasError('minlength')">Enter Valid Landline Number. </mat-error>
|
<mat-error *ngIf="pdMain.lender_landline.hasError('maxlength') || pdMain.lender_landline.hasError('minlength')">Enter Valid Landline Number. </mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 32%">
|
<mat-form-field style="width: 32%">
|
||||||
<mat-select placeholder="Product Name" formControlName="fk_product_id" (selectionChange)="getSubproductList(pdMain.fk_product_id.value)">
|
<mat-select placeholder="Product Name" formControlName="fk_product_id" (selectionChange)="getSubproductList(pdMain.fk_product_id.value)">
|
||||||
<mat-option>
|
<mat-option>
|
||||||
|
|||||||
@ -112,6 +112,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loadFormData() {
|
loadFormData() {
|
||||||
|
console.log('this.data.record',this.data.records);
|
||||||
let stdcode;
|
let stdcode;
|
||||||
let landline;
|
let landline;
|
||||||
if(this.data.records.pd_contact_landline){
|
if(this.data.records.pd_contact_landline){
|
||||||
@ -130,7 +131,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
fk_lender_id: [this.data.records.fk_lender_id, Validators.compose([Validators.required])],
|
fk_lender_id: [this.data.records.fk_lender_id, Validators.compose([Validators.required])],
|
||||||
lender_applicant_id: [this.data.records.lender_applicant_id, Validators.compose([Validators.required])],
|
lender_applicant_id: [this.data.records.lender_applicant_id, Validators.compose([Validators.required])],
|
||||||
pd_contact_person: [this.data.records.pd_contact_person, Validators.compose([Validators.required])],
|
pd_contact_person: [this.data.records.pd_contact_person, Validators.compose([Validators.required])],
|
||||||
pd_contact_mobileno: [this.data.records.pd_contact_mobileno, Validators.compose([Validators.required,Validators.minLength(10),Validators.maxLength(12),Validators.pattern('^[0-9]*$')])],
|
pd_contact_mobileno: [this.data.records.pd_contact_mobileno, Validators.compose([Validators.minLength(10),Validators.maxLength(12),Validators.pattern('^[0-9]*$')])],
|
||||||
lender_stdcode: [stdcode, Validators.compose([Validators.minLength(3),Validators.maxLength(5)])],
|
lender_stdcode: [stdcode, Validators.compose([Validators.minLength(3),Validators.maxLength(5)])],
|
||||||
lender_landline: [landline,Validators.compose([Validators.minLength(6),Validators.maxLength(8)])],
|
lender_landline: [landline,Validators.compose([Validators.minLength(6),Validators.maxLength(8)])],
|
||||||
fk_product_id: [this.data.records.fk_product_id],
|
fk_product_id: [this.data.records.fk_product_id],
|
||||||
@ -245,20 +246,24 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
submitPdDetails(formValue: any, status:string) {
|
submitPdDetails(formValue: any, status:string) {
|
||||||
let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
|
let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
|
||||||
if(this._EditPDtriggerForm.invalid) {
|
if(this._EditPDtriggerForm.invalid) {
|
||||||
this.validateAllFormFields(this._EditPDtriggerForm)
|
this.validateAllFormFields(this._EditPDtriggerForm);
|
||||||
|
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
let my_array = this._EditPDtriggerForm.value;
|
let my_array = this._EditPDtriggerForm.value;
|
||||||
|
if((my_array.pd_contact_mobileno == '') || (my_array.lender_stdcode == '' && my_array.lender_landline == '')){
|
||||||
|
this.notifier.notify('warning', 'Either Mobile or Landline Need.!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else{
|
||||||
let concat_landline
|
let concat_landline
|
||||||
|
|
||||||
if(my_array.lender_stdcode != null && my_array.lender_landline != null){
|
if(my_array.lender_stdcode != null && my_array.lender_landline != null){
|
||||||
if(my_array.lender_stdcode == '' && my_array.lender_landline == ''){
|
if(my_array.lender_stdcode == '' && my_array.lender_landline == ''){
|
||||||
concat_landline = null;
|
concat_landline = null;
|
||||||
}else{
|
}else{
|
||||||
let std = my_array.lender_stdcode == '' ? '' : my_array.lender_stdcode;
|
let std = my_array.lender_stdcode == '' ? '' : my_array.lender_stdcode;
|
||||||
let landline = my_array.lender_landerline == '' ? '' : my_array.lender_landerline;
|
let landline = my_array.lender_landline == '' ? '' : my_array.lender_landline;
|
||||||
concat_landline = std+'-'+landline;
|
concat_landline = std+'-'+landline;
|
||||||
}
|
}
|
||||||
}else if(my_array.lender_stdcode == '' && my_array.lender_landerline == ''){
|
}else if(my_array.lender_stdcode == '' && my_array.lender_landerline == ''){
|
||||||
@ -273,7 +278,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
"lender_applicant_id": my_array.lender_applicant_id,
|
"lender_applicant_id": my_array.lender_applicant_id,
|
||||||
"pd_contact_person": my_array.pd_contact_person,
|
"pd_contact_person": my_array.pd_contact_person,
|
||||||
"pd_contact_mobileno": my_array.pd_contact_mobileno,
|
"pd_contact_mobileno": my_array.pd_contact_mobileno,
|
||||||
"pd_Contant_landline": concat_landline,
|
"pd_contact_landline": concat_landline,
|
||||||
"fk_product_id": my_array.fk_product_id,
|
"fk_product_id": my_array.fk_product_id,
|
||||||
"fk_subproduct_id": my_array.fk_subproduct_id,
|
"fk_subproduct_id": my_array.fk_subproduct_id,
|
||||||
"fk_pd_type": my_array.fk_pd_type,
|
"fk_pd_type": my_array.fk_pd_type,
|
||||||
@ -299,6 +304,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
});//error closed
|
});//error closed
|
||||||
}//else closed
|
}//else closed
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/** To Reset Popup Data */
|
/** To Reset Popup Data */
|
||||||
onReset() {
|
onReset() {
|
||||||
|
|||||||
@ -41,13 +41,13 @@
|
|||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Property Type" formControlName="property_type" >
|
<mat-select placeholder="Property Type" formControlName="property_type" >
|
||||||
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%" *ngIf="detail.get('property_type').value == 5">
|
<mat-form-field style="width:40%" *ngIf="detail.get('property_type').value == 5">
|
||||||
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
|
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -60,8 +60,13 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
|
||||||
|
<!--<mat-form-field style="width:40%">
|
||||||
|
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_four_weeler" autocomplete="off">-->
|
||||||
|
|
||||||
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_vehicle" autocomplete="off">
|
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_vehicle" autocomplete="off">
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -73,9 +78,15 @@
|
|||||||
<div *ngIf="sup.get('business_assets_mode').value == 3">
|
<div *ngIf="sup.get('business_assets_mode').value == 3">
|
||||||
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
|
|
||||||
|
<!--<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
<mat-form-field style="width:40%">
|
||||||
|
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_two_weeler" autocomplete="off">-->
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:95%">
|
<mat-form-field style="width:95%">
|
||||||
<input matInput placeholder="Description" formControlName="equipment_manufacturing_description" >
|
<input matInput placeholder="Description" formControlName="equipment_manufacturing_description" >
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -101,29 +112,29 @@
|
|||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,5)">
|
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,5)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{PremiumPaidInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{PremiumPaidInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
||||||
<mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.frequency_id">{{ freqn.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.frequency_id">{{ freqn.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%" *ngIf="detail.get('frequency_mode').value == 8 ">
|
<mat-form-field style="width:40%" *ngIf="detail.get('frequency_mode').value == 8 ">
|
||||||
<input matInput placeholder="Specify Frequency" formControlName="other_frequency_mode" autocomplete="off">
|
<input matInput placeholder="Specify Frequency" formControlName="other_frequency_mode" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,7)">
|
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,7)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{SumAssuredInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{SumAssuredInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Members Covered" formControlName="members_coverd" autocomplete="off">
|
<input matInput placeholder="Members Covered" formControlName="members_coverd" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -137,19 +148,19 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].business_details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Type" formControlName="investments_type" >
|
<mat-select placeholder="Type" formControlName="investments_type" >
|
||||||
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%" *ngIf="detail.get('investments_type').value == 6 ">
|
<mat-form-field style="width:40%" *ngIf="detail.get('investments_type').value == 6 ">
|
||||||
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,9)">
|
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,9)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('amount_of_invest').value != ''">{{"₹"}} {{AmtInvestInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('amount_of_invest').value != ''">{{"₹"}} {{AmtInvestInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -169,20 +180,20 @@
|
|||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,11)" (keypress)="keyPress($event)">
|
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,11)" (keypress)="keyPress($event)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{AssetValueInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{AssetValueInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan">
|
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan">
|
||||||
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue | titlecase}}</mat-option>
|
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue | titlecase}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%" *ngIf="businessEmiAmtFlag">
|
<mat-form-field style="width:40%" *ngIf="businessEmiAmtFlag">
|
||||||
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off" (keyup)="inWords($event,s,13)" (keypress)="keyPress($event)">
|
<input matInput placeholder="What is the EMI amount ?" formControlName="other_asset_emi_amt" autocomplete="off" (keyup)="inWords($event,s,13)" (keypress)="keyPress($event)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('other_asset_emi_amt').value != ''">{{"₹"}} {{B_emiAmtInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('other_asset_emi_amt').value != ''">{{"₹"}} {{B_emiAmtInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -196,9 +207,9 @@
|
|||||||
<!--Desction Dynamic details : END -->
|
<!--Desction Dynamic details : END -->
|
||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field *ngIf="sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 4" style="width:30%">
|
<mat-form-field *ngIf="sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 4" style="width:45%">
|
||||||
<input matInput placeholder="Approximate Market Value" formControlName="business_approximate_market_value" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,1)">
|
<input matInput placeholder="Approximate Market Value" formControlName="business_approximate_market_value" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,1)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="sup.get('business_approximate_market_value').value != ''">{{"₹"}} {{appxMarketAmtInwords[i]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="sup.get('business_approximate_market_value').value != ''">{{"₹"}} {{appxMarketAmtInwords[i]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 2 || sup.get('business_assets_mode').value == 3 || sup.get('business_assets_mode').value == 4 || sup.get('business_assets_mode').value == 5" style="width:45%">
|
<mat-form-field *ngIf="sup.get('business_assets_mode').value == 1 || sup.get('business_assets_mode').value == 2 || sup.get('business_assets_mode').value == 3 || sup.get('business_assets_mode').value == 4 || sup.get('business_assets_mode').value == 5" style="width:45%">
|
||||||
@ -220,14 +231,14 @@
|
|||||||
|
|
||||||
|
|
||||||
<span *ngIf="sup.get('business_assets_mode').value != ''">
|
<span *ngIf="sup.get('business_assets_mode').value != ''">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:45%">
|
||||||
|
|
||||||
<mat-label>Vintage</mat-label>
|
<mat-label>Vintage</mat-label>
|
||||||
<input matInput autocomplete="off" placeholder="eg.999" formControlName="business_vintage" minlength="1" maxlength="3" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,1)">
|
<input matInput autocomplete="off" placeholder="eg.999" formControlName="business_vintage" minlength="1" maxlength="3" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,1)">
|
||||||
<!-- <mat-error> Invalid format</mat-error> -->
|
<!-- <mat-error> Invalid format</mat-error> -->
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:45%">
|
||||||
|
|
||||||
<mat-label>Purchase Year</mat-label>
|
<mat-label>Purchase Year</mat-label>
|
||||||
<input matInput autocomplete="off" placeholder="YYYY eg.2018" formControlName="business_purchase_year" minlength="4" maxlength="4" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,2)">
|
<input matInput autocomplete="off" placeholder="YYYY eg.2018" formControlName="business_purchase_year" minlength="4" maxlength="4" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,2)">
|
||||||
@ -304,12 +315,12 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Property Type" formControlName="property_type" >
|
<mat-select placeholder="Property Type" formControlName="property_type" >
|
||||||
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field *ngIf="detail.get('property_type').value == 5" style="width:30%">
|
<mat-form-field *ngIf="detail.get('property_type').value == 5" style="width:40%">
|
||||||
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
|
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -321,7 +332,9 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
|
<!--<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_four_weeler" autocomplete="off">
|
||||||
|
<mat-form-field style="width:30%">-->
|
||||||
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_vehicle" autocomplete="off">
|
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_vehicle" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -333,9 +346,15 @@
|
|||||||
<div *ngIf="sup.get('assets_mode').value == 3">
|
<div *ngIf="sup.get('assets_mode').value == 3">
|
||||||
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
|
|
||||||
|
<!--<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
<mat-form-field style="width:40%">
|
||||||
|
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_two_weeler" autocomplete="off">-->
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:95%">
|
<mat-form-field style="width:95%">
|
||||||
<input matInput placeholder="Description" formControlName="equipment_manufacturing_description" >
|
<input matInput placeholder="Description" formControlName="equipment_manufacturing_description" >
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -373,27 +392,27 @@
|
|||||||
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
|
||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,6)">
|
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,6)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{OtherPremiumPaidInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('premium_paid').value != ''">{{"₹"}} {{OtherPremiumPaidInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
<mat-select placeholder="Frequency" formControlName="frequency_mode" >
|
||||||
<mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.frequency_id">{{ freqn.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.frequency_id">{{ freqn.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%" *ngIf="detail.get('frequency_mode').value == 8 ">
|
<mat-form-field style="width:40%" *ngIf="detail.get('frequency_mode').value == 8 ">
|
||||||
<input matInput placeholder="Specify Frequency" formControlName="other_frequency_mode" autocomplete="off">
|
<input matInput placeholder="Specify Frequency" formControlName="other_frequency_mode" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,8)">
|
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,s,8)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{OtherSumAssuredInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('sum_assured').value != ''">{{"₹"}} {{OtherSumAssuredInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Members Covered" formControlName="members_coverd" autocomplete="off">
|
<input matInput placeholder="Members Covered" formControlName="members_coverd" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
@ -409,24 +428,27 @@
|
|||||||
<div [formGroupName]="s">
|
<div [formGroupName]="s">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Type" formControlName="investments_type" >
|
<mat-select placeholder="Type" formControlName="investments_type" >
|
||||||
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name | titlecase }}</mat-option>
|
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name | titlecase }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%" *ngIf="detail.get('investments_type').value == 6">
|
<mat-form-field style="width:40%" *ngIf="detail.get('investments_type').value == 6">
|
||||||
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
<input matInput placeholder="Specify Type" formControlName="other_investments_type" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,10)">
|
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,10)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('amount_of_invest').value != ''">{{"₹"}} {{OtherAmtInvestInwords[i]}} Only</mat-hint>
|
|
||||||
|
<!--<mat-hint align="start" style="font-size:90%" *ngIf="sup.get('amount_of_invest').value != ''">{{"₹"}} {{OtherAmtInvestInwords[i]}} Only</mat-hint>-->
|
||||||
|
|
||||||
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('amount_of_invest').value != ''">{{"₹"}} {{OtherAmtInvestInwords[i]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
<input matInput placeholder="Bank Name" formControlName="bank_name" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -467,7 +489,7 @@
|
|||||||
formControlName="other_owner" autocomplete="off">
|
formControlName="other_owner" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- <mat-form-field style="width:30%">
|
<!-- <mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Relation" formControlName="relation" >
|
<mat-select placeholder="Relation" formControlName="relation" >
|
||||||
<mat-option value="{{relations.relationship_id}}"
|
<mat-option value="{{relations.relationship_id}}"
|
||||||
*ngFor="let relations of m_relation">
|
*ngFor="let relations of m_relation">
|
||||||
@ -479,12 +501,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,12)" (keypress)="keyPress($event)">
|
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,12)" (keypress)="keyPress($event)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{OtherAssetValueInwords[s]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="detail.get('any_other_asset_value').value != ''">{{"₹"}} {{OtherAssetValueInwords[s]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan">
|
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan">
|
||||||
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue | titlecase}}</mat-option>
|
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue | titlecase}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
@ -496,9 +518,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--Desction Dynamic details : END -->
|
<!--Desction Dynamic details : END -->
|
||||||
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
|
||||||
<mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 4" style="width:30%">
|
<mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 4" style="width:40%">
|
||||||
<input matInput placeholder="Approximate Market Value" formControlName="approximate_market_value" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,2)">
|
<input matInput placeholder="Approximate Market Value" formControlName="approximate_market_value" (keypress)="keyPress($event)" autocomplete="off" (keyup)="inWords($event,i,2)">
|
||||||
<mat-hint align="start" style="font-size:70%" *ngIf="sup.get('approximate_market_value').value != ''">{{"₹"}} {{OtherAppxMarketAmtInwords[i]}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="sup.get('approximate_market_value').value != ''">{{"₹"}} {{OtherAppxMarketAmtInwords[i]}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5" style="width:45%">
|
<mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5" style="width:45%">
|
||||||
@ -520,7 +542,7 @@
|
|||||||
formControlName="other_owner" autocomplete="off">
|
formControlName="other_owner" autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- check -->
|
<!-- check -->
|
||||||
<!-- <mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5" style="width:30%">
|
<!-- <mat-form-field *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5" style="width:40%">
|
||||||
<mat-select placeholder="Relation" formControlName="relation" >
|
<mat-select placeholder="Relation" formControlName="relation" >
|
||||||
<mat-option value="{{relations.relationship_id}}"
|
<mat-option value="{{relations.relationship_id}}"
|
||||||
*ngFor="let relations of m_relation">
|
*ngFor="let relations of m_relation">
|
||||||
@ -532,14 +554,14 @@
|
|||||||
|
|
||||||
<span *ngIf="sup.get('assets_mode').value != ''">
|
<span *ngIf="sup.get('assets_mode').value != ''">
|
||||||
|
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
|
|
||||||
<mat-label>Vintage</mat-label>
|
<mat-label>Vintage</mat-label>
|
||||||
<input matInput autocomplete="off" placeholder="eg.999" formControlName="vintage_personal" minlength="1" maxlength="3" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,3)">
|
<input matInput autocomplete="off" placeholder="eg.999" formControlName="vintage_personal" minlength="1" maxlength="3" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,3)">
|
||||||
<!-- <mat-error> Invalid format</mat-error> -->
|
<!-- <mat-error> Invalid format</mat-error> -->
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%">
|
<mat-form-field style="width:40%">
|
||||||
|
|
||||||
<mat-label>Purchase Year</mat-label>
|
<mat-label>Purchase Year</mat-label>
|
||||||
<input matInput autocomplete="off" placeholder="YYYY eg.2018" formControlName="purchase_year" minlength="4" maxlength="4" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,4)">
|
<input matInput autocomplete="off" placeholder="YYYY eg.2018" formControlName="purchase_year" minlength="4" maxlength="4" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,4)">
|
||||||
|
|||||||
@ -2,6 +2,9 @@
|
|||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
background-color: #e00201 !important;
|
background-color: #e00201 !important;
|
||||||
}
|
}
|
||||||
|
.mat-form-field-appearance-legacy .mat-hint{
|
||||||
|
color:rgba(0, 0, 0, 0.8) !important;
|
||||||
|
}
|
||||||
.mat-card-content {
|
.mat-card-content {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,16 +40,17 @@
|
|||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="70" fxFlex.xl="70" class="content-data">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="70" fxFlex.xl="70" class="content-data">
|
||||||
<figure>
|
<figure>
|
||||||
<mat-card-content style="padding:0px !important;">
|
<mat-card-content style="padding:0px !important;">
|
||||||
<div *ngFor="let master of pdMasterData" class="ml-xs mr-xs">
|
|
||||||
<div fxLayout="row">
|
<div fxLayout="row" class="ml-xs mr-xs">
|
||||||
<div fxFlex="100" style="text-align: right;">
|
<div fxFlex="100" style="text-align: right;">
|
||||||
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master)"><mat-icon>verified_user</mat-icon></button>
|
<span *ngFor="let master of pdMasterData">
|
||||||
|
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master)"><mat-icon>verified_user</mat-icon></button>
|
||||||
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
|
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
|
||||||
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.DRAFT && enableStartPD" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(viewID)"><mat-icon>question_answer</mat-icon></button>
|
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.DRAFT && enableStartPD" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(viewID)"><mat-icon>question_answer</mat-icon></button>
|
||||||
<button *ngIf="master.pd_type_name && currentPDStatus===pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PD Report" matTooltipPosition="above" (click)="getPDIDReport(viewID)"><mat-icon>ballot</mat-icon></button>
|
<button *ngIf="master.pd_type_name && currentPDStatus===pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PD Report" matTooltipPosition="above" (click)="getPDIDReport(viewID)"><mat-icon>ballot</mat-icon></button>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="above" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
</span>
|
||||||
</div>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="above" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<hr>
|
<hr>
|
||||||
@ -60,7 +61,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
||||||
<div fxFlex="10">
|
<div fxFlex="10">
|
||||||
<span><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
<span *ngIf="master.product_name"><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="90">
|
<div fxFlex="90">
|
||||||
<span *ngIf="master.product_name"> {{master.product_name}}<span *ngIf="master.subproduct_name"> / {{master.subproduct_name}} </span></span>
|
<span *ngIf="master.product_name"> {{master.product_name}}<span *ngIf="master.subproduct_name"> / {{master.subproduct_name}} </span></span>
|
||||||
@ -70,7 +71,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
||||||
<div fxFlex="10">
|
<div fxFlex="10">
|
||||||
<span><i class="fa-1x fa fa-rupee" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
<span *ngIf="master.loan_amount"><i class="fa-1x fa fa-rupee" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="90">
|
<div fxFlex="90">
|
||||||
<span *ngIf="master.loan_amount"> {{master.loan_amount}}</span>
|
<span *ngIf="master.loan_amount"> {{master.loan_amount}}</span>
|
||||||
@ -80,7 +81,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
||||||
<div fxFlex="10">
|
<div fxFlex="10">
|
||||||
<span><i class="fa-1x fa fa-check-circle" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
<span *ngIf="master.pd_type_name"><i class="fa-1x fa fa-check-circle" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="90">
|
<div fxFlex="90">
|
||||||
<span *ngIf="master.pd_type_name"> {{master.pd_type_name}}</span>
|
<span *ngIf="master.pd_type_name"> {{master.pd_type_name}}</span>
|
||||||
@ -90,7 +91,7 @@
|
|||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
|
||||||
<div fxFlex="10">
|
<div fxFlex="10">
|
||||||
<span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
<span *ngIf="master.state_name"><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="90">
|
<div fxFlex="90">
|
||||||
<span *ngIf="master.state_name" class="hover-icon"> {{master.addressline1}},<br> {{master.city_name}},<br>{{master.state_name}}-{{master.pincode}} </span>
|
<span *ngIf="master.state_name" class="hover-icon"> {{master.addressline1}},<br> {{master.city_name}},<br>{{master.state_name}}-{{master.pincode}} </span>
|
||||||
@ -166,8 +167,8 @@
|
|||||||
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
<i class="fa-1x fa fa-phone" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
|
||||||
{{applicant.landline}}
|
{{applicant.landline}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="applicant.applicant_type=='1';else codetails" style="font-size:12px;">( Main Applicant ) </span>
|
<span *ngIf="applicant.applicant_type=='1';else codetails" style="font-size:12px;">( Main Applicant )</span>
|
||||||
<ng-template #codetails><span>( {{applicant.relation_name}} )</span></ng-template>
|
<ng-template #codetails><span> {{applicant.relation_name}} </span></ng-template>
|
||||||
</p>
|
</p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|||||||
@ -70,7 +70,12 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
this._pd.editPdDetails(editID).subscribe(
|
this._pd.editPdDetails(editID).subscribe(
|
||||||
data => {
|
data => {
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.pdMasterData=data.records.pd_master_details;
|
this.pdMasterData = data.records.pd_master_details;
|
||||||
|
this.pdMasterData = Object.keys(data.records.pd_master_details).map(function (key)
|
||||||
|
{
|
||||||
|
return data.records.pd_master_details[key];
|
||||||
|
});
|
||||||
|
// console.log(this.pdMasterData);
|
||||||
this.pd_QC_Rating = Number(this.pdMasterData[0].qc_rating);
|
this.pd_QC_Rating = Number(this.pdMasterData[0].qc_rating);
|
||||||
this.pdApplicantData= data.records.applicants_details;
|
this.pdApplicantData= data.records.applicants_details;
|
||||||
this.pdDocumentsData=data.records.pd_documnets;
|
this.pdDocumentsData=data.records.pd_documnets;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user