From 513b12797c30c351c117177f6b941614723d290c Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Tue, 18 Jun 2019 20:56:50 +0530 Subject: [PATCH] image component : ps --- ng6-seed/src/app/app.module.ts | 3 + .../list-pd/add-pd/add-pd.component.ts | 5 +- .../list-pd/all-pd/all-pd.component.html | 17 +- .../list-pd/all-pd/all-pd.component.scss | 7 +- .../list-pd/all-pd/all-pd.component.ts | 35 ++-- .../completed-pd/completed-pd.component.html | 11 +- .../completed-pd/completed-pd.component.scss | 3 + .../completed-pd/completed-pd.component.ts | 22 ++- .../edit-pd-master.component.ts | 28 +-- .../inprogress-pd.component.html | 11 +- .../inprogress-pd.component.scss | 3 + .../inprogress-pd/inprogress-pd.component.ts | 45 ++--- .../qc-completed-pd.component.html | 11 +- .../qc-completed-pd.component.scss | 3 + .../qc-completed-pd.component.ts | 34 ++-- .../scheduled-pd/scheduled-pd.component.html | 11 +- .../scheduled-pd/scheduled-pd.component.scss | 3 + .../scheduled-pd/scheduled-pd.component.ts | 23 ++- .../forms/address/address.component.html | 5 +- .../forms/address/address.component.ts | 44 +++++ .../banking-details.component.html | 6 +- .../business-assets-info.component.html | 6 +- .../business-info.component.html | 8 +- .../image-crop/image-crop.component.html | 48 ++++++ .../image-crop/image-crop.component.scss | 25 +++ .../image-crop/image-crop.component.ts | 163 ++++++++++++++++++ .../employment-info.component.html | 6 +- .../financial-info.component.html | 4 +- .../general-info/general-info.component.html | 13 +- .../general-info/general-info.component.ts | 15 +- .../loan-details/loan-details.component.html | 2 +- .../neighbour-hood.component.html | 12 +- .../manage-pd/manage-pd.module.ts | 13 +- .../pd-service/pd-triger.service.ts | 4 + 34 files changed, 518 insertions(+), 131 deletions(-) create mode 100644 ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.html create mode 100644 ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.scss create mode 100644 ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts diff --git a/ng6-seed/src/app/app.module.ts b/ng6-seed/src/app/app.module.ts index 74befe77a..6fd81dd8d 100755 --- a/ng6-seed/src/app/app.module.ts +++ b/ng6-seed/src/app/app.module.ts @@ -45,6 +45,8 @@ import { TokenInterceptor } from './_guard/token.interceptor'; import { NewPasswordDialog, ForgotPass } from './session/login/login.component'; import { AuthGuard } from './_guard/auth.guard'; import { RoleMenuItemsPipe } from './layouts/role-menu-items.pipe'; +import { ResizableModule } from 'angular-resizable-element'; + export function HttpLoaderFactory(http: HttpClient) { return new TranslateHttpLoader(http); } @@ -86,6 +88,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = { DemoMaterialModule, MatFormFieldModule, HttpClientModule, + ResizableModule, TranslateModule.forRoot({ loader: { provide: TranslateLoader, diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts index a2329d432..2529cbd75 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts @@ -203,11 +203,12 @@ export class AddPdComponent implements OnInit, OnDestroy { //get sub product list based on prokduct id getSubproductList(productID: string) { let productabbr : any; + console.log('productID',productID); if(productID !== undefined && productID !== null && productID !== '') { this.subProductList = this.productList.filter(item => item.product_id == productID); this.subProductList = this.subProductList[0].subproducts; this.subProductList = this.subProductList.filter(item => item.is_others == 0); - productabbr = this.productAllList.filter(item => item.product_id == productID)[0].abbr; + productabbr = this.productAllList.filter(item => item.product_id == productID)[0].product_abbr; } else{ @@ -218,7 +219,7 @@ export class AddPdComponent implements OnInit, OnDestroy { this._PDtriggerForm.controls['fk_customer_segment'].setValue(''); this._PDtriggerForm.controls['loan_amount'].setValue(''); } - + console.log('productID',productID,productabbr); /**customer segment */ switch(productabbr){ case 'BL' : 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 a104e0d45..8346f205f 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 @@ -2,8 +2,11 @@ -
- filter_list Filter
+ + filter_list + + Advance Filter +
@@ -20,12 +23,12 @@ - +     - + @@ -68,7 +71,7 @@

- + @@ -138,6 +141,10 @@ + + - { + { this.xpandStatus = false; if(res['dataStatus']==true) { this.dataSourceTab1.data = res['records']; - console.log('res[records]',res['records']); + // console.log('res[records]',res['records']); this.dataSourceTab1.paginator = this.paginator; - }else{ - // this.notifier.notify('warning', 'No Records Found'); - this.dataSourceTab1 = this.tempStore; - console.log('this.tempStore',this.tempStore); - this.dataSourceTab1.paginator = this.paginator; + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab1.data = []; + this.dataSourceTab1.paginator = null; } - }) + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); } onReset(){ this.searchForm.reset(); - this.dataSourceTab1 = this.tempStore; - this.dataSourceTab1.paginator = this.paginator; + this.loadPDDetails(); this.xpandStatus = false; } ngAfterViewInit() { - this.dataSourceTab1.paginator = this.paginator; - this.dataSourceTab1.sort = this.sort; + this.dataSourceTab1.paginator = this.paginator; + this.dataSourceTab1.sort = this.sort; } } 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 1d4e13f38..96b207760 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 @@ -3,7 +3,12 @@ -
filter_list Filter
+ + + filter_list + + Advance Filter +
@@ -20,12 +25,12 @@ --> - +     - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.scss index 614782224..dc8d754f3 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/completed-pd/completed-pd.component.scss @@ -14,3 +14,6 @@ .fontsize{ font-size:14px; } +.toolbar-space { + flex: 0.01 0 auto; +} 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 f8a87b849..33c765f6f 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 @@ -3,6 +3,7 @@ import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { FormGroup, FormBuilder } from '@angular/forms'; import { DatePipe } from '@angular/common'; +import { NotifierService } from 'angular-notifier'; @Component({ selector: 'app-completed-pd', @@ -23,7 +24,7 @@ export class CompletedPdComponent implements OnInit, OnChanges { errorMessage:any[]=[]; tabStatus:string="COMPLETED"; pipe = new DatePipe('en-US'); - + private notifier: NotifierService; public dataLengthTab4: number; public dataSourceTab4 = new MatTableDataSource(); tempStore = new MatTableDataSource(); @@ -47,7 +48,8 @@ export class CompletedPdComponent implements OnInit, OnChanges { pageSize = 10; pageEvent: PageEvent; - constructor(private _pd: PdTrigerService,public _fb:FormBuilder) { + constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) { + this.notifier = notifier; this.searchForm = this._fb.group( { @@ -205,15 +207,19 @@ export class CompletedPdComponent implements OnInit, OnChanges { { this.dataSourceTab4 = res['records']; }else{ - // this.notifier.notify('warning', 'No Records Found'); - this.dataSourceTab4 = this.tempStore; - } - }) + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab4.data = []; + this.dataSourceTab4.paginator = null; + } + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); } onReset(){ this.searchForm.reset(); - this.dataSourceTab4 = this.tempStore; - this.dataSourceTab4.paginator = this.paginator; + this.loadPDDetails(); this.xpandStatus = false; } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts index f526b8790..7af867954 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts @@ -528,7 +528,7 @@ export class EditPdMasterComponent implements OnInit { } } } - return; + let my_array = this._EditPDtriggerForm.value; let concat_landline if(my_array.lender_stdcode != null && my_array.lender_landline != null){ @@ -572,23 +572,23 @@ export class EditPdMasterComponent implements OnInit { "remarks": my_array.remarks, } - this._pd.updatePDAddress(my_array.addresses).subscribe(result => { - if (result.status == 200) { - this.notifier.notify('success', 'Address Updated.'); - } - else { - this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!'); - }//else - }, error => { - // this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!'); - this.notifier.notify('warning', 'Something Wents Wrong in Address Section Try Again.!' + '-' + error.error_text + ' occur'); - }); this.disableAfterSubmit = true; this._pd.editPdMasterDetails(lenderMasterArray, updateStatus).subscribe(result => { if (result.status == 200) { this.disableAfterSubmit = false; - this.notifier.notify('success', 'PD Details Updated.'); - this.dialogRef.close(); + this._pd.updatePDAddress(my_array.addresses).subscribe(result => { + if (result.status == 200) { + this.notifier.notify('success', 'PD Details Updated.'); + this.dialogRef.close(); + } + else { + this.notifier.notify('success', 'PD Details Updated.'); + this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!'); + }//else + }, error => { + // this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!'); + this.notifier.notify('warning', 'Something Wents Wrong in Address Section Try Again.!' + '-' + error.error_text + ' occur'); + }); } else { this.disableAfterSubmit = false; 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 4c66d471d..a127a43a6 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 @@ -2,7 +2,12 @@ -
filter_list Filter
+ + + filter_list + + Advance Filter +
@@ -19,12 +24,12 @@ --> - +     - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.scss index 9e293a473..b500faaa5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/inprogress-pd/inprogress-pd.component.scss @@ -13,4 +13,7 @@ } .fontsize{ font-size:14px; +} +.toolbar-space { + flex: 0.01 0 auto; } \ No newline at end of file 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 7343724f9..c8c5e79f3 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 @@ -3,6 +3,7 @@ import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { FormBuilder, FormGroup } from '@angular/forms'; import { DatePipe } from '@angular/common'; +import { NotifierService } from 'angular-notifier'; @Component({ selector: 'app-inprogress-pd', @@ -21,6 +22,7 @@ export class InprogressPdComponent implements OnInit, OnChanges { errorMessage:any[]=[]; tabStatus:string="INPROGRESS"; pipe = new DatePipe('en-US'); + private notifier: NotifierService; public dataLengthTab2: number; public dataSourceTab2 = new MatTableDataSource(); tempStore = new MatTableDataSource(); @@ -41,7 +43,8 @@ export class InprogressPdComponent implements OnInit, OnChanges { pageSize = 10; pageEvent: PageEvent; searchForm:FormGroup; - constructor(private _pd: PdTrigerService,public _fb:FormBuilder) { + constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService) { + this.notifier = notifier; this.searchForm = this._fb.group( { @@ -83,18 +86,17 @@ export class InprogressPdComponent implements OnInit, OnChanges { this.dataLengthTab2 = data.records.length; this.dataSourceTab2.data = this.progressPdListData; this.tempStore.data = this.progressPdListData; - } - else{ - this.progressPdListData=[]; - this.dataLengthTab2 = null; - this.recordStatus=true; - } - } - // , error => this.errorMessage = error); - ,error => { - this.errorMessage.push(error); - alert(error.html_format); - }); + + }else{ + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab2.data = []; + this.dataSourceTab2.paginator = null; + } + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); } pageChange(e) { console.log(e); @@ -196,17 +198,20 @@ export class InprogressPdComponent implements OnInit, OnChanges { this.dataSourceTab2 = res['records']; this.dataSourceTab2.paginator = this.paginator; }else{ - // this.notifier.notify('warning', 'No Records Found'); - this.dataSourceTab2 = this.tempStore; - this.dataSourceTab2.paginator = this.paginator; - } - }) + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab2.data = []; + this.dataSourceTab2.paginator = null; + } + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); } onReset(){ this.searchForm.reset(); - this.dataSourceTab2 = this.tempStore; - this.dataSourceTab2.paginator = this.paginator; + this.loadPDDetails(); this.xpandStatus = false; } 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 5cae7336a..57af8f024 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 @@ -2,7 +2,12 @@ -
filter_list Filter
+ + + filter_list + + Advance Filter +
@@ -19,12 +24,12 @@ --> - +     - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.scss index 9e293a473..b500faaa5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/qc-completed-pd/qc-completed-pd.component.scss @@ -13,4 +13,7 @@ } .fontsize{ font-size:14px; +} +.toolbar-space { + flex: 0.01 0 auto; } \ No newline at end of file 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 201e2b3ab..048ae469c 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 @@ -3,6 +3,7 @@ import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { FormBuilder, FormGroup } from '@angular/forms'; import { DatePipe } from '@angular/common'; +import { NotifierService } from 'angular-notifier'; @Component({ selector: 'app-qc-completed-pd', @@ -29,6 +30,7 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { tempStore = new MatTableDataSource(); searchForm: FormGroup; displayedColumns = ['PDType', 'Name', 'Lenderid', 'Address', 'Status', 'Action']; + private notifier: NotifierService; @ViewChild(MatPaginator) paginator: MatPaginator; @ViewChild(MatSort) sort: MatSort; @@ -45,7 +47,8 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { pageSize = 10; pageEvent: PageEvent; - constructor(private _pd: PdTrigerService, public _fb: FormBuilder) { + constructor(private _pd: PdTrigerService, public _fb: FormBuilder,notifier: NotifierService,) { + this.notifier = notifier; this.searchForm = this._fb.group( { @@ -81,12 +84,6 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { this.dataSourceTab5.filter = filteredText; } - onReset(){ - this.searchForm.reset(); - this.dataSourceTab5 = this.tempStore; - this.dataSourceTab5.paginator = this.paginator; - this.xpandStatus = false; - } // load inprogress pd list loadPDDetails() { @@ -190,13 +187,22 @@ export class QcCompletedPdComponent implements OnInit, OnChanges { if (res['dataStatus'] == true) { this.dataSourceTab5 = res['records']; this.dataSourceTab5.paginator = this.paginator; - } else { - console.log('else'); - // this.notifier.notify('warning', 'No Records Found'); - this.dataSourceTab5 = this.tempStore; - this.dataSourceTab5.paginator = this.paginator; - } - }) + }else{ + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab5.data = []; + this.dataSourceTab5.paginator = null; + } + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); + } + + onReset(){ + this.searchForm.reset(); + this.loadPDDetails(); + this.xpandStatus = false; } } 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 f2f1eaf02..3bf5cf7cc 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 @@ -2,7 +2,12 @@ -
filter_list Filter
+ + + filter_list + + Advance Filter +
@@ -19,12 +24,12 @@ --> - +     - + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.scss index 9e293a473..b500faaa5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.scss +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/scheduled-pd/scheduled-pd.component.scss @@ -13,4 +13,7 @@ } .fontsize{ font-size:14px; +} +.toolbar-space { + flex: 0.01 0 auto; } \ No newline at end of file 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 71af00bd5..aff7f1ffd 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 @@ -3,6 +3,7 @@ import { PdTrigerService } from './../../../pd-service/pd-triger.service'; import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material'; import { FormBuilder, FormGroup } from '@angular/forms'; import { DatePipe } from '@angular/common'; +import { NotifierService } from 'angular-notifier'; @Component({ selector: 'app-scheduled-pd', @@ -24,6 +25,8 @@ export class ScheduledPdComponent implements OnInit, OnChanges { searchForm:FormGroup; public dataLengthTab3: number; public dataSourceTab3 = new MatTableDataSource(); + private notifier: NotifierService; + tempStore = new MatTableDataSource(); displayedColumns = ['PDType','Name','Lenderid','Address','Status','Action']; @@ -42,7 +45,8 @@ export class ScheduledPdComponent implements OnInit, OnChanges { pageSize = 10; pageEvent: PageEvent; - constructor(private _pd: PdTrigerService,public _fb:FormBuilder) { + constructor(private _pd: PdTrigerService,public _fb:FormBuilder,notifier: NotifierService,) { + this.notifier = notifier; this.searchForm = this._fb.group( { @@ -200,17 +204,20 @@ export class ScheduledPdComponent implements OnInit, OnChanges { this.dataSourceTab3 = res['records']; this.dataSourceTab3.paginator = this.paginator; }else{ - // this.notifier.notify('warning', 'No Records Found'); - this.dataSourceTab3 = this.tempStore; - this.dataSourceTab3.paginator = this.paginator; - } - }) + this.notifier.notify('warning', 'No Records Found !'); + this.dataSourceTab3.data = []; + this.dataSourceTab3.paginator = null; + } + },error => { + this.errorMessage.push(error); + this.notifier.notify('warning', 'Something Went Wrong Try Again.!' + '-' + error.error_text + ' occur'); + alert(error.html_format); + }); } onReset(){ this.searchForm.reset(); - this.dataSourceTab3 = this.tempStore; - this.dataSourceTab3.paginator = this.paginator; + this.loadPDDetails(); this.xpandStatus = false; } diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html index bbc2699b1..d0e84a8a8 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html @@ -190,15 +190,16 @@ - +
-
+
{{doc.document_name}}
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts index cd6f91b26..369820af3 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts @@ -13,6 +13,8 @@ import { PdTrigerService } from '../../../../../pd-service/pd-triger.service'; import { TitleCasePipe } from '@angular/common'; +import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component'; + @Component({ selector: 'app-address', templateUrl: './address.component.html', @@ -83,6 +85,8 @@ export class AddressComponent implements OnInit { private _pd: PdTrigerService, private dialogRef: MatDialogRef, private titlecasePipe:TitleCasePipe, + private dialog: MatDialog, + private imageRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public pd_all_details: any) { // console.log('pd_all_details',pd_all_details); this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id; @@ -566,4 +570,44 @@ export class AddressComponent implements OnInit { } }; + imageCrop(pic){ + // let arr = { 'pic_name':pic_name,'pic':pic,'from_id':this.form_id} + const imageRef = this.dialog.open(ImageCropComponent, { + data: pic, + }); + imageRef.afterClosed() + .subscribe(dataresult => { + console.log(dataresult); + }); + } + + // addMoreIndividuals() { + // const imageRef = this.dialog.open(OtherApplicantDetailsComponent, { + // data: '', + // width: '40%', + // disableClose: true + // }); + // imageRef.afterClosed() + // .subscribe(dataresult => { + // if (dataresult.data.length > 0) { + // dataresult.data.forEach((element, index) => { + + // let individualsControl = this._generalForm.controls['individuals']; + // element.pd_co_applicant_id = this.count; + // this.count = this.count + 1; + // element.individuals_order_id = individualsControl.controls.length + 1; + // element.is_new = true; + // element.is_active = true; + // element.is_main_applicant = false; + // individualsControl.push(this.createIndividulas(element)); + // let relationControl = this._generalForm.controls['persons_with_relationships']; + // let applicant_details: any = { 'pd_co_applicant_id': element.pd_co_applicant_id, 'applicant_name': this.titleCase.transform(element.applicant_name), 'relationship': '', 'relation_to': '', 'individuals_order_id': element.individuals_order_id, 'is_active': element.is_active }; + // relationControl.push(this.createPersonsWithRelationships(applicant_details,individualsControl.controls.length-1)); + // }); + + // } + // }); + + // } + } \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html index 2c725c133..4ec73f682 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/banking-details/banking-details.component.html @@ -171,11 +171,13 @@
- Year + - Month +
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html index ea5fc2794..c57b700f0 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-assets-info/business-assets-info.component.html @@ -45,7 +45,8 @@
- Year + {{yearErrorMessage[i]}} Year Required @@ -53,7 +54,8 @@ Required --> - Month + {{monthErrorMessage[i]}} + + + + + + + + + + + + +
+
+ +
+
+ +
+ + +
+
+
+ Preview - Cropped Image +
+ +
+
+ + + + + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.scss b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.scss new file mode 100644 index 000000000..100933b3a --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.scss @@ -0,0 +1,25 @@ +// flex { +// flex: 1; +// } + +.toolbar { + color: #fff !important; + background-color: #e00201 !important; +} + +.toolbar-icon { + padding: 0 14px; + color: #fff !important; +} + +.empty-spacer { + flex: 1 1 auto; +} + +.empty-little-spacer { + flex: 0.01 0 auto; +} + +.card-container { + text-align: center; +} \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts new file mode 100644 index 000000000..b19a744cc --- /dev/null +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dialogue/image-crop/image-crop.component.ts @@ -0,0 +1,163 @@ +import { Component,ViewChild, OnInit, ViewEncapsulation, OnDestroy, OnChanges, ElementRef, Inject } from '@angular/core'; +import { ActivatedRoute, Router } from '@angular/router'; +import { NotifierService } from 'angular-notifier'; +import { MatPaginator, MatSort, MatTableDataSource, PageEvent, MatTabChangeEvent } from '@angular/material'; +import { MatDialog, MatDialogRef, MAT_DIALOG_DATA , DialogPosition} from '@angular/material'; +import { PdTrigerService} from './../../../../../../pd-service/pd-triger.service'; +import { Observable, Observer } from 'rxjs'; + +import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser'; + + +declare var $: any; + +@Component({ + selector: 'app-image-crop', + templateUrl: './image-crop.component.html', + styleUrls: ['./image-crop.component.scss'] +}) +export class ImageCropComponent implements OnInit, OnDestroy { + + notifier: NotifierService; + base64Image: any; + baseImage: any; + imagePath:any; + cropflag:boolean = false; + + constructor( notifier: NotifierService, + private dialogRef: MatDialogRef, + private sanitizer: DomSanitizer, + private _pd: PdTrigerService,@Inject(MAT_DIALOG_DATA) public data: any) { + this.notifier = notifier; + } + + ngOnInit() { + + // let imageUrl = 'https://www.google.com/photos/about/static/images/google.svg'; + + + // this.imagePath = this.sanitizer.bypassSecurityTrustResourceUrl(this.data.document); + this.imagePath = this.data.document; + + this.getBase64ImageFromURL(this.imagePath).subscribe(base64data => { + + this.base64Image = 'data:image/png;base64,' + base64data; + }); + + this.baseImage = this.base64Image; + // this.baseImage = this.data.document; + } + + getBase64ImageFromURL(url: string) { + return Observable.create((observer: Observer) => { + let img = new Image(); + img.crossOrigin = 'Anonymous'; + img.src = url; + if (!img.complete) { + img.onload = () => { + observer.next(this.getBase64Image(img)); + observer.complete(); + }; + img.onerror = (err) => { + observer.error(err); + }; + } else { + observer.next(this.getBase64Image(img)); + observer.complete(); + } + }); + } + + getBase64Image(img: HTMLImageElement) { + var canvas = document.createElement("canvas"); + canvas.width = img.width; + canvas.height = img.height; + var ctx = canvas.getContext("2d"); + ctx.drawImage(img, 0, 0); + var dataURL = canvas.toDataURL("image/png"); + console.log(dataURL); + return dataURL.replace(/^data:image\/(png|jpg);base64,/, ""); + } + + + //baseImage + Image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMEAAAEFCAMAAABtknO4AAABhlBMVEX////oTD3m5uZMS01PTU8AAADy8vIgICA4OzYPM0egoI7/zMnoSzza29o2Nzb6+vpGRUdBQEIwMDGFhYbIycmxsbLp6enoRzfi4uLv7+/nQzLnRTT0//+bmYnV1dXxTj6oqJjAwMAXFxfJQTTnPiyzs7P98vGzOi+9uq7/0s/mIwvW8/T73tw6OjovLS/ZRzndzMl4d3hZWFrmNCIvMy31sKqWlZb/UDsREREAL0dkZGQAITvX5+b84+HbRznNzcOko6TpXVDraF0AFjTle3H0r6k2Pkrwj4b2u7Z/f3/RursAACSsPTPunZftdmspNjbgpJ4jJyHwlIzEYlnRf3lvbG4AITCmt7fhnJbrYVXoGgDszszeeGuSkourqKAVGxGGhntGNzjNTkMMMzajQjqOPzxsQ0ZcNTNpTU06SVSkTEaARUFMRU7etrHV/P1fZHApMkWSgYc0HTFXOURGOkq9lZXFqqlYb3q71NX7rKZQFRYAFS1kdoGBkJkAAB52O0MqVWNlhJCmctyFAAAgAElEQVR4nNVdi3/a2JVGICAZS0jiISHhEYMtSI0BG5hgm4BXEBzwJDAZd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azdLHSQBWUkIt64h+CcZ2pQm7CDz32We//GWunL3597eFRhy8aSz/AjkAAAAcSURBVCAK3ejPABZIn7oIv4rcKgsvG7itpPH/APV4xrQzYxA1AAAAAElFTkSuQmCC'; + cropper: any; + cropImage: any; + // cropper: Cropper; + + + // after view call all tabs component + ngAfterViewInit() {} + + ngOnDestroy(): void {} + // imageLoaded() { + // this.cropper = new Cropper(this.input.nativeElement, { + // viewMode: 3, + // aspectRatio: 1 / 1, + // dragMode: 'move', + // modal: true, + // guides: false, + // highlight: true, + // background: true, + // autoCrop: true, + // autoCropArea: 0.9, + // responsive: true, + // crop: (e:any) => { + // console.log(e); + // } + // }); + // } + + clickToCrop() + { + let that = this; + that.cropflag = true; + that.cropper = $('.container > img').cropper({ + aspectRatio: 16 / 9, + autoCrop:false, + rotatable: true, + getData:true, + crop:function(data) + { + // data.move(1, -1).rotate(45).scale(1, -1); + that.cropper = data; + + }, + getCroppedCanvas(datas) + { + console.log(datas); + } + }); + console.log(that.cropper); + } + + crop() + { + var cropcanvas = $('.container > img').cropper('getCroppedCanvas'); + var croppng = cropcanvas.toDataURL("image/png") ; + this.cropImage = croppng; + + } + + rotate(flag) + { + switch(flag){ + case 1: + var cropcanvas = $('.container > img').cropper('rotate','-90'); + break; + case 2: + var cropcanvas = $('.container > img').cropper('rotate','90'); + break; + } + this.cropflag = true; + // var croppng = cropcanvas.toDataURL("image/png"); + // this.baseImage = croppng; + } + + closeDialogue(){ + this.dialogRef.close(); + this.cropflag = false; + } + +} diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html index 36a26a6c9..9931f393a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/employment-info/employment-info.component.html @@ -40,13 +40,15 @@
- Year + Higer than business vintage Year Required - Month + Higer than business vintage diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html index c39c32d15..8f50e836b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html @@ -426,8 +426,8 @@ - {{"₹"}} - {{details.get('financial_annual_sale').value | + {{"₹"}} + {{details.get('estimate_net_loss_from').value | numberToWords}} Only diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html index 1bcc6b451..db47f7897 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.html @@ -119,13 +119,15 @@ Number of Years for which rental income is being received - Year + Please Enter Correct Year - Month + @@ -161,13 +163,14 @@

Number of Years For Which The Business Has Been Running

- - Year + Please Enter Correct Year - Month + diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts index 64d8fa5a6..9cffa502e 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/general-info/general-info.component.ts @@ -9,6 +9,7 @@ import { ELEMENT_PROBE_PROVIDERS } from '@angular/platform-browser/src/dom/debug import { DatePipe,TitleCasePipe } from '@angular/common'; import { SearchRelationPipe } from './../../../../../pd-pipes/search-relation.pipe'; import { Options } from 'selenium-webdriver/edge'; +import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component'; // import { ImageCropperComponent } from '../dialogue/image-cropper/image-cropper.component'; @Component({ @@ -64,7 +65,7 @@ export class GeneralInfoComponent implements OnInit { /********************** Declaration Section Ends Here *****************/ /** Constructor Section */ - constructor(notifier: NotifierService, private _fb: FormBuilder, private _pd: PdTrigerService, private dialog: MatDialog, @Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef,private titleCase:TitleCasePipe) { + constructor(notifier: NotifierService, private _fb: FormBuilder, private _pd: PdTrigerService, private dialog: MatDialog, @Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef,private titleCase:TitleCasePipe,private imageRef: MatDialogRef) { this.pdid = this.pd_all_details.pdmaster_details.pd_id; this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id; this.notifier = notifier; @@ -366,6 +367,7 @@ export class GeneralInfoComponent implements OnInit { } createPersonsWithRelationships(elementValue: any,indexVal:number) { + console.log('elementValue.applicant_name',elementValue.applicant_name); return this._fb.group({ pd_co_applicant_id: [elementValue.pd_co_applicant_id], applicant_name: [this.titleCase.transform(elementValue.applicant_name)], @@ -522,6 +524,17 @@ export class GeneralInfoComponent implements OnInit { } // add more individuals details + imageCrop(pic,pic_name){ + let arr = { 'pic_name':pic_name,'pic':pic,'from_id':this.form_id} + const imageRef = this.dialog.open(ImageCropComponent, { + data: arr, + }); + imageRef.afterClosed() + .subscribe(dataresult => { + console.log(dataresult); + }); + } + addMoreIndividuals() { const dialogRef = this.dialog.open(OtherApplicantDetailsComponent, { data: '', diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html index 76e39fa81..d33677e2a 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html @@ -33,7 +33,7 @@ Loan Tenure applied for? - diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html index 2417921e0..2d08f685b 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/neighbour-hood/neighbour-hood.component.html @@ -48,11 +48,13 @@
- Year + - Month +
@@ -161,11 +163,13 @@

Period of Relationship

- Year + - Month + 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 fee4fd573..711f84f04 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 @@ -82,6 +82,8 @@ import { NeighbourHoodComponent } from './list-pd/start-pd/forms/neighbour-hood/ // import ngx-viewer module import { NgxViewerModule } from 'ngx-viewer'; +import { ResizableModule } from 'angular-resizable-element'; + import { FinalRemarksComponent } from './list-pd/start-pd/forms/final-remarks/final-remarks.component'; import { BusinessOtherFamilyMemberComponent } from './list-pd/start-pd/forms/dialogue/business-other-family-member/business-other-family-member.component'; @@ -119,6 +121,7 @@ import { ManageDailyPurchaseComponent } from './list-pd/start-pd/forms/assessed- import { DailyPurchaseDetailsComponent } from './list-pd/start-pd/forms/assessed-income/daily-purchase-details/daily-purchase-details.component'; import { ManageRentalVerificationComponent } from './list-pd/start-pd/forms/rental-verification/manage-rental-verification/manage-rental-verification.component'; import { FuturePlansAndBusinessEnvironmentComponent } from './list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component'; +import { ImageCropComponent } from './list-pd/start-pd/forms/dialogue/image-crop/image-crop.component'; /** * Custom angular notifier options @@ -165,7 +168,7 @@ const pdCustomNotifierOptions: NotifierOptions = { }; @NgModule({ - declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent, 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], + declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent, 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], imports: [ CommonModule, ManagePdRoutingModule, @@ -194,17 +197,17 @@ const pdCustomNotifierOptions: NotifierOptions = { TreeModule, MatDatepickerModule, MatDialogModule,MatSortModule, - NgxMatSelectSearchModule,MatTooltipModule, MatExpansionModule, + NgxMatSelectSearchModule,MatTooltipModule, MatExpansionModule,ResizableModule, AgmCoreModule.forRoot({apiKey: 'AIzaSyCXsHTus6hyIB8jYvt9ZEIbZve-2vWeQRg'}),OwlDateTimeModule, OwlNativeDateTimeModule, ], - exports: [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, 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], + exports: [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, 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], 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: [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, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent,BusinessBankingDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, ManageDailySalesComponent,PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,FuturePlansAndBusinessEnvironmentComponent], + ClientInfoComponent, SupplierInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, GeneralInfoComponent, PdRequirementComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent,BusinessBankingDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, ManageDailySalesComponent,PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,FuturePlansAndBusinessEnvironmentComponent,ImageCropComponent], }) export class ManagePdModule { -} +} \ No newline at end of file diff --git a/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts b/ng6-seed/src/app/personal-discussion/pd-service/pd-triger.service.ts index 942f8b2e4..5c4427b2d 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 @@ -87,6 +87,10 @@ export class PdTrigerService { }); } + getBlobImage(imageUrl: string): Observable { + return this._http.get(imageUrl, { responseType: 'blob' }); + } + /* To get addresses From T_PD_ADDRESS table., * Used In 1) edit pd trigger component * 2) Address Form