Merge branch 'smc_credit_pd_new' of https://bitbucket.org/venbaittech/sparq-lender into smc_credit_pd_new
This commit is contained in:
commit
bfab6e3e79
@ -17,7 +17,7 @@
|
|||||||
<mat-option *ngFor="let type of PDType" [value]="type.pd_type_id">{{type.type_name}}</mat-option>
|
<mat-option *ngFor="let type of PDType" [value]="type.pd_type_id">{{type.type_name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field> -->
|
</mat-form-field> -->
|
||||||
<mat-form-field style="width:25%" class="matfieldblock">
|
<mat-form-field style="width:20%" class="matfieldblock">
|
||||||
<mat-select multiple formControlName="pd_status" placeholder="PD Status">
|
<mat-select multiple formControlName="pd_status" placeholder="PD Status">
|
||||||
<mat-option *ngFor="let status of pdStatus" [value]="status.pd_status_name">{{status.pd_status_name}}</mat-option>
|
<mat-option *ngFor="let status of pdStatus" [value]="status.pd_status_name">{{status.pd_status_name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
@ -31,9 +31,9 @@
|
|||||||
<input matInput [matDatepicker]="picker1" [min]="searchForm.get('pd_from_date').value" [max]="todaydate" formControlName="pd_to_date" placeholder="Choose a todate">
|
<input matInput [matDatepicker]="picker1" [min]="searchForm.get('pd_from_date').value" [max]="todaydate" formControlName="pd_to_date" placeholder="Choose a todate">
|
||||||
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
||||||
<mat-datepicker #picker1></mat-datepicker>
|
<mat-datepicker #picker1></mat-datepicker>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:20%" class="matfieldblock">
|
<mat-form-field style="width:20%" class="matfieldblock">
|
||||||
<mat-select formControlName="date_type" [(ngModel)]="modeselect" placeholder="Date Type">
|
<mat-select formControlName="date_type" placeholder="Date Type">
|
||||||
<mat-option value="1">PD Trigger Date</mat-option>
|
<mat-option value="1">PD Trigger Date</mat-option>
|
||||||
<mat-option value="2">PD Completed Date</mat-option>
|
<mat-option value="2">PD Completed Date</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
||||||
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
|
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
|
||||||
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
|
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
|
||||||
import { FormGroup, FormBuilder ,FormsModule} from '@angular/forms';
|
import { FormGroup, FormBuilder} from '@angular/forms';
|
||||||
import { DatePipe } from '@angular/common';
|
import { DatePipe } from '@angular/common';
|
||||||
import { NotifierService } from 'angular-notifier';
|
import { NotifierService } from 'angular-notifier';
|
||||||
import { AwsService } from 'app/AwsService/aws.service';
|
import { AwsService } from 'app/AwsService/aws.service';
|
||||||
@ -30,7 +30,6 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
tabStatus:string="ALL";
|
tabStatus:string="ALL";
|
||||||
public modeselect = '1';
|
|
||||||
public dataLengthTab1: number;
|
public dataLengthTab1: number;
|
||||||
public dataSourceTab1 = new MatTableDataSource();
|
public dataSourceTab1 = new MatTableDataSource();
|
||||||
displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
|
displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
|
||||||
@ -71,7 +70,7 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
pd_status:[null],
|
pd_status:[null],
|
||||||
pd_from_date:[null],
|
pd_from_date:[null],
|
||||||
pd_to_date:[null],
|
pd_to_date:[null],
|
||||||
date_type:[null],
|
date_type:['1'],
|
||||||
pd_city:[null],
|
pd_city:[null],
|
||||||
pd_products:[null],
|
pd_products:[null],
|
||||||
pd_lender:[null],
|
pd_lender:[null],
|
||||||
@ -291,7 +290,7 @@ console.log(this.displayedColumns)
|
|||||||
|
|
||||||
searchItem()
|
searchItem()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
if(this.searchForm.value.pd_type !=null)
|
if(this.searchForm.value.pd_type !=null)
|
||||||
{
|
{
|
||||||
@ -312,6 +311,10 @@ console.log(this.displayedColumns)
|
|||||||
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
||||||
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
||||||
// console.log(JSON.stringify(this.searchForm.value));
|
// console.log(JSON.stringify(this.searchForm.value));
|
||||||
|
let dt =this.searchForm.value.date_type;
|
||||||
|
let ldt: number = +dt;
|
||||||
|
this.searchForm.value.date_type=ldt;
|
||||||
|
console.log(this.searchForm.value);
|
||||||
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
||||||
{
|
{
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
@ -351,6 +354,8 @@ console.log(this.displayedColumns)
|
|||||||
|
|
||||||
onReset(){
|
onReset(){
|
||||||
this.searchForm.reset();
|
this.searchForm.reset();
|
||||||
|
|
||||||
|
this.searchForm.controls['date_type'].setValue('1');
|
||||||
this.loadPDDetails();
|
this.loadPDDetails();
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,9 +33,9 @@
|
|||||||
<input matInput [max]="todaydate" [matDatepicker]="picker1" [min]="searchForm.get('pd_from_date').value" formControlName="pd_to_date" placeholder="Choose a todate">
|
<input matInput [max]="todaydate" [matDatepicker]="picker1" [min]="searchForm.get('pd_from_date').value" formControlName="pd_to_date" placeholder="Choose a todate">
|
||||||
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
||||||
<mat-datepicker #picker1></mat-datepicker>
|
<mat-datepicker #picker1></mat-datepicker>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%" class="matfieldblock">
|
<mat-form-field style="width:30%" class="matfieldblock">
|
||||||
<mat-select formControlName="date_type" [(ngModel)]="modeselect" placeholder="Date Type">
|
<mat-select formControlName="date_type" placeholder="Date Type">
|
||||||
<mat-option value="1">PD Trigger Date</mat-option>
|
<mat-option value="1">PD Trigger Date</mat-option>
|
||||||
<mat-option value="2">PD Completed Date</mat-option>
|
<mat-option value="2">PD Completed Date</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
public modeselect = '1';
|
|
||||||
tabStatus:string="COMPLETED";
|
tabStatus:string="COMPLETED";
|
||||||
public dataLengthTab4: number;
|
public dataLengthTab4: number;
|
||||||
public dataSourceTab4 = new MatTableDataSource();
|
public dataSourceTab4 = new MatTableDataSource();
|
||||||
@ -69,7 +69,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
pd_status:['COMPLETED'],
|
pd_status:['COMPLETED'],
|
||||||
pd_from_date:[null],
|
pd_from_date:[null],
|
||||||
pd_to_date:[null],
|
pd_to_date:[null],
|
||||||
date_type:[null],
|
date_type:['1'],
|
||||||
pd_city:[null],
|
pd_city:[null],
|
||||||
pd_products:[null],
|
pd_products:[null],
|
||||||
pd_lender:[null],
|
pd_lender:[null],
|
||||||
@ -274,7 +274,10 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
|||||||
|
|
||||||
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
||||||
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
||||||
|
let dt =this.searchForm.value.date_type;
|
||||||
|
let ldt: number = +dt;
|
||||||
|
this.searchForm.value.date_type=ldt;
|
||||||
|
console.log(this.searchForm.value);
|
||||||
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
||||||
{
|
{
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
@ -338,6 +341,7 @@ public LenderRoleID : any = localStorage.getItem('LenderRoleID');
|
|||||||
}
|
}
|
||||||
onReset(){
|
onReset(){
|
||||||
this.searchForm.reset();
|
this.searchForm.reset();
|
||||||
|
this.searchForm.controls['date_type'].setValue('1');
|
||||||
this.loadPDDetails();
|
this.loadPDDetails();
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -32,9 +32,9 @@
|
|||||||
<input matInput [matDatepicker]="picker1" [max]="todaydate" [min]="searchForm.get('pd_from_date').value" formControlName="pd_to_date" placeholder="Choose a todate">
|
<input matInput [matDatepicker]="picker1" [max]="todaydate" [min]="searchForm.get('pd_from_date').value" formControlName="pd_to_date" placeholder="Choose a todate">
|
||||||
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="picker1"></mat-datepicker-toggle>
|
||||||
<mat-datepicker #picker1></mat-datepicker>
|
<mat-datepicker #picker1></mat-datepicker>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width:30%" class="matfieldblock">
|
<mat-form-field style="width:30%" class="matfieldblock">
|
||||||
<mat-select formControlName="date_type" [(ngModel)]="modeselect" placeholder="Date Type">
|
<mat-select formControlName="date_type" placeholder="Date Type">
|
||||||
<mat-option value="1">PD Trigger Date</mat-option>
|
<mat-option value="1">PD Trigger Date</mat-option>
|
||||||
<mat-option value="2">PD Completed Date</mat-option>
|
<mat-option value="2">PD Completed Date</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|||||||
@ -25,7 +25,6 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
tabStatus:string="INPROGRESS";
|
tabStatus:string="INPROGRESS";
|
||||||
public modeselect = '1';
|
|
||||||
pipe = new DatePipe('en-US');
|
pipe = new DatePipe('en-US');
|
||||||
todaydate:Date = new Date();
|
todaydate:Date = new Date();
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
@ -67,7 +66,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
pd_status:['INPROGRESS'],
|
pd_status:['INPROGRESS'],
|
||||||
pd_from_date:[null],
|
pd_from_date:[null],
|
||||||
pd_to_date:[null],
|
pd_to_date:[null],
|
||||||
date_type:[null],
|
date_type:['1'],
|
||||||
pd_city:[null],
|
pd_city:[null],
|
||||||
pd_products:[null],
|
pd_products:[null],
|
||||||
pd_lender:[null],
|
pd_lender:[null],
|
||||||
@ -245,7 +244,7 @@ public LenderRoleID : string = localStorage.getItem('LenderRoleID');
|
|||||||
}
|
}
|
||||||
searchItem()
|
searchItem()
|
||||||
{
|
{
|
||||||
console.log(this.searchForm.value);
|
|
||||||
if(this.searchForm.value.pd_type !=null)
|
if(this.searchForm.value.pd_type !=null)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -264,7 +263,10 @@ console.log(this.searchForm.value);
|
|||||||
|
|
||||||
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_from_date = this.pipe.transform(this.searchForm.value.pd_from_date,'yyyy-MM-dd');
|
||||||
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
this.searchForm.value.pd_to_date = this.pipe.transform(this.searchForm.value.pd_to_date,'yyyy-MM-dd');
|
||||||
|
let dt =this.searchForm.value.date_type;
|
||||||
|
let ldt: number = +dt;
|
||||||
|
this.searchForm.value.date_type=ldt;
|
||||||
|
console.log(this.searchForm.value);
|
||||||
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
|
||||||
{
|
{
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
@ -328,6 +330,7 @@ console.log(this.searchForm.value);
|
|||||||
|
|
||||||
onReset(){
|
onReset(){
|
||||||
this.searchForm.reset();
|
this.searchForm.reset();
|
||||||
|
this.searchForm.controls['date_type'].setValue('1');
|
||||||
this.loadPDDetails();
|
this.loadPDDetails();
|
||||||
this.xpandStatus = false;
|
this.xpandStatus = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user