addon pd changes

This commit is contained in:
gandhimathi 2019-04-10 18:55:55 +05:30
parent ba1c249b06
commit 27c3f1b4b4
42 changed files with 793 additions and 361 deletions

View File

@ -0,0 +1,29 @@
<form [formGroup]="additionalPDForm" novalidate>
<h2 mat-dialog-title class="paragraph_change">
<div fxFlex="70" align="left" style="padding: 10px !important;">
{{pageTitle}}
</div>
<div fxFlex="30" align="end" style="padding: 10px !important;">
<button mat-raised-button mat-icon-button mat-dialog-close class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="above"><mat-icon>close</mat-icon></button>
</div>
</h2>
<mat-dialog-content>
<mat-form-field style="width:80%" appearance="outline">
<mat-label>Customer Segment</mat-label>
<mat-select placeholder="" formControlName="fk_customer_segment" required>
<mat-option *ngFor="let segment of customerSegmentList" [value]="segment.customer_segment_id">
{{segment.abbr}}
</mat-option>
</mat-select>
</mat-form-field>
</mat-dialog-content>
<mat-dialog-actions>
<div fxFlex="80" align="left">
<p style="color: #e00201">Note : Do Carefully , After Save Can't be Change</p>
</div>
<div fxFlex="20" align="end">
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Save" matTooltipPosition="above" (click)="submitDetails(additionalPDForm.value)"><mat-icon>save</mat-icon></button>
</div>
</mat-dialog-actions>
<notifier-container></notifier-container>

View File

