This commit is contained in:
venbatechnologies@gmail.com 2019-12-23 12:15:57 +05:30
commit 6481ca9ac8
12 changed files with 136 additions and 7 deletions

View File

@ -710,12 +710,14 @@ export class AddPdComponent implements OnInit, OnDestroy {
coapplicant_landline_no = null; coapplicant_landline_no = null;
} }
else if(itemElement.coapplicant_stdcode && itemElement.coapplicant_landline){ else if(itemElement.coapplicant_stdcode && itemElement.coapplicant_landline){
coapplicant_landline_no = formValue.coapplicant_stdcode + '-' + itemElement.applicant_landline; coapplicant_landline_no = itemElement.coapplicant_stdcode + '-' + itemElement.coapplicant_landline;
} }
else{ else{
coapplicant_landline_no = null; coapplicant_landline_no = null;
} }
// if (itemElement.coapplicant_stdcode != null || itemElement.coapplicant_landline != null) { // if (itemElement.coapplicant_stdcode != null || itemElement.coapplicant_landline != null) {
// if (itemElement.coapplicant_stdcode != '' && itemElement.coapplicant_landline != '') { // if (itemElement.coapplicant_stdcode != '' && itemElement.coapplicant_landline != '') {
// coapplicant_landline_no = formValue.coapplicant_stdcode + '-' + itemElement.applicant_landline; // coapplicant_landline_no = formValue.coapplicant_stdcode + '-' + itemElement.applicant_landline;

View File

