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 new file mode 100644 index 000000000..366f2a5f3 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.html @@ -0,0 +1,45 @@ + + +
+ +
+
+ +
+
+
+ {{pdReportRecords.billing_name}} +
+
+ {{pdReportRecords.product_name}} +
+
+ {{pdReportRecords.customer_segment_name}} +
+
+ {{pdReportRecords.pd_type_name}} +
+
+ {{pdReportRecords.pd_status}} +
+
+ {{applicants.applicant_name}} , +
+ +
+

{{data.Name}}

+
+
{{dataQA.question}}
+
{{dataQA.answer}}
+
+
+
+
+
+ +
+ + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.spec.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.spec.ts new file mode 100644 index 000000000..6629a0598 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PdReportComponent } from './pd-report.component'; + +describe('PdReportComponent', () => { + let component: PdReportComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ PdReportComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(PdReportComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts new file mode 100644 index 000000000..94f65d910 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-report/pd-report.component.ts @@ -0,0 +1,266 @@ +import {Component, ViewChild, OnInit, ViewEncapsulation, OnDestroy} from '@angular/core'; +import {FormBuilder, FormGroup, Validators, FormControl, FormArray, AbstractControl} from '@angular/forms'; +import {ActivatedRoute, Router} from '@angular/router'; +import {NotifierService} from 'angular-notifier'; +import {ListPdComponent} from './../list-pd.component'; + +import {PdTrigerService} from '../../../pd-service/pd-triger.service'; + +@Component({ + selector: 'app-pd-report', + templateUrl: './pd-report.component.html', + styleUrls: ['./pd-report.component.scss'] +}) +export class PdReportComponent implements OnInit { + startPD: any; + + pdReportRecords:any; + + private notifier: NotifierService; + constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute, + private router: Router, public pdTrigerService: PdTrigerService, private listPDComponent: ListPdComponent) { + this.startPD = this.route.snapshot.params['pdid']; + this.notifier = notifier; + } + + ngOnInit() { + this.listPDComponent.showListView(false); + this.getPdReportDetails(); + } + + getPdReportDetails() { + this.pdTrigerService.getPdFinalReportDetails(this.startPD).subscribe(data => { + if (data.status == 200) { + // this.pdReportRecords = data.records.question_answers; + + let Records = { + "dataStatus": true, + "status": 200, + "records": { + "pd_id": "1", + "fk_lender_id": "7", + "lender_full_name": "check", + "lender_short_name": "check", + "fk_entity_billing_id": "1", + "billing_name": "ICICI- CHENNAI", + "lender_applicant_id": "Le123", + "pd_date_of_initiation": "06\/10\/2018", + "fk_product_id": "8", + "product_name": "Land Loan", + "product_abbr": "LL", + "fk_subproduct_id": "1", + "subproduct_name": "Purchase (Resale) Loan. ", + "subproduct_abbr": "HL PUR-RESALE", + "fk_pd_type": "1", + "pd_type_name": "Full PD ", + "pd_status": "COMPLETED", + "pd_status_name": null, + "pd_specific_clarification": null, + "createdon": "06\/10\/2018 05:43:58", + "fk_createdby": "1", + "updatedon": "16\/11\/2018 11:11:00", + "fk_updatedby": "1", + "createdby": "Krishna kumar", + "updatedby": "Krishna kumar", + "fk_pd_allocation_type": "1", + "pd_allocation_type_name": "AUTO", + "fk_pd_allocated_to": "128", + "pd_allocated_to": "VinothKumar S", + "executive_id": null, + "executive_name": null, + "central_pd_officer_id": null, + "centralofficer": null, + "fk_pd_template_id": "11", + "template_name": "TMB", + "fk_customer_segment": "2", + "customer_segment_name": "Salary Cheque", + "customer_segment_abbr": "SAL-CHQ", + "pd_officier_final_judgement": null, + "pd_agency_id": null, + "agency_name": null, + "loan_amount": "60000", + "addressline1": "MGR Street,Vengaivasal Main Road", + "addressline2": "Santhoshpuram", + "addressline3": "chennai", + "fk_city": "2", + "city_name": "Chennai", + "fk_state": "2", + "state_name": "Tamil Nadu", + "pincode": "600100", + "pd_contact_person": "Ram", + "pd_contact_mobileno": "32131233", + "scheduled_on": "31\/12\/2018 12:59 PM", + "completed_on": null, + "remarks": null, + "pd_applicant_details": [ + { + "pd_co_applicant_id": "1", + "fk_pd_id": "1", + "applicant_name": "Karthi Raj", + "applicant_type": "1", + "mobile_no": "4234234155", + "email": "sivak@gmail.com", + "addressline1": null, + "addressline2": null, + "addressline3": null, + "fk_city": null, + "fk_state": null, + "pincode": null, + "relation": "brother", + "relation_name": null, + "landline": null + }, + { + "pd_co_applicant_id": "2", + "fk_pd_id": "1", + "applicant_name": "ramesh", + "applicant_type": "0", + "mobile_no": "3123123213", + "email": "", + "addressline1": null, + "addressline2": null, + "addressline3": null, + "fk_city": null, + "fk_state": null, + "pincode": null, + "relation": "brother", + "relation_name": null, + "landline": null + } + ], + "question_answers": { + "form_details": [ + { + "Name": "Supplied Details", + "Details": [ + { + "question": "What are the main raw materials?(MEG Only)", + "answer": "check checkcheck" + }, + { + "question": "Supplier Name", + "answer": "Resico" + }, + { + "question": "Contact Person Name", + "answer": "Karthick" + }, + { + "question": "Contact Mobile Number", + "answer": "9874115221" + }, + { + "question": "Payment Mode", + "answer": "Immediate Or Advanced Payment" + }, + { + "question": "% of immediate \/ Advance Payment Purchase to Total Purchase?", + "answer": "212" + }, + { + "question": "Credit Period", + "answer": "" + }, + { + "question": "Frequency of Purchase", + "answer": "Monthly" + }, + { + "question": "Others Details", + "answer": "" + } + ]}, + { + "Name": "Client Details", + "Details": [ + { + "question": "Client Name", + "answer": "Venba" + }, + { + "question": "Contact Person Name", + "answer": "test" + }, + { + "question": "Contact Mobile Number", + "answer": "9685471122" + }, + { + "question": "Payment Mode", + "answer": "Combination of Both" + }, + { + "question": "% of immediate \/ Advance Payment Purchase to Total Purchase?", + "answer": "12" + }, + { + "question": "Credit Period", + "answer": "10" + }, + { + "question": "Frequency of Purchase", + "answer": "Weekly" + }, + { + "question": "Others Details", + "answer": "" + } + ]}, + { "Name": "Personal Details", + "Details": [ + { + "question": "Name", + "answer": "Karthi Raj" + }, + { + "question": "Age", + "answer": "50" + }, + { + "question": "Entity", + "answer": "Individual" + }, + { + "question": "Name", + "answer": "ramesh" + }, + { + "question": "Age", + "answer": "45" + }, + { + "question": "Entity", + "answer": "Individual" + }, + { + "question": "Relationship With Main Applicant", + "answer": "Brother" + }, + { + "question": "Remarks", + "answer": "good" + } + ]} + ], + "general_questions": [ + ] + } + } + } + + this.pdReportRecords = Records.records; + + // this.pdReportRecords = data.records.qu; + } + }, err=> { + + }) + } + + + // load pd view component + loadPdViewCompoent() { + this.router.navigate(['../../viewpd', this.startPD], {relativeTo: this.route}); + } + +} 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 34b5b48c5..631982786 100644 --- 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 @@ -12,6 +12,9 @@ + + +