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 cb07fde..f5abfc8 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
@@ -47,6 +47,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
index 56c4d6f..ce7dc41 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.ts
@@ -807,4 +807,50 @@ dialogRef1.afterClosed().subscribe(rr=>{
}
+ archivePDImages(a){
+ console.log(this.pdMasterData[0].random_string)
+ let data = {
+ "pd_id": this.viewID,
+ "form_id":"",
+ "regenerate":a,
+ "random_string":this.pdMasterData[0].random_string
+ };
+ this._pd.archivePDImages(data).subscribe(data => {
+ if (data.dataStatus) {
+ window.open(data.records);
+ this.notifier.notify('success', 'Downloaded Successfully..!');
+ } else {
+ this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
+ }
+ }, err => {
+ this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (err.error_type == 2 ? err.error_status + ' ( ' + err.error_text + ' ) ' : ' ( ' + err.error_text + ' ) ') +'\" Error Occur.!');
+ // alert(err.html_format);
+ });
+ }
+
+ downloadPDImagesPDF(a){
+ // this.spinner_access=true
+ console.log(this.pdMasterData[0].random_string)
+
+ let data = {
+ "pd_id": this.viewID,
+ "regenerate":a,
+ "random_string":this.pdMasterData[0].random_string
+ };
+ this.notifier.notify("info","Processing please wait..")
+ this._pd.photoPDFDownload(data).subscribe(data => {
+ if (data.dataStatus) {
+ window.open(data.records);
+ this.notifier.notify('success', 'Done Successfully..!');
+ } else {
+ this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
+ }
+ // this.spinner_access=false
+ }, err => {
+ // this.spinner_access=false
+ this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (err.error_type == 2 ? err.error_status + ' ( ' + err.error_text + ' ) ' : ' ( ' + err.error_text + ' ) ') +'\" Error Occur.!');
+ // alert(err.html_format);
+ });
+ }
+
}
\ No newline at end of file
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 4860955..5e9c5ac 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
@@ -945,6 +945,9 @@ generatePDReportPDF(pdId: any): Observable {
archivePDImages(Dtl : any): Observable {
return this._http.post(this.apiUrl + "archivePDImages", { "records": Dtl });
}
+photoPDFDownload(params:any): Observable{
+ return this._http.post(this.apiUrl + "photoPDFDownload", { "records": params });
+}
checkExistPDDetails(datas,entity_id){
return this._http.post(this.apiUrl+'checkExistPDDetails',{records:datas,client:entity_id})
.pipe(catchError(this.handleError("checkExistPDDetails",[])))