@ -0,0 +1,7 @@
.paragraph_change {
color: #fff !important;
background-color: #e00201 !important;
}
mat-form-field {
margin: 0 2%;
}

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InitiateAdditionalPdComponent } from './initiate-additional-pd.component';
describe('InitiateAdditionalPdComponent', () => {
let component: InitiateAdditionalPdComponent;
let fixture: ComponentFixture<InitiateAdditionalPdComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ InitiateAdditionalPdComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(InitiateAdditionalPdComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,80 @@
import { Component, OnInit, Inject } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
import { MatDialog, MatDialogRef, MAT_DIALOG_DATA , DialogPosition} from '@angular/material';
import { PdTrigerService } from './../../../pd-service/pd-triger.service';
import { NotifierService } from 'angular-notifier';
@Component({
selector: 'app-initiate-additional-pd',
templateUrl: './initiate-additional-pd.component.html',
styleUrls: ['./initiate-additional-pd.component.scss']
})
export class InitiateAdditionalPdComponent implements OnInit {
pageTitle: string;
private notifier: NotifierService;
additionalPDForm:FormGroup;
customerSegmentList: any=[];
constructor(notifier: NotifierService,private _fb: FormBuilder, private _pd: PdTrigerService, @Inject(MAT_DIALOG_DATA) public data: any, private dialogRef: MatDialogRef<InitiateAdditionalPdComponent>) {
this.notifier = notifier;
this.pageTitle="Initiate Address for PD Process"
}
ngOnInit() {
this.initForm();
this._pd.getCustomersDetails().subscribe(
data => {
if (data.status == 200) {
this.customerSegmentList = data.records
}
});
this.data.type===false ? this.additionalPDForm.controls['fk_customer_segment'].disable():this.additionalPDForm.controls['fk_customer_segment'].enable();
}
initForm(){
return this.additionalPDForm = this._fb.group({
pd_id:[this.data.type===false ? this.data.pd_id : ''],
parent_pd_id: [this.data.type===true ? this.data.pd_id : ''],
fk_customer_segment: [this.data.type===false ? this.data.fk_customer_segment :'',Validators.required],
fk_address_id:[this.data.pd_address_id,Validators.required],
pd_status:[this.data.pd_status,Validators.required],
});
}
// save details
submitDetails(values: any) {
if (this.additionalPDForm.invalid) {
this.validateAllFormFields(this.additionalPDForm);
this.notifier.notify('warning',"Please Check All Manatory Fields..");
return;
}
let update_details: any;
if(this.data.type){
update_details= {"pd_id":values.pd_id,"parent_pd_id":values.parent_pd_id,"fk_customer_segment":values.fk_customer_segment , "fk_address_id":values.fk_address_id,"pd_status":"TRIGGERED"};
}
else{
update_details={"pd_id":values.pd_id,"parent_pd_id":values.parent_pd_id,"fk_customer_segment":values.fk_customer_segment , "fk_primary_address_id":values.fk_address_id};
}
this._pd.initiateAddressPdProcess(update_details).subscribe(data => {
this.notifier.notify('success', 'Saved Successfully.');
setTimeout(() =>{
this.dialogRef.close({update_status:true});
},3000);
}, error => {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
});
}
// validate all form group and form array fields
validateAllFormFields(formGroup: any) {
Object.keys(formGroup.controls).forEach(field => {
const control = formGroup.get(field);
if (control instanceof FormControl) {
control.markAsTouched({ onlySelf: true });
} else if (control instanceof FormGroup) {
this.validateAllFormFields(control);
} else if (control instanceof FormArray) {
this.validateAllFormFields(control);
}
});
}
}

View File

@ -16,12 +16,12 @@
}
.mat-ink-bar{
background-color:red;
background-color:#e00201;
}
.mat-tab-label-active{
color: red !important;
color: #e00201 !important;
}
.mat-fab.mat-accent{
color:red !important;
color:#e00201 !important;
background-color: #fff !important;
}

View File

@ -7,6 +7,7 @@
</div>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-raised-button color="primary" (click)="changePDStatus()"><strong>Yes</strong></button>
<button *ngIf="enableAddonPD===true" mat-raised-button color="primary" (click)="changePDStatus(addonStatus)"><strong> Yes / Allow Addon PD</strong></button>
<button mat-raised-button color="primary" (click)="changePDStatus(this.data.pd_status)"><strong>Yes</strong></button>
<button mat-raised-button mat-dialog-close><strong>No</strong></button>
</mat-dialog-actions>

View File

@ -14,24 +14,36 @@ export class PdStatusChangeDialogueComponent implements OnInit {
private notifier: NotifierService;
dialoge_title_content: string;
dialoge_content: string;
enableAddonPD : boolean;
addonStatus: string ="ADD_ON_PENDING";
constructor(notifier: NotifierService , private pd: PdTrigerService,private dialogRef: MatDialogRef<PdStatusChangeDialogueComponent>,@Inject(MAT_DIALOG_DATA) public data: any)
{
this.notifier = notifier;
this.dialoge_title_content = this.data.pd_status=='INPROGRESS' ? 'Start Discussion' : this.data.pd_status=='COMPLETED' ? 'Complete Discussion' : 'Change Discussion';
this.dialoge_content =this.data.pd_status=='INPROGRESS' ? 'Are you starting the Discussion ?' : this.data.pd_status=='COMPLETED' ? 'Please confirm you are completing the Discussion and forwarding for Quality Check ?' : 'Change Discussion';
this.enableAddonPD = false;
}
ngOnInit() {
if(this.data.pd_status=='COMPLETED'){
let params: any={};
params.pd_id = this.data.pdid;
this.pd.getPDCompleteDetails(params).subscribe(result => {
if (result.dataStatus === true) {
this.enableAddonPD = result.records.address_count>0 ? true: false;
}
});
}
}
changePDStatus(): void {
changePDStatus(status: string): void {
let update_status = {
"pd_id":this.data.pdid,
};
this.pd.editPdMasterDetails(update_status, this.data.pd_status).subscribe(result => {
this.pd.editPdMasterDetails(update_status, status).subscribe(result => {
if (result.status == 200) {
this.dialogRef.close({update_status:true});
this.notifier.notify('success', this.data.pd_status=='INPROGRESS' ? 'Discussions Started Successfully' : this.data.pd_status=='COMPLETED' ? 'Discussions Completed Successfully ?' : 'Discussions Updated Successfully');
this.notifier.notify('success', this.data.pd_status=='INPROGRESS' ? 'Discussions Started Successfully' : this.data.pd_status=='COMPLETED' ? 'Discussions Completed Successfully' : 'Discussions Updated Successfully');
}
else {
this.dialogRef.close({update_status:false});

View File

@ -31,6 +31,7 @@ export class AddressComponent implements OnInit {
disableAfterSubmit: boolean = false;
/**Declaration of FormField Variables */
//@Input() pdid: number;
parent_pdid: string;
pdid: number;
form_id: number;
// pdAddress: string;
@ -80,6 +81,7 @@ export class AddressComponent implements OnInit {
private dialogRef: MatDialogRef<AddressComponent>,
@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;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 5;
@ -107,6 +109,7 @@ export class AddressComponent implements OnInit {
this.getMasterDetails('STATE', 6);
let params: any = {};
params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
@ -215,9 +218,7 @@ export class AddressComponent implements OnInit {
this._pd.getAddressesDetails(this.pdid).subscribe(
data => {
if (data.status == 200) {
this.addressesList = data.records.filter(item => item.isactive == 1);
// console.log('this.addressesList',this.addressesList);
this.addressesList = data.records.filter(item => item.assigned_pd==this.pdid && item.isactive == 1);
if (this.addressesList.length > 0) {
this.addressesList.forEach((val, index) => {
let obj = {
@ -474,6 +475,7 @@ export class AddressComponent implements OnInit {
// this.addressForm.controls.uom_others.value : '';
records.pdid = this.pdid;
records.parent_pdid= this.parent_pdid;
records.formid = '5';
// records.fk_createdby = '250';

View File

@ -24,6 +24,7 @@ export class AssessedIncomeComponent implements OnInit {
pageTitle: string ="Assessed Income Details";
// @Input() pdid: number;
// @Input() form_id: number;
parent_pdid: number;
pdid: number;
form_id: number;
company_id: number;
@ -55,6 +56,7 @@ public getCustomValues:any = { UOMList: this.UOMList,frequencyList: this.frequen
private router: Router,
private _pd: PdTrigerService, private dialog: MatDialog,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef<AssessedIncomeComponent>,) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.company_id = this.pd_all_details.company_id;
this.notifier = notifier;
@ -97,6 +99,7 @@ public viewerOptions: any = {
loadAIDetails(): void{
this.salesMonthWiseExpandedItems=[]
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;

View File

@ -35,6 +35,7 @@ export class AssetsInfoComponent implements OnInit {
main_applicant: any;
pageTitle: string = "Other Assets Details";
//@Input() pdid: number;
parent_pdid: string;
pdid: string;
//businessProfessionName :string;
@ -72,6 +73,7 @@ export class AssetsInfoComponent implements OnInit {
private pdTrigerService: PdTrigerService,
private dialogRef: MatDialogRef<AssetsInfoComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.applicants = this.pd_all_details.pdapplicants_detials;
this.applicants = this.applicants.filter(val => val.applicant_type == 0 || val.applicant_type == 1)
@ -239,7 +241,11 @@ export class AssetsInfoComponent implements OnInit {
apiLoadFinish: boolean = false;
getPdSupplierFormDetails() {
this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '4').subscribe(
let params: any = {};
params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '4';
this.pdTrigerService.getPDFormDetailsWithID(params).subscribe(
data => {
if (data) {
if (data.dataStatus) {
@ -259,6 +265,7 @@ export class AssetsInfoComponent implements OnInit {
if (val !== null) {
let value = val;
this._assetsQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['4'],
assets_details: this._formBuilder.array([
@ -271,6 +278,7 @@ export class AssetsInfoComponent implements OnInit {
// this.addBusinessAssetsDetailsWithData(value.business_assets_details);
} else {
this._assetsQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['4'],
assets_details: this._formBuilder.array([

View File

@ -32,6 +32,7 @@ export class BankingDetailsComponent implements OnInit {
subproduct_abbr: any;
lender_applicant_id: any;
main_applicant: any;
parent_pdid: number;
pdid: number;
pageTitle: string = "Banking Details of Individuals";
public bankingForm: FormGroup;
@ -54,6 +55,7 @@ export class BankingDetailsComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<BankingDetailsComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.pd_cus_segment = this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
this.pd_cus_segment = this.pd_cus_segment.substring(0, 3);
@ -134,6 +136,7 @@ export class BankingDetailsComponent implements OnInit {
// this.applicants = this.pd_all_details.pdapplicants_detials;
let params: any = {};
params.parent_pdid=this.parent_pdid
params.pd_id = this.pdid;
params.pd_form_id = '7';
this._pd.retriveForm(params).subscribe(data => {
@ -249,6 +252,7 @@ export class BankingDetailsComponent implements OnInit {
bankSubmit() {
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = '7';
records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;

View File

@ -26,6 +26,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
pageTitle: string = "Assets used for Business";
/**Declaration of Form Fields Variables */
parent_pdid: string;
pdid: string;
company_id: any;
placeholderName: any = [];
@ -70,6 +71,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
private pdTrigerService: PdTrigerService,
private dialogRef: MatDialogRef<BusinessAssetsInfoComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.applicants = this.pd_all_details.pdapplicants_detials;
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
@ -176,7 +178,11 @@ console.clear();
//Get Data Based on PDID and FORMID
apiLoadFinish: boolean = false;
getPdSupplierFormDetails() {
this.pdTrigerService.getPDFormDetailsWithCompanyID(this.pdid, '22', this.company_id).subscribe(
let reqparams: any = {};
reqparams.parent_pdid = this.parent_pdid;
reqparams.pd_id = this.pdid;
reqparams.pd_form_id = '22';
this.pdTrigerService.retriveForm(reqparams).subscribe(
data => {
if (data) {
@ -196,6 +202,7 @@ console.clear();
loadaddresses() {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '5';
@ -218,7 +225,6 @@ console.clear();
// console.log('cityArr',this.cityArr);
// console.log('pinArr',this.pinArr);
// console.log('flag',flag);
console.log('this.m_state_for_address',this.m_state_for_address);
let selectedAddressType = this.m_address_type.filter(element => element.address_type_id == dataValue.address_type)[0];
let selectedState = this.m_state_for_address.filter(element => element.state_id == dataValue.state)[0];
let selectedCity = this.cityArr.filter(element => element.city_id == dataValue.city)[0];
@ -227,7 +233,6 @@ console.clear();
// console.log(selectedPincode);
// console.log(selectedCity[0].city_name);
// console.log(selectedPincode[0].pincode);
console.log('selectedState',selectedState);
let addressType = dataValue.address_type != 1 ? selectedAddressType.address_type : dataValue.address_type_others;
let address = dataValue.address + ' , ' + selectedCity.city_name + ','+selectedState.name +'-' + (dataValue.pincode == 1 ? dataValue.pincode_others : selectedPincode.pincode);
@ -285,6 +290,7 @@ console.clear();
if (val !== null) {
let value = val;
this._businessAssetsQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['22'],
company_id: [this.company_id],
@ -305,6 +311,7 @@ console.clear();
this.addBusinessAssetsDetailsWithData(value.business_assets_details);
} else {
this._businessAssetsQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['22'],
company_id: [this.company_id],

View File

@ -33,7 +33,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
subproduct_abbr: any;
lender_applicant_id: any;
main_applicant: any;
parent_pdid: number;
pdid: number;
pageTitle: string = "Banking Information";
public bankingForm: FormGroup;
@ -61,6 +61,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<BusinessBankingDetailsComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.pd_cus_segment = this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
this.pd_cus_segment = this.pd_cus_segment.substring(0, 3);
@ -129,6 +130,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
this.salaryField = this.pd_cus_segment.substring(0, 2) == 'SE' ? false : true;
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '21';
params.company_id = this.company_id;
@ -231,6 +233,7 @@ export class BusinessBankingDetailsComponent implements OnInit {
bankSubmit() {
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = '21';
records.company_id = this.company_id; records.banking_form_remark = this.bankingForm.controls.banking_form_remark.value;

View File

@ -35,6 +35,7 @@ export class BusinessInfoComponent implements OnInit {
lender_applicant_id: any;
main_applicant: any;
pipe = new DatePipe('en-US');
parent_pdid: number;
pdid: number;
company_id: String;
company_name: String;
@ -96,6 +97,7 @@ export class BusinessInfoComponent implements OnInit {
private _pd: PdTrigerService,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialog: MatDialog, private dialogRef: MatDialogRef<BusinessInfoComponent>) {
//this.adapter.setLocale('fr');
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.company_id = this.pd_all_details.company_id;
this.company_name = this.pd_all_details.company_name;
@ -149,6 +151,7 @@ export class BusinessInfoComponent implements OnInit {
// const Partnr = <FormArray>this.businessForm.controls['partners'];
// const otherDoc = <FormArray>this.businessForm.controls['documents'];
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;
@ -619,6 +622,7 @@ export class BusinessInfoComponent implements OnInit {
}
public initBusinessForm(): void {
this.businessForm = this.fb.group({
parent_pdid: this.parent_pdid,
pdid: this.pdid,
formid: this.form_id,
company_id: this.company_id,

View File

@ -37,6 +37,7 @@ export class ClientInfoComponent implements OnInit {
pageTitle: string = "Client Details";
//@Input() pdid: number;
parent_pdid: string;
pdid: string;
form_id: number;
company_id: string;
@ -81,6 +82,7 @@ export class ClientInfoComponent implements OnInit {
private _formBuilder: FormBuilder,
private pdTrigerService: PdTrigerService,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef<ClientInfoComponent>) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 2;
this.company_id = this.pd_all_details.company_id;
@ -182,6 +184,7 @@ export class ClientInfoComponent implements OnInit {
// retaildTradingForm: Boolean = false;
initFormLoadDetails(record) {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;
@ -192,6 +195,7 @@ export class ClientInfoComponent implements OnInit {
// console.log(dataForm);
if (dataForm !== undefined) {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['2'],
company_id: [this.company_id],
@ -263,6 +267,7 @@ export class ClientInfoComponent implements OnInit {
this.noRecordsFound = true;
} else {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['2'],
company_id: [this.company_id],
@ -299,6 +304,7 @@ export class ClientInfoComponent implements OnInit {
}
} else {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['2'],
company_id: [this.company_id],

View File

@ -24,6 +24,7 @@ export class CurrentLoanComponent implements OnInit {
public currentLoanForm: FormGroup;
private notifier: NotifierService;
pageTitle: string = "Existing Loan Obligations";
parent_pdid : number;
pdid: number;
form_id: number;
applicant_details: any;
@ -47,6 +48,7 @@ export class CurrentLoanComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<CurrentLoanComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 8;
this.notifier = notifier;
@ -77,7 +79,6 @@ export class CurrentLoanComponent implements OnInit {
}
};
ngOnInit() {
console.clear();
this.getMasterDetails('BTLENDERLIST', 1);
this.getMasterDetails('FREQUENCY', 2);
this.getMasterDetails('EXISTINGLOANTYPES', 3);
@ -111,6 +112,7 @@ export class CurrentLoanComponent implements OnInit {
})
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
@ -502,6 +504,7 @@ export class CurrentLoanComponent implements OnInit {
return;
}
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = this.form_id;
records.fk_createdby = this.pdid;

View File

@ -35,6 +35,7 @@ export class EmploymentInfoComponent implements OnInit {
main_applicant: any;
pageTitle: string = "Employement Information";
parent_pdid: number;
pdid: number;
form_id: number;
//pd_all_details:any;
@ -60,6 +61,7 @@ export class EmploymentInfoComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<EmploymentInfoComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 12;
this.notifier = notifier;
@ -90,15 +92,15 @@ export class EmploymentInfoComponent implements OnInit {
}
};
ngOnInit() {
console.clear();
this.pd_cus_segment = this.pd_all_details.pdmaster_details.customer_segment_abbr.toUpperCase();
this.initemploymentForm();
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
let param: any = {};
param.parent_pdid = this.parent_pdid;
param.pd_id = this.pdid;
param.pd_form_id = '18';
this._pd.retriveForm(param).subscribe(data => {
@ -336,6 +338,7 @@ export class EmploymentInfoComponent implements OnInit {
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = this.form_id;
records.fk_createdby = this.pdid;

View File

@ -33,6 +33,7 @@ export class FamilyDetailsComponent implements OnInit {
public familyForm: FormGroup;
public selectPerson;
public apiFamilyMembers: any = [];
parent_pdid: string;
pdid: string;
form_id: number;
count: number;
@ -64,6 +65,7 @@ export class FamilyDetailsComponent implements OnInit {
this.form_id = 6;
this.notifier = notifier;
this.selectPerson = this.pd_all_details.pdapplicants_detials;
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
@ -131,6 +133,7 @@ export class FamilyDetailsComponent implements OnInit {
this.initFamilyFormDetails();
let params: any = {};
params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '6';
@ -639,7 +642,7 @@ export class FamilyDetailsComponent implements OnInit {
var records = this.familyForm.value;
//To Remove The "Null" With Key also
Object.keys(records).forEach((key) => (records[key] == null) && delete records[key]);
records.parent_pdid=this.parent_pdid;
records.pdid = this.pdid;
records.formid = '6';

View File

@ -38,6 +38,7 @@ export class FinalRemarksComponent implements OnInit {
pageTitle: string = "Final Remarks Details";
//@Input() pdid: number;
parent_pdid: string;
pdid: string;
form_id: number;
@ -54,6 +55,7 @@ export class FinalRemarksComponent implements OnInit {
private pdTrigerService: PdTrigerService,
private dialogRef: MatDialogRef<FinalRemarksComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 20;
this.notifier = notifier;
@ -62,6 +64,7 @@ export class FinalRemarksComponent implements OnInit {
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this._finalRemarkForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['20'],
final_custormer_remark_type: [],
@ -150,7 +153,11 @@ export class FinalRemarksComponent implements OnInit {
noRecordsFound: Boolean = false;
ngOnInit() {
this.pdTrigerService.getPDFormDetailsWithID(this.pdid, '20').subscribe(data => {
let params: any = {};
params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '20';
this.pdTrigerService.getPDFormDetailsWithID(params).subscribe(data => {
if (data.dataStatus) {
// console.log('data',data);
// console.log('data',data.records);

View File

@ -36,6 +36,7 @@ export class FinancialInfoComponent implements OnInit {
main_applicant: any;
//Common Declaration
pageTitle: string ="Financial Information";
parent_pdid: string;
pdid: string;
form_id: number;
company_id: string;
@ -83,6 +84,7 @@ export class FinancialInfoComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<FinancialInfoComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 14;
this.company_id =this.pd_all_details.company_id;
@ -123,6 +125,7 @@ export class FinancialInfoComponent implements OnInit {
this.initstockForm();
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;
@ -186,6 +189,7 @@ export class FinancialInfoComponent implements OnInit {
}
else
{retriveData.estimated_value = [];}
retriveData.parent_pdid = this.parent_pdid;
retriveData.pdid = this.pdid;
retriveData.formid = this.form_id;
retriveData.company_id = this.company_id;
@ -201,6 +205,7 @@ export class FinancialInfoComponent implements OnInit {
/** financial Form Controls */
public initstockForm(): void {
this.financialForm = this.fb.group({
parent_pdid: this.parent_pdid,
pdid: this.pdid,
formid: this.form_id,
company_id: this.company_id,

View File

@ -180,7 +180,7 @@
<!-- companies end -->
<!-- Person Relationship Starts Here -->
<mat-card *ngIf="_generalForm.controls.persons_with_relationships['controls'].length>1">
<mat-card *ngIf="_generalForm.controls.persons_with_relationships['controls'].length>0">
<mat-card-header>
<mat-card-title> Relationship Between Individuals </mat-card-title>
</mat-card-header>

View File

@ -28,7 +28,8 @@ export class GeneralInfoComponent implements OnInit {
/* Declaration for Common Variables */
pipe = new DatePipe('en-US');
parent_pdid: string;
pdid: string;
form_id: number;
count: number = 1;
@ -65,6 +66,7 @@ export class GeneralInfoComponent implements OnInit {
/** 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<GeneralInfoComponent>) {
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;
this.form_id = 18;
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
@ -78,8 +80,8 @@ export class GeneralInfoComponent implements OnInit {
/** ng Oninit Section */
ngOnInit() {
let get_max_date = this.pd_all_details.pdmaster_details.pd_date_of_initiation.split('/').reverse().join("/");
this.maxDate = new Date(get_max_date);
let get_max_date = this.pd_all_details.pdmaster_details.pd_date_of_initiation ? this.pd_all_details.pdmaster_details.pd_date_of_initiation.split('/').reverse().join("/") : '';
this.maxDate = get_max_date ? new Date(get_max_date) : new Date();
this.initFormDetails();
this.getMasterDetails('RELATIONSHIPS', 1);
this.getMasterDetails('COMPANYRELATIONSHIPS', 2);
@ -118,6 +120,7 @@ export class GeneralInfoComponent implements OnInit {
/** init form */
initFormDetails() {
this._generalForm = this._fb.group({
parent_pdid: this.parent_pdid,
pdid: this.pdid,
formid: this.form_id,
//applicant_relation: this._fb.array([]),
@ -167,6 +170,7 @@ export class GeneralInfoComponent implements OnInit {
let params: any = {};
params.pd_id = this.pdid;
params.pd_form_id = '18';
params.parent_pdid = this.parent_pdid;
let individualsControl = <FormArray>this._generalForm.controls['individuals'];
let companyControl = this._generalForm.get('companies') as FormArray;
//let relationControl = <FormArray>this._generalForm.controls['applicant_relation'];
@ -203,20 +207,16 @@ export class GeneralInfoComponent implements OnInit {
exist_personsWithRelationships = Object.keys(data.records.persons_with_relationships).map(function (key) {
return data.records.persons_with_relationships[key];
});
if (exist_personsWithRelationships.length > 0) {
exist_personsWithRelationships.forEach(element => {
//individualsControl.push(this.createIndividulas(element))
personsWithRelationshipsControl.push(this.createPersonsWithRelationships(element));
});
}
exist_companyWithRelationships = Object.keys(data.records.company_with_relationships).map(function (key) {
return data.records.company_with_relationships[key];
});
if (this.customer_segment_abbr != 'SE-RI') {
exist_companyWithRelationships = Object.keys(data.records.company_with_relationships).map(function (key) {
return data.records.company_with_relationships[key];
});
if (exist_companyWithRelationships.length > 0) {
exist_companyWithRelationships.forEach(element => {
//individualsControl.push(this.createIndividulas(element))
@ -653,6 +653,7 @@ export class GeneralInfoComponent implements OnInit {
}
this.disableAfterSubmit = true;
let saveRecords: any = {}
saveRecords.parent_pdid = formData.parent_pdid;
saveRecords.pdid = formData.pdid;
saveRecords.formid = formData.formid;
saveRecords.individuals = formData.individuals;

View File

@ -28,6 +28,7 @@ export class LenderRepresentativeComponent implements OnInit {
public representativeForm: FormGroup;
private notifier: NotifierService;
pageTitle: string = "Lender Representative Details";
parent_pdid: string;
pdid: number;
form_id: number;
disableAfterSubmit: boolean = false;
@ -42,6 +43,7 @@ export class LenderRepresentativeComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef<LenderRepresentativeComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
@ -88,6 +90,7 @@ export class LenderRepresentativeComponent implements OnInit {
// this.message.lender_applicant_id = this.lender_applicant_id;
this.initRepresentative();
let params: any = {};
params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(value => {
@ -147,6 +150,7 @@ export class LenderRepresentativeComponent implements OnInit {
}
this.disableAfterSubmit = true;
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = this.form_id;
records.fk_createdby = this.pdid;

View File

@ -37,6 +37,7 @@ export class LoanDetailsComponent implements OnInit {
private notifier: NotifierService;
public loanDetailsForm: FormGroup;
parent_pdid: number;
pdid: number;
form_id: number;
exist_loan_amt: any;
@ -94,6 +95,7 @@ export class LoanDetailsComponent implements OnInit {
this.exist_loan_amt = this.pd_all_details.pdmaster_details.loan_amount != '' ? this.pd_all_details.pdmaster_details.loan_amount : '';
// this.loanAmtInWords = this._pd.convertNumberToWords(this.exist_loan_amt);
this.form_id = 10;
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.notifier = notifier;
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
@ -146,6 +148,7 @@ export class LoanDetailsComponent implements OnInit {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(value => {
@ -653,6 +656,7 @@ export class LoanDetailsComponent implements OnInit {
}
this.disableAfterSubmit = true;
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = this.form_id;
records.fk_createdby = this.pdid;

View File

@ -20,6 +20,7 @@ export class NeighbourHoodComponent implements OnInit {
isDisplay:any = [];
isDisplay2:any = [];
public _neighbourhoodForm: FormGroup;
parent_pdid: string;
pdid : string;
form_id:number;
private notifier: NotifierService;
@ -42,6 +43,7 @@ export class NeighbourHoodComponent implements OnInit {
// isOtherApplicant: any = [];
constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<NeighbourHoodComponent>) {
this.parent_pdid = this.data.pdmaster_details.parent_pd_id;
this.pdid = this.data.pdmaster_details.pd_id;
this.notifier = notifier;
this.form_id = 19;
@ -108,6 +110,7 @@ export class NeighbourHoodComponent implements OnInit {
// init form details
initFormDetails() {
this._neighbourhoodForm = this._fb.group({
parent_pdid: this.parent_pdid,
pdid:this.pdid,
formid:this.form_id,
// check_type:0,
@ -126,6 +129,7 @@ export class NeighbourHoodComponent implements OnInit {
// load form data
loadFormData(){
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = '19';
let referencecheckControl = <FormArray>this._neighbourhoodForm.controls['referencecheck_list'];
@ -385,6 +389,7 @@ export class NeighbourHoodComponent implements OnInit {
// }
// saveRecords.check_type=formData.check_type;
saveRecords.parent_pdid=formData.parent_pdid;
saveRecords.pdid=formData.pdid;
saveRecords.formid=formData.formid;
saveRecords.neighbourhood_status = formData.neighbourhood_status!='' ? formData.neighbourhood_status : '';

View File

@ -43,6 +43,7 @@ export class OtherIncomeComponent implements OnInit {
// @Input() pdid: number;
// @Input() form_id: number;
parent_pdid: string;
pdid: string;
form_id: number;
@ -66,6 +67,7 @@ export class OtherIncomeComponent implements OnInit {
private dialog: MatDialog,
private dialogRef: MatDialogRef<OtherIncomeComponent>,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 9;
this.notifier = notifier;
@ -134,6 +136,7 @@ export class OtherIncomeComponent implements OnInit {
});
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(value => {
@ -240,6 +243,7 @@ export class OtherIncomeComponent implements OnInit {
return;
}
let records: any = {};
records.parent_pdid = this.parent_pdid;
records.pdid = this.pdid;
records.formid = this.form_id;
records.fk_createdby = this.pdid;

View File

@ -107,7 +107,11 @@ public viewerOptions: any = {
// load form pd details
loadPDDetails(){
this._pd.getPDFormDetailsWithID(this.pdid,this.form_id).subscribe(
let params: any = {};
//params.parent_pdid=this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.getPDFormDetailsWithID(params).subscribe(
data => {
const mainValue = <FormArray>this._personalForm.controls['main_applicant_details'];
const coValue = <FormArray>this._personalForm.controls['co_applicant_details'];

View File

@ -20,6 +20,7 @@ export class RentalVerificationComponent implements OnInit {
main_applicant: any;
pageTitle: string = "Rental Information";
public _neighbourhoodForm: FormGroup;
parent_pdid: string;
pdid : string;
form_id:number;
private notifier: NotifierService;
@ -61,6 +62,7 @@ export class RentalVerificationComponent implements OnInit {
}
};
constructor(notifier: NotifierService, private _pd: PdTrigerService ,private _fb: FormBuilder, @Inject(MAT_DIALOG_DATA) public data: any,private dialogRef: MatDialogRef<RentalVerificationComponent>) {
this.parent_pdid = this.data.pdmaster_details.parent_pd_id;
this.pdid = this.data.pdmaster_details.pd_id;
this.notifier = notifier;
this.form_id = 17;
@ -197,6 +199,7 @@ export class RentalVerificationComponent implements OnInit {
initRentalForm() {
return this._rentalForm = this._fb.group({
parent_pdid: this.parent_pdid,
pdid: this.pdid,
formid: this.form_id,
address_property:['',Validators.required],
@ -263,6 +266,7 @@ getMasterDetails(table: string, type: number) {
// load form data
loadFormData(){
let params: any = {};
params.parent_pdid =this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(data => {

View File

@ -36,7 +36,7 @@ export class StockComponent implements OnInit {
subproduct_abbr: any;
lender_applicant_id: any;
main_applicant: any;
parent_pdid: number;
pdid: number;
form_id: number;
company_id: string;
@ -59,6 +59,7 @@ export class StockComponent implements OnInit {
private dialogRef: MatDialogRef<StockComponent>,
private _pd: PdTrigerService, @Inject(MAT_DIALOG_DATA)
public pd_all_details: any) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 11;
this.company_id = this.pd_all_details.company_id;
@ -138,6 +139,7 @@ export class StockComponent implements OnInit {
console.log(rm_api);
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;
@ -147,6 +149,7 @@ export class StockComponent implements OnInit {
console.log(value.records);
if (dataForm !== undefined) {
this.stockForms = this.fb.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: [this.form_id],
company_id: [this.company_id],
@ -198,6 +201,7 @@ export class StockComponent implements OnInit {
this.stockForms = this.fb.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: [this.form_id],
company_id: [this.company_id],
@ -247,6 +251,7 @@ export class StockComponent implements OnInit {
}
else {
this.stockForms = this.fb.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: [this.form_id],
company_id: [this.company_id],

View File

@ -25,6 +25,7 @@ export class SupplierInfoComponent implements OnInit {
pageTitle: string = "Supplier Details";
//@Input() pdid: number;
parent_pdid: string;
pdid: string;
form_id: number;
@ -45,6 +46,7 @@ export class SupplierInfoComponent implements OnInit {
private _formBuilder: FormBuilder,
private pdTrigerService: PdTrigerService,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any, private dialogRef: MatDialogRef<SupplierInfoComponent>) {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 1;
this.company_id = this.pd_all_details.company_id
@ -146,6 +148,7 @@ export class SupplierInfoComponent implements OnInit {
serviceProviderForm: Boolean = false;
initFormLoadDetails(record) {
let params: any = {};
params.parent_pdid = this.parent_pdid;
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
params.company_id = this.company_id;
@ -156,6 +159,7 @@ export class SupplierInfoComponent implements OnInit {
let dataForm = data.records;
if (dataForm !== undefined) {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['1'],
company_id: [this.company_id],
@ -200,6 +204,7 @@ export class SupplierInfoComponent implements OnInit {
this.noRecordsFound = true;
} else {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['1'],
company_id: [this.company_id],
@ -226,6 +231,7 @@ export class SupplierInfoComponent implements OnInit {
}
} else {
this._supplierQuesFrom = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
pdid: [this.pdid],
formid: ['1'],
company_id: [this.company_id],

View File

@ -30,7 +30,7 @@
</div>
</mat-card-content>
<mat-card-actions align="end">
<button matTooltip="Complete Question" matTooltipPosition="above" [disabled]="actualQuestions==0 || actualQuestions!=answeredQuestions || currentPDStatus===false" mat-raised-button color="primary" (click)="pdStatusDialogue(pdStatusCheck.COMPLETED);"><span>{{currentPDStatus === true ? 'COMPLETE':'COMPLETED' }}</span></button>
<button matTooltip="Complete Question" matTooltipPosition="above" [disabled]="actualQuestions==0 || actualQuestions!=answeredQuestions || currentPDStatus===false" mat-raised-button color="primary" (click)="pdStatusDialogue(pdStatusCheck.COMPLETED,2);"><span>{{currentPDStatus === true ? 'COMPLETE':'COMPLETED' }}</span></button>
</mat-card-actions>
</mat-card>
<notifier-container></notifier-container>

View File

@ -108,7 +108,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
this.pdMasterList=data.records.pdmaster_details;
// this.categoryList=data.records.question_answers;
let filterApplicantName= data.records.pdapplicants_detials.filter(item => item.applicant_type == 1);
this.mainApplicantName = filterApplicantName[0].applicant_name;
this.mainApplicantName = filterApplicantName.length > 0 ? filterApplicantName[0].applicant_name : '';
this.currentPDStatus = data.records.pdmaster_details.pd_status=='INPROGRESS' ? true : data.records.pdmaster_details.pd_status=='SCHEDULED' ? true :data.records.pdmaster_details.pd_status=='ALLOCATED' ? true : false;
this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
@ -117,7 +117,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
this.answeredQuestions = getAnsweredFormsCount.length;
this.pdFullDetails = data.records;
if(type==1 && (data.records.pdmaster_details.pd_status=='SCHEDULED' || data.records.pdmaster_details.pd_status=='ALLOCATED')) {
this.pdStatusDialogue(this.pdStatusCheck.INPROGRESS)
this.pdStatusDialogue(this.pdStatusCheck.INPROGRESS,1)
}
}
else{
@ -132,7 +132,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
}
// load pd status change dialogue
pdStatusDialogue(status: string): void {
pdStatusDialogue(status: string, checkType: number): void {
const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, {
data: { pdid: this.startPD, pd_status: status },
disableClose: true,
@ -142,10 +142,10 @@ export class StartPdComponent implements OnInit, OnDestroy {
dialogRef.afterClosed()
.subscribe(dataresult => {
if(dataresult.update_status==true){
this.loadTemplates(this.startPD,2);
checkType==2 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2);
}
else {
this.router.navigate(['../../viewpd', this.startPD], {relativeTo: this.route});
checkType==1 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2);
}
@ -489,7 +489,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
}
// load pd view component
loadPdViewCompoent() {
this.router.navigate(['../../viewpd', this.startPD], {relativeTo: this.route});
this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route});
}
}

View File

@ -1,167 +1,191 @@
<mat-card>
<mat-card-content>
<mat-card class="p-2 mb-2" style="height: auto !important;">
<!-- height: 370px !important; -->
<div fxLayout="row" fxLayoutWrap="wrap" class="mb-3">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="30" fxFlex.xl="30" class="profile-center" style="text-align:center;">
<!--<div class="mb-1">
<img src="assets/images/userpic.jpg" width="100" height="100" alt="" class="radius-circle">
</div>-->
<mat-card style="padding: 15px;height: 290px;width: 280px;box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;">
<div *ngFor="let master of pdMasterData" class="ml-xs mr-xs">
<h4 class="ma-0">{{master.lender_short_name}}</h4>
<small>{{master.branch_name}}</small>
<div *ngIf="master.lender_applicant_id">
<small> {{master.lender_applicant_id}}</small> <br>
<small>{{master.pd_date_of_initiation}}</small><br>
<br>
<button mat-raised-button color="primary" style="cursor: not-allowed !important;">
<span *ngIf="master.pd_status==pdStatusCheck.SCHEDULED" style="text-align:left">{{master.pd_status | titlecase}}</span>
<span *ngIf="master.pd_status!=pdStatusCheck.SCHEDULED && master.pd_status!=pdStatusCheck.QC_COMPLETED " style="text-align:left">{{master.pd_status | titlecase}}</span>
<span *ngIf="master.pd_status==pdStatusCheck.QC_COMPLETED " style="text-align:left">QC Completed</span>
</button>&nbsp;&nbsp;
<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>
<!-- <button *ngIf="currentPDStatus==pdStatusCheck.DRAFT && mandatoryFieldsValidations.length==0" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Trigger" matTooltipPosition="above" (click)="directTriggerPD(mandatoryFieldsValidations,master.pd_id)"><mat-icon>flash_on</mat-icon></button> -->
<br>
<small *ngIf="master.pd_allocated_to && master.fk_pd_type==1" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.pd_allocated_to | titlecase}}</small>
<small *ngIf="master.executive_name && master.centralofficer && master.fk_pd_type==2" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.executive_name | titlecase}}/{{master.centralofficer | titlecase}}</small>
<small *ngIf="master.centralofficer && master.fk_pd_type==3" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.centralofficer | titlecase}}</small> <br>
<small *ngIf="master.pd_status==pdStatusCheck.SCHEDULED">{{master.scheduled_on}}</small>
</div>
</div>
</mat-card>
<!--< <h4>John Doe</h4>
<span>johndoe@johndoe.com</span>
p class="mt-xs mb-xs">Sr. Manager</p>
<a href="javascript:;" class="block mt-xs mb-xs">www.example.com</a>
<button mat-raised-button color="primary">Edit Profile</button>-->
</div>
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="70" fxFlex.xl="70" class="content-data">
<figure>
<mat-card-content style="padding:0px !important;">
<div fxLayout="row" class="ml-xs mr-xs">
<div fxFlex="100" style="text-align: right;">
<span *ngFor="let master of pdMasterData">
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.COMPLETED && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && currentPDStatus!=pdStatusCheck.DRAFT && enableStartPD" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(viewID,master.pd_status)"><mat-icon>question_answer</mat-icon></button>
<button *ngIf="master.pd_type_name && 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>
<!-- {{master | json}} -->
</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>
</div>
</mat-card-content>
<hr>
<mat-card-content>
<div *ngFor="let master of pdMasterData">
<div fxLayout="row" fxLayoutWrap="wrap" class="mb-3">
<div fxFlex="60">
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.product_name"> {{master.product_name}}<span *ngIf="master.subproduct_name"> / {{master.subproduct_name}} </span></span>
</div>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-rupee" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.loan_amount"> {{master.loan_amount}}</span>
</div>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-check-circle" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.pd_type_name"> {{master.pd_type_name}}</span>
</div>
</div>
</div>
<!-- <div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10" appPdLocatedMapView [value]="master">
<span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.state_name" class="hover-icon"> {{master.addressline1}},<br> {{master.city_name}},<br>{{master.state_name}}-{{master.pincode_id == 1 ? master.other_pincode : master.pincode }} </span>
</div>
</div>
</div> -->
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div *ngFor="let addresses of master.addresses">
<div fxFlex="10" appPdLocatedMapView [value]="addresses">
<!-- <span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span> -->
<span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<!-- <span *ngIf="addresses.state_name" class="hover-icon"> {{addresses.addressline}},<br> {{addresses.city_name}},<br>{{addresses.state_name}}-{{addresses.pincode == 1 ? addresses.other_pincode : addresses.pincode_display }} </span> -->
<span *ngIf="addresses.state_name" class="hover-icon"> {{addresses.addressline1}},<br> {{addresses.city_name}},<br>{{addresses.state_name}}-{{addresses.pincode_id == 1 ? addresses.other_pincode : addresses.pincode }} </span>
</div>
</div>
</div>
</div>
<!--<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>&nbsp; {{master.addressline1}}</span>
</div>
</div>-->
</div>
<div fxFlex="40">
<div *ngIf="master.pd_contact_person || master.pd_contact_mobileno" style="background-color:#e3dbdb;padding:9px;">
<h4 class="ma-0" style="font-size:13px;padding-bottom:5px;color:red;"><span>Lender Contact Details</span></h4>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span *ngIf="master.pd_contact_person"> <i class="fa-1x fa fa-user" style="padding: 8px 13px 8px 13px;border-bottom: 2px solid red;"></i>&nbsp; {{master.pd_contact_person}}</span>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span *ngIf="master.pd_contact_mobileno"> <i class="fa-1x fa fa-phone" style="padding: 8px 13px 8px 13px;border-bottom: 2px solid red;"></i>&nbsp; {{master.pd_contact_mobileno}}</span>
</div>
</div>
</div>
<br>
<div fxLayout="row" *ngIf="master.remarks" style="background-color:#e3dbdb;padding:15px;">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<h4 class="ma-0" style="font-size:13px;padding-bottom:5px;color:red;"><span> Remarks </span></h4>
<div fxLayout="row wrap">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="40" fxFlex.lg="30" fxFlex.xl="30" *ngFor="let master of pdMasterData">
<mat-card style="margin: 15px;min-width: 80%;max-width: 100%;box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;">
<mat-card-content style="background-color: whitesmoke;">
<mat-list role="list">
<mat-list-item class="center" role="listitem">
<strong>{{master.lender_short_name}}</strong>
</mat-list-item>
<mat-list-item class="center" role="listitem">
{{master.branch_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.lender_applicant_id">
{{master.lender_applicant_id}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.lender_applicant_id">
{{master.pd_date_of_initiation}}
</mat-list-item>
<span>{{master.remarks}}</span>
</div>
</div>
<div fxLayout="row" class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)"><mat-icon>edit</mat-icon></button>
</div>
</div>
</div>
</div>
<mat-list-item role="listitem" class="center" *ngIf="master.product_name">
{{master.product_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.subproduct_name">
{{master.subproduct_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.loan_amount">
<i class="fa-1x fa fa-rupee"></i><small style="margin-left: 2%; font-size: inherit">{{master.loan_amount}}</small>
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.pd_type_name">
<i class="fa-1x fa fa-check-circle"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_type_name}}</small>
</mat-list-item>
</mat-list>
</mat-card-content>
<mat-card-actions align="center">
<button mat-raised-button class="mr-1 mb-1" color="primary" style="cursor: not-allowed !important;">
<strong> {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}</strong>
</button>
<button *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)" matTooltipPosition="above" matTooltip="Edit PD Master"><mat-icon>edit</mat-icon></button>
<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>
</mat-card-actions>
</mat-card>
</div>
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70" class="content-data" *ngFor="let master of pdMasterData">
<div fxLayout="row">
<div fxFlex="100" align="right">
<button *ngIf="master.pd_type_name && 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>
<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>
</div>
</mat-card-content>
</figure>
</div>
</div>
</mat-card>
<mat-card class="p-2">
<!-- <hr/> -->
<div fxLayout="row wrap">
<div fxFlex="50" *ngFor="let addresses of master.addresses;">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important" *ngIf="addresses.pincode">
<mat-card-content>
<div fxLayout="row nowrap">
<div fxFlex="10" appPdLocatedMapView [value]="addresses">
<!-- <span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span> -->
<span><i class="fa-1x fa fa-map-marker"></i></span>
</div>
<div fxFlex="90">
<!-- <span *ngIf="addresses.state_name" class="hover-icon"> {{addresses.addressline}},<br> {{addresses.city_name}},<br>{{addresses.state_name}}-{{addresses.pincode == 1 ? addresses.other_pincode : addresses.pincode_display }} </span> -->
<span *ngIf="addresses.state_name" class="hover-icon"> {{addresses.addressline1}},<br> {{addresses.city_name}},<br>{{addresses.state_name}}-{{addresses.pincode_id == 1 ? addresses.other_pincode : addresses.pincode }} </span>
</div>
</div>
</mat-card-content>
<!-- <mat-divider></mat-divider> -->
<!-- this is for set primary address of the PD actions-->
<div [ngSwitch]="addresses.is_primary">
<div *ngSwitchCase="1">
<mat-card-actions>
<!-- <div fxFlex="50" align="left">
<div fxFlex="100" style="color: #e00201">
{{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}
</div>
</div> -->
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
{{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.pd_status | titlecase}}
</div>
<div fxFlex="60" align="right">
<button *ngIf="addresses.assigned_pd==null || addresses.assigned_pd==''" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
<button *ngIf="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="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master,addresses)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="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>
<button *ngIf="addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && 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>
</div>
</div>
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
<div *ngIf="master.pd_allocated_to && master.fk_pd_type==1">
{{master.pd_allocated_to | titlecase}}
</div>
<div *ngIf="master.executive_name && master.centralofficer && master.fk_pd_type==2">
{{master.executive_name | titlecase}}
</div>
<div *ngIf="master.centralofficer && master.fk_pd_type==3">
{{master.centralofficer | titlecase}}
</div>
</div>
<div fxFlex="60" align="right" style="color: #e00201" *ngIf="master.scheduled_on">
{{master.scheduled_on}}
</div>
</div>
</mat-card-actions>
</div>
<div *ngSwitchCase="0">
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id==null && addresses.addtional_pd_data.length==0">
<button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
</mat-card-actions>
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id!=null && addresses.addtional_pd_data.length==0 && master.pd_status==pdStatusCheck.ADD_ON_PENDING">
<!-- master.pd_status==pdStatusCheck.ADD_ON_PENDING -->
<button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
</mat-card-actions>
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id!=null && addresses.addtional_pd_data.length>0">
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
{{addresses.addtional_pd_data[0].pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : addresses.addtional_pd_data[0].pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : addresses.addtional_pd_data[0].pd_status | titlecase}}
</div>
<div fxFlex="60" align="right">
<button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.COMPLETED && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.ADD_ON_PENDING && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master,addresses)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.COMPLETED && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.ADD_ON_PENDING && addresses.addtional_pd_data[0].pd_status!=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>
<button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.TRIGGERED" 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,addresses.addtional_pd_data[0].pd_status)"><mat-icon>question_answer</mat-icon></button>
</div>
</div>
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
<div *ngIf="addresses.addtional_pd_data[0].pd_allocated_to && addresses.addtional_pd_data[0].fk_pd_type==1">
{{addresses.addtional_pd_data[0].pd_allocated_to | titlecase}}
</div>
<div *ngIf="addresses.addtional_pd_data[0].executive_name && addresses.addtional_pd_data[0].centralofficer && addresses.addtional_pd_data[0].fk_pd_type==2">
{{addresses.addtional_pd_data[0].executive_name | titlecase}}
</div>
<div *ngIf="addresses.addtional_pd_data[0].centralofficer && addresses.addtional_pd_data[0].fk_pd_type==3">
{{addresses.addtional_pd_data[0].centralofficer | titlecase}}
</div>
</div>
<div fxFlex="60" align="right" style="color: #e00201" *ngIf="addresses.addtional_pd_data[0].scheduled_on">
{{addresses.addtional_pd_data[0].scheduled_on}}
</div>
</div>
</mat-card-actions>
</div>
</div>
</mat-card>
</div>
<div fxFlex="50">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<mat-card-header>
<mat-card-title>Lender Contact Details</mat-card-title>
</mat-card-header>
<mat-card-content>
<mat-list>
<mat-list-item *ngIf="master.pd_contact_person">
<i class="fa-1x fa fa-user"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_contact_person}}</small>
</mat-list-item>
<mat-list-item *ngIf="master.pd_contact_mobileno">
<i class="fa-1x fa fa-phone"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_contact_mobileno}}</small>
</mat-list-item>
</mat-list>
</mat-card-content>
</mat-card>
</div>
<div fxFlex="50" *ngIf="master.remarks">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<mat-card-header>
<mat-card-title>Remarks</mat-card-title>
</mat-card-header>
<mat-card-content>
<p>{{master.remarks}}</p>
</mat-card-content>
</mat-card>
</div>
</div>
</div>
</div>
<mat-card class="p-2" style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<h4>PD Details</h4>
<mat-tab-group class="mt-2">
<mat-tab>

View File

@ -1,5 +1,4 @@
.cardEdit {
display: inline;
float:right;
padding-top:3%;
}
@ -35,3 +34,13 @@
text-align: center;
}
}
.mat-list .mat-list-item.center .mat-list-item-content{
justify-content: center;
// color: #fff
}
.mat-list .mat-list-item.center .mat-list-text>*{
margin: 0 auto 0 0;
}

View File

@ -14,6 +14,7 @@ import { EditPdApplicantComponent } from '../edit-pd-applicant/edit-pd-applicant
import { EditPdMasterComponent } from '../edit-pd-master/edit-pd-master.component';
import { PdRequirementComponent } from '../pd-requirement/pd-requirement.component';
import { PdStatusChangeDialogueComponent } from './../pd-status-change-dialogue/pd-status-change-dialogue.component';
import { InitiateAdditionalPdComponent } from './../initiate-additional-pd/initiate-additional-pd.component';
/**sweet alert */
import Swal from 'sweetalert2';
@ -71,6 +72,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
"SCHEDULED": 'SCHEDULED',
"INPROGRESS": 'INPROGRESS',
"COMPLETED": 'COMPLETED',
"ADD_ON_PENDING": 'ADD_ON_PENDING',
"QC_COMPLETED": 'QC_COMPLETED',
};
@ -263,7 +265,8 @@ export class ViewPdComponent implements OnInit, OnDestroy {
});
}
// pd allocation to
pdAllocationTo(pdData: any) {
pdAllocationTo(pdData: any,childData: any) {
pdData.pd_id = childData.assigned_pd;
if (pdData.fk_pd_type == 1) {
const dialogRef = this.dialog.open(PdAllocationComponent, {
data: pdData,
@ -310,8 +313,8 @@ export class ViewPdComponent implements OnInit, OnDestroy {
}
// pd schedule details
scheduleDetails(pdData: any) {
scheduleDetails(pdData: any,childData: any) {
pdData.pd_id = childData.assigned_pd;
const dialogSchedule = this.dialog.open(SchedulePdComponent, {
data: pdData,
disableClose: true
@ -324,11 +327,11 @@ export class ViewPdComponent implements OnInit, OnDestroy {
}
// start pd
getPDStart(pdID: any, status: string) {
getPDStart(pdDetails: any, status: string) {
this.destroyType = 3;
if (status == this.pdStatusCheck.ALLOCATED || status == this.pdStatusCheck.SCHEDULED) {
const dialogRef = this.dialog.open(PdStatusChangeDialogueComponent, {
data: { pdid: this.viewID, pd_status: this.pdStatusCheck.INPROGRESS },
data: { pdid: pdDetails.assigned_pd, pd_status: this.pdStatusCheck.INPROGRESS },
disableClose: true,
minWidth: '30%',
maxWidth: '40%',
@ -336,12 +339,12 @@ export class ViewPdComponent implements OnInit, OnDestroy {
dialogRef.afterClosed()
.subscribe(dataresult => {
if (dataresult.update_status == true) {
this.router.navigate(['../../startpd', pdID], { relativeTo: this.route });
this.router.navigate(['../../startpd',pdDetails.assigned_pd], { relativeTo: this.route });
}
});
}
else {
this.router.navigate(['../../startpd', pdID], { relativeTo: this.route });
this.router.navigate(['../../startpd', pdDetails.assigned_pd], { relativeTo: this.route });
}
}
@ -415,6 +418,23 @@ export class ViewPdComponent implements OnInit, OnDestroy {
}
// this is for initiate additional pd
initiateAddtionalPD(parentData: any, childData: any, type: boolean){
const dialogRef = this.dialog.open(InitiateAdditionalPdComponent, {
data: { "type":type,"pd_id":parentData.pd_id,"fk_customer_segment":parentData.fk_customer_segment, "pd_status":parentData.pd_status, "pd_address_id": childData.pd_address_id},
disableClose: true,
// position: { right: '0' },
minWidth: '40%',
maxWidth: '60%',
});
dialogRef.afterClosed()
.subscribe(dataresult => {
if (dataresult.update_status == true) {
this.viewPdDetails(this.viewID)
}
});
}
// updateViewComponent(editBack:string) {

View File

@ -115,6 +115,7 @@ import { ViewLocationComponent } from './../pd-directive/view-location/view-loca
import { GetAnswerableFormsPipe } from './../pd-pipes/get-answerable-forms.pipe';
import { ConfirmAiDetailsComponent } from './list-pd/start-pd/forms/assessed-income/confirm-ai-details/confirm-ai-details.component';
import { RentalVerificationComponent } from './list-pd/start-pd/forms/rental-verification/rental-verification.component';
import { InitiateAdditionalPdComponent } from './list-pd/initiate-additional-pd/initiate-additional-pd.component';
/**
* Custom angular notifier options
@ -161,7 +162,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],
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],
imports: [
CommonModule,
ManagePdRoutingModule,
@ -194,13 +195,13 @@ const pdCustomNotifierOptions: NotifierOptions = {
AgmCoreModule.forRoot({apiKey: 'AIzaSyCXsHTus6hyIB8jYvt9ZEIbZve-2vWeQRg'}),OwlDateTimeModule,
OwlNativeDateTimeModule,
],
exports: [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],
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],
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],
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],
})
export class ManagePdModule {

View File

@ -177,6 +177,16 @@ export class PdTrigerService {
catchError(this.handleError('operation', []))
)
}
// initiate address for pd process
initiateAddressPdProcess(updateDate: any): Observable<any> {
updateDate.fk_updatedby = this._aws.getlocale();
// editData.updatedon = currentdate;
return this._http.post<any>(this.apiUrl + "updatePDMaster", { records: updateDate })
.pipe(
catchError(this.handleError('operation', []))
)
}
// update pd applicant
updatePdApplicant(editData: any): Observable<any> {
@ -267,8 +277,8 @@ export class PdTrigerService {
};
}
// common Pd form details get for the Pd Process
getPDFormDetailsWithID(pdID, formID): Observable<any> {
return this._http.post<any>(this.apiUrl + "getPDFormDetails", { "pd_id": pdID, "pd_form_id": formID })
getPDFormDetailsWithID(params: any): Observable<any> {
return this._http.post<any>(this.apiUrl + "getPDFormDetails", params)
.pipe(
catchError(this.handleError('operation', []))
)
@ -599,6 +609,13 @@ export class PdTrigerService {
let response2 = this._http.get<any[]>(this.apiUrl + "listLessPDDetails/get", secondStatus);
return forkJoin([response1, response2]);
}
// getPDCompleteDetails
getPDCompleteDetails(details: any): Observable<any> {
return this._http.post<any>(this.apiUrl + "getPDCompleteDetails",{ "records":details})
.pipe(
catchError(this.handleError('operation', []))
)
}
}

View File

@ -1,151 +1,189 @@
<mat-card>
<mat-card-content>
<mat-card class="p-2 mb-2" style="height: auto !important;">
<!-- height: 370px !important; -->
<div fxLayout="row" fxLayoutWrap="wrap" class="mb-3">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="30" fxFlex.xl="30" class="profile-center" style="text-align:center;">
<!--<div class="mb-1">
<img src="assets/images/userpic.jpg" width="100" height="100" alt="" class="radius-circle">
</div>-->
<mat-card style="padding: 15px;height: 290px;width: 280px;box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;">
<div *ngFor="let master of pdMasterData" class="ml-xs mr-xs">
<h4 class="ma-0">{{master.lender_short_name}}</h4>
<small>{{master.branch_name}}</small>
<div *ngIf="master.lender_applicant_id">
<small> {{master.lender_applicant_id}}</small> <br>
<small>{{master.pd_date_of_initiation}}</small><br>
<br>
<button mat-raised-button color="primary" style="cursor: not-allowed !important;">
<span *ngIf="master.pd_status==pdStatusCheck.SCHEDULED" style="text-align:left">{{master.pd_status | titlecase}}</span>
<span *ngIf="master.pd_status!=pdStatusCheck.SCHEDULED && master.pd_status!=pdStatusCheck.QC_COMPLETED " style="text-align:left">{{master.pd_status | titlecase}}</span>
<span *ngIf="master.pd_status==pdStatusCheck.QC_COMPLETED " style="text-align:left">QC Completed</span>
</button>&nbsp;&nbsp;
<!-- <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> -->
<!-- <button *ngIf="currentPDStatus==pdStatusCheck.DRAFT && mandatoryFieldsValidations.length==0" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Trigger" matTooltipPosition="above" (click)="directTriggerPD(mandatoryFieldsValidations,master.pd_id)"><mat-icon>flash_on</mat-icon></button> -->
<br>
<small *ngIf="master.pd_allocated_to && master.fk_pd_type==1" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.pd_allocated_to | titlecase}}</small>
<small *ngIf="master.executive_name && master.centralofficer && master.fk_pd_type==2" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.executive_name | titlecase}}/{{master.centralofficer | titlecase}}</small>
<small *ngIf="master.centralofficer && master.fk_pd_type==3" style="text-align:left" matTooltip="PD Officer" matTooltipPosition="above">{{master.centralofficer | titlecase}}</small> <br>
<small *ngIf="master.pd_status==pdStatusCheck.SCHEDULED">{{master.scheduled_on}}</small>
</div>
</div>
</mat-card>
<!--< <h4>John Doe</h4>
<span>johndoe@johndoe.com</span>
p class="mt-xs mb-xs">Sr. Manager</p>
<a href="javascript:;" class="block mt-xs mb-xs">www.example.com</a>
<button mat-raised-button color="primary">Edit Profile</button>-->
</div>
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="50" fxFlex.lg="70" fxFlex.xl="70" class="content-data">
<figure>
<mat-card-content style="padding:0px !important;">
<div fxLayout="row" class="ml-xs mr-xs">
<div fxFlex="100" style="text-align: right;">
<span *ngFor="let master of pdMasterData">
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
<!-- <button *ngIf="master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.TRIGGERED && enableStartPD" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Discussion" matTooltipPosition="above" (click)="getPDStart(viewID,master.pd_status)"><mat-icon>question_answer</mat-icon></button> -->
<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>
<!-- {{master | json}} -->
</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>
</div>
</mat-card-content>
<hr>
<mat-card-content>
<div *ngFor="let master of pdMasterData">
<div fxLayout="row" fxLayoutWrap="wrap" class="mb-3">
<div fxFlex="60">
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.product_name"> {{master.product_name}}<span *ngIf="master.subproduct_name"> / {{master.subproduct_name}} </span></span>
</div>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-rupee" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.loan_amount"> {{master.loan_amount}}</span>
</div>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<span><i class="fa-1x fa fa-check-circle" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.pd_type_name"> {{master.pd_type_name}}</span>
</div>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<div fxFlex="10">
<!-- <span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span> -->
<span><i class="fa-1x fa fa-map-marker" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="master.state_name" class="hover-icon"> {{master.addressline1}},<br> {{master.city_name}},<br>{{master.state_name}}-{{master.pincode_id == 1 ? master.other_pincode : master.pincode }} </span>
</div>
</div>
</div>
<!--<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span><i class="fa-1x fa fa-suitcase" style="width: 37px;padding: 8px 9px 8px 9px;border-bottom: 2px solid red;"></i>&nbsp; {{master.addressline1}}</span>
</div>
</div>-->
</div>
<div fxFlex="40">
<div *ngIf="master.pd_contact_person || master.pd_contact_mobileno" style="background-color:#e3dbdb;padding:9px;">
<h4 class="ma-0" style="font-size:13px;padding-bottom:5px;color:red;"><span>Lender Contact Details</span></h4>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span *ngIf="master.pd_contact_person"> <i class="fa-1x fa fa-user" style="padding: 8px 13px 8px 13px;border-bottom: 2px solid red;"></i>&nbsp; {{master.pd_contact_person}}</span>
</div>
</div>
<div fxLayout="row">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<span *ngIf="master.pd_contact_mobileno"> <i class="fa-1x fa fa-phone" style="padding: 8px 13px 8px 13px;border-bottom: 2px solid red;"></i>&nbsp; {{master.pd_contact_mobileno}}</span>
</div>
</div>
</div>
<br>
<div fxLayout="row" *ngIf="master.remarks" style="background-color:#e3dbdb;padding:15px;">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<h4 class="ma-0" style="font-size:13px;padding-bottom:5px;color:red;"><span> Remarks </span></h4>
<span>{{master.remarks}}</span>
</div>
</div>
<div fxLayout="row" class="cardEdit" *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.COMPLETED">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100" class="profile-center">
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)"><mat-icon>edit</mat-icon></button>
</div>
</div>
<div fxLayout="row wrap">
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="40" fxFlex.lg="30" fxFlex.xl="30" *ngFor="let master of pdMasterData">
<mat-card style="margin: 15px;min-width: 80%;max-width: 100%;box-shadow: 0 5px 11px 0 rgba(0,0,0,.18), 0 4px 15px 0 rgba(0,0,0,.15) !important;">
<mat-card-content style="background-color: whitesmoke;">
<mat-list role="list">
<mat-list-item class="center" role="listitem">
<strong>{{master.lender_short_name}}</strong>
</mat-list-item>
<mat-list-item class="center" role="listitem">
{{master.branch_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.lender_applicant_id">
{{master.lender_applicant_id}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.lender_applicant_id">
{{master.pd_date_of_initiation}}
</mat-list-item>
<mat-list-item role="listitem" class="center" *ngIf="master.product_name">
{{master.product_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.subproduct_name">
{{master.subproduct_name}}
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.loan_amount">
<i class="fa-1x fa fa-rupee"></i><small style="margin-left: 2%; font-size: inherit">{{master.loan_amount}}</small>
</mat-list-item>
<mat-list-item class="center" role="listitem" *ngIf="master.pd_type_name">
<i class="fa-1x fa fa-check-circle"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_type_name}}</small>
</mat-list-item>
</mat-list>
</mat-card-content>
<mat-card-actions align="center">
<button mat-raised-button class="mr-1 mb-1" color="primary" style="cursor: not-allowed !important;">
<strong> {{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}</strong>
</button>
<button *ngIf="currentPDStatus==pdStatusCheck.DRAFT || currentPDStatus==pdStatusCheck.TRIGGERED || currentPDStatus==pdStatusCheck.ALLOCATED || currentPDStatus==pdStatusCheck.SCHEDULED || currentPDStatus==pdStatusCheck.COMPLETED" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)" matTooltipPosition="above" matTooltip="Edit PD Master"><mat-icon>edit</mat-icon></button>
<!-- <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> -->
</mat-card-actions>
</mat-card>
</div>
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="60" fxFlex.lg="70" fxFlex.xl="70" class="content-data" *ngFor="let master of pdMasterData">
<div fxLayout="row">
<div fxFlex="100" align="right">
<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>
<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>
</div>
</div>
</div>
</mat-card-content>
</figure>
</div>
<!-- <hr/> -->
<div fxLayout="row wrap">
<div fxFlex="50" *ngFor="let addresses of master.addresses;">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important" *ngIf="addresses.pincode">
<mat-card-content>
<div fxLayout="row nowrap">
<div fxFlex="10" appPdLocatedMapView [value]="addresses">
<!-- appPdLocatedMapView [value]="addresses" -->
<span><i class="fa-1x fa fa-map-marker"></i></span>
</div>
<div fxFlex="90">
<span *ngIf="addresses.state_name" class="hover-icon"> {{addresses.addressline1}},<br> {{addresses.city_name}},<br>{{addresses.state_name}}-{{addresses.pincode_id == 1 ? addresses.other_pincode : addresses.pincode }} </span>
</div>
</div>
</mat-card-content>
<!-- <mat-divider></mat-divider> -->
<!-- this is for set primary address of the PD actions-->
<div [ngSwitch]="addresses.is_primary">
<div *ngSwitchCase="1">
<mat-card-actions>
<!-- <div fxFlex="50" align="left">
<div fxFlex="100" style="color: #e00201">
{{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Addon Pending' : master.pd_status | titlecase}}
</div>
</div> -->
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
{{master.pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : master.pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : master.pd_status | titlecase}}
</div>
<div fxFlex="60" align="right">
<button *ngIf="addresses.assigned_pd==null || addresses.assigned_pd==''" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
<button *ngIf="addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && currentPDStatus!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master,addresses)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="addresses.assigned_pd && master.pd_type_name && currentPDStatus!=pdStatusCheck.DRAFT && 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>
</div>
</div>
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
<div *ngIf="master.pd_allocated_to && master.fk_pd_type==1">
{{master.pd_allocated_to | titlecase}}
</div>
<div *ngIf="master.executive_name && master.centralofficer && master.fk_pd_type==2">
{{master.executive_name | titlecase}}
</div>
<div *ngIf="master.centralofficer && master.fk_pd_type==3">
{{master.centralofficer | titlecase}}
</div>
</div>
<div fxFlex="60" align="right" style="color: #e00201" *ngIf="master.scheduled_on">
{{master.scheduled_on}}
</div>
</div>
</mat-card-actions>
</div>
<div *ngSwitchCase="0">
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id==null && addresses.addtional_pd_data.length==0">
<button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
</mat-card-actions>
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id!=null && addresses.addtional_pd_data.length==0 && master.pd_status==pdStatusCheck.ADD_ON_PENDING">
<!-- master.pd_status==pdStatusCheck.ADD_ON_PENDING -->
<button mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" [matTooltip]="master.fk_primary_address_id ? 'Initiate Address for Additional PD Process' : 'Initiate Address for PD Process'" matTooltipPosition="above" (click)="initiateAddtionalPD(master,addresses,master.fk_primary_address_id ? true : false)"><mat-icon>where_to_vote</mat-icon></button>
</mat-card-actions>
<mat-card-actions align="right" *ngIf="master.fk_primary_address_id!=null && addresses.addtional_pd_data.length>0">
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
{{addresses.addtional_pd_data[0].pd_status==pdStatusCheck.QC_COMPLETED ? 'QC Completed' : addresses.addtional_pd_data[0].pd_status==pdStatusCheck.ADD_ON_PENDING ? 'Completed' : addresses.addtional_pd_data[0].pd_status | titlecase}}
</div>
<div fxFlex="60" align="right">
<button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.QC_COMPLETED" mat-raised-button mat-button-md mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Allocate" matTooltipPosition="above" (click)="pdAllocationTo(master,addresses)"><mat-icon>verified_user</mat-icon></button>
<button *ngIf="addresses.assigned_pd && addresses.addtional_pd_data[0].pd_type_name && addresses.addtional_pd_data[0].pd_status!=pdStatusCheck.DRAFT && addresses.addtional_pd_data[0].pd_status!=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>
</div>
</div>
<div fxLayout="row nowrap">
<div fxFlex="40" align="left" style="color: #e00201">
<div *ngIf="addresses.addtional_pd_data[0].pd_allocated_to && addresses.addtional_pd_data[0].fk_pd_type==1">
{{addresses.addtional_pd_data[0].pd_allocated_to | titlecase}}
</div>
<div *ngIf="addresses.addtional_pd_data[0].executive_name && addresses.addtional_pd_data[0].centralofficer && addresses.addtional_pd_data[0].fk_pd_type==2">
{{addresses.addtional_pd_data[0].executive_name | titlecase}}
</div>
<div *ngIf="addresses.addtional_pd_data[0].centralofficer && addresses.addtional_pd_data[0].fk_pd_type==3">
{{addresses.addtional_pd_data[0].centralofficer | titlecase}}
</div>
</div>
<div fxFlex="60" align="right" style="color: #e00201" *ngIf="addresses.addtional_pd_data[0].scheduled_on">
{{addresses.addtional_pd_data[0].scheduled_on}}
</div>
</div>
</mat-card-actions>
</div>
</div>
</mat-card>
</div>
<div fxFlex="50">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<mat-card-header>
<mat-card-title>Lender Contact Details</mat-card-title>
</mat-card-header>
<mat-card-content>
<mat-list>
<mat-list-item *ngIf="master.pd_contact_person">
<i class="fa-1x fa fa-user"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_contact_person}}</small>
</mat-list-item>
<mat-list-item *ngIf="master.pd_contact_mobileno">
<i class="fa-1x fa fa-phone"></i><small style="margin-left: 2%; font-size: inherit">{{master.pd_contact_mobileno}}</small>
</mat-list-item>
</mat-list>
</mat-card-content>
</mat-card>
</div>
<div fxFlex="50" *ngIf="master.remarks">
<mat-card style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<mat-card-header>
<mat-card-title>Remarks</mat-card-title>
</mat-card-header>
<mat-card-content>
<p>{{master.remarks}}</p>
</mat-card-content>
</mat-card>
</div>
</div>
</div>
</div>
</mat-card>
<mat-card class="p-2">
<mat-card class="p-2" style="box-shadow: 0 0 1px rgba(0,0,0,.18), 0 0 1px rgba(0,0,0,.15) !important">
<h4>PD Details</h4>
<mat-tab-group class="mt-2">
<mat-tab>

View File

@ -1,6 +1,44 @@
.cardEdit {
display: inline;float:right;padding-top:3%;
float:right;
padding-top:3%;
}
.minheight {
min-height: 100%;
}
::ng-deep .body-container{
padding: 0rem !important;
}
.metaDataStyle{
height:89px !important;
}
:host {
margin-left: -5px;
margin-right: -5px;
margin-top: -5px;
display: block;
}
.wrapper {
margin: 6px;
}
.content-data{
h2{
font-size: 1.5rem;
}
}
@media(max-width:767px){
.profile-center{
text-align: center;
}
}
.mat-list .mat-list-item.center .mat-list-item-content{
justify-content: center;
// color: #fff
}
.mat-list .mat-list-item.center .mat-list-text>*{
margin: 0 auto 0 0;
}

View File

@ -12,6 +12,8 @@ import { SchedulePdComponent } from './../../../personal-discussion/manage-pd/li
import { EditPdApplicantComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component';
import { EditPdMasterComponent } from './../../../personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component';
import { PdRequirementComponent } from './../../../personal-discussion/manage-pd/list-pd/pd-requirement/pd-requirement.component';
import { InitiateAdditionalPdComponent } from './../../../personal-discussion/manage-pd/list-pd/initiate-additional-pd/initiate-additional-pd.component';
import {DatePipe } from '@angular/common';
@Component({
selector: 'app-qc-view',
@ -43,6 +45,7 @@ export class QcViewComponent implements OnInit, OnDestroy {
"SCHEDULED" :'SCHEDULED',
"INPROGRESS" :'INPROGRESS',
"COMPLETED" :'COMPLETED',
"ADD_ON_PENDING": 'ADD_ON_PENDING',
"QC_COMPLETED" :'QC_COMPLETED',
};
public _EditPDtriggerForm:FormGroup;
@ -73,6 +76,7 @@ export class QcViewComponent implements OnInit, OnDestroy {
this.pdApplicantData = this.pdApplicantData.filter(appt => appt.applicant_type != 2);
this.pdDocumentsData=data.records.pd_documnets;
this.masterPdLogsData=data.records.pd_logs.master;
this.pdMasterData[0].addresses = data.records.pd_address.filter(item => item.isactive == 1);
//this.applicantPDLogsData= data.records.pd_logs.master;
this.currentPDStatus = data.records.pd_master_details[0].pd_status;
this.pdAdditionalReqData = data.records.pd_additional_requirements;
@ -155,7 +159,8 @@ export class QcViewComponent implements OnInit, OnDestroy {
});
}
// pd allocation to
pdAllocationTo(pdData:any) {
pdAllocationTo(pdData:any,childData: any) {
pdData.pd_id = childData.assigned_pd;
if(pdData.fk_pd_type == 1){
const dialogRef = this.dialog.open(PdAllocationComponent, {
data: pdData,
@ -202,8 +207,8 @@ export class QcViewComponent implements OnInit, OnDestroy {
}
// pd schedule details
scheduleDetails(pdData:any){
scheduleDetails(pdData:any,childData: any){
pdData.pd_id = childData.assigned_pd;
const dialogSchedule = this.dialog.open(SchedulePdComponent, {
data: pdData,
disableClose: true
@ -215,6 +220,23 @@ export class QcViewComponent implements OnInit, OnDestroy {
});
}
// this is for initiate additional pd
initiateAddtionalPD(parentData: any, childData: any, type: boolean){
const dialogRef = this.dialog.open(InitiateAdditionalPdComponent, {
data: { "type":type,"pd_id":parentData.pd_id,"fk_customer_segment":parentData.fk_customer_segment, "pd_status":parentData.pd_status, "pd_address_id": childData.pd_address_id},
disableClose: true,
// position: { right: '0' },
minWidth: '40%',
maxWidth: '60%',
});
dialogRef.afterClosed()
.subscribe(dataresult => {
if (dataresult.update_status == true) {
this.viewPdDetails(this.viewID)
}
});
}
// start pd
getPDStart(pdID:any){
this.destroyType=3;

View File

@ -161,6 +161,16 @@ export class QcService {
catchError(this.handleError('operation', []))
)
}
// initiate address for pd process
initiateAddressPdProcess(updateDate: any): Observable<any> {
updateDate.fk_updatedby = this._aws.getlocale();
// editData.updatedon = currentdate;
return this._http.post<any>(this.apiUrl + "updatePDMaster", { records: updateDate })
.pipe(
catchError(this.handleError('operation', []))
)
}
// update pd applicant
updatePdApplicant(editData: any): Observable<any> {

View File

@ -40,6 +40,10 @@ import { QcStartComponent } from './qc-list/qc-start/qc-start.component';
import { QcPdReportComponent, DialogChangeCurrentVenrsion } from './qc-list/qc-pd-report/qc-pd-report.component';
import { QcReviewComponent } from './qc-list/qc-pd-report/qc-review/qc-review.component';
import { ModelEditPdReportComponent } from './qc-list/qc-pd-report/model-edit-pd-report/model-edit-pd-report.component';
import { PdLocatedMapViewDirective } from './../personal-discussion/pd-directive/pd-located-map-view.directive';
import { InitiateAdditionalPdComponent } from './../personal-discussion/manage-pd/list-pd/initiate-additional-pd/initiate-additional-pd.component';
/**
* Custom angular notifier options
@ -112,9 +116,9 @@ const customNotifierOptions: NotifierOptions = {
ManagePdModule,
],
declarations: [QualityCheckComponent,QcListComponent, QcViewComponent, QcStartComponent, QcPdReportComponent,DialogChangeCurrentVenrsion, QcReviewComponent, ModelEditPdReportComponent],
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent,DialogChangeCurrentVenrsion, QcReviewComponent, ModelEditPdReportComponent],
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent,DialogChangeCurrentVenrsion, QcReviewComponent, ModelEditPdReportComponent, InitiateAdditionalPdComponent],
providers : [QcService,{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
{provide: DateAdapter, useClass: MomentDateAdapter, deps: [MAT_DATE_LOCALE]},
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS}]
{provide: MAT_DATE_FORMATS, useValue: MAT_MOMENT_DATE_FORMATS},PdLocatedMapViewDirective]
})
export class QualityCheckModule { }