@ -227,6 +227,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
params.pd_form_id = '5'; params.pd_form_id = '5';
this.pdTrigerService.retriveForm(params).subscribe(data => { this.pdTrigerService.retriveForm(params).subscribe(data => {
console.log('Address Check',data);
if (data.status == 200) { if (data.status == 200) {
if(flag == 1){ if(flag == 1){

View File

@ -63,8 +63,13 @@
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%;"> <mat-form-field style="width:45%;">
<input matInput placeholder="Place" formControlName="residence_place" <input matInput placeholder="Place" formControlName="residence_place" [matAutocomplete]="auto"
required> required>
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let address of addressList" [value]="address.value">
<span>{{address.value}}</span>
</mat-option>
</mat-autocomplete>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%;"> <mat-form-field style="width:45%;">
<mat-select matInput placeholder="Pin" formControlName="residence_pin" <mat-select matInput placeholder="Pin" formControlName="residence_pin"

View File

@ -68,6 +68,7 @@ export class FamilyDetailsComponent implements OnInit {
cityDataList: any = []; cityDataList: any = [];
pincodeDataList: any = []; pincodeDataList: any = [];
product_abbr: any; product_abbr: any;
addressList: any = [];
/** constructor Of the class */ /** constructor Of the class */
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute, constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
@ -93,6 +94,8 @@ export class FamilyDetailsComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.addressSuggestion();
this.getMasterDetails('RELATIONSHIPS', 1); this.getMasterDetails('RELATIONSHIPS', 1);
this.getMasterDetails('OCCUPATIONMEMBERS', 2); this.getMasterDetails('OCCUPATIONMEMBERS', 2);
this.getMasterDetails('RESIDENCEOWNERSHIP', 4); this.getMasterDetails('RESIDENCEOWNERSHIP', 4);
@ -844,5 +847,23 @@ export class FamilyDetailsComponent implements OnInit {
// ) // )
} }
addressSuggestion(){
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
this._pd.getAddressSuggestion(params).subscribe(data => {
console.log('Address Check',data);
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
if (initiated_address_check == false ) {
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
}
})
}
} }

View File

@ -251,11 +251,24 @@
autocomplete="off"> autocomplete="off">
</mat-form-field> </mat-form-field>
<!-- (change)="addOptionOnAutoComplete(detail.get('property_type').value,$event.target.value,i)"
[matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let address of addressList" [value]="address.value">
<span>{{address.value}}</span>
</mat-option>
</mat-autocomplete> -->
<mat-form-field style="width:96%;"> <mat-form-field style="width:96%;">
<input matInput <input matInput
[placeholder]="address_placeholder" [placeholder]="address_placeholder"
formControlName="address" formControlName="address"
required autocomplete="off"> required [matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let address of addressList" [value]="address.value">
<span>{{address.value}}</span>
</mat-option>
</mat-autocomplete>
</mat-form-field> </mat-form-field>
<mat-form-field style="width:46%;"> <mat-form-field style="width:46%;">
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)"> <mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">

View File

@ -93,6 +93,7 @@ export class LoanDetailsComponent implements OnInit {
Owner_placeholder:string; Owner_placeholder:string;
address_placeholder: string; address_placeholder: string;
image_doc_params: { pdid: number; form_id: number; company_id: string; }; image_doc_params: { pdid: number; form_id: number; company_id: string; };
addressList: any = [];
@ -150,6 +151,7 @@ export class LoanDetailsComponent implements OnInit {
this.getM_StatusofCunstruction(); this.getM_StatusofCunstruction();
this.getM_BTLenderList(); this.getM_BTLenderList();
this.getM_EndUseofTopUpList(); this.getM_EndUseofTopUpList();
this.addressSuggestion();
// note : Details of Property being Mortgaged section, In Name of the owner drop down list currently show all names (Applicants & In Person Met) need to change show Applicant names only. // note : Details of Property being Mortgaged section, In Name of the owner drop down list currently show all names (Applicants & In Person Met) need to change show Applicant names only.
let param: any = {}; let param: any = {};
@ -1133,4 +1135,24 @@ export class LoanDetailsComponent implements OnInit {
// this.m_stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1) // this.m_stateList.filter(res => res.state_name.toLowerCase().indexOf(searchVal) > -1)
// ) // )
} }
addressSuggestion() {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
this._pd.getAddressSuggestion(params).subscribe(data => {
console.log('Address Check',data);
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
if (initiated_address_check == false ) {
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
}
})
}
} }

View File

@ -65,8 +65,13 @@
</mat-form-field> </mat-form-field>
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5"> <mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
<input matInput autocomplete="off" placeholder="Address" <input matInput placeholder="Address"
formControlName="address"> formControlName="address" [matAutocomplete]="auto">
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let address of addressList" [value]="address.value">
<span>{{address.value}}</span>
</mat-option>
</mat-autocomplete>
<mat-hint align="end"> <button mat-flat-button color="primary" (click)="Toview()" type="button"><strong>Validate Rental Income</strong></button> <mat-hint align="end"> <button mat-flat-button color="primary" (click)="Toview()" type="button"><strong>Validate Rental Income</strong></button>
<!-- <i (click)="Toview()">Rental Info Details</i> --> <!-- <i (click)="Toview()">Rental Info Details</i> -->
</mat-hint> </mat-hint>

View File

@ -62,6 +62,7 @@ export class OtherIncomeComponent implements OnInit {
mergeCompanyApplicant: any = []; mergeCompanyApplicant: any = [];
isIncomeEarnedBy: any = []; isIncomeEarnedBy: any = [];
image_doc_params: { pdid: string; form_id: number; company_id: string; }; image_doc_params: { pdid: string; form_id: number; company_id: string; };
addressList: any = [];
// stringArr = []; // stringArr = [];
constructor(notifier: NotifierService, constructor(notifier: NotifierService,
private fb: FormBuilder, private fb: FormBuilder,
@ -133,6 +134,7 @@ export class OtherIncomeComponent implements OnInit {
} }
}) })
this.addressSuggestion();
this.getFrequency(); this.getFrequency();
this.getSourceOtherIncome(); this.getSourceOtherIncome();
this.initOtherincomeForm(); this.initOtherincomeForm();
@ -491,4 +493,23 @@ export class OtherIncomeComponent implements OnInit {
}); });
}*/ }*/
addressSuggestion() {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
this._pd.getAddressSuggestion(params).subscribe(data => {
console.log('Address Check',data);
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
if (initiated_address_check == false ) {
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
}
})
}
} }

