+
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
index 583de1a6a..2b3abe543 100644
--- 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
@@ -52,7 +52,7 @@ export class ImagesAllComponent implements OnInit { imageData: any;
this._pd.getPDImgDetails(this.params).subscribe(result=>{
if(result.dataStatus) {
this.records = result.records
-
+ console.log( this.records)
// if(this.records.is_cus_link_disabled != '1') {
this.imageData =this.records.img_data;
this.imageData.forEach(val=>{
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts
index 06c43a073..7153c401e 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd2/start-pd2.component.ts
@@ -194,17 +194,18 @@ export class StartPd2Component implements OnInit, OnDestroy {
dialogRef.afterClosed()
.subscribe(dataresult => {
if(dataresult.update_status==true){
- setTimeout(()=>{
+ // setTimeout(()=>{
checkType==2 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2,this.randomString,this.fi_id);
let data = {
"pd_id": this.startPD,
"regenerate":0,
"random_string":this.randomString
};
- },2000)
- // this._pd.archivePDImages(data).subscribe(data => {
+ this._pd.archivePDImages(data).subscribe(data => {
- // })
+ })
+ //},2000)
+
let data1 = {
"pd_id": this.startPD,
"regenerate":0,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/image-video/image-video.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/image-video/image-video.component.ts
index 45415bb35..d04329ba3 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/image-video/image-video.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/image-video/image-video.component.ts
@@ -144,8 +144,10 @@ export class ImageVideoComponent implements OnInit {
// disableClose: true,
// panelClass:'video-chat'
// })
+ let user = localStorage.getItem('videocall_userid')
if(event == 'PDGenie'){
- let url = window.location.origin+'/vchat/#/chat/'+this.master.random_string+';id='+this.master.pd_id+';type=2'
+ let url = window.location.origin+'/vchat/#/chat/'+this.master.random_string+';id='+this.master.pd_id+';type=2;uid='+user
+
window.open(url,'_blank')
} else if(event == 'G_Meet'){
let url = this.google_Meet_Link
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 7bb109229..22a07abf2 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
@@ -193,6 +193,12 @@ export class ViewPdComponent implements OnInit, OnDestroy {
this.mandatoryFieldsValidations = masterData[1].mandatory_fields;
this.pd_QC_Rating = Number(this.pdMasterData.qc_rating);
this.pdApplicantData = data.records.applicants_details;
+ let tmp =[]
+ this.pdApplicantData.forEach(element => {
+ tmp.push(element.applicant_name)
+ });
+ console.log(tmp)
+ localStorage.setItem('pdApplicantData',JSON.stringify(tmp))
this.pdApplicantData = this.pdApplicantData.filter(appt => appt.applicant_type != 2);
this.CustomerSegmentAbbr = this.pdMasterData[0].customer_segment_abbr;
this.pdDocumentsData = data.records.pd_documnets;
@@ -796,10 +802,14 @@ export class ViewPdComponent implements OnInit, OnDestroy {
}
onClickVideoChat(master) {
- let videoChatLink = window.location.origin+'/vchat/#/chat/'+this.pdMasterData[0].random_string+';id='+this.viewID+';type=1'
+ console.log(master)
+ let user = localStorage.getItem('videocall_userid')
+ let videoChatLink = window.location.origin+'/vchat/#/chat/'+this.pdMasterData[0].random_string+';id='+this.viewID+';type=1;uid='+user
+
console.log(videoChatLink)
const dialogApplicant = this.dialog.open(ImageVideoComponent, {
- data: {masterDetails:master,videoChatLink:videoChatLink,applicantNo:this.pdApplicantData[0].mobile_no,flag:1},
+ data: {masterDetails:master,videoChatLink:videoChatLink,applicantNo:this.pdApplicantData[0].mobile_no,flag:1,userid:'fk_pd_allocated_to'
+},
// position: { right: '0' },
maxWidth: '70vw',
maxHeight: '60vw',
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 2c7331c84..c82783201 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
@@ -174,6 +174,7 @@ import { ImgExifService } from 'ng2-img-max/dist/src/img-exif.service';
import { ImgMaxPXSizeService } from 'ng2-img-max/dist/src/img-maxpx-size.service';
import { Ng2ImgMaxModule } from 'ng2-img-max';
import { CameraService } from './list-pd/start-pd/forms-dynamic/ques-template/providers/camera/camera.service';
+import { VideoCaptureBtnComponent } from './list-pd/start-pd/forms-dynamic/ques-template/video-capture-btn/video-capture-btn.component';
/**
* Custom angular notifier options
*/
@@ -220,7 +221,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
@NgModule({
declarations: [QuesTemplateComponent,TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent,VendorPdAllocationComponent, DuplicatePdComponent,FacialRecognitionModalComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, 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,CropToolsComponent,PurchaseCalculationComponent,QueriesDocsComponent, ImageDocsComponent,CustomTitleCaseDirective, SpeedDialFabComponent,VideoPlayerComponent,
- DynamicFormComponent,DynamicQuestionTemplateComponent, ImagesAllComponent,AnswerOptionCreateDialogComponent,FormComponent,FormGroupComponent, ImageVideoComponent,CaptureBtnComponent, SingleCaptureBtnComponent,],
+ DynamicFormComponent,DynamicQuestionTemplateComponent, ImagesAllComponent,AnswerOptionCreateDialogComponent,FormComponent,FormGroupComponent, ImageVideoComponent,CaptureBtnComponent, SingleCaptureBtnComponent,VideoCaptureBtnComponent],
imports: [
CommonModule,
ManagePdRoutingModule,
@@ -271,7 +272,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
MatVideoModule
],
- exports: [FacialRecognitionModalComponent,DuplicatePdComponent,VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,CropToolsComponent,PurchaseCalculationComponent,CaptureBtnComponent, SingleCaptureBtnComponent,],
+ exports: [FacialRecognitionModalComponent,DuplicatePdComponent,VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,CropToolsComponent,PurchaseCalculationComponent,CaptureBtnComponent, SingleCaptureBtnComponent,VideoCaptureBtnComponent],
providers: [PdTrigerService,CameraService, GetGeometricLocationService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}, PdLocatedMapViewDirective,QuesFormService],
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/assets/images/digilocker.svg b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/assets/images/digilocker.svg
new file mode 100644
index 000000000..e69de29bb
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.html b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.html
new file mode 100644
index 000000000..d4c59f4d4
--- /dev/null
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.html
@@ -0,0 +1,87 @@
+
+
+
+ Attach Digilocker Document's To Report
+
+
+
+
+
+
+
{{message}}
+
0">
+
+ Available Digilocker Documents
+
+
+
+
+ |
+
+
+ |
+
+
+
+ |
+
+
+
+
+ Applicant Name |
+ {{element.applicant_name}} |
+
+
+ Document Name |
+ {{element.pd_document_name}} |
+
+
+
+ View |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.scss b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.scss
new file mode 100644
index 000000000..7c68a430b
--- /dev/null
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.scss
@@ -0,0 +1,53 @@
+.paragraph_change {
+ color: #fff !important;
+ background-color: #e00201 !important;
+ }
+ ::ng-deep { .no-padding > mat-dialog-container {
+ // background: black;
+ padding: 0;
+ // overflow-y: scroll !important;
+ }
+ }
+ .example-full-width {
+ width: 100%;
+ }
+ .mat-dialog-content{
+ margin:0px !important;
+ }
+ // mat-placeholder{
+ // margin-top: 20px;
+ // word-wrap: break-word;
+ // }
+ // input{
+ // height:40px;
+ // }
+
+ .mat-form-field-label {
+ white-space: normal;
+ }
+
+ textarea.mat-input-element {
+ padding: 0px 0;
+ margin: 5px 0;
+ }
+
+ .mat-input-placeholder {
+ white-space: normal;
+ }
+
+ mat-form-field {
+ margin: 0 2%;
+ }
+.paragraph_change {
+ color: #fff !important;
+ background-color: #e00201 !important;
+}
+
+
+table {
+ width: 100%;
+ }
+ .mat-elevation-z8{
+ margin-top: 10px;
+ }
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.spec.ts b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.spec.ts
new file mode 100644
index 000000000..e1a24cdee
--- /dev/null
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { PdfMergeComponent } from './pdf-merge.component';
+
+describe('PdfMergeComponent', () => {
+ let component: PdfMergeComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ PdfMergeComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(PdfMergeComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.ts b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.ts
new file mode 100644
index 000000000..9782dce24
--- /dev/null
+++ b/ng6-seed/src/app/quality-check/qc-list/qc-pd-report/pdf-merge/pdf-merge.component.ts
@@ -0,0 +1,109 @@
+import { SelectionModel } from '@angular/cdk/collections';
+import { Component, Inject, OnInit } from '@angular/core';
+import { MatDialogRef, MatTableDataSource, MAT_DIALOG_DATA } from '@angular/material';
+import { QcService } from 'app/quality-check/qc-service/qc.service';
+export interface PeriodicElement {
+ name: string;
+ position: number;
+ weight: number;
+ symbol: string;
+}
+@Component({
+ selector: 'app-pdf-merge',
+ templateUrl: './pdf-merge.component.html',
+ styleUrls: ['./pdf-merge.component.scss']
+})
+
+export class PdfMergeComponent implements OnInit {
+ message: any;
+ digilock_list: any =[];
+
+
+
+ ELEMENT_DATA: PeriodicElement[] = [
+ {position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H'},
+ {position: 2, name: 'Helium', weight: 4.0026, symbol: 'He'},
+ {position: 3, name: 'Lithium', weight: 6.941, symbol: 'Li'},
+ {position: 4, name: 'Beryllium', weight: 9.0122, symbol: 'Be'},
+ {position: 5, name: 'Boron', weight: 10.811, symbol: 'B'},
+
+ ];
+ displayedColumns: string[] = ['select','applicant_name','pd_document_name','url'];
+
+ selection = new SelectionModel(true, []);
+ dataSource: any =[];
+
+ constructor(private dialogRef: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) public data: any, public pdTrigerService: QcService) { }
+
+ ngOnInit() {
+ this.getPdfApi()
+ }
+
+getPdfApi(){
+ console.log( this.data)
+ let data = {"pd_id": this.data.pd_id}
+ this.pdTrigerService.applicantWiseDigiLockerDocs(data).subscribe(data => {
+ let dataresult:any = data
+ console.log(dataresult)
+ if (dataresult.status == 200) {
+ this.digilock_list = dataresult.records
+ this.dataSource = new MatTableDataSource(this.digilock_list);
+ console.log( this.dataSource)
+
+ }else{
+ this.message = dataresult.msg
+ }
+ })
+}
+ /** Whether the number of selected elements matches the total number of rows. */
+ isAllSelected() {
+ const numSelected = this.selection.selected.length;
+ const numRows = this.dataSource.data.length;
+// console.log( numSelected,numRows)
+ return numSelected === numRows;
+}
+
+/** Selects all rows if they are not all selected; otherwise clear selection. */
+toggleAllRows() {
+ if (this.isAllSelected()) {
+ this.selection.clear();
+ return;
+ }
+
+ this.selection.select(...this.dataSource.data);
+ // console.log( this.selection)
+}
+
+/** The label for the checkbox on the passed row */
+checkboxLabel(row?: PeriodicElement): string {
+ if (!row) {
+ return `${this.isAllSelected() ? 'deselect' : 'select'} all`;
+ }
+ // console.log( this.selection)
+ return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row ${row.position + 1}`;
+
+}
+view(url){
+
+ window.open(url, "_blank")
+
+}
+confirmPdf(){
+ console.log( this.selection)
+ if(this.selection.selected.length > 0){
+ console.log(this.selection.selected)
+ let tmp =[]
+ this.selection.selected.forEach((element:any) => {
+
+ tmp.push({'pd_document_id' :element.pd_document_id})
+
+ });
+ console.log(tmp)
+ // localStorage.setItem('pdf-merge',JSON.stringify(tmp))
+ this.dialogRef.close(tmp)
+ }else{
+ this.dialogRef.close([])
+ }
+}
+}
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 679f8d5a3..521585bed 100755
--- 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
@@ -43,35 +43,9 @@
PD Report
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-