diff --git a/ng6-seed/package-lock.json b/ng6-seed/package-lock.json index 18695116f..2e4cd6022 100755 --- a/ng6-seed/package-lock.json +++ b/ng6-seed/package-lock.json @@ -2002,7 +2002,7 @@ }, "sax": { "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=", "dev": true }, @@ -2483,7 +2483,7 @@ }, "buffer": { "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=", "requires": { "base64-js": "^1.0.2", @@ -2618,7 +2618,7 @@ }, "calendar-utils": { "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==" }, "caller-callsite": { @@ -7686,7 +7686,7 @@ }, "lodash": { "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=", "dev": true }, @@ -7874,7 +7874,7 @@ }, "load-json-file": { "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=", "requires": { "graceful-fs": "^4.1.2", @@ -7967,7 +7967,7 @@ }, "log4js": { "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=", "dev": true, "requires": { @@ -8261,7 +8261,7 @@ }, "meow": { "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=", "requires": { "camelcase-keys": "^2.0.0", @@ -8390,7 +8390,7 @@ }, "minimist": { "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=" }, "minipass": { @@ -8479,7 +8479,7 @@ }, "mkdirp": { "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=", "requires": { "minimist": "0.0.8" @@ -8487,7 +8487,7 @@ "dependencies": { "minimist": { "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=" } } @@ -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": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/ngx-viewer/-/ngx-viewer-1.0.5.tgz", @@ -8941,7 +8949,7 @@ "dependencies": { "semver": { "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=" } } @@ -9383,7 +9391,7 @@ "dependencies": { "minimist": { "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=", "dev": true }, @@ -9442,7 +9450,7 @@ }, "os-locale": { "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=", "requires": { "lcid": "^1.0.0" @@ -11956,7 +11964,7 @@ }, "sax": { "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=", "dev": true }, @@ -12870,7 +12878,7 @@ }, "sax": { "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=", "dev": true }, @@ -13407,7 +13415,7 @@ }, "wrap-ansi": { "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=", "requires": { "string-width": "^1.0.1", diff --git a/ng6-seed/package.json b/ng6-seed/package.json index ae9e66556..432f51afb 100755 --- a/ng6-seed/package.json +++ b/ng6-seed/package.json @@ -69,6 +69,7 @@ "ngx-mat-select-search": "^1.8.0", "ngx-perfect-scrollbar": "5.0.0-7", "ngx-socket-io": "^3.0.1", + "ngx-spinner": "^7.2.0", "ngx-viewer": "^1.0.5", "node-sass": "^4.13.0", "perfect-scrollbar": "^1.3.0", diff --git a/ng6-seed/src/app/error/404/error-404-component.html b/ng6-seed/src/app/error/404/error-404-component.html index 16c88e4b1..2f43a2631 100755 --- a/ng6-seed/src/app/error/404/error-404-component.html +++ b/ng6-seed/src/app/error/404/error-404-component.html @@ -2,7 +2,7 @@
-

PD Genie +

PD Genie

diff --git a/ng6-seed/src/app/error/503/error-503-component.html b/ng6-seed/src/app/error/503/error-503-component.html index d7b028024..e56114a2f 100755 --- a/ng6-seed/src/app/error/503/error-503-component.html +++ b/ng6-seed/src/app/error/503/error-503-component.html @@ -2,7 +2,7 @@
-

PD Genie +

PD Genie

diff --git a/ng6-seed/src/app/layouts/admin/admin-layout.component.html b/ng6-seed/src/app/layouts/admin/admin-layout.component.html index a285abdbc..6c35804ad 100755 --- a/ng6-seed/src/app/layouts/admin/admin-layout.component.html +++ b/ng6-seed/src/app/layouts/admin/admin-layout.component.html @@ -8,7 +8,7 @@

{{userDep}}

--> -

{{userDep}} +

{{userDep}}

diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html index 7c3b41059..9fce4cc0c 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html @@ -155,11 +155,15 @@ matTooltip="Send Link Via SMS" matTooltipPosition="above"> sms --> - - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts index 7662949d0..8e8bc6ae3 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.ts @@ -1,9 +1,10 @@ import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; 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 { DatePipe } from '@angular/common'; import { NotifierService } from 'angular-notifier'; +import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component'; @Component({ selector: 'app-all-pd', @@ -48,7 +49,7 @@ export class AllPdComponent implements OnInit, OnChanges { pageEvent: PageEvent; todaydate:Date = new Date(); 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.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); + }); + } } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html index 2b6444a0a..9f3613c18 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.html @@ -134,6 +134,10 @@ + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts index 7374fd052..f645b18df 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.ts @@ -1,9 +1,10 @@ import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; 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 { DatePipe } from '@angular/common'; import { NotifierService } from 'angular-notifier'; +import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component'; @Component({ selector: 'app-completed-pd', @@ -49,7 +50,7 @@ export class CompletedPdComponent implements OnInit, OnChanges { todaydate:Date = new Date(); 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.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); + }); +} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.html new file mode 100755 index 000000000..31e334756 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.html @@ -0,0 +1,28 @@ +
+
+ +
+

{{pageTitle}}

+
+
+ +
+
+
+ + + + Lender Applicant ID. + +
+ +
+ + +
+ +
+

Please Wait...

+
+ \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.scss new file mode 100755 index 000000000..6e263adae --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.scss @@ -0,0 +1,3 @@ +.example-full-width{ + width: 100%; +} \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.ts new file mode 100755 index 000000000..0d9058916 --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/duplicate-pd/duplicate-pd.component.ts @@ -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, + @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(); + } +} diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html index f6ec8a9c2..db445fae7 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.html @@ -127,6 +127,10 @@ sms --> + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts index 249f7ae32..de3548b41 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.ts @@ -1,9 +1,10 @@ import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; 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 { DatePipe } from '@angular/common'; import { NotifierService } from 'angular-notifier'; +import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component'; @Component({ selector: 'app-inprogress-pd', @@ -45,7 +46,7 @@ export class InprogressPdComponent implements OnInit, OnChanges { pageEvent: PageEvent; searchForm:FormGroup; 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.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); + }); +} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html index 80ab93842..041328727 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.html @@ -132,6 +132,10 @@ --> + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts index 673458b6a..509feea53 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.ts @@ -1,9 +1,10 @@ import { Component, ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; 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 { DatePipe } from '@angular/common'; import { NotifierService } from 'angular-notifier'; +import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component'; @Component({ selector: 'app-qc-completed-pd', @@ -47,7 +48,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { pageEvent: PageEvent; 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.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); + }); +} } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html index 85e3f0586..5452d3954 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.html @@ -132,6 +132,10 @@ --> + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts index d08b97e21..4eb325941 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.ts @@ -1,9 +1,10 @@ import { Component,ViewChild, OnInit, ViewEncapsulation, Input, Output, EventEmitter, OnDestroy, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core'; 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 { DatePipe } from '@angular/common'; import { NotifierService } from 'angular-notifier'; +import { DuplicatePdComponent } from '../duplicate-pd/duplicate-pd.component'; @Component({ selector: 'app-scheduled-pd', @@ -46,7 +47,7 @@ export class ScheduledPdComponent implements OnInit, OnChanges { pageEvent: PageEvent; 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.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); + }); +} } 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 fd0a64a8c..e82d22d87 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 @@ -22,6 +22,7 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import {FileUploadModule} from 'ng2-file-upload/ng2-file-upload'; import {TreeModule} from 'angular-tree-component'; import {NgxDatatableModule} from '@swimlane/ngx-datatable'; +import {NgxSpinnerModule} from 'ngx-spinner' import {FlexLayoutModule} from '@angular/flex-layout'; 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 {MapPdViewComponent} from './list-pd/map-pd-view/map-pd-view.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 { VendorPdAllocationComponent } from '../manage-pd/list-pd/vendor-pd-allocation/VendorPdAllocationComponent' import {PdAllocationComponent} from '../manage-pd/list-pd/pd-allocation/pd-allocation.component'; @@ -177,7 +179,7 @@ const pdCustomNotifierOptions: NotifierOptions = { }; @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: [ CommonModule, ManagePdRoutingModule, @@ -198,6 +200,7 @@ const pdCustomNotifierOptions: NotifierOptions = { MatToolbarModule, FlexLayoutModule, NgxDatatableModule, + NgxSpinnerModule, MatChipsModule,MatProgressSpinnerModule, FormsModule,MatSlideToggleModule, MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,MatStepperModule,MatSidenavModule ,MatMenuModule, MatButtonToggleModule, @@ -212,12 +215,12 @@ const pdCustomNotifierOptions: NotifierOptions = { 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'}, {provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]}, {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], }) export class ManagePdModule { 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 1306bda8e..9f4ba477a 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 @@ -295,6 +295,15 @@ export class PdTrigerService { ) } + // duplicate PD + duplicatePD(params): Observable { + params.fk_createdby = this._aws.getlocale();//to get user id for who is created the Record + return this._http.post(this.apiUrl + "duplicatePD", params) + .pipe( + catchError(this.handleError('role', [])) + ) + } + // get Vendor List getVendorList() { return this._http.get(this.apiUrl + 'getListOfvendors') diff --git a/ng6-seed/src/app/session/login/login-component.html b/ng6-seed/src/app/session/login/login-component.html index 2f2332183..3f334010e 100755 --- a/ng6-seed/src/app/session/login/login-component.html +++ b/ng6-seed/src/app/session/login/login-component.html @@ -3,7 +3,7 @@
-

PD Genie +

diff --git a/ng6-seed/src/assets/images/PD_Genie_TM.jpg b/ng6-seed/src/assets/images/PD_Genie_TM.jpg new file mode 100644 index 000000000..a651a3255 Binary files /dev/null and b/ng6-seed/src/assets/images/PD_Genie_TM.jpg differ diff --git a/ng6-seed/src/assets/images/PD_Genie_TM1.jpg b/ng6-seed/src/assets/images/PD_Genie_TM1.jpg new file mode 100644 index 000000000..48d32b274 Binary files /dev/null and b/ng6-seed/src/assets/images/PD_Genie_TM1.jpg differ