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 fd77fd2ac..c9c34953a 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 @@ -108,11 +108,15 @@ export class AddPdComponent implements OnInit, OnDestroy { }); } - + lenderShortName:string; /** FOR Dropdowns */ selectedLender(lender) { + console.log('lender',lender); this.lenderBranchList = lender['branches']; + this.lenderShortName = lender['short_name']; this._PDtriggerForm.controls.pd_branch_id.setValue(null); + + // this._PDtriggerForm.controls.pd_branch_id.setValue('Clix Capital Services Private Limited') } getLenderList() { @@ -129,7 +133,6 @@ export class AddPdComponent implements OnInit, OnDestroy { data => { if (data.status == 200) { this.productList = data.records - } }, error => this.errorMessage = error); } diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html index 87c613c06..ab580e3a1 100644 --- a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html +++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.html @@ -36,6 +36,7 @@ + diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.ts b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.ts index c68f319b4..374447e0b 100644 --- a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.ts +++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/qc-pd-report.component.ts @@ -132,7 +132,7 @@ export class QcPdReportComponent implements OnInit { }; this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => { if (data.dataStatus) { - this.notifier.notify('success', 'Your Changes Updated.!'); + this.notifier.notify('success', 'Done Successfully..!'); // this.getPdReportVersionList(); } else { this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); @@ -151,7 +151,7 @@ export class QcPdReportComponent implements OnInit { this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => { if (data.dataStatus) { console.log(data.records); - this.notifier.notify('success', 'Your Changes Updated.!'); + this.notifier.notify('success', 'Done Successfully..!'); this.getPdReportVersionList(); } else { this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); @@ -169,7 +169,25 @@ export class QcPdReportComponent implements OnInit { this.pdTrigerService.generatePDReportPDF(data).subscribe(data => { if (data.dataStatus) { window.open(data.records); - this.notifier.notify('success', 'Your Changes Updated.!'); + this.notifier.notify('success', 'Done Successfully..!'); + } else { + this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); + } + }, err => { + this.notifier.notify('error', 'Something Wents Wrong Try Again.! \t\"' + (err.error_type == 2 ? err.error_status + ' ( ' + err.error_text + ' ) ' : ' ( ' + err.error_text + ' ) ') +'\" Error Occur.!'); + // alert(err.html_format); + }); + } + + archivePDImages(){ + let data = { + "pd_id": this.startPD, + "form_id":"" + }; + this.pdTrigerService.archivePDImages(data).subscribe(data => { + if (data.dataStatus) { + window.open(data.records); + this.notifier.notify('success', 'Downloaded Successfully..!'); } else { this.notifier.notify('warning', 'Something Wents Wrong Try Again.!'); } diff --git a/ng6-seed/src/app/quality-check/qc-service/qc.service.ts b/ng6-seed/src/app/quality-check/qc-service/qc.service.ts index c8f77387a..6ac7c6437 100755 --- a/ng6-seed/src/app/quality-check/qc-service/qc.service.ts +++ b/ng6-seed/src/app/quality-check/qc-service/qc.service.ts @@ -599,6 +599,9 @@ export class QcService { return this._http.post(this.apiUrl + "generatePDReportPDF", { "records": pdId }); } + archivePDImages(Dtl : any): Observable { + return this._http.post(this.apiUrl + "archivePDImages", { "records": Dtl }); + } getHTMLContent(id:any): Observable { return this._http.post(this.apiUrl+"getHTMLContent", {"pd_id":id});