filterctrl
This commit is contained in:
parent
af814f1b0d
commit
32e47445c6
@ -132,7 +132,7 @@
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Bank Name" formControlName="bank_name">
|
||||
<mat-option>
|
||||
<ngx-mat-select-search [formControl]="bankFilterCtrl"
|
||||
<ngx-mat-select-search [formControl]="filterCtrl"
|
||||
[placeholderLabel]="'Search Bank...'"
|
||||
[noEntriesFoundLabel]="'no matching records found'"></ngx-mat-select-search>
|
||||
</mat-option>
|
||||
@ -291,7 +291,7 @@
|
||||
<mat-form-field>
|
||||
<mat-select placeholder="Bank Name" formControlName="bank_name_business">
|
||||
<mat-option>
|
||||
<ngx-mat-select-search [formControl]="bankFilterCtrl"
|
||||
<ngx-mat-select-search [formControl]="filterCtrl"
|
||||
[placeholderLabel]="'Search Bank...'"
|
||||
[noEntriesFoundLabel]="'no matching records found'"></ngx-mat-select-search>
|
||||
</mat-option>
|
||||
|
||||
@ -56,7 +56,7 @@ export class BankingDetailsComponent implements OnInit {
|
||||
image_doc_params: { pdid: number; form_id: any; company_id: string; };
|
||||
form_id: string;
|
||||
|
||||
public bankFilterCtrl:FormControl = new FormControl();
|
||||
public filterCtrl:FormControl = new FormControl();
|
||||
public filtered_m_btLenderList:ReplaySubject<any> = new ReplaySubject<any>(1);
|
||||
|
||||
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
|
||||
@ -178,6 +178,7 @@ export class BankingDetailsComponent implements OnInit {
|
||||
// control.push(this.createBankarray());
|
||||
} else {
|
||||
result.forEach((datas, index) => {
|
||||
datas.filterCtrl=''
|
||||
// this.selectedBorrower(datas.applicant_name,index);
|
||||
this.selectedAccTypeChanges(+datas.account_type, index)
|
||||
// this.emiAmtInwords[index] = this._pd.convertNumberToWords(val.emi);
|
||||
@ -193,9 +194,10 @@ export class BankingDetailsComponent implements OnInit {
|
||||
if (result1.length == 0) {
|
||||
// control.push(this.createBankarray());
|
||||
} else {
|
||||
result1.forEach((datas, index) => {
|
||||
result1.forEach((datas1, index) => {
|
||||
datas1.filterCtrl=''
|
||||
// this.selectedBorrower(datas.applicant_name,index);
|
||||
this.selectedAccTypeChanges1(+datas.account_type_business, index)
|
||||
this.selectedAccTypeChanges1(+datas1.account_type_business, index)
|
||||
// this.emiAmtInwords[index] = this._pd.convertNumberToWords(val.emi);
|
||||
//control.push(this.createBankarray());
|
||||
control1.push(this.createBusinessarray());
|
||||
@ -215,8 +217,8 @@ export class BankingDetailsComponent implements OnInit {
|
||||
this.filterList();
|
||||
}
|
||||
filterList() {
|
||||
this.bankFilterCtrl.valueChanges.pipe().subscribe(()=>{
|
||||
this.applyFilter(this.bankFilterCtrl.value,this.filtered_m_btLenderList,this.m_btLenderList,'lender_name')
|
||||
this.filterCtrl.valueChanges.pipe().subscribe(()=>{
|
||||
this.applyFilter(this.filterCtrl.value,this.filtered_m_btLenderList,this.m_btLenderList,'lender_name')
|
||||
})
|
||||
|
||||
}
|
||||
@ -263,6 +265,7 @@ export class BankingDetailsComponent implements OnInit {
|
||||
this.bankingForm = this.fb.group({
|
||||
banking_form_remark: [''],
|
||||
bank_info_available:[''],
|
||||
|
||||
bank_info_available_business:[''],
|
||||
itemRows: this.fb.array([]),
|
||||
itemRows1: this.fb.array([]),
|
||||
@ -283,7 +286,7 @@ export class BankingDetailsComponent implements OnInit {
|
||||
bank_name: [''],
|
||||
other_bank: [''],
|
||||
account_type: [''],
|
||||
|
||||
filterCtrl:[''],
|
||||
//salary: [''],
|
||||
salary: this.pd_cus_segment.substring(0, 2) == 'SE' ? [''] : [''],
|
||||
limit: [''],
|
||||
@ -304,6 +307,7 @@ export class BankingDetailsComponent implements OnInit {
|
||||
bank_name_business: [''],
|
||||
other_bank_business: [''],
|
||||
account_type_business: [''],
|
||||
filterCtrl:[''],
|
||||
//salary: [''],
|
||||
salary_business: this.pd_cus_segment.substring(0, 2) == 'SE' ? [''] : [''],
|
||||
limit_business: [''],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user