Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
8c6ef3b154
@ -1,5 +1,5 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- <mat-expansion-panel [(expanded)]="xpandStatus">
|
<mat-expansion-panel [(expanded)]="xpandStatus">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title class="text-xs-left">
|
<mat-panel-title class="text-xs-left">
|
||||||
<h6 class="mt-0">
|
<h6 class="mt-0">
|
||||||
@ -51,7 +51,7 @@
|
|||||||
<input matInput type="text" formControlName="pd_applicant_id" placeholder="Applicant Id">
|
<input matInput type="text" formControlName="pd_applicant_id" placeholder="Applicant Id">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()" matTooltip="Add More Additional Requirements"
|
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()" matTooltip="Search"
|
||||||
matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
@ -59,7 +59,7 @@
|
|||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
<br/> -->
|
<br/>
|
||||||
<mat-table [dataSource]="dataSourceTab1" matSort *ngIf="PdListData.length > 0">
|
<mat-table [dataSource]="dataSourceTab1" matSort *ngIf="PdListData.length > 0">
|
||||||
|
|
||||||
<ng-container matColumnDef="PDType">
|
<ng-container matColumnDef="PDType">
|
||||||
|
|||||||
@ -15,12 +15,12 @@ import { NotifierService } from 'angular-notifier';
|
|||||||
|
|
||||||
export class AllPdComponent implements OnInit, OnChanges {
|
export class AllPdComponent implements OnInit, OnChanges {
|
||||||
xpandStatus: boolean = false;
|
xpandStatus: boolean = false;
|
||||||
PRODUCTS: any;
|
PRODUCTS:any[]=[];
|
||||||
ENTITY: any;
|
ENTITY: any[]=[]
|
||||||
CITY: any;
|
CITY: any[]=[]
|
||||||
tempStore = new MatTableDataSource();
|
tempStore = new MatTableDataSource();
|
||||||
PDType: any;
|
PDType: any[]=[]
|
||||||
pdStatus: any;
|
pdStatus: any[]=[]
|
||||||
searchForm:FormGroup;
|
searchForm:FormGroup;
|
||||||
pipe = new DatePipe('en-US');
|
pipe = new DatePipe('en-US');
|
||||||
public notifier : NotifierService;
|
public notifier : NotifierService;
|
||||||
@ -61,6 +61,7 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
pd_name:[null],
|
pd_name:[null],
|
||||||
pd_applicant_id:[null],
|
pd_applicant_id:[null],
|
||||||
});
|
});
|
||||||
|
this.getcommonDropDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -119,7 +120,7 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
* sriram
|
* sriram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getcommonDropDown()
|
getcommonDropDown(): void
|
||||||
{
|
{
|
||||||
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
||||||
{
|
{
|
||||||
@ -137,11 +138,11 @@ export class AllPdComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
this._pd.getListOfCities().subscribe(res=>
|
||||||
{
|
{
|
||||||
if(res.dataStatus==true)
|
if(res.dataStatus==true)
|
||||||
{
|
{
|
||||||
this.CITY = res.records.filter(city=>city.isactive==1);
|
this.CITY = res.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
|
||||||
<!-- <mat-expansion-panel>
|
<mat-expansion-panel>
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title class="text-xs-left">
|
<mat-panel-title class="text-xs-left">
|
||||||
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
||||||
@ -52,14 +52,14 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
||||||
matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltip="Search" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
<br/> -->
|
<br/>
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSourceTab4" matSort *ngIf="completedPdListData.length > 0" >
|
<mat-table [dataSource]="dataSourceTab4" matSort *ngIf="completedPdListData.length > 0" >
|
||||||
|
|
||||||
|
|||||||
@ -14,11 +14,11 @@ import { DatePipe } from '@angular/common';
|
|||||||
|
|
||||||
export class CompletedPdComponent implements OnInit, OnChanges {
|
export class CompletedPdComponent implements OnInit, OnChanges {
|
||||||
xpandStatus: boolean = false;
|
xpandStatus: boolean = false;
|
||||||
PRODUCTS: any;
|
PRODUCTS: any[]=[];
|
||||||
CITY: any;
|
CITY: any[]=[];
|
||||||
ENTITY: any;
|
ENTITY: any[]=[];
|
||||||
PDType: any;
|
PDType: any[]=[];
|
||||||
pdStatus: any;
|
pdStatus: any[]=[];
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
tabStatus:string="COMPLETED";
|
tabStatus:string="COMPLETED";
|
||||||
@ -61,6 +61,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
pd_name:[null],
|
pd_name:[null],
|
||||||
pd_applicant_id:[null],
|
pd_applicant_id:[null],
|
||||||
});
|
});
|
||||||
|
this.getcommonDropDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -119,7 +120,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
* sriram
|
* sriram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getcommonDropDown()
|
getcommonDropDown(): void
|
||||||
{
|
{
|
||||||
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
||||||
{
|
{
|
||||||
@ -138,11 +139,18 @@ export class CompletedPdComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
// this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
||||||
|
// {
|
||||||
|
// if(res.dataStatus==true)
|
||||||
|
// {
|
||||||
|
// this.CITY = res.records.filter(city=>city.isactive==1);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
this._pd.getListOfCities().subscribe(res=>
|
||||||
{
|
{
|
||||||
if(res.dataStatus==true)
|
if(res.dataStatus==true)
|
||||||
{
|
{
|
||||||
this.CITY = res.records.filter(city=>city.isactive==1);
|
this.CITY = res.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- <mat-expansion-panel [(expanded)]="xpandStatus">
|
<mat-expansion-panel [(expanded)]="xpandStatus">
|
||||||
<mat-expansion-panel-header >
|
<mat-expansion-panel-header >
|
||||||
<mat-panel-title class="text-xs-left">
|
<mat-panel-title class="text-xs-left">
|
||||||
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
||||||
@ -51,14 +51,14 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
||||||
matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltip="Search" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
<br/> -->
|
<br/>
|
||||||
<mat-table [dataSource]="dataSourceTab2" matSort *ngIf="progressPdListData.length > 0" >
|
<mat-table [dataSource]="dataSourceTab2" matSort *ngIf="progressPdListData.length > 0" >
|
||||||
<ng-container matColumnDef="PDType">
|
<ng-container matColumnDef="PDType">
|
||||||
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
||||||
|
|||||||
@ -12,11 +12,11 @@ import { DatePipe } from '@angular/common';
|
|||||||
})
|
})
|
||||||
export class InprogressPdComponent implements OnInit, OnChanges {
|
export class InprogressPdComponent implements OnInit, OnChanges {
|
||||||
xpandStatus: boolean = false;
|
xpandStatus: boolean = false;
|
||||||
PRODUCTS: any;
|
PRODUCTS: any[]=[];
|
||||||
ENTITY: any;
|
ENTITY: any[]=[];
|
||||||
CITY: any;
|
CITY: any[]=[];
|
||||||
PDType: any;
|
PDType: any[]=[];
|
||||||
pdStatus: any;
|
pdStatus: any[]=[];
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
tabStatus:string="INPROGRESS";
|
tabStatus:string="INPROGRESS";
|
||||||
@ -55,6 +55,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
pd_name:[null],
|
pd_name:[null],
|
||||||
pd_applicant_id:[null],
|
pd_applicant_id:[null],
|
||||||
});
|
});
|
||||||
|
this.getcommonDropDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -112,7 +113,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
* sriram
|
* sriram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getcommonDropDown()
|
getcommonDropDown() : void
|
||||||
{
|
{
|
||||||
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
||||||
{
|
{
|
||||||
@ -131,11 +132,18 @@ export class InprogressPdComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
// this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
||||||
|
// {
|
||||||
|
// if(res.dataStatus==true)
|
||||||
|
// {
|
||||||
|
// this.CITY = res.records.filter(city=>city.isactive==1);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
this._pd.getListOfCities().subscribe(res=>
|
||||||
{
|
{
|
||||||
if(res.dataStatus==true)
|
if(res.dataStatus==true)
|
||||||
{
|
{
|
||||||
this.CITY = res.records.filter(city=>city.isactive==1);
|
this.CITY = res.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- <mat-expansion-panel [(expanded)]="xpandStatus">
|
<mat-expansion-panel [(expanded)]="xpandStatus">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title class="text-xs-left">
|
<mat-panel-title class="text-xs-left">
|
||||||
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
||||||
@ -51,14 +51,14 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
||||||
matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltip="Search" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
<br/> -->
|
<br/>
|
||||||
<mat-table [dataSource]="dataSourceTab5" matSort *ngIf="qcCompletedPdListData.length > 0" >
|
<mat-table [dataSource]="dataSourceTab5" matSort *ngIf="qcCompletedPdListData.length > 0" >
|
||||||
<ng-container matColumnDef="PDType">
|
<ng-container matColumnDef="PDType">
|
||||||
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
||||||
|
|||||||
@ -14,11 +14,11 @@ import { DatePipe } from '@angular/common';
|
|||||||
|
|
||||||
export class QcCompletedPdComponent implements OnInit, OnChanges {
|
export class QcCompletedPdComponent implements OnInit, OnChanges {
|
||||||
xpandStatus: boolean = false;
|
xpandStatus: boolean = false;
|
||||||
PRODUCTS: any;
|
PRODUCTS: any[] = [];
|
||||||
ENTITY: any;
|
ENTITY: any[] = [];
|
||||||
CITY: any;
|
CITY: any[] = [];
|
||||||
PDType: any;
|
PDType: any[] = [];
|
||||||
pdStatus: any;
|
pdStatus: any[] = [];
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage: any[] = [];
|
errorMessage: any[] = [];
|
||||||
tabStatus: string = "QC_COMPLETED";
|
tabStatus: string = "QC_COMPLETED";
|
||||||
@ -59,6 +59,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
|||||||
pd_name: [null],
|
pd_name: [null],
|
||||||
pd_applicant_id: [null],
|
pd_applicant_id: [null],
|
||||||
});
|
});
|
||||||
|
this.getcommonDropDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -115,7 +116,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
|||||||
* sriram
|
* sriram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getcommonDropDown() {
|
getcommonDropDown():void {
|
||||||
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res => {
|
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res => {
|
||||||
if (res.dataStatus == true) {
|
if (res.dataStatus == true) {
|
||||||
this.pdStatus = res.records.filter(status => status.isactive == 1 && status.pd_status_name == this.tabStatus);
|
this.pdStatus = res.records.filter(status => status.isactive == 1 && status.pd_status_name == this.tabStatus);
|
||||||
@ -128,11 +129,19 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
|
|||||||
this.PDType = res.records.filter(type => type.isactive == 1);
|
this.PDType = res.records.filter(type => type.isactive == 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._pd.getAllMasterDatas('CITY').subscribe(res => {
|
// this._pd.getAllMasterDatas('CITY').subscribe(res => {
|
||||||
if (res.dataStatus == true) {
|
// if (res.dataStatus == true) {
|
||||||
this.CITY = res.records.filter(city => city.isactive == 1);
|
// this.CITY = res.records.filter(city => city.isactive == 1);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
this._pd.getListOfCities().subscribe(res=>
|
||||||
|
{
|
||||||
|
if(res.dataStatus==true)
|
||||||
|
{
|
||||||
|
this.CITY = res.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._pd.getAllMasterDatas('ENTITY').subscribe(res => {
|
this._pd.getAllMasterDatas('ENTITY').subscribe(res => {
|
||||||
if (res.dataStatus == true) {
|
if (res.dataStatus == true) {
|
||||||
this.ENTITY = res.records.filter(ent => ent.isactive == 1);
|
this.ENTITY = res.records.filter(ent => ent.isactive == 1);
|
||||||
|
|||||||
@ -66,12 +66,11 @@ export class SchedulePdComponent implements OnInit, OnDestroy {
|
|||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.validateTime = setInterval(() => {
|
this.validateTime = setInterval(() => {
|
||||||
let currentTime:any = new Date();
|
let currentTime:any = new Date();
|
||||||
currentTime = currentTime.getFullYear()+'-'+currentTime.getMonth()+'-'+currentTime.getDay()+currentTime.getHours()+'-'+currentTime.getMinutes();
|
currentTime = currentTime.getFullYear()+'-'+currentTime.getMonth()+'-'+currentTime.getDay()+'-'+currentTime.getHours()+'-'+currentTime.getMinutes();
|
||||||
let existTime:any = this.selectedMoment.getFullYear()+'-'+this.selectedMoment.getMonth()+'-'+this.selectedMoment.getDay() +'-'+this.selectedMoment.getHours()+'-'+this.selectedMoment.getMinutes();
|
let existTime:any = this.selectedMoment.getFullYear()+'-'+this.selectedMoment.getMonth()+'-'+this.selectedMoment.getDay() +'-'+this.selectedMoment.getHours()+'-'+this.selectedMoment.getMinutes();
|
||||||
if(existTime < currentTime) {
|
if(existTime < currentTime) {
|
||||||
this.selectedMoment = new Date();
|
this.selectedMoment = new Date();
|
||||||
this.min = new Date();
|
this.min = new Date();
|
||||||
|
|
||||||
}
|
}
|
||||||
},1000);
|
},1000);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- <mat-expansion-panel [(expanded)]="xpandStatus">
|
<mat-expansion-panel [(expanded)]="xpandStatus">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title class="text-xs-left">
|
<mat-panel-title class="text-xs-left">
|
||||||
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
<h6 class="mt-0"><mat-icon>filter_list</mat-icon> Filter</h6>
|
||||||
@ -51,14 +51,14 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<br/>
|
<br/>
|
||||||
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
<button type="button" mat-raised-button mat-icon-button (click)="searchItem()"
|
||||||
matTooltip="Add More Additional Requirements" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
matTooltip="Search" matTooltipPosition="above" class="mr-1 mb-1 hover-icon" color="primary" type="button">
|
||||||
<mat-icon>search</mat-icon>
|
<mat-icon>search</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
</mat-expansion-panel>
|
</mat-expansion-panel>
|
||||||
<br/> -->
|
<br/>
|
||||||
<mat-table [dataSource]="dataSourceTab3" matSort *ngIf="scheduledPdListData.length > 0" >
|
<mat-table [dataSource]="dataSourceTab3" matSort *ngIf="scheduledPdListData.length > 0" >
|
||||||
<ng-container matColumnDef="PDType">
|
<ng-container matColumnDef="PDType">
|
||||||
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
<mat-cell fxFlex="15" class="cell" style="text-align: center" *matCellDef="let details;">
|
||||||
|
|||||||
@ -12,11 +12,11 @@ import { DatePipe } from '@angular/common';
|
|||||||
})
|
})
|
||||||
export class ScheduledPdComponent implements OnInit, OnChanges {
|
export class ScheduledPdComponent implements OnInit, OnChanges {
|
||||||
xpandStatus: boolean = false;
|
xpandStatus: boolean = false;
|
||||||
PRODUCTS: any;
|
PRODUCTS: any[]=[];
|
||||||
ENTITY: any;
|
ENTITY: any[]=[];
|
||||||
CITY: any;
|
CITY: any[]=[];
|
||||||
PDType: any;
|
PDType: any[]=[];
|
||||||
pdStatus: any;
|
pdStatus: any[]=[];
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
errorMessage:any[]=[];
|
errorMessage:any[]=[];
|
||||||
tabStatus:string="SCHEDULED";
|
tabStatus:string="SCHEDULED";
|
||||||
@ -56,6 +56,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
|||||||
pd_name:[null],
|
pd_name:[null],
|
||||||
pd_applicant_id:[null],
|
pd_applicant_id:[null],
|
||||||
});
|
});
|
||||||
|
this.getcommonDropDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -112,7 +113,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
|||||||
* sriram
|
* sriram
|
||||||
*/
|
*/
|
||||||
|
|
||||||
getcommonDropDown()
|
getcommonDropDown() : void
|
||||||
{
|
{
|
||||||
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
|
||||||
{
|
{
|
||||||
@ -130,13 +131,21 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
|
|||||||
this.PDType = res.records.filter(type=>type.isactive==1);
|
this.PDType = res.records.filter(type=>type.isactive==1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
// this._pd.getAllMasterDatas('CITY').subscribe(res=>
|
||||||
|
// {
|
||||||
|
// if(res.dataStatus==true)
|
||||||
|
// {
|
||||||
|
// this.CITY = res.records.filter(city=>city.isactive==1);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
this._pd.getListOfCities().subscribe(res=>
|
||||||
{
|
{
|
||||||
if(res.dataStatus==true)
|
if(res.dataStatus==true)
|
||||||
{
|
{
|
||||||
this.CITY = res.records.filter(city=>city.isactive==1);
|
this.CITY = res.records;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
|
||||||
{
|
{
|
||||||
if(res.dataStatus==true)
|
if(res.dataStatus==true)
|
||||||
|
|||||||
@ -112,9 +112,10 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
|
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
|
||||||
this.mainApplicantName = filterApplicantName[0].applicant_name;
|
this.mainApplicantName = filterApplicantName[0].applicant_name;
|
||||||
this.currentPDStatus = data.records.pdmaster_details.pd_status=='INPROGRESS' ? true : data.records.pdmaster_details.pd_status=='SCHEDULED' ? true :data.records.pdmaster_details.pd_status=='ALLOCATED' ? true : false;
|
this.currentPDStatus = data.records.pdmaster_details.pd_status=='INPROGRESS' ? true : data.records.pdmaster_details.pd_status=='SCHEDULED' ? true :data.records.pdmaster_details.pd_status=='ALLOCATED' ? true : false;
|
||||||
this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]);
|
this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
|
||||||
|
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
|
||||||
this.actualQuestions = this.categoryFormButtons.length;
|
this.actualQuestions = this.categoryFormButtons.length;
|
||||||
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered==true);
|
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered===true);
|
||||||
this.answeredQuestions = getAnsweredFormsCount.length;
|
this.answeredQuestions = getAnsweredFormsCount.length;
|
||||||
this.pdFullDetails = data.records
|
this.pdFullDetails = data.records
|
||||||
|
|
||||||
|
|||||||
@ -550,4 +550,13 @@ export class PdTrigerService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get list of cities for p serach options
|
||||||
|
getListOfCities() {
|
||||||
|
return this._http.get<any>(this.apiUrl + 'getListOfCities')
|
||||||
|
.pipe(
|
||||||
|
catchError(this.handleError('role', []))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user