UI Changes
This commit is contained in:
parent
1526515eae
commit
8acc442c12
@ -148,7 +148,7 @@
|
|||||||
<div fxFlex="100">
|
<div fxFlex="100">
|
||||||
<mat-form-field style="width: 95%;">
|
<mat-form-field style="width: 95%;">
|
||||||
<!--placeholder="Was any business activity seen at the (Address Type) seen during PD visit?"-->
|
<!--placeholder="Was any business activity seen at the (Address Type) seen during PD visit?"-->
|
||||||
<mat-select placeholder="Is there any other premises from which business activity is being run?" formControlName="bussiness_activity" required>
|
<mat-select placeholder="Are there any other premises from which business activity is being run?" formControlName="bussiness_activity" required>
|
||||||
<mat-option value="yes">Yes</mat-option>
|
<mat-option value="yes">Yes</mat-option>
|
||||||
<mat-option value="no">No</mat-option>
|
<mat-option value="no">No</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|||||||
@ -95,7 +95,7 @@
|
|||||||
</mat-panel-title>
|
</mat-panel-title>
|
||||||
</mat-expansion-panel-header>
|
</mat-expansion-panel-header>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="Applicant Name" formControlName="applicant_name" (selectionChange)="selectedBorrower($event.value,i)">
|
<mat-select placeholder="Account Name" formControlName="applicant_name" (selectionChange)="selectedBorrower($event.value,i)">
|
||||||
<mat-option value="{{owner.pd_co_applicant_id}}" *ngFor="let owner of applicants">{{owner.applicant_name}}</mat-option>
|
<mat-option value="{{owner.pd_co_applicant_id}}" *ngFor="let owner of applicants">{{owner.applicant_name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@ -1207,8 +1207,8 @@
|
|||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-card-content class="matcard">
|
<mat-card-content class="matcard">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Amount Invested by Applicant"
|
<input matInput placeholder="Amount Invested by Applicant" formControlName="invested_amount" (keypress)="keyPress($event)" (keyup)="inWords($event.target.value)" autocomplete="off">
|
||||||
formControlName="invested_amount" required>
|
<mat-hint align="start" style="font-size:70%" *ngIf="businessForm.controls['invested_amount'].value != ''">{{"₹"}} {{InvestedAmountInWords}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-form-field>
|
<!-- <mat-form-field>
|
||||||
<input matInput placeholder="Monthly Working Capital Needed"
|
<input matInput placeholder="Monthly Working Capital Needed"
|
||||||
|
|||||||
@ -55,6 +55,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
//sourceNames: any = {"Private Limited Company": 'Director / Shareholder Details',"Proprietorship": 'Proprietor Details', "Sole Proprietorship": 'Proprietor Details',"Partnership": 'Partner Details',"Limited Liability Partnership (LLP)": 'Partner Details',"One Person Company (OPC)": 'Director Details',"Hindu Undivided Family (HUF)": 'Karta Details',"Society": 'Member Details',"Cooperative": 'Member Details',"Trust": 'Trustee Details',"Public Ltd Company": 'Director / Shareholder Details','Individual':'Self',"Others": 'Other Enitity Details'};
|
//sourceNames: any = {"Private Limited Company": 'Director / Shareholder Details',"Proprietorship": 'Proprietor Details', "Sole Proprietorship": 'Proprietor Details',"Partnership": 'Partner Details',"Limited Liability Partnership (LLP)": 'Partner Details',"One Person Company (OPC)": 'Director Details',"Hindu Undivided Family (HUF)": 'Karta Details',"Society": 'Member Details',"Cooperative": 'Member Details',"Trust": 'Trustee Details',"Public Ltd Company": 'Director / Shareholder Details','Individual':'Self',"Others": 'Other Enitity Details'};
|
||||||
sourceNames: {[k: string]: any} = {};
|
sourceNames: {[k: string]: any} = {};
|
||||||
maxDate:any;
|
maxDate:any;
|
||||||
|
InvestedAmountInWords:any;
|
||||||
public relationSource= new MatTableDataSource();
|
public relationSource= new MatTableDataSource();
|
||||||
displayedColumns = ['family_member_name','relation','relation_to','relationship_with_company','started_business'];
|
displayedColumns = ['family_member_name','relation','relation_to','relationship_with_company','started_business'];
|
||||||
constructor(notifier: NotifierService,
|
constructor(notifier: NotifierService,
|
||||||
@ -112,6 +113,7 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
params.company_id = this.company_id;
|
params.company_id = this.company_id;
|
||||||
this._pd.retriveForm(params).subscribe(data => {
|
this._pd.retriveForm(params).subscribe(data => {
|
||||||
let businessVal = data.records;
|
let businessVal = data.records;
|
||||||
|
this.inWords(data.records.invested_amount);
|
||||||
let constVal: any;
|
let constVal: any;
|
||||||
//const Desgn = <FormArray>this.businessForm.controls['designation'];
|
//const Desgn = <FormArray>this.businessForm.controls['designation'];
|
||||||
const Partnr: any = <FormArray>this.businessForm.controls['partners'];
|
const Partnr: any = <FormArray>this.businessForm.controls['partners'];
|
||||||
@ -1365,15 +1367,6 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** On Key Press Event For Mobile Number */
|
|
||||||
keyPress(event: any) {
|
|
||||||
const pattern = /[0-9]/;
|
|
||||||
|
|
||||||
let inputChar = String.fromCharCode(event.charCode);
|
|
||||||
if (event.keyCode != 8 && !pattern.test(inputChar)) {
|
|
||||||
event.preventDefault();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// filter cities for other than pan india
|
// filter cities for other than pan india
|
||||||
|
|
||||||
@ -1436,6 +1429,22 @@ export class BusinessInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** On Key Press Event For Amount */
|
||||||
|
keyPress(event: any) {
|
||||||
|
const pattern = /[0-9]/;
|
||||||
|
|
||||||
|
let inputChar = String.fromCharCode(event.charCode);
|
||||||
|
if (event.keyCode != 8 && !pattern.test(inputChar)) {
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** To Convert Amount into Words */
|
||||||
|
inWords(e){
|
||||||
|
this.InvestedAmountInWords = this._pd.convertNumberToWords(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
getCompanyListForBusiness(): void{
|
getCompanyListForBusiness(): void{
|
||||||
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
|
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
|
||||||
if(data.dataStatus){
|
if(data.dataStatus){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user