Duplicate PD Added

This commit is contained in:
sriram-at-840620226347 2020-07-06 17:58:21 +05:30
parent 9705938bb8
commit 874232c9bc
23 changed files with 315 additions and 36 deletions

View File

@ -2002,7 +2002,7 @@
}, },
"sax": { "sax": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/sax/-/sax-1.2.1.tgz", "resolved": "http://registry.npmjs.org/sax/-/sax-1.2.1.tgz",
"integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=", "integrity": "sha1-e45lYZCyKOgaZq6nSEgNgozS03o=",
"dev": true "dev": true
}, },
@ -2483,7 +2483,7 @@
}, },
"buffer": { "buffer": {
"version": "4.9.1", "version": "4.9.1",
"resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", "resolved": "http://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz",
"integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=",
"requires": { "requires": {
"base64-js": "^1.0.2", "base64-js": "^1.0.2",
@ -2618,7 +2618,7 @@
}, },
"calendar-utils": { "calendar-utils": {
"version": "0.1.2", "version": "0.1.2",
"resolved": "https://registry.npmjs.org/calendar-utils/-/calendar-utils-0.1.2.tgz", "resolved": "http://registry.npmjs.org/calendar-utils/-/calendar-utils-0.1.2.tgz",
"integrity": "sha512-9j4Zd1itopNYTSWzFU4MqD2IDHMqznfxsGr8UWGh7hWv+lKzjRJz0LS29iAg5rHtP6+6x3ikQnhoMGqFUzoD2Q==" "integrity": "sha512-9j4Zd1itopNYTSWzFU4MqD2IDHMqznfxsGr8UWGh7hWv+lKzjRJz0LS29iAg5rHtP6+6x3ikQnhoMGqFUzoD2Q=="
}, },
"caller-callsite": { "caller-callsite": {
@ -7686,7 +7686,7 @@
}, },
"lodash": { "lodash": {
"version": "3.10.1", "version": "3.10.1",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "resolved": "http://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
"integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=", "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=",
"dev": true "dev": true
}, },
@ -7874,7 +7874,7 @@
}, },
"load-json-file": { "load-json-file": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
"requires": { "requires": {
"graceful-fs": "^4.1.2", "graceful-fs": "^4.1.2",
@ -7967,7 +7967,7 @@
}, },
"log4js": { "log4js": {
"version": "0.6.38", "version": "0.6.38",
"resolved": "https://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz", "resolved": "http://registry.npmjs.org/log4js/-/log4js-0.6.38.tgz",
"integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=", "integrity": "sha1-LElBFmldb7JUgJQ9P8hy5mKlIv0=",
"dev": true, "dev": true,
"requires": { "requires": {
@ -8261,7 +8261,7 @@
}, },
"meow": { "meow": {
"version": "3.7.0", "version": "3.7.0",
"resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
"integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
"requires": { "requires": {
"camelcase-keys": "^2.0.0", "camelcase-keys": "^2.0.0",
@ -8390,7 +8390,7 @@
}, },
"minimist": { "minimist": {
"version": "1.2.0", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="
}, },
"minipass": { "minipass": {
@ -8479,7 +8479,7 @@
}, },
"mkdirp": { "mkdirp": {
"version": "0.5.1", "version": "0.5.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
"integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
@ -8487,7 +8487,7 @@
"dependencies": { "dependencies": {
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
"integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
} }
} }
@ -8875,6 +8875,14 @@
} }
} }
}, },
"ngx-spinner": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/ngx-spinner/-/ngx-spinner-7.2.0.tgz",
"integrity": "sha512-E3IVOrSXCC4v/8iy/f1cGWMfRF5HrmuGCGcTTYbEzknTViDqH2kMLYzdwC0MVsyAEafisEIM1rmSUzftIzPJQA==",
"requires": {
"tslib": "^1.9.0"
}
},
"ngx-viewer": { "ngx-viewer": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/ngx-viewer/-/ngx-viewer-1.0.5.tgz", "resolved": "https://registry.npmjs.org/ngx-viewer/-/ngx-viewer-1.0.5.tgz",
@ -8941,7 +8949,7 @@
"dependencies": { "dependencies": {
"semver": { "semver": {
"version": "5.3.0", "version": "5.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", "resolved": "http://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
"integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=" "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8="
} }
} }
@ -9383,7 +9391,7 @@
"dependencies": { "dependencies": {
"minimist": { "minimist": {
"version": "0.0.10", "version": "0.0.10",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
"integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
"dev": true "dev": true
}, },
@ -9442,7 +9450,7 @@
}, },
"os-locale": { "os-locale": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
"integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
"requires": { "requires": {
"lcid": "^1.0.0" "lcid": "^1.0.0"
@ -11956,7 +11964,7 @@
}, },
"sax": { "sax": {
"version": "0.5.8", "version": "0.5.8",
"resolved": "https://registry.npmjs.org/sax/-/sax-0.5.8.tgz", "resolved": "http://registry.npmjs.org/sax/-/sax-0.5.8.tgz",
"integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=", "integrity": "sha1-1HLbIo6zMcJQaw6MFVJK25OdEsE=",
"dev": true "dev": true
}, },
@ -12870,7 +12878,7 @@
}, },
"sax": { "sax": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/sax/-/sax-0.6.1.tgz", "resolved": "http://registry.npmjs.org/sax/-/sax-0.6.1.tgz",
"integrity": "sha1-VjsZx8HeiS4Jv8Ty/DDjwn8JUrk=", "integrity": "sha1-VjsZx8HeiS4Jv8Ty/DDjwn8JUrk=",
"dev": true "dev": true
}, },
@ -13407,7 +13415,7 @@
}, },
"wrap-ansi": { "wrap-ansi": {
"version": "2.1.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
"requires": { "requires": {
"string-width": "^1.0.1", "string-width": "^1.0.1",

View File

@ -69,6 +69,7 @@
"ngx-mat-select-search": "^1.8.0", "ngx-mat-select-search": "^1.8.0",
"ngx-perfect-scrollbar": "5.0.0-7", "ngx-perfect-scrollbar": "5.0.0-7",
"ngx-socket-io": "^3.0.1", "ngx-socket-io": "^3.0.1",
"ngx-spinner": "^7.2.0",
"ngx-viewer": "^1.0.5", "ngx-viewer": "^1.0.5",
"node-sass": "^4.13.0", "node-sass": "^4.13.0",
"perfect-scrollbar": "^1.3.0", "perfect-scrollbar": "^1.3.0",

View File

@ -2,7 +2,7 @@
<div class="form-bg"> <div class="form-bg">
<h3 class="page-title"><img src="assets/images/PD.jpeg" style="height: 50px;;"> <span> PD Genie </span> <h3 class="page-title"><img src="assets/images/PD_Genie_TM1.jpg" style="height: 70px;;"> <span> PD Genie </span>
</h3> </h3>
<div class="relative error-wrapper"> <div class="relative error-wrapper">

View File

@ -2,7 +2,7 @@
<div class="form-bg"> <div class="form-bg">
<div fxLayout="row" fxLayoutAlign="center" class="pt-2"> <div fxLayout="row" fxLayoutAlign="center" class="pt-2">
<!-- <p>SINEEDGE Login Details</p> --> <!-- <p>SINEEDGE Login Details</p> -->
<h3 class="page-title"><img src="assets/images/PD.jpeg" style="height: 50px;;"> <span> PD Genie </span> <h3 class="page-title"><img src="assets/images/PD_Genie_TM1.jpg" style="height: 70px;;"> <span> PD Genie </span>
</h3> </h3>
</div> </div>

View File

@ -8,7 +8,7 @@
</h2> </h2>
<h2><img [src]="'http://ssa.sineedge.com/sparqapi/logo/sine_edge_icon.png'" style="height: 50px;;"> <span> {{userDep}} </span> <h2><img [src]="'http://ssa.sineedge.com/sparqapi/logo/sine_edge_icon.png'" style="height: 50px;;"> <span> {{userDep}} </span>
</h2> --> </h2> -->
<h2><img src="assets/images/PD.jpeg" style="height: 50px;;"> <span> {{userDep}} </span> <h2><img src="assets/images/PD_Genie_TM.jpg" style="height: 45px;;"> <span> {{userDep}} </span>
</h2> </h2>
</div> </div>
<div class="main-nav"> <div class="main-nav">
@ -109,7 +109,7 @@
</h2>--> </h2>-->
<a> <a>
<!-- <img [routerLink]="['/dashboard']" [src]="'http://ssa.sineedge.com/sparqapi/logo/sineedge_red.png'" style="height: 35px;;"> <span> {{userDep}} </span> --> <!-- <img [routerLink]="['/dashboard']" [src]="'http://ssa.sineedge.com/sparqapi/logo/sineedge_red.png'" style="height: 35px;;"> <span> {{userDep}} </span> -->
<img (click)="menunav('HOME')" src="assets/images/PD.jpeg" style="height: 35px;;"> <span> {{userDep}} </span> <img (click)="menunav('HOME')" src="assets/images/PD_Genie_TM.jpg" style="height: 45px;;"> <span> {{userDep}} </span>
</a> </a>
</div> </div>
</div> </div>

View File

@ -155,11 +155,15 @@
matTooltip="Send Link Via SMS" matTooltipPosition="above"> matTooltip="Send Link Via SMS" matTooltipPosition="above">
<mat-icon>sms</mat-icon> <mat-icon>sms</mat-icon>
</button> --> </button> -->
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" <button mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)"
matTooltip="View" matTooltipPosition="above"> matTooltip="View" matTooltipPosition="above">
<mat-icon>visibility</mat-icon> <mat-icon>visibility</mat-icon>
</button> </button>
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyPD(details)"
matTooltip="Copy PD" matTooltipPosition="above">
<mat-icon>file_copy</mat-icon>
</button>
</mat-cell> </mat-cell>
</ng-container> </ng-container>

View File

@ -1,9 +1,10 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatDialog } from '@angular/material';
import { FormGroup, FormBuilder } from '@angular/forms'; import { FormGroup, FormBuilder } from '@angular/forms';
import { DatePipe } from '@angular/common'; import { DatePipe } from '@angular/common';
import { NotifierService } from 'angular-notifier'; import { NotifierService } from 'angular-notifier';
import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component';
@Component({ @Component({
selector: 'app-all-pd', selector: 'app-all-pd',
@ -48,7 +49,7 @@ export class AllPdComponent implements OnInit, OnChanges {
pageEvent: PageEvent; pageEvent: PageEvent;
todaydate:Date = new Date(); todaydate:Date = new Date();
common: any; common: any;
constructor(private _pd: PdTrigerService,private _fb:FormBuilder,notifier: NotifierService,) { constructor(private dialog: MatDialog,private _pd: PdTrigerService,private _fb:FormBuilder,notifier: NotifierService,) {
this.notifier = notifier; this.notifier = notifier;
this.searchForm = this._fb.group( this.searchForm = this._fb.group(
{ {
@ -257,5 +258,19 @@ export class AllPdComponent implements OnInit, OnChanges {
// } // }
// }) // })
// } // }
copyPD(details): void {
const dialogRef = this.dialog.open(DuplicatePdComponent, {
disableClose: true,
data: details,
minWidth: '30%',
maxWidth: '40%',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
// alert(result);
});
}
} }

View File

@ -134,6 +134,10 @@
<button style ="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View" <button style ="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View"
matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button> matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyPD(details)"
matTooltip="Copy PD" matTooltipPosition="above">
<mat-icon>file_copy</mat-icon>
</button>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;"> <mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">

View File

@ -1,9 +1,10 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatDialog } from '@angular/material';
import { FormGroup, FormBuilder } from '@angular/forms'; import { FormGroup, FormBuilder } from '@angular/forms';
import { DatePipe } from '@angular/common'; import { DatePipe } from '@angular/common';
import { NotifierService } from 'angular-notifier'; import { NotifierService } from 'angular-notifier';
import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component';
@Component({ @Component({
selector: 'app-completed-pd', selector: 'app-completed-pd',
@ -49,7 +50,7 @@ export class CompletedPdComponent implements OnInit, OnChanges {
todaydate:Date = new Date(); todaydate:Date = new Date();
common: any; common: any;
constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) { constructor(private dialog: MatDialog,private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) {
this.notifier = notifier; this.notifier = notifier;
this.searchForm = this._fb.group( this.searchForm = this._fb.group(
@ -265,6 +266,20 @@ export class CompletedPdComponent implements OnInit, OnChanges {
// } // }
// }) // })
// } // }
copyPD(details): void {
const dialogRef = this.dialog.open(DuplicatePdComponent, {
disableClose: true,
data: details,
minWidth: '30%',
maxWidth: '40%',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
// alert(result);
});
}
} }

View File

@ -0,0 +1,28 @@
<div style="max-height: 580px;">
<form [formGroup]="_duplicatePDFrom" (submit)="onSubmit()">
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" fxLayoutAlign="center">
<h2 mat-dialog-title style="width: 50%;">{{pageTitle}}</h2>
<div style="width: 20%;"></div>
<div style="width: 30%;text-align:right;">
<button mat-raised-button mat-icon-button color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above"
type="button" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
</div>
</div>
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
<input matInput placeholder="New Loan Application ID" formControlName="lender_applicant_id">
<mat-error *ngIf="submitted && f.lender_applicant_id.hasError('required')" class="mat-text-warn">Lender Applicant ID.</mat-error>
</mat-form-field>
</div>
<div class="row" style="text-align:right;">
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><mat-icon>settings_backup_restore</mat-icon></button>
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
</div>
</form>
<ngx-spinner bdColor = "rgba(226,65,47,0.62)" size = "medium" color = "white" type = "timer" [fullScreen] = "true"><p style="color: #fff;"> Please Wait... </p></ngx-spinner>
</div>
<notifier-container></notifier-container>

View File

@ -0,0 +1,3 @@
.example-full-width{
width: 100%;
}

View File

@ -0,0 +1,132 @@
/** Common Imports */
import {
Component,
OnInit,
Inject
} from '@angular/core';
import { ActivatedRoute, Router, Params } from '@angular/router';
import {
FormBuilder,
FormGroup,
Validators,
FormArray,
} from '@angular/forms';
import { NotifierService } from 'angular-notifier';
import {
MatDialog,
MatDialogRef,
MAT_DIALOG_DATA
} from '@angular/material';
import { PdTrigerService } from 'app/personal-discussion/pd-service/pd-triger.service';
import { NgxSpinnerService } from "ngx-spinner";
/*
* Question master add details
* : kdk
*/
@Component({
selector: 'app-duplicate-pd',
templateUrl: './duplicate-pd.component.html',
styleUrls: ['./duplicate-pd.component.scss']
})
export class DuplicatePdComponent implements OnInit {
public pageTitle: string = "Duplicate PD";
public _duplicatePDFrom: FormGroup;
public submitted = false;
errorMessage: string;
error : any = [];
/**
* Notifier service
*/
private notifier: NotifierService;
constructor(
notifier: NotifierService,
private spinner: NgxSpinnerService,
private _formBuilder: FormBuilder,
private router: Router,
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<DuplicatePdComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) {
console.log(data);
this.notifier = notifier;
}
ngOnInit() {
/** Questions Form Datas*/
this._duplicatePDFrom = this._formBuilder.group({
lender_applicant_id: [null, Validators.compose([Validators.required])],
});
// this.getEntityOptionsMaster();
}
// convenience getter for easy access to form fields
get f() { return this._duplicatePDFrom.controls; }
/** For Popup Close Button */
onNoClick(): void {
this.dialogRef.close(null);
// this.router.navigate(['/setting/entity/list']);
}
/** To Save/Edited Popup Data */
onSubmit() {
this.spinner.show();
this.submitted = true;
// stop here if form is invalid
if (this._duplicatePDFrom.invalid) {
this.errorMessage = "Please Fill All Mandate Fields.";
return;
} else {
var duplicatePDFormValues = this._duplicatePDFrom.value.lender_applicant_id;
console.log(duplicatePDFormValues);
//To Remove The "Null" With Key also
// Object.keys(duplicatePDFormValues).forEach((key) => (duplicatePDFormValues[key] == null) && delete duplicatePDFormValues[key]);
//Add BRANCH data with help Service File
let params = {
pd_id:this.data.pd_id,
lender_applicant_id: duplicatePDFormValues,
}
this._pd.duplicatePD(params).subscribe(
dataresult => {
if (dataresult.status == 200) {
this.spinner.hide();
console.log(dataresult);
this.notifier.notify('success', 'Record Saved Successfully.!');
this.dialogRef.close(dataresult);
}
else {
this.notifier.notify('warning', 'Something Went Wrong Try Again.!');
// this.errorMessage = "Some Thing Wents Wrong Try Again !";
}
}, error => {
this.dialogRef.close(null);
this.notifier.notify('error', 'Something Went Wrong Try Again.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
this.spinner.hide();
// this.errorMessage = "Something Went Wrong Try Again !";
});
}
}
/** To Reset Popup Data */
onReset() {
this._duplicatePDFrom.reset();
}
}

View File

@ -127,6 +127,10 @@
<mat-icon>sms</mat-icon> <mat-icon>sms</mat-icon>
</button> --> </button> -->
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button> <button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" matTooltip="View" matTooltipPosition="above" color="primary"><mat-icon>visibility</mat-icon></button>
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyPD(details)"
matTooltip="Copy PD" matTooltipPosition="above">
<mat-icon>file_copy</mat-icon>
</button>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;"> <mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">

View File

@ -1,9 +1,10 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatDialog } from '@angular/material';
import { FormBuilder, FormGroup } from '@angular/forms'; import { FormBuilder, FormGroup } from '@angular/forms';
import { DatePipe } from '@angular/common'; import { DatePipe } from '@angular/common';
import { NotifierService } from 'angular-notifier'; import { NotifierService } from 'angular-notifier';
import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component';
@Component({ @Component({
selector: 'app-inprogress-pd', selector: 'app-inprogress-pd',
@ -45,7 +46,7 @@ export class InprogressPdComponent implements OnInit, OnChanges {
pageEvent: PageEvent; pageEvent: PageEvent;
searchForm:FormGroup; searchForm:FormGroup;
common: any; common: any;
constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService) { constructor(private dialog: MatDialog,private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService) {
this.notifier = notifier; this.notifier = notifier;
this.searchForm = this._fb.group( this.searchForm = this._fb.group(
@ -257,5 +258,19 @@ export class InprogressPdComponent implements OnInit, OnChanges {
// } // }
// }) // })
// } // }
copyPD(details): void {
const dialogRef = this.dialog.open(DuplicatePdComponent, {
disableClose: true,
data: details,
minWidth: '30%',
maxWidth: '40%',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
// alert(result);
});
}
} }

View File

@ -132,6 +132,10 @@
</button> --> </button> -->
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button> <button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyPD(details)"
matTooltip="Copy PD" matTooltipPosition="above">
<mat-icon>file_copy</mat-icon>
</button>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;"> <mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">

View File

@ -1,9 +1,10 @@
import { Component, ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { Component, ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatDialog } from '@angular/material';
import { FormBuilder, FormGroup } from '@angular/forms'; import { FormBuilder, FormGroup } from '@angular/forms';
import { DatePipe } from '@angular/common'; import { DatePipe } from '@angular/common';
import { NotifierService } from 'angular-notifier'; import { NotifierService } from 'angular-notifier';
import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component';
@Component({ @Component({
selector: 'app-qc-completed-pd', selector: 'app-qc-completed-pd',
@ -47,7 +48,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
pageEvent: PageEvent; pageEvent: PageEvent;
common: any; common: any;
constructor(private _pd: PdTrigerService, public _fb: FormBuilder,notifier: NotifierService,) { constructor(private dialog: MatDialog,private _pd: PdTrigerService, public _fb: FormBuilder,notifier: NotifierService,) {
this.notifier = notifier; this.notifier = notifier;
this.searchForm = this._fb.group( this.searchForm = this._fb.group(
@ -239,4 +240,18 @@ export class QcCompletedPdComponent implements OnInit, OnChanges {
// } // }
// }) // })
// } // }
copyPD(details): void {
const dialogRef = this.dialog.open(DuplicatePdComponent, {
disableClose: true,
data: details,
minWidth: '30%',
maxWidth: '40%',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
// alert(result);
});
}
} }

View File

@ -132,6 +132,10 @@
</button> --> </button> -->
<button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button> <button style="float: right" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPD(details.is_child == 0 ? details.pd_id : details.parent_pd_id,details.random_string)" color="primary" matTooltip="View" matTooltipPosition="above"><mat-icon>visibility</mat-icon></button>
<button style="float: right" mat-button mat-icon-button class="mb-1 hover-icon" type="button" color="primary" (click)="copyPD(details)"
matTooltip="Copy PD" matTooltipPosition="above">
<mat-icon>file_copy</mat-icon>
</button>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;"> <mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">

View File

@ -1,9 +1,10 @@
import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatDialog } from '@angular/material';
import { FormBuilder, FormGroup } from '@angular/forms'; import { FormBuilder, FormGroup } from '@angular/forms';
import { DatePipe } from '@angular/common'; import { DatePipe } from '@angular/common';
import { NotifierService } from 'angular-notifier'; import { NotifierService } from 'angular-notifier';
import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component';
@Component({ @Component({
selector: 'app-scheduled-pd', selector: 'app-scheduled-pd',
@ -46,7 +47,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
pageEvent: PageEvent; pageEvent: PageEvent;
common: any; common: any;
constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) { constructor(private dialog: MatDialog,private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) {
this.notifier = notifier; this.notifier = notifier;
this.searchForm = this._fb.group( this.searchForm = this._fb.group(
@ -253,6 +254,20 @@ export class ScheduledPdComponent implements OnInit, OnChanges {
// } // }
// }) // })
// } // }
copyPD(details): void {
const dialogRef = this.dialog.open(DuplicatePdComponent, {
disableClose: true,
data: details,
minWidth: '30%',
maxWidth: '40%',
});
dialogRef.afterClosed().subscribe(result => {
console.log('The dialog was closed');
// alert(result);
});
}
} }

View File

@ -22,6 +22,7 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {FileUploadModule} from 'ng2-file-upload/ng2-file-upload'; import {FileUploadModule} from 'ng2-file-upload/ng2-file-upload';
import {TreeModule} from 'angular-tree-component'; import {TreeModule} from 'angular-tree-component';
import {NgxDatatableModule} from '@swimlane/ngx-datatable'; import {NgxDatatableModule} from '@swimlane/ngx-datatable';
import {NgxSpinnerModule} from 'ngx-spinner'
import {FlexLayoutModule} from '@angular/flex-layout'; import {FlexLayoutModule} from '@angular/flex-layout';
import {MatTooltipModule} from '@angular/material/tooltip'; import {MatTooltipModule} from '@angular/material/tooltip';
@ -38,6 +39,7 @@ import {ListPdComponent} from './list-pd/list-pd.component';
import {ManagePdComponent} from './manage-pd.component'; import {ManagePdComponent} from './manage-pd.component';
import {MapPdViewComponent} from './list-pd/map-pd-view/map-pd-view.component'; import {MapPdViewComponent} from './list-pd/map-pd-view/map-pd-view.component';
import {AddPdComponent} from '../manage-pd/list-pd/add-pd/add-pd.component'; import {AddPdComponent} from '../manage-pd/list-pd/add-pd/add-pd.component';
import { DuplicatePdComponent } from '../manage-pd/list-pd/duplicate-pd/duplicate-pd.component'
import {ViewPdComponent} from '../manage-pd/list-pd/view-pd/view-pd.component'; import {ViewPdComponent} from '../manage-pd/list-pd/view-pd/view-pd.component';
import { VendorPdAllocationComponent } from '../manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent' import { VendorPdAllocationComponent } from '../manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent'
import {PdAllocationComponent} from '../manage-pd/list-pd/pd-allocation/pd-allocation.component'; import {PdAllocationComponent} from '../manage-pd/list-pd/pd-allocation/pd-allocation.component';
@ -177,7 +179,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
}; };
@NgModule({ @NgModule({
declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent,VendorPdAllocationComponent, 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], 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],
imports: [ imports: [
CommonModule, CommonModule,
ManagePdRoutingModule, ManagePdRoutingModule,
@ -198,6 +200,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
MatToolbarModule, MatToolbarModule,
FlexLayoutModule, FlexLayoutModule,
NgxDatatableModule, NgxDatatableModule,
NgxSpinnerModule,
MatChipsModule,MatProgressSpinnerModule, MatChipsModule,MatProgressSpinnerModule,
FormsModule,MatSlideToggleModule, FormsModule,MatSlideToggleModule,
MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,MatStepperModule,MatSidenavModule ,MatMenuModule, MatButtonToggleModule, MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,MatStepperModule,MatSidenavModule ,MatMenuModule, MatButtonToggleModule,
@ -212,12 +215,12 @@ const pdCustomNotifierOptions: NotifierOptions = {
AngularSplitModule, AngularSplitModule,
], ],
exports: [VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, 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,PurchaseCalculationComponent], exports: [DuplicatePdComponent,VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, 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,PurchaseCalculationComponent],
providers: [PdTrigerService, GetGeometricLocationService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'}, providers: [PdTrigerService, GetGeometricLocationService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]}, {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}, PdLocatedMapViewDirective], {provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}, PdLocatedMapViewDirective],
entryComponents: [VendorPdAllocationComponent,PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, TelePdAllocationComponent, AllocationViewMoreComponent, PersonalInfoComponent,BusinessAssetsInfoComponent, 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], 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],
}) })
export class ManagePdModule { export class ManagePdModule {

View File

@ -295,6 +295,15 @@ export class PdTrigerService {
) )
} }
// duplicate PD
duplicatePD(params): Observable<any> {
params.fk_createdby = this._aws.getlocale();//to get user id for who is created the Record
return this._http.post<any>(this.apiUrl + "duplicatePD", params)
.pipe(
catchError(this.handleError('role', []))
)
}
// get Vendor List // get Vendor List
getVendorList() { getVendorList() {
return this._http.get<any>(this.apiUrl + 'getListOfvendors') return this._http.get<any>(this.apiUrl + 'getListOfvendors')

View File

@ -3,7 +3,7 @@
<div fxLayout="row" fxLayoutAlign="center" class="pt-2"> <div fxLayout="row" fxLayoutAlign="center" class="pt-2">
<!-- <p>SINEEDGE Login Details</p> --> <!-- <p>SINEEDGE Login Details</p> -->
<!-- [src]="'http://ssa.sineedge.com/sparqapi/logo/sineedge_red.png'" --> <!-- [src]="'http://ssa.sineedge.com/sparqapi/logo/sineedge_red.png'" -->
<h3 class="page-title"><img src="assets/images/PD.jpeg" style="height: 50px;;"> <span> PD Genie </span> <h3 class="page-title"><img src="assets/images/PD_Genie_TM1.jpg" style="height: 70px;;">
</h3> </h3>
</div> </div>
<div fxLayout="row" fxLayoutAlign="center start" class="pt-2"> <div fxLayout="row" fxLayoutAlign="center start" class="pt-2">

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB