diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
index dd8aa1f..76a2d0e 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
@@ -58,7 +58,11 @@
-
+
+
+ Select
+ {{insti.institute_name}}
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
index 3b595d9..feb608c 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
@@ -60,6 +60,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
@ViewChild(AdminLayoutComponent) adminLayout:AdminLayoutComponent;
loadControl: boolean;
+ finInstitutionList: any;
constructor(notifier: NotifierService, private _fb: FormBuilder, private route: ActivatedRoute,
private router: Router, private _pd: PdTrigerService, private _aws: AwsService, private ListPdComponent: ListPdComponent,
private titleCase : TitleCasePipe,private userService:UserService) {
@@ -77,23 +78,36 @@ export class AddPdComponent implements OnInit, OnDestroy {
this.ListPdComponent.showListView(false);
this.getUserDetails();
- this.getProductsList();
- this.getCustomerSegmentList();
+ // this.getProductsList();
+ // this.getCustomerSegmentList();
this.getStateCityList();
- this.getPDTypeList();
+ // this.getPDTypeList();
+
this.getRelationMaster();
this.getTitleMaster();
}
+ getProCusType(){
+ console.log("u",this.userDetails)
+ this._pd.getEntityPreferences(this.userDetails.fk_entity_id).subscribe(Response=>{
+ if(Response['dataStatus']){
+ this.pdTypeList=Response['records'].pd_types
+ this.customerSegmentAllList=Response['records'].customer_segments
+ this.productAllList=Response['records'].products
+ this.finInstitutionList=Response['records'].financial_institutions
+ }
+ this.loadFormData();
+ })
+ }
getUserDetails(){
this.userService.getroles().subscribe(res=>{
if(res['dataStatus']){
this.userDetails=res['records'][0];
}
// console.log(this.userDetails)
- this.loadFormData();
+ this.getProCusType()
this.sales_and_credit_person.credit_person=[{userid:this.userDetails.userid,user_name:this.userDetails.user_first_name+' '+this.userDetails.user_last_name}]
})
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
index a19ae03..a795359 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
@@ -64,7 +64,12 @@
-
+
+
+
+ Select
+ {{insti.institute_name}}
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
index ec9f829..87dceb6 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
@@ -65,9 +65,11 @@ export class EditPdMasterComponent implements OnInit {
sales_and_credit_person: any=[];
userDetails: any;
+ finInstitutionList: any=[];
constructor(private _fb: FormBuilder,
private _pd: PdTrigerService, notifier: NotifierService,private dialogRef: MatDialogRef,
@Inject(MAT_DIALOG_DATA) public data: any,private titleCase : TitleCasePipe,private userService:UserService) {
+ // console.log("hsdf",this.data)
this.notifier=notifier
this.currentPDStatus = data.records.pd_status;
this.pdid = data.records.pd_id;
@@ -79,7 +81,7 @@ export class EditPdMasterComponent implements OnInit {
}
ngOnInit() {
- this.getProductsList()
+ // this.getProductsList()
// this.draftStatus="DRAFT";
// this.PDTriggerStatus="TRIGGERED";
@@ -87,7 +89,7 @@ export class EditPdMasterComponent implements OnInit {
// this.getProductsList();
this.getStateCityList();
- this.getPDTypeList();
+ // this.getPDTypeList();
// this.getAddresses();
this.applicantLength=this.data.applicantLength;
@@ -100,9 +102,30 @@ export class EditPdMasterComponent implements OnInit {
}
// console.log(this.userDetails)
// this.loadFormData();
+ this.getProCusType()
this.sales_and_credit_person.credit_person=[{userid:this.userDetails.userid,user_name:this.userDetails.user_first_name+' '+this.userDetails.user_last_name}]
})
}
+ getProCusType(){
+ console.log("u",this.userDetails)
+ this._pd.getEntityPreferences(this.userDetails.fk_entity_id).subscribe(Response=>{
+ if(Response['dataStatus']){
+ this.pdTypeList=Response['records'].pd_types
+ this.customerSegmentAllList=Response['records'].customer_segments
+ this.productAllList=Response['records'].products
+ if(this.data.records.fk_product_id){
+ // console.log(this.data.fk_product_id)
+ // console.log("vv",this.productAllList.filter(val=>val.product_id == this.data.records.fk_product_id).length > 0)
+ if(this.productAllList.filter(val=>val.product_id == this.data.records.fk_product_id).length > 0){
+ this.getSubproductList(this.data.records.fk_product_id,1);
+ }
+ }
+ this.finInstitutionList=Response['records'].financial_institutions
+ }
+ this.getLenderList();
+ // this.loadFormData();
+ })
+ }
getLenderList(){
this._pd.getLenderDetails().subscribe(
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.html
index 9d99fce..b35947b 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.html
@@ -13,7 +13,7 @@