diff --git a/ng6-seed/package-lock.json b/ng6-seed/package-lock.json
index aa9107979..fba034b3c 100755
--- a/ng6-seed/package-lock.json
+++ b/ng6-seed/package-lock.json
@@ -4344,12 +4344,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
@@ -4364,17 +4366,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"core-util-is": {
"version": "1.0.2",
@@ -4491,7 +4496,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"ini": {
"version": "1.3.5",
@@ -4503,6 +4509,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -4517,6 +4524,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
@@ -4524,12 +4532,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"minipass": {
"version": "2.2.4",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"safe-buffer": "^5.1.1",
"yallist": "^3.0.0"
@@ -4548,6 +4558,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"minimist": "0.0.8"
}
@@ -4628,7 +4639,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
- "dev": true
+ "dev": true,
+ "optional": true
},
"object-assign": {
"version": "4.1.1",
@@ -4640,6 +4652,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"wrappy": "1"
}
@@ -4761,6 +4774,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
+ "optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
diff --git a/ng6-seed/src/app/dashboard/dashboard.component.html b/ng6-seed/src/app/dashboard/dashboard.component.html
index c77268923..32e8a812f 100755
--- a/ng6-seed/src/app/dashboard/dashboard.component.html
+++ b/ng6-seed/src/app/dashboard/dashboard.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/ng6-seed/src/app/dashboard/dashboard.component.scss b/ng6-seed/src/app/dashboard/dashboard.component.scss
index b76a73e1f..540704696 100755
--- a/ng6-seed/src/app/dashboard/dashboard.component.scss
+++ b/ng6-seed/src/app/dashboard/dashboard.component.scss
@@ -19,6 +19,7 @@ li
display:inline-block;
//float:left;
}
+
.example-full-width {
width: 95%;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
index bc3b23a62..66a483b14 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html
@@ -1,58 +1,135 @@
-
- 0" >
-
-
+
+
+
+
+
+ filter_list Filter
+
-
-
- {{(details.pd_type_name | slice:0:1)}}
-
-
-
-
-
- {{details.applicat_details[0].applicant_name}}
- {{details.lender_applicant_id}} -({{details.customer_segment_abbr}} )
-
-
-
-
- {{details.lender_full_name}}
- {{details.product_abbr}}/{{details.subproduct_abbr}}
- {{details.loan_amount}}
-
-
-
-
- {{details.pd_date_of_initiation}}
- {{details.city_name}}-{{details.pincode}}
-
-
-
-
- {{details.pd_status}}
- QC COMPLETED
- {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
-
- {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
-
- {{details.scheduled_on}}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {{type.type_name}}
+
+
+
+
+ {{status.pd_status_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{pro.name}}
+
+
+
+
+ {{city.name}}
+
+
+
+
+ {{ent.full_name}}
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+ 0">
+
+
+
+
+
+
+ {{(details.pd_type_name | slice:0:1)}}
+
+
+
+
+
+
+
+ {{details.applicat_details[0].applicant_name}}
+
+
+ {{details.lender_applicant_id}}
+ -({{details.customer_segment_abbr}} )
+
+
+
+
+ {{details.lender_full_name}}
+
+ {{details.product_abbr}}/{{details.subproduct_abbr}}
+
+
+ {{details.loan_amount}}
+
+
+
+
+ {{details.pd_date_of_initiation}}
+
+
+ {{details.city_name}}-{{details.pincode}}
+
+
+
+
+ {{details.pd_status}}
+ QC COMPLETED
+
+ {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
+
+ {{ (details.updatedon)? (details.updatedon | slice:0:10):(details.updatedon) }}
+
+ {{details.scheduled_on}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts
index 28ace0589..797aaf8e5 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts
@@ -1,6 +1,9 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
+import { FormGroup, FormBuilder } from '@angular/forms';
+import { DatePipe } from '@angular/common';
+import { NotifierService } from 'angular-notifier';
@Component({
selector: 'app-all-pd',
@@ -11,6 +14,16 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
})
export class AllPdComponent implements OnInit, OnChanges {
+ xpandStatus: boolean = false;
+ PRODUCTS: any;
+ ENTITY: any;
+ CITY: any;
+ tempStore = new MatTableDataSource();
+ PDType: any;
+ pdStatus: any;
+ searchForm:FormGroup;
+ pipe = new DatePipe('en-US');
+ public notifier : NotifierService;
recordStatus: boolean;
errorMessage:any[]=[];
tabStatus:string="ALL";
@@ -34,12 +47,26 @@ export class AllPdComponent implements OnInit, OnChanges {
pageSize = 10;
pageEvent: PageEvent;
- constructor(private _pd: PdTrigerService) {
+ constructor(private _pd: PdTrigerService,private _fb:FormBuilder) {
+
+ this.searchForm = this._fb.group(
+ {
+ pd_type:[null],
+ pd_status:[null],
+ pd_from_date:[null],
+ pd_to_date:[null],
+ pd_city:[null],
+ pd_products:[null],
+ pd_lender:[null],
+ pd_name:[null],
+ pd_applicant_id:[null],
+ });
}
ngOnInit() {
this.recordStatus=false;
// this.loadPDDetails();
+ this.getcommonDropDown();
}
ngAfterViewInit() {
this.dataSourceTab1.paginator = this.paginator;
@@ -65,7 +92,7 @@ export class AllPdComponent implements OnInit, OnChanges {
this.PdListData = data.records;
this.dataLengthTab1 = data.records.length;
this.dataSourceTab1.data = this.PdListData;
-
+ this.tempStore.data = this.PdListData;
}
else{
this.PdListData=[];
@@ -87,4 +114,89 @@ export class AllPdComponent implements OnInit, OnChanges {
return word[0].toUpperCase() + word.substr(1).toLowerCase();
}
+ /**
+ * Common Search
+ * sriram
+ */
+
+ getcommonDropDown()
+ {
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.pdStatus = res.records.filter(status=>status.isactive==1);
+ }
+ });
+
+ this._pd.getAllMasterDatas('PDTYPE').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PDType = res.records.filter(type=>type.isactive==1);
+ }
+ });
+
+ this._pd.getAllMasterDatas('CITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.CITY = res.records.filter(city=>city.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.ENTITY = res.records.filter(ent=>ent.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('PRODUCTS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PRODUCTS = res.records.filter(pro=>pro.isactive==1);
+ }
+ });
+
+ }
+ checkDate(e)
+ {
+ console.log(e);
+ }
+ searchItem()
+ {
+
+ if(this.searchForm.value.pd_type !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_type = [];
+ }
+
+ if(this.searchForm.value.pd_status !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_status = [];
+ }
+
+ 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');
+ console.log(JSON.stringify(this.searchForm.value));
+ this._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
+ {
+ this.xpandStatus = false;
+ if(res['dataStatus']==true)
+ {
+ this.dataSourceTab1 = res['records'];
+ }else{
+ // this.notifier.notify('warning', 'No Records Found');
+ this.dataSourceTab1 = this.tempStore;
+ }
+ })
+ }
+
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
index 037c35c73..636d06a12 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html
@@ -1,4 +1,66 @@
+
+
+
+
+ filter_list Filter
+
+
+
+
+
+
+
+ {{type.type_name}}
+
+
+
+
+ {{status.pd_status_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{pro.name}}
+
+
+
+
+ {{city.name}}
+
+
+
+
+ {{ent.full_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0" >
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts
index 9111f5670..cdb1fc207 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts
@@ -1,6 +1,8 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
+import { FormGroup, FormBuilder } from '@angular/forms';
+import { DatePipe } from '@angular/common';
@Component({
selector: 'app-completed-pd',
@@ -11,11 +13,23 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
})
export class CompletedPdComponent implements OnInit, OnChanges {
+ xpandStatus: boolean = false;
+ PRODUCTS: any;
+ CITY: any;
+ ENTITY: any;
+ PDType: any;
+ pdStatus: any;
recordStatus: boolean;
errorMessage:any[]=[];
tabStatus:string="COMPLETED";
+ pipe = new DatePipe('en-US');
+
public dataLengthTab4: number;
public dataSourceTab4 = new MatTableDataSource();
+ tempStore = new MatTableDataSource();
+
+ searchForm:FormGroup;
+
displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@@ -33,12 +47,26 @@ export class CompletedPdComponent implements OnInit, OnChanges {
pageSize = 10;
pageEvent: PageEvent;
- constructor(private _pd: PdTrigerService) {
+ constructor(private _pd: PdTrigerService,public _fb:FormBuilder) {
+
+ this.searchForm = this._fb.group(
+ {
+ pd_type:[null],
+ pd_status:[null],
+ pd_from_date:[null],
+ pd_to_date:[null],
+ pd_city:[null],
+ pd_products:[null],
+ pd_lender:[null],
+ pd_name:[null],
+ pd_applicant_id:[null],
+ });
}
ngOnInit() {
this.recordStatus=false;
// this.loadPDDetails();
+ this.getcommonDropDown();
}
ngAfterViewInit() {
this.dataSourceTab4.paginator = this.paginator;
@@ -63,7 +91,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
this.completedPdListData = data.records;
this.dataLengthTab4 = data.records.length;
this.dataSourceTab4.data = this.completedPdListData;
-
+ this.tempStore.data
}
else{
this.completedPdListData=[];
@@ -85,6 +113,94 @@ export class CompletedPdComponent implements OnInit, OnChanges {
return word[0].toUpperCase() + word.substr(1).toLowerCase();
}
+
+ /**
+ * Common Search
+ * sriram
+ */
+
+ getcommonDropDown()
+ {
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.pdStatus = res.records.filter(status=>status.isactive==1 && status.pd_status_name==this.tabStatus);
+ // this.searchForm.controls['pd_status'].setValue(this.pdStatus[0]);
+ }
+ });
+
+ this._pd.getAllMasterDatas('PDTYPE').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PDType = res.records.filter(type=>type.isactive==1);
+ }
+ });
+
+ this._pd.getAllMasterDatas('CITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.CITY = res.records.filter(city=>city.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.ENTITY = res.records.filter(ent=>ent.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('PRODUCTS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PRODUCTS = res.records.filter(pro=>pro.isactive==1);
+ }
+ });
+ }
+
+ checkDate(e)
+ {
+ console.log(e);
+ }
+ searchItem()
+ {
+
+ if(this.searchForm.value.pd_type !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_type = [];
+ }
+
+ if(this.searchForm.value.pd_status !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_status = [];
+ }
+
+ 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._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
+ {
+ this.xpandStatus = false;
+
+ if(res['dataStatus']==true)
+ {
+ this.dataSourceTab4 = res['records'];
+ }else{
+ // this.notifier.notify('warning', 'No Records Found');
+ this.dataSourceTab4 = this.tempStore;
+ }
+ })
+ }
+
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
index b4ecb5c24..c5ee76270 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html
@@ -1,4 +1,64 @@
+
+
+
+ filter_list Filter
+
+
+
+
+
+
+
+ {{type.type_name}}
+
+
+
+
+ {{status.pd_status_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{pro.name}}
+
+
+
+
+ {{city.name}}
+
+
+
+
+ {{ent.full_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0" >
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts
index e58bf5688..fd001d504 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts
@@ -1,6 +1,8 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
+import { FormBuilder, FormGroup } from '@angular/forms';
+import { DatePipe } from '@angular/common';
@Component({
selector: 'app-inprogress-pd',
@@ -9,11 +11,19 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
encapsulation: ViewEncapsulation.None
})
export class InprogressPdComponent implements OnInit, OnChanges {
+ xpandStatus: boolean = false;
+ PRODUCTS: any;
+ ENTITY: any;
+ CITY: any;
+ PDType: any;
+ pdStatus: any;
recordStatus: boolean;
errorMessage:any[]=[];
tabStatus:string="INPROGRESS";
+ pipe = new DatePipe('en-US');
public dataLengthTab2: number;
public dataSourceTab2 = new MatTableDataSource();
+ tempStore = new MatTableDataSource();
displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@@ -30,13 +40,27 @@ export class InprogressPdComponent implements OnInit, OnChanges {
pageIndex = 0;
pageSize = 10;
pageEvent: PageEvent;
+ searchForm:FormGroup;
+ constructor(private _pd: PdTrigerService,public _fb:FormBuilder) {
- constructor(private _pd: PdTrigerService) {
+ this.searchForm = this._fb.group(
+ {
+ pd_type:[null],
+ pd_status:[null],
+ pd_from_date:[null],
+ pd_to_date:[null],
+ pd_city:[null],
+ pd_products:[null],
+ pd_lender:[null],
+ pd_name:[null],
+ pd_applicant_id:[null],
+ });
}
ngOnInit() {
this.recordStatus=false;
// this.loadPDDetails();
+ this.getcommonDropDown();
}
ngAfterViewInit() {
this.dataSourceTab2.paginator = this.paginator;
@@ -61,7 +85,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
this.progressPdListData = data.records;
this.dataLengthTab2 = data.records.length;
this.dataSourceTab2.data = this.progressPdListData;
-
+ this.tempStore.data = this.progressPdListData;
}
else{
this.progressPdListData=[];
@@ -82,4 +106,89 @@ export class InprogressPdComponent implements OnInit, OnChanges {
return word[0].toUpperCase() + word.substr(1).toLowerCase();
}
+
+ /**
+ * Common Search
+ * sriram
+ */
+
+ getcommonDropDown()
+ {
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.pdStatus = res.records.filter(status=>status.isactive==1 && status.pd_status_name == this.tabStatus);
+ }
+ // this.searchForm.controls['pd_status'].setValue(this.pdStatus[0]);
+ });
+
+ this._pd.getAllMasterDatas('PDTYPE').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PDType = res.records.filter(type=>type.isactive==1);
+ }
+ });
+
+ this._pd.getAllMasterDatas('CITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.CITY = res.records.filter(city=>city.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.ENTITY = res.records.filter(ent=>ent.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('PRODUCTS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PRODUCTS = res.records.filter(pro=>pro.isactive==1);
+ }
+ });
+ }
+ checkDate(e)
+ {
+ console.log(e);
+ }
+ searchItem()
+ {
+
+ if(this.searchForm.value.pd_type !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_type = [];
+ }
+
+ if(this.searchForm.value.pd_status !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_status = [];
+ }
+
+ 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._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
+ {
+ this.xpandStatus = false;
+ if(res['dataStatus']==true)
+ {
+ this.dataSourceTab2 = res['records'];
+ }else{
+ // this.notifier.notify('warning', 'No Records Found');
+ this.dataSourceTab2 = this.tempStore;
+ }
+ })
+ }
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.html
index 718444dc0..4d90d020c 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.html
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.scss
index 123db6e6c..fda61348d 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.scss
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/list-pd.component.scss
@@ -20,4 +20,8 @@
}
.mat-tab-label-active{
color: red !important;
- }
\ No newline at end of file
+ }
+ .mat-fab.mat-accent{
+ color:red !important;
+ background-color: #fff !important;
+ }
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/map-pd-view/map-pd-view.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/map-pd-view/map-pd-view.component.html
index 8a6caf518..f8b2e10b0 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/map-pd-view/map-pd-view.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/map-pd-view/map-pd-view.component.html
@@ -1,5 +1,5 @@
-
+
@@ -10,7 +10,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
index 0153e37cc..869792c14 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html
@@ -1,4 +1,64 @@
+
+
+
+ filter_list Filter
+
+
+
+
+
+
+
+ {{type.type_name}}
+
+
+
+
+ {{status.pd_status_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{pro.name}}
+
+
+
+
+ {{city.name}}
+
+
+
+
+ {{ent.full_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0" >
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts
index 360ca9a6f..b2de54cbf 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts
@@ -1,6 +1,8 @@
-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 { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
+import { FormBuilder, FormGroup } from '@angular/forms';
+import { DatePipe } from '@angular/common';
@Component({
selector: 'app-qc-completed-pd',
@@ -11,21 +13,31 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
})
export class QcCompletedPdComponent implements OnInit, OnChanges {
+ xpandStatus: boolean = false;
+ PRODUCTS: any;
+ ENTITY: any;
+ CITY: any;
+ PDType: any;
+ pdStatus: any;
recordStatus: boolean;
- errorMessage:any[]=[];
- tabStatus:string="QC_COMPLETED";
+ errorMessage: any[] = [];
+ tabStatus: string = "QC_COMPLETED";
+ pipe = new DatePipe('en-US');
+
public dataLengthTab5: number;
public dataSourceTab5 = new MatTableDataSource();
- displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
+ tempStore = new MatTableDataSource();
+ searchForm: FormGroup;
+ displayedColumns = ['PDType', 'Name', 'Lenderid', 'Address', 'Status', 'Action'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@ViewChild(MatSort) sort: MatSort;
-
+
@Input() bindFilterValue: string;
@Output() loadPdView = new EventEmitter();
// data source variable details
- qcCompletedPdListData:any[] = [];
+ qcCompletedPdListData: any[] = [];
// pagination variable details
length = 50;
@@ -33,12 +45,26 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
pageSize = 10;
pageEvent: PageEvent;
- constructor(private _pd: PdTrigerService) {
- }
+ constructor(private _pd: PdTrigerService, public _fb: FormBuilder) {
+
+ this.searchForm = this._fb.group(
+ {
+ pd_type: [null],
+ pd_status: [null],
+ pd_from_date: [null],
+ pd_to_date: [null],
+ pd_city: [null],
+ pd_products: [null],
+ pd_lender: [null],
+ pd_name: [null],
+ pd_applicant_id: [null],
+ });
+ }
ngOnInit() {
- this.recordStatus=false;
- // this.loadPDDetails();
+ this.recordStatus = false;
+ // this.loadPDDetails();
+ this.getcommonDropDown();
}
ngAfterViewInit() {
this.dataSourceTab5.paginator = this.paginator;
@@ -51,39 +77,105 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
filteredText = filteredText ? filteredText.trim() : filteredText;
filteredText = filteredText ? filteredText.toLowerCase() : filteredText;
this.dataSourceTab5.filter = filteredText;
-}
+ }
-// load inprogress pd list
+ // load inprogress pd list
loadPDDetails() {
this._pd.getTabStatusPdDetails(this.tabStatus)
- .subscribe(
+ .subscribe(
data => {
if (data.status == 200) {
this.qcCompletedPdListData = data.records;
this.dataLengthTab5 = data.records.length;
this.dataSourceTab5.data = this.qcCompletedPdListData;
-
+ this.tempStore.data = this.qcCompletedPdListData;
}
- else{
- this.qcCompletedPdListData=[];
- this.dataLengthTab5= null;
- this.recordStatus=true;
+ else {
+ this.qcCompletedPdListData = [];
+ this.dataLengthTab5 = null;
+ this.recordStatus = true;
}
- }, error => this.errorMessage = error);
+ }, error => this.errorMessage = error);
}
pageChange(e) {
console.log(e);
}
- viewPD(pdid:string){
+ viewPD(pdid: string) {
this.loadPdView.next(pdid);
}
- titleCaseWord(word:string) {
+ titleCaseWord(word: string) {
if (!word) return word;
return word[0].toUpperCase() + word.substr(1).toLowerCase();
}
+ /**
+ * Common Search
+ * sriram
+ */
+
+ getcommonDropDown() {
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res => {
+ if (res.dataStatus == true) {
+ this.pdStatus = res.records.filter(status => status.isactive == 1 && status.pd_status_name == this.tabStatus);
+ // this.searchForm.controls['pd_status'].setValue(this.pdStatus[0]);
+ }
+ });
+
+ this._pd.getAllMasterDatas('PDTYPE').subscribe(res => {
+ if (res.dataStatus == true) {
+ this.PDType = res.records.filter(type => type.isactive == 1);
+ }
+ });
+ this._pd.getAllMasterDatas('CITY').subscribe(res => {
+ if (res.dataStatus == true) {
+ this.CITY = res.records.filter(city => city.isactive == 1);
+ }
+ });
+ this._pd.getAllMasterDatas('ENTITY').subscribe(res => {
+ if (res.dataStatus == true) {
+ this.ENTITY = res.records.filter(ent => ent.isactive == 1);
+ }
+ });
+ this._pd.getAllMasterDatas('PRODUCTS').subscribe(res => {
+ if (res.dataStatus == true) {
+ this.PRODUCTS = res.records.filter(pro => pro.isactive == 1);
+ }
+ });
+ }
+ checkDate(e) {
+ console.log(e);
+ }
+ searchItem() {
+
+ if (this.searchForm.value.pd_type != null) {
+
+ } else {
+ this.searchForm.value.pd_type = [];
+ }
+
+ if (this.searchForm.value.pd_status != null) {
+
+ } else {
+ this.searchForm.value.pd_status = [];
+ }
+
+ 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._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res => {
+ this.xpandStatus = false;
+ if (res['dataStatus'] == true) {
+ this.dataSourceTab5 = res['records'];
+ } else {
+ console.log('else');
+ // this.notifier.notify('warning', 'No Records Found');
+ this.dataSourceTab5 = this.tempStore;
+ }
+ })
+ }
+
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
index 186a64ad6..776b9a9c0 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html
@@ -1,4 +1,64 @@
+
+
+
+ filter_list Filter
+
+
+
+
+
+
+
+ {{type.type_name}}
+
+
+
+
+ {{status.pd_status_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{pro.name}}
+
+
+
+
+ {{city.name}}
+
+
+
+
+ {{ent.full_name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0" >
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts
index d6c030214..299a747e5 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts
@@ -1,6 +1,8 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
+import { FormBuilder, FormGroup } from '@angular/forms';
+import { DatePipe } from '@angular/common';
@Component({
selector: 'app-scheduled-pd',
@@ -9,11 +11,20 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
encapsulation: ViewEncapsulation.None
})
export class ScheduledPdComponent implements OnInit, OnChanges {
+ xpandStatus: boolean = false;
+ PRODUCTS: any;
+ ENTITY: any;
+ CITY: any;
+ PDType: any;
+ pdStatus: any;
recordStatus: boolean;
errorMessage:any[]=[];
tabStatus:string="SCHEDULED";
+ pipe = new DatePipe('en-US');
+ searchForm:FormGroup;
public dataLengthTab3: number;
public dataSourceTab3 = new MatTableDataSource();
+ tempStore = new MatTableDataSource();
displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action'];
@ViewChild(MatPaginator) paginator: MatPaginator;
@@ -31,12 +42,26 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
pageSize = 10;
pageEvent: PageEvent;
- constructor(private _pd: PdTrigerService) {
+ constructor(private _pd: PdTrigerService,public _fb:FormBuilder) {
+
+ this.searchForm = this._fb.group(
+ {
+ pd_type:[null],
+ pd_status:[null],
+ pd_from_date:[null],
+ pd_to_date:[null],
+ pd_city:[null],
+ pd_products:[null],
+ pd_lender:[null],
+ pd_name:[null],
+ pd_applicant_id:[null],
+ });
}
ngOnInit() {
this.recordStatus=false;
// this.loadPDDetails();
+ this.getcommonDropDown();
}
ngAfterViewInit() {
this.dataSourceTab3.paginator = this.paginator;
@@ -61,6 +86,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
this.scheduledPdListData = data.records;
this.dataLengthTab3 = data.records.length;
this.dataSourceTab3.data = this.scheduledPdListData;
+ this.tempStore.data = this.scheduledPdListData
}
else{
@@ -81,7 +107,89 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
if (!word) return word;
return word[0].toUpperCase() + word.substr(1).toLowerCase();
}
+/**
+ * Common Search
+ * sriram
+ */
+ getcommonDropDown()
+ {
+ this._pd.getAllMasterDatas('PDSTATUS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.pdStatus = res.records.filter(status=>status.isactive==1 && status.pd_status_name==this.tabStatus);
+ // this.searchForm.controls['pd_status'].setValue(this.pdStatus[0]);
+ }
+ });
+
+ this._pd.getAllMasterDatas('PDTYPE').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PDType = res.records.filter(type=>type.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('CITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.CITY = res.records.filter(city=>city.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('ENTITY').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.ENTITY = res.records.filter(ent=>ent.isactive==1);
+ }
+ });
+ this._pd.getAllMasterDatas('PRODUCTS').subscribe(res=>
+ {
+ if(res.dataStatus==true)
+ {
+ this.PRODUCTS = res.records.filter(pro=>pro.isactive==1);
+ }
+ });
+ }
+ checkDate(e)
+ {
+ console.log(e);
+ }
+ searchItem()
+ {
+
+ if(this.searchForm.value.pd_type !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_type = [];
+ }
+
+ if(this.searchForm.value.pd_status !=null)
+ {
+
+ }else
+ {
+ this.searchForm.value.pd_status = [];
+ }
+
+ 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._pd.overAllSearchFormDetails(this.searchForm.value).subscribe(res=>
+ {
+ this.xpandStatus = false;
+ if(res['dataStatus']==true)
+ {
+ this.dataSourceTab3 = res['records'];
+ }else{
+ // this.notifier.notify('warning', 'No Records Found');
+ this.dataSourceTab3 = this.tempStore;
+ }
+ })
+ }
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/assessed-income.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/assessed-income.component.html
index 9800a1c2e..206bbfe1e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/assessed-income.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/assessed-income.component.html
@@ -280,6 +280,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
index 5db1ff5fb..7da90f6ca 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html
@@ -192,6 +192,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
index 0d921b9be..53be6499e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.html
@@ -388,6 +388,7 @@
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
index b37cb7159..82e871951 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/client-info/client-info.component.html
@@ -1,313 +1,203 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
index 20af6c3f6..683db0cd1 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
@@ -167,6 +167,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
index e3b05b4f2..e1e868f49 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/lender-representative/lender-representative.component.html
@@ -51,6 +51,7 @@
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
index 5754e395d..dbb9413e2 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
@@ -183,6 +183,7 @@
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
index 1b3a0f32f..14f8677f1 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/other-income/other-income.component.html
@@ -93,6 +93,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
index f56e8be59..2571dd94a 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/personal-info/personal-info.component.html
@@ -209,6 +209,7 @@
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/rental-info/rental-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/rental-info/rental-info.component.html
index 77b619fd5..c419c40d6 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/rental-info/rental-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/rental-info/rental-info.component.html
@@ -204,6 +204,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
index 5f7e594a9..450d5378e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
@@ -215,6 +215,7 @@
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html
index 172160c01..bea4ae748 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.html
@@ -1,229 +1,134 @@
-
-
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.ts
index a56a76238..f25701393 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/supplier-info/supplier-info.component.ts
@@ -3,7 +3,7 @@ import {
Component,
OnInit,
Inject,
- Output,Input
+ Output, Input
} from '@angular/core';
import {
@@ -31,69 +31,313 @@ import { PdTrigerService } from '../../../../../pd-service/pd-triger.service';
})
export class SupplierInfoComponent implements OnInit {
-
- pageTitle: string ="Supplier Details";
-
+
+ pageTitle: string = "Supplier Details";
+
//@Input() pdid: number;
- pdid : string;
- form_id:number;
+ pdid: string;
+ form_id: number;
public _supplierQuesFrom: FormGroup;
public submitted = false;
- public m_paymentModeType= [];
+ public m_paymentModeType = [];
private notifier: NotifierService;
constructor(
- notifier: NotifierService,
- private _formBuilder: FormBuilder,
- private pdTrigerService: PdTrigerService,
- @Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
- this.pdid = this.pd_all_details.pdmaster_details.pd_id;
- this.form_id = 1;
- this.notifier = notifier;
+ notifier: NotifierService,
+ private _formBuilder: FormBuilder,
+ private pdTrigerService: PdTrigerService,
+ @Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
+ this.pdid = this.pd_all_details.pdmaster_details.pd_id;
+ this.form_id = 1;
+ this.notifier = notifier;
}
public viewerOptions: any = {
- navbar: false,
- toolbar: {
- zoomIn: 4,
- zoomOut: 4,
- oneToOne: 4,
- reset: 4,
- prev: 4,
- play: {
- show: 4,
- size: 'large',
- },
- next: 4,
- rotateLeft: 4,
- rotateRight: 4,
- flipHorizontal: 4,
- flipVertical: 4,
- }
-};
+ navbar: false,
+ toolbar: {
+ zoomIn: 4,
+ zoomOut: 4,
+ oneToOne: 4,
+ reset: 4,
+ prev: 4,
+ play: {
+ show: 4,
+ size: 'large',
+ },
+ next: 4,
+ rotateLeft: 4,
+ rotateRight: 4,
+ flipHorizontal: 4,
+ flipVertical: 4,
+ }
+ };
+ noRecordsFound: Boolean = false;
ngOnInit() {
- // this.getM_FreqOfPurchase();
+
+ this.pdTrigerService.getTypeofActivityForSuppliedInfoForm(this.pdid).subscribe(data => {
+ // if(data.dataStatus === undefined){
+ let datas = {
+ "profession_name": "Others",
+ "type_of_activity": [
+ {
+ "type_of_activity_id": 1,
+ "name": "Manufacturing Details"
+ },
+ {
+ "type_of_activity_id": 2,
+ "name": "Retail trading"
+ },
+ {
+ "type_of_activity_id": 4,
+ "name": "Service Provider"
+ }
+ ]
+ };
+ this.initFormLoadDetails(datas.type_of_activity);
+ // }else {
+ // this.notifier.notify('warning', 'No Category Records Found.!');
+ // this.noRecordsFound = false;
+ // }
+ }, err => {
+ this.notifier.notify('warning', 'No Category Records Found.!');
+ this.noRecordsFound = false;
+ })
+
+ // this.getM_FreqOfPurchase();
this.getM_PaymentModeType();
- this.getPdSupplierFormDetails();
+ // this.getPdSupplierFormDetails();
}
-// ==================
+
+ serviceProviderForm: Boolean = false;
+ initFormLoadDetails(record) {
+ this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '1').subscribe(
+ data => {
+ if(data.dataStatus){
+ let dataForm = data.records;
+ if(dataForm !== undefined) {
+ this._supplierQuesFrom = this._formBuilder.group({
+ pdid: [this.pdid],
+ formid: ['1'],
+ manufacturing_details: this._formBuilder.array([this.manufacturingFormCreation(record)]),
+ trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ supplier_info_form_remark: [dataForm.supplier_info_form_remark || null]
+ // wholesale_trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ });
+ let arr = record.filter(data => data.type_of_activity_id === 1);
+ if(arr.length > 0) {
+ let api_main_raw_materials = Object.keys(dataForm.main_raw_materials).map(function (key) {
+ return dataForm.main_raw_materials[key];
+ });
+ this.initManufacturingProductsDetails(api_main_raw_materials);
+ this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials_total_payments_percent_on_credit'].setValue(dataForm.main_raw_materials_total_payments_percent_on_credit || null);
+ }
+ let arr1 = record.filter(data => data.type_of_activity_id === 2 || 3);
+ if(arr1.length > 0) {
+ let api_trading_products = Object.keys(dataForm.trading_products).map(function (key) {
+ return dataForm.trading_products[key];
+ });
+ this.initTradingProductsDetails(api_trading_products);
+ this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products_total_payments_percent_on_credit'].setValue(dataForm.trading_products_total_payments_percent_on_credit || null);
+ }
+ this.noRecordsFound = true;
+ } else {
+ this._supplierQuesFrom = this._formBuilder.group({
+ pdid: [this.pdid],
+ formid: ['1'],
+ manufacturing_details: this._formBuilder.array([this.manufacturingFormCreation(record)]),
+ trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ supplier_info_form_remark: [dataForm.supplier_info_form_remark || null]
+ // wholesale_trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ });
+ let arr = record.filter(data => data.type_of_activity_id === 1);
+ if(arr.length > 0) {
+ this.initManufacturingProductsDetails(null);
+ this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials_total_payments_percent_on_credit'].setValue(null);
+ }
+ let arr1 = record.filter(data => data.type_of_activity_id === 2 || 3);
+ if(arr1.length > 0) {
+ this.initTradingProductsDetails(null);
+ this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products_total_payments_percent_on_credit'].setValue(dataForm.trading_products_total_payments_percent_on_credit || null);
+ }
+ this.noRecordsFound = true;
+ }
+ let arr2 = record.filter(data => data.type_of_activity_id === 4);
+ if(arr2.length > 0) {
+ this.serviceProviderForm = true;
+ }
+ } else {
+ this._supplierQuesFrom = this._formBuilder.group({
+ pdid: [this.pdid],
+ formid: ['1'],
+ manufacturing_details: this._formBuilder.array([this.manufacturingFormCreation(record)]),
+ trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ supplier_info_form_remark: []
+ // wholesale_trade_details: this._formBuilder.array([this.tradingFormCreation(record)]),
+ });
+ let arr = record.filter(data => data.type_of_activity_id === 1);
+ if(arr.length > 0) {
+ this.initManufacturingProductsDetails(null);
+ this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials_total_payments_percent_on_credit'].setValue(null);
+ }
+ let arr1 = record.filter(data => data.type_of_activity_id === 2 || 3);
+ if(arr1.length > 0) {
+ this.initTradingProductsDetails(null);
+ this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products_total_payments_percent_on_credit'].setValue(null);
+ }
+ let arr2 = record.filter(data => data.type_of_activity_id === 4);
+ if(arr2.length > 0) {
+ this.serviceProviderForm = true;
+ }
+ this.noRecordsFound = true;
+ }
+ }, err => {
+
+ }
+ );
+ }
+
+
+ manufacturingForm: Boolean = false;
+ manufacturingFormCreation(val) {
+ let arr = val.filter(data => data.type_of_activity_id === 1);
+ if (arr.length > 0) {
+ this.manufacturingForm = true;
+ return this._formBuilder.group({
+ main_raw_materials: this._formBuilder.array([]),
+ main_raw_materials_total_payments_percent_on_credit: []
+ })
+ // }
+ } else {
+ return;
+ }
+ }
+
+ tradingForm: Boolean = false;
+ tradingFormCreation(val) {
+ let arr = val.filter(data => data.type_of_activity_id === 2 || 3);
+ if (arr.length > 0) {
+ this.tradingForm = true;
+ return this._formBuilder.group({
+ trading_products: this._formBuilder.array([]),
+ trading_products_total_payments_percent_on_credit: []
+ });
+ } else {
+ return;
+ }
+ }
+
+ initManufacturingProductsDetails(datas) {
+ const control = this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
+ if(datas === null){
+ control.push(this.initManufacturingProducts(null));
+ } else {
+ for (let val of datas) {
+ control.push(this.initManufacturingProducts(val));
+ }
+ }
+ }
+
+ initManufacturingProducts(records) {
+ if(records === null) {
+ return this._formBuilder.group({
+ manufacturing_raw_material_name: [''],
+ manufacturing_supplier_name: [''],
+ manufacturing_contact_person_name: [''],
+ manufacturing_contact_person_mobile_number: [''],
+ manufacturing_payment_type: [''],
+ manufacturing_credit_days: [''],
+ manufacturing_frequency_of_purchase: [''],
+ })
+ } else {
+ return this._formBuilder.group({
+ manufacturing_raw_material_name: [records.manufacturing_raw_material_name || null],
+ manufacturing_supplier_name: [records.manufacturing_supplier_name || null],
+ manufacturing_contact_person_name: [records.manufacturing_contact_person_name || null],
+ manufacturing_contact_person_mobile_number: [records.manufacturing_contact_person_mobile_number || null],
+ manufacturing_payment_type: [records.manufacturing_payment_type || null],
+ manufacturing_credit_days: [records.manufacturing_credit_days || null],
+ manufacturing_frequency_of_purchase: [records.manufacturing_frequency_of_purchase || null],
+ })
+ }
+ }
+
+ initTradingProductsDetails(datas) {
+ const control = this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
+ if(datas === null){
+ control.push(this.initTradingProducts(null));
+ } else {
+ for (let val of datas) {
+ control.push(this.initTradingProducts(val));
+ }
+ }
+ }
+
+ initTradingProducts(records) {
+ if(records === null) {
+ return this._formBuilder.group({
+ trade_product_name: [''],
+ trade_supplier_name: [''],
+ trade_product_contact_person_name: [''],
+ trade_product_contact_person_mobile_number: [''],
+ trade_product_payment_type: [''],
+ trade_product_frequency_of_purchase: [''],
+ trade_product_credit_days: [''],
+ })
+ } else {
+ return this._formBuilder.group({
+ trade_product_name: [records.trade_product_name],
+ trade_supplier_name: [records.trade_supplier_name],
+ trade_product_contact_person_name: [records.trade_product_contact_person_name],
+ trade_product_contact_person_mobile_number: [records.trade_product_contact_person_mobile_number],
+ trade_product_payment_type: [records.trade_product_payment_type],
+ trade_product_frequency_of_purchase: [records.trade_product_frequency_of_purchase],
+ trade_product_credit_days: [records.trade_product_credit_days],
+ })
+ }
+ }
+
+ addMoreRawMaterials(e): void {
+ // e.stropPropagation();
+ const control = this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
+ // console.log(control);
+ control.push(this.initManufacturingProducts(null));
+ }
+
+ removeRawMaterials(inx): void {
+ const control = this._supplierQuesFrom.controls['manufacturing_details']['controls'][0].controls['main_raw_materials'];
+ control.removeAt(inx);
+ }
+
+ addMoretradeProduct(e): void {
+ // e.stropPropagation();
+ const control = this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
+ // console.log(control);
+ control.push(this.initTradingProducts(null));
+ }
+
+ removeTradingProduct(inx): void {
+ const control = this._supplierQuesFrom.controls['trade_details']['controls'][0].controls['trading_products'];
+ control.removeAt(inx);
+ }
+
+ // ==================
//getM_FreqOfPurchase() {
- // this.pdTrigerService.getAllMasterDatas('FREQUENCY').subscribe(
- // data => {
- // this.m_freqOfPurchase = data.records.filter(data => data.isactive == 1);
- // },
- // error => {
- // this.notifier.notify('warning', 'No Category Records Found.!');
- // this.m_assets_type = "No Category Records Found.";
- /// }
- // )
- // }
+ // this.pdTrigerService.getAllMasterDatas('FREQUENCY').subscribe(
+ // data => {
+ // this.m_freqOfPurchase = data.records.filter(data => data.isactive == 1);
+ // },
+ // error => {
+ // this.notifier.notify('warning', 'No Category Records Found.!');
+ // this.m_assets_type = "No Category Records Found.";
+ /// }
+ // )
+ // }
- getM_PaymentModeType() {
+ getM_PaymentModeType() {
this.pdTrigerService.getAllMasterDatas('PAYMENTMODE').subscribe(
data => {
this.m_paymentModeType = data.records.filter(data => data.isactive == 1);
@@ -106,123 +350,8 @@ export class SupplierInfoComponent implements OnInit {
}
-// ==================
+ // ==================
-apiLoadFinish: boolean = false;
- getPdSupplierFormDetails() {
- this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '1').subscribe(
- data => {
- if (data) {
- if(data.dataStatus){
- this.formLoadData(data.records)
- } else {
- this.formLoadData(null)
- }
- this.apiLoadFinish = true;
- } else {
- // this.noRecordFound = true;
- }
- }
- );
- }
-
- formLoadData(val) {
- if(val !== null) {
- let value = val;
- this._supplierQuesFrom = this._formBuilder.group({
- pdid: [this.pdid],
- formid: ['1'],
- main_raw_materials: [value.main_raw_materials, Validators.compose([Validators.required])],
- supplier_details: this._formBuilder.array([
- // this.initDetails(),
- ])
- });
- this.addSupplierDetailsWithData(value.supplier_details);
- } else {
- this._supplierQuesFrom = this._formBuilder.group({
- pdid: [this.pdid],
- formid: ['1'],
- main_raw_materials: [null, Validators.compose([Validators.required])],
- supplier_details: this._formBuilder.array([
- this.initDetails(),
- ])
- });
- }
- }
-
- // convenience getter for easy access to form fields
- get f() { return this._supplierQuesFrom.controls; }
-
- // Dynamic Form field creation Functionality : START ===>
- initDetails() {
- return this._formBuilder.group({
- supplier_name: ['', Validators.compose([Validators.required])],
- contact_person: ['', Validators.compose([Validators.required])],
- mobile_number: ['', Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],
- payment_mode: ['', Validators.compose([Validators.required])],
- per_of_immediate_advance_payment:[''],
- credit_period:[''],
- // frequency_of_purchase: ['', Validators.compose([Validators.required])],
- // freq_purchase_others_text_value: ['']
- });
- }
-
- initDetailsWithdata(data) {
- return this._formBuilder.group({
- supplier_name: [data.supplier_name, Validators.compose([Validators.required])],
- contact_person: [data.contact_person, Validators.compose([Validators.required])],
- mobile_number: [data.mobile_number, Validators.compose([Validators.required, Validators.minLength(10), Validators.maxLength(10)])],
- payment_mode: [data.payment_mode, Validators.compose([Validators.required])],
- per_of_immediate_advance_payment:[data.per_of_immediate_advance_payment || ''],
- credit_period:[data.credit_period || ''],
- //frequency_of_purchase: [data.frequency_of_purchase, Validators.compose([Validators.required])],
- //freq_purchase_others_text_value: [data.freq_purchase_others_text_value || '']
- });
- }
-
- addSupplierDetailsWithData(supp_data) {
- var result = Object.keys(supp_data).map(function(key) {
- return supp_data[key];
- });
- if (result.length > 0) {
- for (let val of result) {
- let vals = {
- supplier_name: val.supplier_name,
- contact_person: val.contact_person,
- mobile_number: val.mobile_number,
- payment_mode: val.payment_mode,
- per_of_immediate_advance_payment: val.per_of_immediate_advance_payment,
- credit_period: val.credit_period
- // frequency_of_purchase: val.frequency_of_purchase,
- // freq_purchase_others_text_value: val.freq_purchase_others_text_value
- };
- const control = this._supplierQuesFrom.controls['supplier_details'];
- control.push(this.initDetailsWithdata(vals));
- }
- }
- }
-
- addSupplierDetails(e) {
- const control = this._supplierQuesFrom.controls['supplier_details'];
- control.push(this.initDetails());
- }
- removeLanguage(i: number) {
- const control = this._supplierQuesFrom.controls['supplier_details'];
- control.removeAt(i);
- }
-
- public paymentModeTextBox: number;
- selectedPM(e) {
- this.paymentModeTextBox = e.value;
- // this.f.supplier_details.controls.get('payment_mode_value');
- }
-
- public freqPurchaseTextBox: number;
- selectedFreqPurchase(e){
- this.freqPurchaseTextBox = e.value;
- }
-
-
/** To Save/Edited Popup Data */
onSubmit() {
this.submitted = true;
@@ -234,7 +363,7 @@ apiLoadFinish: boolean = false;
//To Remove The "Null" With Key also
Object.keys(answerFormValues).forEach((key) => (answerFormValues[key] == null) && delete answerFormValues[key]);
- // alert(JSON.stringify(answerFormValues));
+ console.log(JSON.stringify(answerFormValues));
//Add BRANCH data with help Service File
this.pdTrigerService.savePDFormDetailsWithID(answerFormValues).subscribe(
dataresult => {
@@ -253,8 +382,8 @@ apiLoadFinish: boolean = false;
// this.errorMessage = "Something Wents Wrong Try Again !";
// this.dialogRef.close();
});
- //After Saving the BRANCH data then popup close
- // this.dialogRef.close();
+ // //After Saving the BRANCH data then popup close
+ // // this.dialogRef.close();
}
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
index 1be646df3..3c40f3481 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.html
@@ -14,11 +14,16 @@
-
+
-
+
- {{ (formButton.form_name.length>17)? (formButton.form_name | slice:0:17)+'..':(formButton.form_name) }}
+
+ {{ (formButton.form_name.length>17)? (formButton.form_name | slice:0:17)+'..':(formButton.form_name) }}
+
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.scss
index 1c43c6bb5..38778876d 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.scss
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.scss
@@ -11,6 +11,16 @@ mat-card.parent_mat_card > {
max-height:52vh;
overflow:auto;
}
+ .user-thumb {
+ position: absolute;
+ bottom: -35%;
+ // img {
+ // border: 5px solid $white;
+ // border-radius: 100%;
+ // height: 75px;
+ // width: 75px;
+ // }
+}
// @media only screen and (max-width:319px) {
// mat-card-content {
// max-height: 350px;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
index 26ce99179..2cec78216 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
@@ -75,7 +75,7 @@
- Applicants
+ Applicants
0; else noApplicant">
@@ -101,7 +101,7 @@
- Additional Requirements
+ Additional Requirements
0; else noRequirement">
@@ -123,7 +123,7 @@
0; else nodocument">
-
+
Documents
@@ -145,7 +145,7 @@
0; else nohistory">
-
+
PD History
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
index 85e145279..bdf8de1d6 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.scss
@@ -5,4 +5,7 @@
}
.minheight {
min-height: 100%;
+}
+::ng-deep .body-container{
+ padding: 0rem !important;
}
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.module.ts b/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.module.ts
index 17dce719b..342fb2374 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.module.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/manage-pd.module.ts
@@ -15,7 +15,7 @@ import {
MatToolbarModule, MatSelectModule, MatListModule, MatGridListModule,
MatTabsModule, MatCheckboxModule,
MatBadgeModule, MatExpansionModule, MatStepperModule, MatSidenavModule,
- MatMenuModule, MatButtonToggleModule,
+ MatMenuModule, MatButtonToggleModule,MatChipsModule,
MatAutocompleteModule, MatDatepickerModule } from '@angular/material';
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
@@ -273,6 +273,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
PdfViewerModule,
MatCardModule,
MatIconModule,
+ MatAutocompleteModule,
MatInputModule,
MatRadioModule,
MatTableModule,
@@ -282,6 +283,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
MatToolbarModule,
FlexLayoutModule,
NgxDatatableModule,
+ MatChipsModule,
FormsModule,MatSlideToggleModule,
MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,MatStepperModule,MatSidenavModule ,MatMenuModule, MatButtonToggleModule,
ReactiveFormsModule,
diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
index cd65ca0f4..e45388092 100755
--- a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
+++ b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts
@@ -282,14 +282,14 @@ getPDFormDetailsWithID(pdID, formID ):Observable {
// get Pd Final report Question Answer
- getPdFinalReportDetails(pdId: number) {
+ getPdFinalReportDetails(pdId: number): Observable {
return this._http.post(this.apiUrl+"getFinalPDReportQuestions",{"pd_id":pdId})
.pipe(
catchError(this.handleError('operation', []))
)
}
- getPDReportFinalDocument(pdId: any){
+ getPDReportFinalDocument(pdId: any): Observable{
pdId.fk_createdby = this._aws.getlocale();
return this._http.post(this.apiUrl+"generatePDReport",{"records": pdId})
.pipe(
@@ -297,28 +297,28 @@ getPDFormDetailsWithID(pdID, formID ):Observable {
)
}
- getActualPDReportModelTemplate(pdId: any) {
+ getActualPDReportModelTemplate(pdId: any) : Observable{
return this._http.post(this.apiUrl+"getLatestPDReportBlob ",{"records":{"pd_id":pdId}})
.pipe(
catchError(this.handleError('operation', []))
)
}
- updatePDReportDetails(records: any){
+ updatePDReportDetails(records: any): Observable{
return this._http.post(this.apiUrl+"saveNewVersionOfPDReport ",{"records": records})
.pipe(
catchError(this.handleError('operation', []))
)
}
- getPdDocVersionList(pdId: number){
+ getPdDocVersionList(pdId: number): Observable{
return this._http.post(this.apiUrl+"getListOfPDReportVersions",{"records":{"pd_id":pdId}})
.pipe(
catchError(this.handleError('operation', []))
)
}
- swapOlderPDReportToLatest(pdId: any){
+ swapOlderPDReportToLatest(pdId: any): Observable{
pdId.fk_createdby = this._aws.getlocale();
alert(JSON.stringify(pdId));
return this._http.post(this.apiUrl+"swapOlderPDReportToLatest",{"records": pdId})
@@ -327,6 +327,12 @@ getPDFormDetailsWithID(pdID, formID ):Observable {
)
}
+getTypeofActivityForSuppliedInfoForm(pd_id: any): Observable{
+ return this._http.post(this.apiUrl+"getTypeOfActivetyFromBusinessForm", {"records": { "pd_id" : pd_id }})
+ .pipe(
+ catchError(this.handleError('operation', []))
+ )
+ }
@@ -429,4 +435,17 @@ convertNumberToWords(amount) {
// return of(result as T);
// };
// }
+
+ /**Search Filter
+ * Sriram
+ */
+
+ overAllSearchFormDetails(searchItem)
+ {
+ let records = {'records':searchItem};
+ return this._http.post(this.apiUrl+'filterPDList',records).pipe(
+ catchError(this.handleError('operation', []))
+ );
+ }
+
}
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.html b/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.html
old mode 100644
new mode 100755
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.scss b/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.scss
old mode 100644
new mode 100755
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.spec.ts b/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.spec.ts
old mode 100644
new mode 100755
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.ts b/ng6-seed/src/app/settings/entity/entity-edit/entity-branch-add/entity-branch-add.component.ts
old mode 100644
new mode 100755