diff --git a/ng6-seed/PDgenie_Web_Test(25-01-2021).zip b/ng6-seed/PDgenie_Web_Test(25-01-2021).zip new file mode 100644 index 000000000..c2e462b42 Binary files /dev/null and b/ng6-seed/PDgenie_Web_Test(25-01-2021).zip differ diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.html new file mode 100644 index 000000000..dcbf89973 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.html @@ -0,0 +1,182 @@ +
+

+
+ + PD Photos +
+ +
+ +
+

+
+ + + +
+ + + + +
+ + +
+ +
+ +
+ + image +
+

+ + Image is not Captured. + +

+
+
+ +

{{val.img_name || val.img_key}}

+ + + + + + + + + + + +
+ + + +
+ +
+

+
+
{{val.img_name}}
+
+
No Images Captured
+
+ image + +
+ +

{{val.img_name}} {{i+1}}

+ + +
+
+ +
+

+
+
+ + +
+ + + + + +
+
+
+ + +
+
+ Total Re-capturing Images : + {{imgReCaptureBucket.length}} + +
+
+ + + + \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.scss new file mode 100644 index 000000000..464655179 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.scss @@ -0,0 +1,160 @@ + +::ng-deep + .cus-images > mat-card-content { + overflow-y: scroll !important; +} + +.scroll{ + overflow-y: scroll !important; + overflow-y:auto; + +} +.paragraph_change { + color: #fff !important; + background-color: #e00201 !important; + } + // .custom-file-input::-webkit-file-upload-button { +// visibility: hidden; +// } +// .custom-file-input::before { +// content: 'Select some files'; +// display: inline-block; +// background: linear-gradient(top, #f9f9f9, #e3e3e3); +// border: 1px solid #999; +// border-radius: 3px; +// padding: 5px 8px; +// outline: none; +// white-space: nowrap; +// -webkit-user-select: none; +// cursor: pointer; +// text-shadow: 1px 1px #fff; +// font-weight: 700; +// font-size: 10pt; +// color:black; +// // width: 20px; +// } +// .custom-file-input:hover::before { +// border-color: black; +// } +// .custom-file-input:active::before { +// background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9); +// } +// input[type='file'] { +// // opacity:0 +// color: transparent; +// width: 130px; +// } +.image-class{ + width: 200px; + height: 170px; + border: 1px solid lavender; + border-radius: 7px; + +} +.image-div { + max-width: 200px; + width: auto; + // height: 200px; + margin-top: 25px; + padding: 1.4%; +} +// .image-class:hover { +// -webkit-transform: scale(1.1); +// -ms-transform: scale(1.1); +// transform: scale(1.1); +// } +.dummy-img { + width: 200px; + height: 170px; + border: 3px dashed rgba(0, 0, 0, 0.2); + border-radius: 7px; + background: #eeee; + color: gray; +} +.dummy-img-more{ + width: 170px; + height: 200px; + margin-top: 20px; + border: 4px dashed #03a9f470; + border-radius: 7px; + box-shadow : 0px 3px 6px 3px rgba(160, 161, 188, 0.53); + background: #eeee; + color: #b53f3f; +} +.file-btn{ + display: flex; + justify-content: center; +} +@media (max-width: 600px){ +.image-class { + width: 125px; + height: 120px; +} +.image-div { +width:auto; +max-width: 135px; +// height: 120px; +} +.dummy-img { + width: 125px; + height: 120px; +} +.dummy-img-more{ +width: 125px; +height: 120px; +} +.image-label { + min-height: 58px; + p{ + width: auto; + max-width: 67% !important; + } +} +} +.image-label { + min-height: 58px; + width: auto; + // max-width: 67%; + p{ + margin: 7px; + font-weight: bold; + font-size : 14px; + max-width: 99%!important; + // overflow: hidden + white-space: pre-wrap; + text-overflow: ellipsis; + } +} +.object { + /* width: 110px; */ + height: 45px; +} +hr { +background: #d23f2f; +padding: 0.03em; +margin: -2px; +} +.example-margin { + margin: 0 10px; + } + + #num_count { + color: #00ffa7; + font-family: tahoma; + font-size: 1.3rem; + } + .num_count_animate { + + animation: num_pad 0.3s 1 + } + // #num_count.num_ani { + // -webkit-transition: 3s; + // -moz-transition: 3s; + // -ms-transition: 3s; + // -o-transition: 3s; + // transition: 3s; + // margin-left: 50% !important; + // } + @keyframes num_pad { + 50% {font-size:1.7rem;} + } \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.spec.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.spec.ts new file mode 100644 index 000000000..2a9440c99 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ImagesAllComponent } from './images-all.component'; + +describe('ImagesAllComponent', () => { + let component: ImagesAllComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ImagesAllComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ImagesAllComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.ts new file mode 100644 index 000000000..9a5046160 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/images-all/images-all.component.ts @@ -0,0 +1,71 @@ +import { Component, OnInit, ViewChild, ElementRef, Inject } from '@angular/core'; +import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material'; +import { PdTrigerService } from './../../../../../pd-service/pd-triger.service'; +import { NotifierService } from 'angular-notifier'; + + +@Component({ + selector: 'app-images-all', + templateUrl: './images-all.component.html', + styleUrls: ['./images-all.component.scss'] +}) +export class ImagesAllComponent implements OnInit { imageData: any; + records:any; +// ` {"dataStatus":true,"status":200,"records":{"pd_id":"1638","random_string":"Qih3Pq3HOLsoZtQ9","is_cus_link_disabled":"0","img_data":[{"img_key":"selfie_with_person_met","img_name":"Person met","fk_form_id":"18","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/ZdPZs2020-03-31-17-00-40.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=4e223bbcf9e4121eec61064f09809cec7e0295b0bd5847637ac35372e99b0ee0","is_multiple":0},{"img_key":"person_met_id","img_name":"Person met ID Proof","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/O37OX2020-03-31-17-01-18.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=8e1731438d0b7708b56fe49ce54e1ae5ac76bc566e5778eece17eea10fd05df6","fk_form_id":"18","is_multiple":0},{"img_key":"name_board_seen","img_name":"Name Board Seen","img_url":"","fk_form_id":"13"},{"img_key":"stock_image","img_name":"Stock image","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/tBepZ2020-03-31-10-50-50.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=10d10b3828bc58ae74cc57a0be16703c71ed7b2abb558ddbe7ee7a17b3f8ded8","fk_form_id":"11","is_multiple":0},{"img_key":"client_image","img_name":"Client Bills","img_url":[],"fk_form_id":"2", "is_multiple": "1"},{"img_key":"supplier_image","img_name":"Supplier Bills","img_url":"","fk_form_id":"1"},{"img_key":"machinary_image","img_name":"Machinery Image","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/E3w5v2020-03-31-10-47-19.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=b303856942b36472f6ef74221b488383d65c0370756b6351ed31622a461f8eb5","fk_form_id":"22","is_multiple":0},{"img_key":"gst_Regn_cert","img_name":null,"img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/Jztdq2020-03-31-10-51-14.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=77fa8e79798ee61a7a08fe8cecba8216016887771d0ba7c3666d8eba137e3b6d","fk_form_id":null,"is_multiple":0},{"img_key":"pf_regn_pic","img_name":"PF Regn","img_url":"","fk_form_id":"13"},{"img_key":"esic_regn_pic","img_name":"ESIC Regn","img_url":"","fk_form_id":"13"},{"img_key":"export_import_cert_pic","img_name":"Export Import Cert","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/7Q8ZT2020-05-14-14-48-01.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=7134beba9c436883c8d8253fbaa69f2c5f92ea060cd1f449f11ed532a184e69a","fk_form_id":"13","is_multiple":0},{"img_key":"factory_cert","img_name":null,"img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/C1kmd2020-03-31-15-28-42.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=f41180535adc42f582e12419a054d1eeae153c5aee3c502c2905cfe12efa9c58","fk_form_id":null,"is_multiple":0},{"img_key":"shop_eat_act_cert_pic","img_name":"Shop Est Act Cert","img_url":"","fk_form_id":"13"},{"img_key":"eb_bill","img_name":null,"img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/Ejii32020-03-30-10-57-40.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=303bf18241634fe3fd76d9f0d76e955fef656f31008b7ecbbd5051d26c648ce9","fk_form_id":null,"is_multiple":0},{"img_key":"practice_cert_pic","img_name":"Cert of Practice","img_url":"","fk_form_id":"13"},{"img_key":"fire_noc_pic","img_name":"Fire NOC","img_url":"","fk_form_id":"13"},{"img_key":"attendance_seen_pic","img_name":"Attendance Img","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/fKDE12020-03-12-13-18-33.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=e94a5dc453de6928181555e04eaece8233c12f8264d4d513db53ac56e2c42660","fk_form_id":"13","is_multiple":0},{"img_key":"common_image","img_name":"common_image","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/vj5Bx2020-03-31-16-52-27.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=498fde7eed4f546e1db8454af74cbcd5651786fe612382d06e80bfc2e1b3635a","fk_form_id":null},{"img_key":"common_image","img_name":"common_image","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/guLqm2020-03-31-16-53-11.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=59c30d0baf241c42ddde585b6405b4c8b002cf2761ed4e553dafa02635b08f8c","fk_form_id":null},{"img_key":"common_image","img_name":"gst_Regn_cert","img_url":"https:\/\/test-lender37.s3.ap-south-1.amazonaws.com\/pd1638\/4nRdQ2020-05-14-14-47-30.jpeg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7TQUR2J6HFMHQ4P%2F20200629%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20200629T062659Z&X-Amz-SignedHeaders=host&X-Amz-Expires=432000&X-Amz-Signature=6117ed523c59da07f89b7c5df23289445ba3d649a56d5390765140964542ef30","fk_form_id":null},{"img_key":"docs_to_be_collected","img_name":"D1","img_url":"","fk_form_id":"24"}]}}` + current_index: any; + @ViewChild('dummy_img_more') dummyImgMoreRef:ElementRef + imgReCaptureBucket: any[] =[]; + notifier: NotifierService; + dialogRef: any; + constructor(private _pd: PdTrigerService, + + private dialog: MatDialog, notifier:NotifierService, + @Inject(MAT_DIALOG_DATA) public pd_all_details: any) { + this.notifier = notifier + } + + ngOnInit() { + + this.getPDImageDetails(); + } + getPDImageDetails() { + + let params = {"pd_id":"","random_string":this.pd_all_details.pdmaster_details.random_string} + //let params = {"pd_id":"","random_string":'i2PnHMA7cdGx8zkz'} + // console.log(params); + this._pd.getPDImgDetails(params).subscribe(result=>{ + if(result.dataStatus) { + this.records = result.records + + // if(this.records.is_cus_link_disabled != '1') { + this.imageData =this.records.img_data; + this.imageData.forEach(val=>{ + val.is_loader = false + val.is_saved = true + }) + // } + // else{ + // let msgObj ={title:'',subtitle:'Link is Disabled',is_homebtn:false,message:'The requested url is Disabled. Please contant info@pdgenie.com'} + // this.goToErrorComponent(msgObj) + // } + } + else{ + + // this.records.is_loaded = false + this.imageData =[] + this.notifier.notify('error',result.hasOwnProperty('msg') && result.msg ?result.msg : 'Something went wrong try again later!!'); + // let msgObj ={title:'',subtitle:result.msg?result.msg : 'Invalid Link',is_homebtn:false,message:'The requested url is Invalid. Please contant info@pdgenie.com'} + // this.goToErrorComponent(msgObj) + } + + },err=>{ + console.log(err) + // this.records.is_loaded = false + this.imageData =[] + this.notifier.notify('error','Network Error. Please check your internet connection!!'); + // let msgObj ={title:'404',subtitle:'Not Found',is_homebtn:false,message:'The requested url returns 404. Please check your internet connection'} + // this.goToErrorComponent(msgObj) + }) + } + +} diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts index 84baf293d..9b268ca5e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts @@ -7,7 +7,7 @@ import {ListPdComponent} from './../list-pd.component'; import {PdTrigerService} from '../../../pd-service/pd-triger.service'; import {PersonalInfoComponent} from './forms/personal-info/personal-info.component'; -import {AddressComponent } from './forms/address/address.component'; +import {AddressComponent } from './forms/address/address.component'; import {OtherIncomeComponent} from './forms/other-income/other-income.component'; import {SupplierInfoComponent} from './forms/supplier-info/supplier-info.component'; import {ClientInfoComponent} from './forms/client-info/client-info.component'; @@ -30,6 +30,9 @@ import {BusinessAssetsInfoComponent } from './forms/business-assets-info/busines import {PdStatusChangeDialogueComponent } from './../pd-status-change-dialogue/pd-status-change-dialogue.component'; import {RentalVerificationComponent} from './forms/rental-verification/rental-verification.component'; import { QueriesDocsComponent } from './forms/queries-docs/queries-docs.component'; +import { ImageDocsComponent } from './forms/image-docs/image-docs.component'; +import { ImagesAllComponent } from './forms/images-all/images-all.component'; + @Component({ selector: 'app-start-pd', @@ -78,9 +81,7 @@ export class StartPdComponent implements OnInit, OnDestroy { } ngOnInit() { - // start - - // end + this.listPDComponent.showListView(false); const elemSidebar = document.querySelector('.app-inner .mail-sidebar'); const elemContent = document.querySelector('.app-inner .main-content'); @@ -173,6 +174,7 @@ export class StartPdComponent implements OnInit, OnDestroy { // load pd status change dialogue pdStatusDialogue(status: string, checkType: number): void { + const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, { data: { pdid: this.startPD, pd_status: status ,random_string:this.randomString,pd_type:this.pdMasterList.fk_pd_type }, disableClose: true, @@ -183,6 +185,22 @@ export class StartPdComponent implements OnInit, OnDestroy { .subscribe(dataresult => { if(dataresult.update_status==true){ checkType==2 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2,this.randomString); + let data = { + "pd_id": this.startPD, + "regenerate":0, + "random_string":this.randomString + }; + this._pd.archivePDImages(data).subscribe(data => { + + }) + let data1 = { + "pd_id": this.startPD, + "regenerate":0, + "random_string":this.randomString + }; + this._pd.photoPDFDownload(data1).subscribe(data => { + + }) } else { checkType==1 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2,this.randomString); @@ -196,9 +214,11 @@ export class StartPdComponent implements OnInit, OnDestroy { // start // direct form based questions OnSelectDirectForms(details: any) { + // console.log(details) // this.formsCategoryEnable = true; this.selectedFormsCategory = details; + let curr_vendor_ans_fetch_status = null if(this.pdMasterList.fk_pd_type == '2') { if(this.vendor_status_arr && this.vendor_status_arr.length > 0 && this.selectedFormsCategory.form_id != 13) { @@ -553,6 +573,24 @@ export class StartPdComponent implements OnInit, OnDestroy { this.loadTemplates(this.startPD,2,this.randomString); }); } + else + if(this.selectedFormsCategory.form_id==26){ + + const dialogRef = this.dialog.open(ImagesAllComponent, { + data: this.pdFullDetails, + // position: { right: '0'}, + maxWidth: '100vw', + maxHeight: '100vh', + height: '100%', + width: '100%', + disableClose: true + }); + dialogRef.afterClosed() + .subscribe(dataresult => { + // this.notifier.notify('success', 'Successfully allocated.!'); + this.loadTemplates(this.startPD,2,this.randomString); + }); + } } ngOnDestroy(): void { 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 79bde6973..657f70099 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 @@ -3,7 +3,7 @@
This PD is a possible duplicate of PD    {{pd.pd_sno}}  
- +
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 b3e72edcf..4a297b734 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 @@ -138,6 +138,8 @@ import { DynamicQuestionTemplateComponent } from './list-pd/start-pd/forms/dynam import { QuesFormService } from './list-pd/start-pd/forms/dynamic-form/ques-form/ques-form.service'; import { VideoPlayerComponent } from 'app/video-chat/video-player/video-player.component'; import { MatVideoModule } from 'mat-video'; +import { ImagesAllComponent } from './list-pd/start-pd/forms/images-all/images-all.component'; + /** * Custom angular notifier options @@ -185,7 +187,7 @@ const pdCustomNotifierOptions: NotifierOptions = { @NgModule({ declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent,VendorPdAllocationComponent, DuplicatePdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent,PdCollectedDocsComponent, GeneralInfoComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent, SearchRelationPipe, RupeeCurrencyFormatPipe, NumberToWordsPipe, DeleteRecordsCountPipe, BusinessAssetsInfoComponent, BusinessBankingDetailsComponent, SalesDetailsComponent, DailySalesDetailsComponent, SalesCalculationComponent, ManageSalesComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, PdLocatedMapViewDirective, ViewLocationComponent, GetAnswerableFormsPipe, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent ,ManageDailyPurchaseComponent, DailyPurchaseDetailsComponent, ManageRentalVerificationComponent, FuturePlansAndBusinessEnvironmentComponent, ImageCropComponent,PurchaseCalculationComponent,QueriesDocsComponent, ImageDocsComponent,CustomTitleCaseDirective, SpeedDialFabComponent,VideoPlayerComponent, - DynamicFormComponent,DynamicQuestionTemplateComponent], + DynamicFormComponent,DynamicQuestionTemplateComponent, ImagesAllComponent], imports: [ CommonModule, ManagePdRoutingModule, @@ -229,7 +231,7 @@ const pdCustomNotifierOptions: NotifierOptions = { entryComponents: [DuplicatePdComponent,VendorPdAllocationComponent,PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent, AllocationViewMoreComponent, PersonalInfoComponent,BusinessAssetsInfoComponent, ClientInfoComponent, SupplierInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent,BusinessBankingDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, ManageDailySalesComponent,PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,FuturePlansAndBusinessEnvironmentComponent,ImageCropComponent,QueriesDocsComponent, - DynamicFormComponent,DynamicQuestionTemplateComponent,VideoPlayerComponent], + DynamicFormComponent,DynamicQuestionTemplateComponent,VideoPlayerComponent,ImageDocsComponent,ImagesAllComponent], }) export class ManagePdModule { } \ 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 7ee17e783..ceb9c0c8d 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 @@ -382,6 +382,7 @@ export class PdTrigerService { //load pd template details loadPDTemplates(pdId: string,randomString): Observable { + let httpParams = new HttpParams().set('pd_id', pdId); httpParams = httpParams.append('random_string',randomString); // console.log('loadFullTemplate api load httpParams are',httpParams); @@ -991,7 +992,12 @@ export class PdTrigerService { getVendorAnswers(params):Observable { return this._http.post(this.apiUrl+'getVendorAnswers',params) } - + 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 }); + } covid19Ques() { return this._http.get('../../../assets/sample_covid19_ques.json') @@ -1017,4 +1023,8 @@ export class PdTrigerService { return this._http.post(this.apiUrl+'updateTwlioVideoStatus',params) .pipe(catchError(this.handleError("updateTwlioVideoStatus",[]))) } + getPDImgDetails(params):Observable { + // let headers = this.createAuthorizationHeader() + return this._http.post(this.apiUrl+'getPDImgDetails',params); + } }