View File

@ -33,7 +33,13 @@
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="40" fxFlex.lg="30" fxFlex.xl="30"> <div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="40" fxFlex.lg="30" fxFlex.xl="30">
<mat-form-field style="width:90%" appearance="outline"> <mat-form-field style="width:90%" appearance="outline">
<mat-label>Address of the Property</mat-label> <mat-label>Address of the Property</mat-label>
<textarea matInput rows="4" placeholder="" formControlName="address_property" required></textarea> <textarea matInput rows="4" placeholder="" formControlName="address_property" required [matAutocomplete]="auto"></textarea>
<mat-autocomplete #auto="matAutocomplete">
<mat-option *ngFor="let address of addressList" [value]="address.value">
<span>{{address.value}}</span>
</mat-option>
</mat-autocomplete>
</mat-form-field> </mat-form-field>
</div> </div>
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70"> <div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70">

View File

@ -77,6 +77,7 @@ export class ManageRentalVerificationComponent implements OnInit {
stateData: any = []; stateData: any = [];
cityData: any = []; cityData: any = [];
pincodeData: any = []; pincodeData: any = [];
addressList: any = [];
constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<ManageRentalVerificationComponent>,private dialog: MatDialog) { constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<ManageRentalVerificationComponent>,private dialog: MatDialog) {
@ -98,6 +99,7 @@ export class ManageRentalVerificationComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.addressSuggestion();
this.initRentalForm(); this.initRentalForm();
this.getMasterDetails('RELATIONSHIPS', 1); this.getMasterDetails('RELATIONSHIPS', 1);
this.getMasterDetails('COMPANYRELATIONSHIPS', 2); this.getMasterDetails('COMPANYRELATIONSHIPS', 2);
@ -1211,6 +1213,24 @@ retriveFile(){
// ) // )
} }
addressSuggestion() {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
this._pd.getAddressSuggestion(params).subscribe(data => {
console.log('Address Check',data);
let initiated_address_check = data.records.hasOwnProperty('is_pd_done_on_initiated_address') ? data.records.is_pd_done_on_initiated_address : true;
this.addressList.push({ key_name: 'initiate_address', value: data.records.addresses[0].address, description: 'Initiated Address' });
if (initiated_address_check == false ) {
this.addressList.push({ key_name: 'alternative_addresses', value: data.records.alternative_addresses[0].alternative_address, description: 'Alternative Address' });
}
})
}
} }

View File

@ -314,6 +314,10 @@
<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>
&nbsp;{{applicant.mobile_no}} &nbsp;{{applicant.mobile_no}}
</span> &nbsp;&nbsp;&nbsp; </span> &nbsp;&nbsp;&nbsp;
<span *ngIf="applicant.company_name!=null" class="mb-2 text-center hover-icon">
<i class="fa-1x fa fa-building-o" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>
&nbsp;{{applicant.company_name}}
</span> &nbsp;&nbsp;&nbsp;
<span *ngIf="applicant.landline != '' && (applicant.landline != 'null-null'|| applicant.landline != undefined-undefined) && (applicant.landline != null || applicant.landline != undefined) " class="mb-2 text-center hover-icon"> <span *ngIf="applicant.landline != '' && (applicant.landline != 'null-null'|| applicant.landline != undefined-undefined) && (applicant.landline != null || applicant.landline != undefined) " class="mb-2 text-center hover-icon">
<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>
&nbsp;{{applicant.landline}} &nbsp;{{applicant.landline}}

View File

@ -613,7 +613,16 @@ export class PdTrigerService {
catchError(this.handleError('operation', [])) catchError(this.handleError('operation', []))
) )
} }
/**
* To Get Address For Suggestion
*
*/
getAddressSuggestion(params): Observable<any> {
return this._http.post(this.apiUrl + 'getPDFormDetails', params)
.pipe(
catchError(this.handleError('role', []))
)
}
/** To get Family Member Name For /** To get Family Member Name For
* 1) Family Form * 1) Family Form
*/ */