Merge branch 'master' of bitbucket.org:sriramv18/sparqsineedge
This commit is contained in:
commit
3488bffdfb
BIN
ng6-seed/Sparqsineedge Web 17-02-22 Test.zip
Normal file
BIN
ng6-seed/Sparqsineedge Web 17-02-22 Test.zip
Normal file
Binary file not shown.
@ -7,4 +7,11 @@ mat-form-field {
|
||||
.mat-select {
|
||||
display: contents !important;
|
||||
}
|
||||
.exist_pd_link{
|
||||
text-decoration: underline;
|
||||
color: red;
|
||||
}
|
||||
.exist_pd_link :hover{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@ -1052,19 +1052,32 @@ checkExistPd(value,option){
|
||||
this._pd.checkExistPDDetails(param).subscribe(result=>{
|
||||
if(result['dataStatus']){
|
||||
if(result['records'].length > 0){
|
||||
|
||||
let exist_pd_sno:string=''
|
||||
let exist_pd:string=''
|
||||
let exist_random=''
|
||||
result['records'].forEach(val=>{
|
||||
console.log(val)
|
||||
console.log('val');
|
||||
if(exist_pd_sno == ''){
|
||||
|
||||
exist_pd_sno=val.pd_sno
|
||||
exist_pd=val.pd_id
|
||||
exist_random=val.random_string
|
||||
}
|
||||
else{
|
||||
|
||||
exist_pd_sno=exist_pd_sno+','+val.pd_sno}
|
||||
})
|
||||
|
||||
// href="https://www.w3schools.com/" target="_blank"
|
||||
Swal({
|
||||
title:"Warning!",
|
||||
type:'warning',
|
||||
text:swal_text+exist_pd_sno
|
||||
text:swal_text+exist_pd_sno,
|
||||
html:
|
||||
|
||||
"<span>"+swal_text+"</span> <a class='exist_pd_link' href='#/personal_discussion/pdlist/viewpd/"+exist_pd+"/"+exist_random+"' target=_blank >"+exist_pd_sno+"</a> "
|
||||
|
||||
})
|
||||
// this._PDtriggerForm.controls['lender_applicant_id'].setValue('');
|
||||
}
|
||||
|
||||
@ -604,7 +604,8 @@ this.filterList()
|
||||
if (records.loan_info_available == 'Yes') {
|
||||
records.loan_details = this.currentLoanForm.controls['loan_details'].value;
|
||||
}
|
||||
else{
|
||||
else if(records.loan_info_available == 'No'){
|
||||
|
||||
records.tot_running_loans=this.currentLoanForm.controls['tot_running_loans'].value
|
||||
records.tot_emi_paid=this.currentLoanForm.controls['tot_emi_paid'].value
|
||||
records.tot_outstanding_loans=this.currentLoanForm.controls['tot_outstanding_loans'].value
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
<p>
|
||||
crop-tools works!
|
||||
</p>
|
||||
|
||||
@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CropToolsComponent } from './crop-tools.component';
|
||||
|
||||
describe('CropToolsComponent', () => {
|
||||
let component: CropToolsComponent;
|
||||
let fixture: ComponentFixture<CropToolsComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ CropToolsComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(CropToolsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,23 @@
|
||||
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 { ImageCroppedEvent } from 'ngx-image-cropper';
|
||||
import { DomSanitizer, SafeResourceUrl, SafeUrl } from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-crop-tools',
|
||||
templateUrl: './crop-tools.component.html',
|
||||
styleUrls: ['./crop-tools.component.scss']
|
||||
})
|
||||
export class CropToolsComponent implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
@ -19,46 +19,69 @@
|
||||
<mat-dialog-content>
|
||||
<div class="card-container">
|
||||
<span *ngIf="isBase64Image; else loader">
|
||||
<div class="container">
|
||||
<!--<div class="container">
|
||||
<img [src]="transform()">
|
||||
</div>
|
||||
</div>-->
|
||||
<div fxLayout="row wrap" class="mt-1">
|
||||
<div fxFlex="40">
|
||||
<div class="container" fxFlex="20">
|
||||
<img [src]="transform()">
|
||||
</div>
|
||||
<div fxFlex="20">
|
||||
<mat-form-field style="width: 95%">
|
||||
<input matInput [(ngModel)]="document_title" autocomplete="off" placeholder="Enter Name" type="text">
|
||||
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<div fxFlex="20" style="text-align: left !important;">
|
||||
<button *ngIf="previewflag" mat-button mat-raised-button mat-icon-button (click)="onSubmit()" class="mr-1 mb-1 hover-icon" matTooltip="Save1" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||
<button *ngIf="previewflag" mat-button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
|
||||
<div *ngIf="!previewflag">
|
||||
<button mat-raised-button mat-icon-button (click)="onSubmit()" class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||
<button *ngIf="cropflag" mat-button mat-raised-button mat-icon-button (click)="crop()" class="mr-1 mb-1 hover-icon" matTooltip="Preview Image" matTooltipPosition="above"><mat-icon>image</mat-icon></button>
|
||||
<button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div *ngIf="previewflag">
|
||||
<span>Preview - Cropped Image </span>
|
||||
<img [src]="cropImage">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div fxFlex="20" style="text-align: left !important;">
|
||||
<span *ngIf="doc_data.is_show_report !== null">
|
||||
<mat-checkbox color="primary" [checked]='doc_data.is_show_report == "1" ? true : false'
|
||||
(change)="isshownreportforaddress($event.checked)"> Is shown report ?
|
||||
</mat-checkbox>
|
||||
</span>
|
||||
</div>
|
||||
<div fxFlex="30" style="text-align: left !important;">
|
||||
</div>
|
||||
<!--<div fxFlex="20">
|
||||
<div *ngIf="!previewflag">
|
||||
<button mat-raised-button mat-icon-button (click)="onSubmit()" class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||
<button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
</div>
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="text-align:center" *ngIf="cropflag">
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="crop()" class="mr-1 mb-1 hover-icon" matTooltip="Preview Image" matTooltipPosition="above"><mat-icon>image</mat-icon></button>
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
|
||||
<div style="text-align:center" *ngIf="cropflag">
|
||||
<!--<button mat-button mat-raised-button mat-icon-button (click)="crop()" class="mr-1 mb-1 hover-icon" matTooltip="Preview Image" matTooltipPosition="above"><mat-icon>image</mat-icon></button>
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>-->
|
||||
<br/>
|
||||
<div *ngIf="previewflag">
|
||||
<span>Preview - Cropped Image </span>
|
||||
<div *ngIf="previewflag">
|
||||
|
||||
<!-- <span>Preview - Cropped Image </span>
|
||||
<br/>
|
||||
<img [src]="cropImage">
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="onSubmit()" class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
|
||||
<img [src]="cropImage"> -->
|
||||
|
||||
|
||||
<!-- <button mat-button mat-raised-button mat-icon-button (click)="onSubmit()" class="mr-1 mb-1 hover-icon" matTooltip="Save1" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||
<button mat-button mat-raised-button mat-icon-button (click)="closeDialogue()" class="mr-1 mb-1 hover-icon" matTooltip="Cancel" matTooltipPosition="above"><mat-icon>close</mat-icon></button> -->
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ng-template #loader>
|
||||
|
||||
@ -22,4 +22,16 @@
|
||||
|
||||
.card-container {
|
||||
text-align: center;
|
||||
}
|
||||
.img-container {
|
||||
width: 640px;
|
||||
height: 480px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.img-preview {
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
float: left;
|
||||
margin-left: 10px;
|
||||
}
|
||||
@ -78,10 +78,12 @@ export class ImageCropComponent implements OnInit, OnDestroy {
|
||||
|
||||
clickToCrop()
|
||||
{
|
||||
|
||||
let that = this;
|
||||
that.cropflag = true;
|
||||
that.cropper = $('.container > img').cropper({
|
||||
aspectRatio: 16 / 9,
|
||||
//aspectRatio: 1,
|
||||
|
||||
autoCrop:false,
|
||||
rotatable: true,
|
||||
getData:true,
|
||||
@ -100,6 +102,7 @@ export class ImageCropComponent implements OnInit, OnDestroy {
|
||||
|
||||
crop()
|
||||
{
|
||||
|
||||
var cropcanvas = $('.container > img').cropper('getCroppedCanvas');
|
||||
var croppng = cropcanvas.toDataURL("image/png") ;
|
||||
this.previewflag = true;
|
||||
|
||||
@ -3,6 +3,7 @@ import { PdTrigerService } from 'app/personal-discussion/pd-service/pd-triger.se
|
||||
import { NotifierService } from 'angular-notifier';
|
||||
import { ImageCropComponent } from '../dialogue/image-crop/image-crop.component';
|
||||
import { MatDialog } from '@angular/material';
|
||||
import { CropToolsComponent } from '../dialogue/crop-tools/crop-tools.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-image-docs',
|
||||
@ -92,13 +93,15 @@ export class ImageDocsComponent implements OnInit {
|
||||
},err=>{console.log(err)})
|
||||
}
|
||||
imageCrop(pic) {
|
||||
|
||||
// let arr = { 'pic_name':pic_name,'pic':pic,'from_id':this.form_id}
|
||||
pic.pdid = this.pdid;
|
||||
const imageRef = this.dialog.open(ImageCropComponent, {
|
||||
// const imageRef = this.dialog.open(CropToolsComponent, {
|
||||
data: pic,
|
||||
maxWidth: '100vw',
|
||||
maxHeight: '100vh',
|
||||
height: '100%',
|
||||
height: '200%',
|
||||
width: '100%',
|
||||
});
|
||||
imageRef.afterClosed()
|
||||
|
||||
@ -225,6 +225,7 @@
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 4 || userRoleID == 5 || userRoleID == 10"><button *ngIf="roleAccessDetails.schedule && addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && master.pd_status!=pdStatusCheck.ADD_ON_PENDING && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master,addresses)"><mat-icon>schedule</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 4 || userRoleID == 5 || userRoleID == 10"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.ALLOCATED_TO_FIA && master.pd_status!=pdStatusCheck.CANCELLED && enableStartPD" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(addresses,master.pd_status)"><mat-icon>question_answer</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 4 || userRoleID == 5 || userRoleID == 10"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.ALLOCATED_TO_FIA && master.pd_status!=pdStatusCheck.CANCELLED && enableStartPD" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion v2.0" matTooltipPosition="above" (click)="getPDStart2(addresses,master.pd_status)"><mat-icon>textsms</mat-icon></button></span>
|
||||
<!--<span *ngIf="userRoleID == 2 || userRoleID == 3 || userRoleID == 4 || userRoleID == 5 || userRoleID == 10"><button *ngIf="roleAccessDetails.discussions && addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.ALLOCATED_TO_FIA && master.pd_status!=pdStatusCheck.CANCELLED && enableStartPD" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion v2.0" matTooltipPosition="above" (click)="getPDStart2(addresses,master.pd_status)"><mat-icon>question_answer</mat-icon></button></span>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -162,6 +162,7 @@ import {
|
||||
|
||||
MatTreeModule,
|
||||
} from '@angular/material';
|
||||
import { CropToolsComponent } from './list-pd/start-pd/forms/dialogue/crop-tools/crop-tools.component';
|
||||
/**
|
||||
* Custom angular notifier options
|
||||
*/
|
||||
@ -207,7 +208,7 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
||||
};
|
||||
|
||||
@NgModule({
|
||||
declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent,VendorPdAllocationComponent, DuplicatePdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent,PdCollectedDocsComponent, GeneralInfoComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent, SearchRelationPipe, RupeeCurrencyFormatPipe, NumberToWordsPipe, DeleteRecordsCountPipe, BusinessAssetsInfoComponent, BusinessBankingDetailsComponent, SalesDetailsComponent, DailySalesDetailsComponent, SalesCalculationComponent, ManageSalesComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, PdLocatedMapViewDirective, ViewLocationComponent, GetAnswerableFormsPipe, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent ,ManageDailyPurchaseComponent, DailyPurchaseDetailsComponent, ManageRentalVerificationComponent, FuturePlansAndBusinessEnvironmentComponent, ImageCropComponent,PurchaseCalculationComponent,QueriesDocsComponent, ImageDocsComponent,CustomTitleCaseDirective, SpeedDialFabComponent,VideoPlayerComponent,
|
||||
declarations: [TelePdAllocationComponent, FinancialInfoComponent, BusinessInfoComponent, EmploymentInfoComponent, StockComponent, BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent,VendorPdAllocationComponent, DuplicatePdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent, LenderRepresentativeComponent, PdReportComponent, AssessedIncomeComponent, AllocationViewMoreComponent, PdRequirementComponent,PdCollectedDocsComponent, GeneralInfoComponent, ModelEditPdReportComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, DialogChangeCurrentVenrsion, FinalRemarksComponent, BusinessOtherFamilyMemberComponent, QcReviewComponent, BusinessInfoGroupComponent, SearchRelationPipe, RupeeCurrencyFormatPipe, NumberToWordsPipe, DeleteRecordsCountPipe, BusinessAssetsInfoComponent, BusinessBankingDetailsComponent, SalesDetailsComponent, DailySalesDetailsComponent, SalesCalculationComponent, ManageSalesComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, PdLocatedMapViewDirective, ViewLocationComponent, GetAnswerableFormsPipe, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent ,ManageDailyPurchaseComponent, DailyPurchaseDetailsComponent, ManageRentalVerificationComponent, FuturePlansAndBusinessEnvironmentComponent, ImageCropComponent,CropToolsComponent,PurchaseCalculationComponent,QueriesDocsComponent, ImageDocsComponent,CustomTitleCaseDirective, SpeedDialFabComponent,VideoPlayerComponent,
|
||||
DynamicFormComponent,DynamicQuestionTemplateComponent, ImagesAllComponent,AnswerOptionCreateDialogComponent,FormComponent,FormGroupComponent],
|
||||
imports: [
|
||||
CommonModule,
|
||||
@ -259,13 +260,13 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
||||
MatVideoModule
|
||||
|
||||
],
|
||||
exports: [DuplicatePdComponent,VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,PurchaseCalculationComponent],
|
||||
exports: [DuplicatePdComponent,VendorPdAllocationComponent,PdLocatedMapViewDirective, PdAllocationComponent, SmartPdAllocationComponent, TelePdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent,StartPd2Component, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, CurrentLoanComponent, LoanDetailsComponent, OtherIncomeComponent, AssetsInfoComponent, AddressComponent, FamilyDetailsComponent, BankingDetailsComponent, StockComponent, EmploymentInfoComponent, BusinessInfoComponent, FinancialInfoComponent, LenderRepresentativeComponent, AssessedIncomeComponent, AllocationViewMoreComponent, GeneralInfoComponent, PdRequirementComponent,PdCollectedDocsComponent, OtherApplicantDetailsComponent, NeighbourHoodComponent, BusinessOtherFamilyMemberComponent, BusinessInfoGroupComponent,DailySalesDetailsComponent, SalesCalculationComponent, PurchaseDetailsComponent, BusinessExpenseDetailsComponent, HouseHoldDetailsComponent, OtherBusinessIncomeDetailsComponent, ManageSalesComponent, ManagePurchaseComponent, ManageBusinesExpenseComponent, ManageHouseHoldComponent, ManageOtherBusinessIncomeComponent, GrossProfitCalculationComponent, ManageDailySalesComponent, PdStatusChangeDialogueComponent, ViewLocationComponent, ConfirmAiDetailsComponent, RentalVerificationComponent, InitiateAdditionalPdComponent, DailyPurchaseDetailsComponent, ManageDailyPurchaseComponent,ManageRentalVerificationComponent,ImageCropComponent,CropToolsComponent,PurchaseCalculationComponent],
|
||||
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,QuesFormService],
|
||||
|
||||
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,CropToolsComponent,QueriesDocsComponent,
|
||||
DynamicFormComponent,DynamicQuestionTemplateComponent,VideoPlayerComponent,ImageDocsComponent,ImagesAllComponent,FormComponent,FormGroupComponent],
|
||||
})
|
||||
export class ManagePdModule {
|
||||
|
||||
@ -176,6 +176,7 @@
|
||||
<!-- <button *ngIf="currentPDStatus==pdStatusCheck.DRAFT" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Trigger" matTooltipPosition="above" (click)="directTriggerPD(mandatoryFieldsValidations,master)"><mat-icon>flash_on</mat-icon></button> -->
|
||||
|
||||
<span *ngIf="userRoleID != 4 || userRoleID != 8 || userRoleID != 9"><button *ngIf="master.pd_type_name && currentPDStatus==pdStatusCheck.COMPLETED || currentPDStatus==pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PD Report" matTooltipPosition="above" (click)="getPDIDReport(viewID)"><mat-icon>ballot</mat-icon></button></span>
|
||||
<span *ngIf="userRoleID != 4 || userRoleID != 8 || userRoleID != 9"><button *ngIf="master.pd_type_name && currentPDStatus==pdStatusCheck.COMPLETED || currentPDStatus==pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Optimize Image" matTooltipPosition="above" (click)="OptimizeImage(viewID)"><mat-icon>monochrome_photos</mat-icon></button></span>
|
||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="above" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
||||
|
||||
</div>
|
||||
|
||||
@ -367,6 +367,22 @@ export class QcViewComponent implements OnInit, OnDestroy {
|
||||
this.destroyType=3;
|
||||
this.router.navigate([ '../../../pd_report',pdID,this.reportRandomString], { relativeTo: this.route });
|
||||
}
|
||||
OptimizeImage(pdID:any)
|
||||
{
|
||||
|
||||
this._qc.optimizeImages(pdID).subscribe(result=>{
|
||||
console.log('result');
|
||||
console.log(result);
|
||||
if(result['dataStatus']) {
|
||||
this.notifier.notify("success","Image Optimized Successfully")
|
||||
}
|
||||
else{
|
||||
this.notifier.notify("warning","Something went wrong")
|
||||
}
|
||||
},err=>{
|
||||
this.notifier.notify("error","Network Error")
|
||||
})
|
||||
}
|
||||
openCusImages() {
|
||||
const dialogRef = this.dialog.open(QcCusImagesComponent, {
|
||||
data: this.pdMasterData[0],
|
||||
|
||||
@ -646,7 +646,11 @@ export class QcService {
|
||||
// let headers = this.createAuthorizationHeader()
|
||||
return this._http.post(this.apiUrl+'getPDImgDetails',params);
|
||||
}
|
||||
|
||||
optimizeImages(pdid):Observable<any> {
|
||||
|
||||
// let headers = this.createAuthorizationHeader()
|
||||
return this._http.get(this.apiUrl+'optimizeImages/'+pdid);
|
||||
}
|
||||
auditSmartPDImages(params):Observable<any> {
|
||||
return this._http.post(this.apiUrl+'auditSmartPDImages',params);
|
||||
}
|
||||
|
||||
@ -112,6 +112,12 @@
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<span *ngIf="row.applicant_name" mat-line>{{row.applicant_name}}</span> </td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="lender_applicant_id" sticky>
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Lender Applicant ID </th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<span *ngIf="row.lender_applicant_id" mat-line>{{row.lender_applicant_id}}</span> </td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="credit_pd_type" sticky>
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Credit PD Type</th>
|
||||
@ -138,6 +144,12 @@
|
||||
<span *ngIf="row.pd_status" mat-line>{{row.pd_status}}</span> </td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="vendor_status">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Vendor Status</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
<span *ngIf="row.vendor_status" mat-line>{{row.vendor_status}}</span> </td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="createdon">
|
||||
<th mat-header-cell *matHeaderCellDef mat-sort-header>Date</th>
|
||||
<td mat-cell *matCellDef="let row">
|
||||
|
||||
@ -38,13 +38,15 @@ export class SmcCreditComponent implements OnInit {
|
||||
pageIndex:number=0
|
||||
|
||||
displayedColumns = ['serialno',
|
||||
// 'credit_pd_id',
|
||||
// 'credit_pd_id',
|
||||
'credit_pd_sno',
|
||||
'applicant_name',
|
||||
'lender_applicant_id',
|
||||
'credit_pd_type',
|
||||
'product_abbr',
|
||||
'officer_name',
|
||||
'status',
|
||||
'vendor_status',
|
||||
'createdon'
|
||||
//'remarks'
|
||||
//'add'
|
||||
@ -169,10 +171,12 @@ export class SmcCreditComponent implements OnInit {
|
||||
return {
|
||||
'Reference Number':val.pd_sno,
|
||||
'Main Loan Applicant':val.applicant_name,
|
||||
'Lender Applicant ID':val.lender_applicant_id,
|
||||
'Credit PD Type':val.type_name,
|
||||
'Product Type':val.abbr,
|
||||
'Credit Person':val.officer_name,
|
||||
'Status':val.pd_status,
|
||||
'Vendor Status':val.vendor_status,
|
||||
'Date':val.updatedon
|
||||
//'Remarks':val.mis_report_remarks
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user