execpt about business form : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-16 20:05:37 +05:30
parent 92c96afbb0
commit f396b0b1ee
21 changed files with 1287 additions and 1213 deletions

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,9 @@
</div>
<!--Desction Dynamic details: START-->
<div formArrayName="details">
<!--Property-->
<!--Other Asset -->
<div *ngIf="sup.get('assets_mode').value == 1 ">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
@ -35,51 +37,85 @@
<mat-form-field style="width:100%;">
<input matInput placeholder="Description of the Assets" formControlName="any_other_assets" autocomplete="off">
</mat-form-field>
<!-- <mat-form-field style="width:100%;">
<input matInput placeholder="Value of the Assets" formControlName="any_other_asset_value" autocomplete="off" (keyup)="inWords($event,s,12)" >
<mat-hint align="end" style="font-size:12px" *ngIf="detail.get('any_other_asset_value').value != ''">{{"&#8377;"}} {{OtherAssetValueInwords[s]}} Only</mat-hint>
</mat-form-field>
<mat-form-field style="width:100%;">
<mat-select placeholder="Is there any asset loan?" formControlName="any_other_asset_loan">
<mat-option value="{{data.value}}" *ngFor="let data of m_any_asset_loan_type">{{data.viewValue}}</mat-option>
</mat-select>
</mat-form-field> -->
<!--<mat-form-field *ngIf="detail.get('property_type').value == 5" style="width:100%">
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
</mat-form-field>-->
</div>
</div>
</div>
</div>
<!--Four Wheeler-->
<!--Property -->
<div *ngIf="sup.get('assets_mode').value == 2">
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<div>
<mat-form-field style="width:100%">
<mat-form-field style="width:100%">
<mat-select placeholder="Property Type" formControlName="property_type" >
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name }}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="detail.get('property_type').value == 1" style="width:100%;">
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
</mat-form-field>
</mat-form-field>
<mat-form-field *ngIf="detail.get('property_type').value == 1" style="width:100%;">
<input matInput placeholder="Other Property Type" formControlName="other_property_type" autocomplete="off">
</mat-form-field>
<mat-form-field style="width:100%;" *ngIf="detail.get('property_type').value != ''">
<input matInput placeholder="Address of the Property" formControlName="address_of_the_property"
autocomplete="off">
</mat-form-field>
<mat-form-field style="width:100%" *ngIf="detail.get('property_type').value != ''">
<input matInput placeholder="Description of the Property" formControlName="describe_of_the_property_asset"
autocomplete="off">
</mat-form-field>
<mat-form-field style="width:100%">
<input matInput placeholder="Area Covered" formControlName="area_covered_by_this_property"
autocomplete="off">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Unit of Measurement" formControlName="uom_of_the_property"
(selectionChange)="setRequiredValidation($event.value,detail,6)">
<mat-option>Select</mat-option>
<mat-option *ngFor="let uom of m_uom_type" [value]="uom.uom_id">{{ uom.name
}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="detail.get('uom_of_the_property').value == 1" style="width:100%">
<input matInput placeholder="Specify Unit of Measurement" formControlName="other_uom"
autocomplete="off">
</mat-form-field>
</div>
</div>
</div>
</div>
</div>
<!--Two Wheeler-->
<!--Vechile-->
<div *ngIf="sup.get('assets_mode').value == 3">
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<div>
<mat-form-field style="width:100%">
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_vehicle">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Type of Vehicle" formControlName="vehicle_type">
<!-- (selectionChange)="setRequiredValidation($event.value,detail,5)" -->
<mat-option>Select</mat-option>
<mat-option *ngFor="let vehicle of m_vehicle_type" [value]="vehicle.vehicle_type_id">{{
vehicle.vehicle_type_name }}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:100%" *ngIf="detail.get('vehicle_type').value == 1">
<input matInput placeholder=" Specify Vehicle" formControlName="other_vehicle_type"
autocomplete="off">
</mat-form-field>
<mat-form-field style="width:100%">
<input matInput placeholder="Description of Vehicle (example -Toyota Altis)"
formControlName="manufacturer_model_vehicle" autocomplete="off">
</mat-form-field>
</div>
</div>
</div>
@ -90,11 +126,6 @@
<div *ngIf="sup.get('assets_mode').value == 4">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<!--<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:40%">
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model_two_weeler" autocomplete="off">-->
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:100%">
<input matInput placeholder="Description" formControlName="equipment_manufacturing_description" >
@ -102,36 +133,9 @@
</div>
</div>
</div>
</div>
<!--jwell details -->
<!--<div *ngIf="sup.get('assets_mode').value == 4">
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<div>
<mat-form-field class="ml-xs example-full-width">
<input matInput placeholder="Description" formControlName="jwell_description">
</mat-form-field>
</div>
</div>
</div>
</div>
</div>-->
<!--Consumer Durable-->
<!-- <div *ngIf="sup.get('assets_mode').value == 5">
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<div>
<mat-form-field style="width:100%">
<input matInput placeholder="Description" formControlName="consumer_durable_description">
</mat-form-field>
</div>
</div>
</div>
</div>
</div>-->
<!--Insurance-->
<div *ngIf="sup.get('assets_mode').value == 6">
<div fxFill>
@ -141,7 +145,7 @@
<div fxFlex="33">
<mat-form-field style="width:100%">
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keyup)="inWords($event,s,5)">
<input matInput placeholder="Premium Paid" formControlName="premium_paid" (keyup)="inWords($event.target.value,s,1)">
<mat-hint align="end" style="font-size:12px" *ngIf="detail.get('premium_paid').value != ''">{{"&#8377;"}} {{PremiumPaidInwords[s]}} Only</mat-hint>
</mat-form-field>
</div>
@ -161,7 +165,7 @@
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<div fxFlex="33">
<mat-form-field style="width:100%">
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keyup)="inWords($event,s,7)">
<input matInput placeholder="Sum Assured" formControlName="sum_assured" (keyup)="inWords($event.target.value,s,2)">
<mat-hint align="end" style="font-size:12px" *ngIf="detail.get('sum_assured').value != ''">{{"&#8377;"}} {{SumAssuredInwords[s]}} Only</mat-hint>
</mat-form-field>
</div>
@ -196,7 +200,7 @@
</mat-form-field>
<div fxFlex="33">
<mat-form-field style="width:100%">
<input matInput placeholder="Current Market Value" formControlName="amount_of_invest" (keyup)="inWords($event,s,9)">
<input matInput placeholder="Current Market Value" formControlName="amount_of_invest" (keyup)="inWords($event.target.value,s,3)">
<mat-hint align="end" style="font-size:12px" *ngIf="detail.get('amount_of_invest').value != ''">{{"&#8377;"}} {{AmtInvestInwords[s]}} Only</mat-hint>
</mat-form-field>
</div>
@ -210,23 +214,10 @@
</div>
</div>
</div>
<!--other assets-->
<!-- <div *ngIf="sup.get('assets_mode').value == 8">
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<div [formGroupName]="s">
<div>
<mat-form-field style="width:100%">
<input matInput placeholder="Description of the Assets" formControlName="any_other_assets">
</mat-form-field>
</div>
</div>
</div>
</div>
</div>-->
</div>
<!--Desction Dynamic details : END -->
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<div *ngIf="sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 5">
<div fxFlex="33">
@ -237,8 +228,8 @@
</div>
</div>
<div>
<mat-form-field style="width:100%;">
<mat-select multiple placeholder="Name of the Owner" formControlName="name_of_the_owner" [compareWith]="compareObjects">
<mat-form-field *ngIf="sup.get('assets_mode').value != ''" style="width:100%">
<mat-select multiple placeholder="Name of the Owner" formControlName="name_of_the_owner" [compareWith]="compareObjects" (selectionChange)="setRequiredValidation($event.value,i,'',4)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName" >
<mat-option *ngFor="let val of group.groupValues" [value]="val">
{{val.name}}
@ -246,7 +237,7 @@
</mat-optgroup>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="checkOthers(sup.get('name_of_the_owner').value)===true" style="width:100%;">
<mat-form-field *ngIf="isOtherOwner[i]" style="width:100%;">
<input matInput placeholder="Specify Owner Name"
formControlName="other_owner" autocomplete="off">
</mat-form-field>
@ -273,7 +264,8 @@
<div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3">
<mat-form-field style="width:100%">
<mat-label>Vintage</mat-label>
<!-- <mat-label>Vintage</mat-label> -->
<mat-label>Age of Asset in Years</mat-label>
<input type="number" matInput autocomplete="off" placeholder="eg.999" formControlName="vintage_personal" minlength="1" maxlength="3" (keypress)="keyPress($event)" (keyup)="calculateVintagePurchase($event.target.value,i,3)">
<!-- <mat-error> Invalid format</mat-error> -->
@ -281,7 +273,8 @@
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field style="width:100%">
<input matInput type="number" placeholder="Year" formControlName="purchase_year">
<mat-label>Purchase Year</mat-label>
<input matInput autocomplete="off" placeholder="YYYY eg.2018" formControlName="purchase_year">
</mat-form-field>
</div>
@ -294,9 +287,8 @@
</mat-select>
</mat-form-field>-->
<div *ngIf="sup.get('assets_mode').value == 7 || sup.get('assets_mode').value == 6 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<div fxFlex="33">
<mat-list>
<p>Is there a loan?</p>
<mat-radio-group formControlName="emi">
@ -305,8 +297,8 @@
<mat-radio-button value="no">NO</mat-radio-button>
</mat-radio-group>
</mat-list>
</div>
</mat-list>
<br/>
<!-- <div *ngIf="sup.get('emi').value== 'yes'" fxFlex="33">
<mat-card>
@ -332,8 +324,7 @@
</div>
</mat-card>
</div>-->
</div>
</div>
<ion-buttons end>
<ion-col col-3 offset-3>

View File

@ -31,6 +31,8 @@ export class PdQuestionAssestsPage {
m_insuranceType: { 'id': string; 'name': string; }[];
m_propertyType: { 'id': string; 'name': string; }[];
m_assets_type: { 'id': string; 'name': string; }[];
m_vehicle_type: any=[];
m_uom_type: any=[];
pdDetails: any;
assetItem: any;
items:FormArray;
@ -39,25 +41,14 @@ export class PdQuestionAssestsPage {
FormList:boolean = false;
loadDetails:boolean = true;
assestInfo:any;
appxMarketAmtInwords: any=[];
OtherAppxMarketAmtInwords: any=[];
emiAmtInwords: any=[];
OtherEmiAmtInwords: any=[];
PremiumPaidInwords: any=[];
OtherPremiumPaidInwords: any=[];
PremiumPaidInwords: any=[];
SumAssuredInwords: any=[];
OtherSumAssuredInwords: any=[];
AmtInvestInwords: any=[];
OtherAmtInvestInwords: any;
AssetValueInwords: any=[];
OtherAssetValueInwords: any=[];
B_emiAmtInwords: any=[];
O_emiAmtInwords: any=[];
existCompanyList: any=[];
mergeCompanyApplicant: any=[];
isOtherOwner: any = [];
pdid:any;
currentYear: any = new Date().getFullYear();
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,public aws:AwsServiceProvider,public qustCat:QuestionCategoryProvider,public toast:ToastProvider,public constprovider:ConstantsProvider) {
this.assestInfo = "busass";
@ -68,19 +59,15 @@ export class PdQuestionAssestsPage {
this.users = this.aws.getlocale();
this.applicants = this.pdDetails.applicat_details;
this.applicants=this.applicants.filter(val=>val.applicant_type==0 || val.applicant_type==1)
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
this.AssetsDetailsForm = this.fb.group(
{
this.AssetsDetailsForm = this.fb.group({
assets_details:this.fb.array([]),
// business_assets_details:this.fb.array([]),
assets_form_remark:['']
assets_form_remark:['']
})
this.getAssetDetails();
this.getdropList();
//this. addAsset(1);
this.loadDetails = true;
}
ionViewDidLoad() {
@ -89,55 +76,81 @@ export class PdQuestionAssestsPage {
getdropList()
{
//GETTING Asset Type
this.qustCat.getcommondrop('ASSETTYPE').subscribe(res=>
{
if(res['dataStatus']==true)
{
this.m_assets_type = res['records'].filter(data=>data.isactive==1 && data.id!=5);
}
})
})
this.qustCat.getcommondrop('PROPERTIES').subscribe(res=>
{
//GETTING Property Type;
this.qustCat.getcommondrop('PROPERTIES').subscribe(res=>
{
if(res['dataStatus']==true)
{
this.m_propertyType = res['records'];
this.m_propertyType = res['records'].filter(data => data.isactive == 1);
}
})
})
this.qustCat.getcommondrop('INVESTMENTTYPE').subscribe(res=>
{
//GETTING Investment Type;
this.qustCat.getcommondrop('INVESTMENTTYPE').subscribe(res=>
{
if(res['dataStatus']==true)
{
this.m_investmentType = res['records'];
this.m_investmentType = res['records'].filter(data => data.isactive == 1);
}
})
this.qustCat.getcommondrop('INSURANCETYPE').subscribe(res=>
{
})
//GETTING Insurance Type;
this.qustCat.getcommondrop('INSURANCETYPE').subscribe(res=>
{
if(res['dataStatus']==true){
this.m_insuranceType =res['records'];
this.m_insuranceType =res['records'].filter(data => data.isactive == 1);
}
})
})
//GETTING Frequency Type;
this.qustCat.getcommondrop('FREQUENCY').subscribe(res=>
{
{
if(res['dataStatus']==true)
{
this.m_freqOfPurchase = res['records'];
this.m_freqOfPurchase = res['records'].filter(data => data.isactive == 1);
}
})
this.qustCat.getcommondrop('RELATIONSHIPS').subscribe(
data => {
if(data['dataStatus']==true){
})
//GETTING Relationship;
this.qustCat.getcommondrop('RELATIONSHIPS').subscribe(data =>
{
if(data['dataStatus']==true)
{
this.m_relation = data['records'].filter(data => data.isactive == 1);
}
});
this.qustCat.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
if(data['dataStatus']==true){
this.existCompanyList=data['records'].filter(val =>val.is_active===true && val.is_company_applicant===true)
});
//GETTING VEHICLE TYPE;
this.qustCat.getcommondrop('VEHICLETYPE').subscribe(data => {
if(data['dataStatus']==true)
{
this.m_vehicle_type = data['records'].filter(data => data.is_active == 1);
}
})
//GETTING UOM List;
this.qustCat.getcommondrop('UOM').subscribe(data => {
if(data['dataStatus']==true)
{
this.m_uom_type = data['records'].filter(data => data.isactive == 1 && data.is_land_uom == 1 || data.is_land_uom == 2);
}
})
//GETTING Company And Applicant List.
this.qustCat.getCompaniesListsForBusiness(this.pdid).subscribe(data=>
{
if(data['dataStatus']==true)
{
this.existCompanyList=data['records'].filter(val =>val.is_active===true)
}
let modifyCompanyList : any=[];
@ -160,29 +173,21 @@ export class PdQuestionAssestsPage {
}
})
}
createAsset() : FormGroup
{
return this.fb.group(
{
assets_mode: [null],
details: this.fb.array([]),
approximate_market_value: [null],
name_of_the_owner: [''],
other_owner:[''],
// purchase_year: [null],
purchase_year: [null,Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
vintage_personal : [''],
// purchase_month: [null],
emi: [null],
// emi_paid: [null],
// elapsed_tenure: [null],
// balance_tenure: [null],
// original_loan_tenure :[null],
});
{
assets_mode: [null],
details: this.fb.array([]),
approximate_market_value: [null],
name_of_the_owner: [''],
other_owner:[''],
purchase_year: [null,Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
vintage_personal : [''],
emi: [null],
});
}
addAsset(flag)
@ -196,14 +201,14 @@ export class PdQuestionAssestsPage {
deleteAsset(i,flag)
{
if(flag==1){
this.assetItem = this.AssetsDetailsForm.get('assets_details') as FormArray;
if(this.assetItem.length==1)
{
this.AssetsDetailsForm.controls['assets_details'].reset();
}else{
this.assetItem.removeAt(i);
}
}
this.assetItem = this.AssetsDetailsForm.get('assets_details') as FormArray;
if(this.assetItem.length==1)
{
this.AssetsDetailsForm.controls['assets_details'].reset();
}else{
this.assetItem.removeAt(i);
}
}
}
compareObjects(o1: any, o2: any) {
@ -212,21 +217,18 @@ export class PdQuestionAssestsPage {
else return false
}
loanCalc(details ,flag)
{
if(flag == 1){
let ElapsedValues;
if(details.value.original_loan_tenure != null && details.value.original_loan_tenure != '' && details.value.balance_tenure != null && details.value.balance_tenure != ''){
ElapsedValues = details.value.original_loan_tenure - details.value.balance_tenure ;
details.controls['elapsed_tenure'].setValue(ElapsedValues);
if(details.value.original_loan_tenure != null && details.value.original_loan_tenure != '' && details.value.balance_tenure != null && details.value.balance_tenure != ''){
ElapsedValues = details.value.original_loan_tenure - details.value.balance_tenure ;
details.controls['elapsed_tenure'].setValue(ElapsedValues);
}
}
}
}
show: boolean;
selectedAssetsType(e: any, i: any,flag : any): void {
@ -237,75 +239,64 @@ export class PdQuestionAssestsPage {
arr.controls.splice(0);
}
switch (e.value) {
case '1': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray ;
control.push(this.otherAssetsDescription());
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray ;
control.push(this.otherAssetsDescription());
break;
}
}
case '2': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadProperty());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadProperty());
break;
}
case '3': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.load_Four_Weeler());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.load_Four_Weeler());
break;
}
case '4': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.loadEquipmentManufacturingDescription());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.loadEquipmentManufacturingDescription());
break;
}
case '5': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadConsumerDurableDescription());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadConsumerDurableDescription());
break;
}
case '6': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadInsuranceDescription());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadInsuranceDescription());
break;
}
case '7': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadInvestDescription());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.loadInvestDescription());
break;
}
case '8': {
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.otherAssetsDescription());
break;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray
control.push(this.otherAssetsDescription());
break;
}
default: {
break;
break;
}
}
}
loadProperty() {
return this.fb.group({
property_type: [''],
other_property_type: ['']
});
}
loadJwellDescription() {
return this.fb.group({
});
}
property_type: [''],
other_property_type: [''],
address_of_the_property: [''],
describe_of_the_property_asset: [''],
area_covered_by_this_property: [''],
uom_of_the_property: [''],
other_uom: ['']
});
}
loadConsumerDurableDescription() {
return this.fb.group({
@ -313,25 +304,19 @@ export class PdQuestionAssestsPage {
});
}
otherBusinessAssetsDescription() {
loadEquipmentManufacturingDescription() {
return this.fb.group({
any_other_assets: [''],
any_other_asset_value : [''],
any_other_asset_loan : [''],
equipment_manufacturing_description: ['']
});
}
otherAssetsDescription() {
return this.fb.group({
any_other_assets: [''],
//any_other_asset_value:[''],
//any_other_asset_loan:['']
});
return this.fb.group({ any_other_assets: [''] });
}
loadInsuranceDescription() {
return this.fb.group({
insurance_type: [null],
// insurance_type: [null],
premium_paid: [null],
frequency_mode: [null],
other_frequency_mode:[null],
@ -352,18 +337,14 @@ export class PdQuestionAssestsPage {
load_Four_Weeler() {
return this.fb.group({
//manufacturer_model: [''],
manufacturer_model_vehicle: ['']
});
}
manufacturer_model_vehicle: [''],
vehicle_type: [''],
other_vehicle_type: ['']
});
}
loadEquipmentManufacturingDescription() {
return this.fb.group({
equipment_manufacturing_description: ['']
});
}
load_Two_Weeler() {
load_Two_Weeler() {
return this.fb.group({
manufacturer_model_two_weeler: ['']
});
@ -374,7 +355,12 @@ export class PdQuestionAssestsPage {
loadPropertyWithData(data) {
return this.fb.group({
property_type: [data.property_type],
other_property_type: [data.other_property_type]
other_property_type: [data.other_property_type],
address_of_the_property: [data.address_of_the_property],
describe_of_the_property_asset: [data.describe_of_the_property_asset],
area_covered_by_this_property: [data.area_covered_by_this_property],
uom_of_the_property: [data.uom_of_the_property],
other_uom: [data.other_uom]
});
}
@ -393,18 +379,9 @@ export class PdQuestionAssestsPage {
otherAssetsDescriptionWithData(data) {
return this.fb.group({
any_other_assets: [data.any_other_assets],
//any_other_asset_value : [data.any_other_asset_value],
//any_other_asset_loan:[data.any_other_asset_loan]
});
}
otherBusinessAssetsDescriptionWithData(data) {
return this.fb.group({
any_other_assets: [data.any_other_assets],
any_other_asset_value : [data.any_other_asset_value],
any_other_asset_loan : [data.any_other_asset_loan],
});
}
loadInsuranceDescriptionWithData(data) {
return this.fb.group({
//insurance_type: [data.insurance_type],
@ -431,9 +408,13 @@ export class PdQuestionAssestsPage {
load_Four_WeelerWithData(data) {
return this.fb.group({
// manufacturer_model: [data.manufacturer_model, Validators.compose([Validators.required])]
manufacturer_model_vehicle: [data.manufacturer_model_vehicle]
manufacturer_model_vehicle: [data.manufacturer_model_vehicle],
vehicle_type: [data.vehicle_type],
other_vehicle_type: [data.other_vehicle_type]
});
}
loadEquipmentManufacturingDescriptionWithData(data) {
return this.fb.group({
equipment_manufacturing_description: [data.equipment_manufacturing_description]
@ -445,6 +426,21 @@ export class PdQuestionAssestsPage {
manufacturer_model_vehicle: [data.manufacturer_model_vehicle]
});
}
initDetailsWithdata(data) {
return this.fb.group({
assets_mode: [data.assets_mode],
details: this.fb.array([]),
approximate_market_value: [data.approximate_market_value],
name_of_the_owner: [data.name_of_the_owner],
other_owner:[data.other_owner || ''],
vintage_personal:[data.vintage_personal],
purchase_year: [data.purchase_year,Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
emi: [data.emi || 0],
});
}
saveAssetDetails(answerData)
{
@ -473,7 +469,10 @@ export class PdQuestionAssestsPage {
}
})
}
apiLoadFinish:boolean = false;
// To Fetch The Asset Value;
getAssetDetails()
{
let records = {'pd_id':this.pdDetails.pd_id,'pd_form_id':this.FormId.form_id}
@ -489,7 +488,7 @@ export class PdQuestionAssestsPage {
this.AssetsDetailsForm.controls['assets_form_remark'].setValue(res['records'].assets_form_remark)
if (assetArray.length > 0) {
for (let val of assetArray) {
assetArray.forEach((val, index) => {
let vals = {
assets_mode: val.assets_mode,
approximate_market_value: val.approximate_market_value,
@ -497,42 +496,25 @@ export class PdQuestionAssestsPage {
other_owner:val.other_owner,
purchase_year: val.purchase_year,
vintage_personal:val.vintage_personal,
// purchase_month: val.purchase_month,
emi: val.emi,
// emi_paid: val.emi_paid,
// elapsed_tenure: val.elapsed_tenure,
// balance_tenure: val.balance_tenure,
// original_loan_tenure:val.original_loan_tenure,
//assets_form_remark:val.assets_form_remark
};
let Avaliablity = 1;
val.name_of_the_owner.forEach(option => {
if (option.id == 0 && option.group_id == 2) {
Avaliablity = option.id;
}
});
this.isOtherOwner[index] = Avaliablity == 0 ? true : false
const control = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
control.push(this.initDetailsWithdata(vals));
this.setAssetsDetailsWithData(vals.assets_mode, val.details, control.length-1)
}
// this.setRequiredValidation(val.name_of_the_owner, index, '', 4);
});
}
// if (busarray.length > 0) {
// for (let val of busarray) {
// let vals = {
// assets_mode: val.assets_mode,
// approximate_market_value: val.approximate_market_value,
// name_of_the_owner: val.name_of_the_owner,
// purchase_year: val.purchase_year,
// purchase_month: val.purchase_month,
// emi: val.emi,
// emi_paid: val.emi_paid,
// elapsed_tenure: val.elapsed_tenure,
// balance_tenure: val.balance_tenure,
// original_loan_tenure:val.original_loan_tenure,
// };
// const control = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
// control.push(this.initBusinessDetailsWithdata(vals));
// this.setAssetsDetailsWithData2(vals.assets_mode, val.details, control.length-1);
// }
// }
this.apiLoadFinish = true;
//this.AssetsDetailsForm.controls['assets_details'].setValue(assetArray);
@ -544,36 +526,10 @@ export class PdQuestionAssestsPage {
})
}
initDetailsWithdata(data) {
return this.fb.group({
assets_mode: [data.assets_mode],
details: this.fb.array([]),
approximate_market_value: [data.approximate_market_value],
name_of_the_owner: [data.name_of_the_owner],
other_owner:[data.other_owner || ''],
vintage_personal:[data.vintage_personal],
// purchase_year: [data.purchase_year],
purchase_year: [data.purchase_year,Validators.compose([Validators.minLength(4),Validators.maxLength(4)])],
// purchase_month: [data.purchase_month],
emi: [data.emi || 0],
// emi_paid: [data.emi_paid || ''],
// elapsed_tenure: [data.elapsed_tenure || ''],
// balance_tenure: [data.balance_tenure || ''],
// original_loan_tenure:[data.original_loan_tenure ||''],
//assets_form_remark:[data.assets_form_remark || '']
});
}
setAssetsDetailsWithData(assets_details_mode: any, datas: any, i: any): void {
let val = i;
// var data = Object.keys(datas).map(function (key) {
// return datas[key];
// });
// alert(JSON.stringify(datas));
let data = datas;
const arr = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
arr.controls.splice(0);
@ -581,14 +537,7 @@ export class PdQuestionAssestsPage {
case '1': {
let array_data : any;
data.forEach((datas,i) => {
array_data = { 'any_other_assets': datas.any_other_assets,
'name_of_the_owner':datas.name_of_the_owner,
'other_owner':datas.other_owner,
//'relation':datas.relation,
// 'any_other_asset_value' : datas.any_other_asset_value,
//'any_other_asset_loan' : datas.any_other_asset_loan,
};
//this.OtherAssetValueInwords[i] = this.constprovider.convertNumberToWords(+datas.any_other_asset_value);
array_data = { 'any_other_assets': datas.any_other_assets };
});
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.otherAssetsDescriptionWithData(array_data));
@ -598,7 +547,10 @@ export class PdQuestionAssestsPage {
case '2': {
let array_data : any;
data.forEach((datas,i) => {
array_data = { 'property_type':datas.property_type,'other_property_type':datas.other_property_type };
array_data = { 'property_type': datas.property_type, 'other_property_type': datas.other_property_type,
'address_of_the_property': datas.address_of_the_property, 'describe_of_the_property_asset': datas.describe_of_the_property_asset,
'uom_of_the_property': datas.uom_of_the_property,
'area_covered_by_this_property': datas.area_covered_by_this_property, 'other_uom': datas.other_uom };
});
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.loadPropertyWithData(array_data));
@ -607,7 +559,9 @@ export class PdQuestionAssestsPage {
case '3': {
let array_data : any;
data.forEach((datas,i) => {
array_data = { 'manufacturer_model_vehicle': datas.manufacturer_model_vehicle };
array_data = { 'manufacturer_model_vehicle': datas.manufacturer_model_vehicle,
'vehicle_type': datas.vehicle_type,
'other_vehicle_type': datas.other_vehicle_type };
});
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.load_Four_WeelerWithData(array_data));
@ -638,9 +592,8 @@ export class PdQuestionAssestsPage {
'sum_assured': datas.sum_assured,
'members_coverd': datas.members_coverd
};
this.PremiumPaidInwords[i] = this.constprovider.convertNumberToWords(+datas.premium_paid);
this.SumAssuredInwords[i] = this.constprovider.convertNumberToWords(+datas.sum_assured);
this.inWords(+datas.premium_paid,i,1);
this.inWords(+datas.sum_assured,i,2);
});
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.loadInsuranceDescriptionWithData(array_data));
@ -649,7 +602,7 @@ export class PdQuestionAssestsPage {
case '7': {
let array_data : any;
data.forEach((datas,i) => {
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(+datas.amount_of_invest);
this.inWords(+datas.amount_of_invest,i,3);
array_data = { 'investments_type': datas.investments_type,
'other_investments_type' : datas.other_investments_type,
'in_which_organisation':datas.in_which_organisation,
@ -660,12 +613,6 @@ export class PdQuestionAssestsPage {
control.push(this.loadInvestDescriptionWithData(array_data));
break;
}
case '8': {
this.FormList = true;
const control = (<FormArray>this.AssetsDetailsForm.controls['assets_details']).at(val).get('details') as FormArray;
control.push(this.otherAssetsDescriptionWithData(data));
break;
}
default: {
break;
}
@ -681,63 +628,74 @@ export class PdQuestionAssestsPage {
event.preventDefault();
}
}
inWords(e,i,flag){
switch(flag){
case 1 :
this.appxMarketAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
this.PremiumPaidInwords[i] = this.constprovider.convertNumberToWords(e);
break;
case 2 :
this.OtherAppxMarketAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
this.SumAssuredInwords[i] = this.constprovider.convertNumberToWords(e);
break;
case 3 :
this.emiAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(e);
break;
case 4 :
this.OtherEmiAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 5 :
this.PremiumPaidInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 6 :
this.OtherPremiumPaidInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 7 :
this.SumAssuredInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 8 :
this.OtherSumAssuredInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 9 :
this.AmtInvestInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 10 :
this.OtherAmtInvestInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 11 :
this.AssetValueInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 12 :
this.OtherAssetValueInwords[i]= this.constprovider.convertNumberToWords(e.target.value);
break;
case 13:
this.B_emiAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
case 14:
this.O_emiAmtInwords[i] = this.constprovider.convertNumberToWords(e.target.value);
break;
default:
break;
}
}
// check others
checkOthers(values){
if(values!=null) {
return values.id==0 ? true : false;
}
else {
return false;
}
calculateVintagePurchase(value: any, controlKey: any, type: number) {
if (type == 1) { }
else if (type == 2) { }
else if (type == 3) {
let control: any = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
control.controls[controlKey].controls['purchase_year'].setValue(value != '' ? parseInt(this.currentYear) - parseInt(value) : '');
}
else if (type == 4) {
let control: any = <FormArray>this.AssetsDetailsForm.controls['assets_details'];
value != '' && value <= this.currentYear ? control.controls[controlKey].controls['purchase_year'].setValue(value) : control.controls[controlKey].controls['purchase_year'].setValue('');
value != '' && value <= this.currentYear ? control.controls[controlKey].controls['vintage_personal'].setValue(parseInt(this.currentYear) - parseInt(value)) : control.controls[controlKey].controls['vintage_personal'].setValue('')
}
}
setRequiredValidation(value, ParInx, ChdInx, flag) {
let ParCtrls = <FormArray>this.AssetsDetailsForm.controls.assets_details;
let ChdCtrls: any = <FormArray>ParCtrls.controls[ParInx];
if (flag == 4) {
let Avaliablity = 1;
if (value.length > 0) {
value.forEach(option => {
if (option.id == 0 && option.group_id == 2) {
Avaliablity = option.id;
}
});
}
if (Avaliablity == 0) {
ChdCtrls.controlsother_owner.setValidators([Validators.required]);
this.isOtherOwner[ParInx] = true;
} else if (Avaliablity == 1) {
ChdCtrls.controls.other_owner.setValue('');
ChdCtrls.controls.other_owner.clearValidators();
this.isOtherOwner[ParInx] = false;
}
ChdCtrls.controls.other_owner.updateValueAndValidity();
}
}
}

View File

@ -208,6 +208,7 @@
<!-- <mat-form-field style="width: 45%" *ngIf="items.get('trade_product_payment_type').value == 3">
<input matInput placeholder="No. of Days of Credit Given for Payment Receipt" formControlName="trade_product_credit_days">
</mat-form-field> -->
<span *ngIf="items.get('trade_product_payment_type').value == 3">
<mat-label>No of days of Credit provided to Client for payment</mat-label>
<mat-form-field style="width: 100%">
<input matInput placeholder="Days From" formControlName="trade_product_credit_days_from"
@ -217,6 +218,7 @@
<input matInput placeholder="Days To" formControlName="trade_product_credit_days_to"
type="number">
</mat-form-field>
</span>
</div>
<ion-buttons end>
<ion-col col-3 offset-3>

View File

@ -503,7 +503,9 @@ export class PdQuestionClientInfoPage {
this.qustCat.getcommondrop('COMPANYRELATIONSHIPS').subscribe(
data => {
this.companyRelationShipList = data['records'].filter(data => data.isactive == 1);
this.companyRelationShipList = data['records'];
// .filter(data => data.isactive == 1);
// because in general no need of "other" option but in client others option needed - in DB others option changed into inactive"
});
this.qustCat.getcommondrop('TITLES').subscribe(

View File

@ -25,7 +25,7 @@
</mat-form-field>
<mat-form-field style="width:100%">
<!-- <mat-select placeholder="is the Stock is Observed ?" formControlName="stock_observed" > -->
<mat-select placeholder="Stock" formControlName="stock_observed">
<mat-select placeholder="Stock" formControlName="stock_observed" (selectionChange)="checkComments($event.value,1,a)">
<mat-option value="yes">Add Stock Details</mat-option>
<mat-option value="no">No Stock Observed</mat-option>
</mat-select>
@ -69,17 +69,18 @@
</mat-card-actions>
</div>
</div>
<hr/>
<div >
<div *ngIf="RMCommentCard">
<hr/>
<mat-form-field style="width:100%">
<mat-placeholder>Is the stock of Raw Materials observed, sufficient considering the size of operations</mat-placeholder><br/>
<mat-select
formControlName="is_sufficiant_raw" (selectionChange)="checkComments($event.value,1,a)">
formControlName="is_sufficiant_raw"><!-- (selectionChange)="checkComments($event.value,1,a)" -->
<mat-option value="yes">Yes</mat-option>
<mat-option value="no">No</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="mrmCommentFlag[a]" appearance="outline" style="width: 100%">
<mat-form-field *ngIf="md.get('is_sufficiant_raw').value == 'no'" appearance="outline" style="width: 100%">
<mat-label> <i>Please comment on the stock level observed?</i>
</mat-label>
<textarea matInput autocomplete="off" placeholder="Please comment on the stock level observed"
@ -96,7 +97,7 @@
<input matInput autocomplete="off" placeholder="Name" formControlName="goods_name">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Stock" formControlName="goods_observed">
<mat-select placeholder="Stock" formControlName="goods_observed" (selectionChange)="checkComments($event.value,2,b)">
<mat-option value="yes">Add Stock Details</mat-option>
<mat-option value="no">No Stock Observed</mat-option>
</mat-select>
@ -169,7 +170,7 @@
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Stock" formControlName="traded_goods_observed">
<mat-select placeholder="Stock" formControlName="traded_goods_observed" (selectionChange)="checkComments($event.value,3,e)">
<mat-option value="yes">Add Stock Details</mat-option>
<mat-option value="no">No Stock Observed</mat-option>
</mat-select>
@ -229,7 +230,8 @@
</div>
</div>
</mat-card>
<mat-card *ngIf="tradingForm">
<mat-card *ngIf="tradingForm || TGCommentCard">
<div *ngIf="tradingForm">
<mat-card-title><h5>Wholesale Trading Details</h5></mat-card-title>
<div formArrayName="trade_details">
<div *ngFor="let td of stockForm.controls.trade_details['controls']; let k=index"
@ -243,7 +245,7 @@
<input matInput autocomplete="off" placeholder="Name" formControlName="traded_goods_name">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Stock" formControlName="traded_goods_observed">
<mat-select placeholder="Stock" formControlName="traded_goods_observed" (selectionChange)="checkComments($event.value,4,g)">
<mat-option value="yes">Add Stock Details</mat-option>
<mat-option value="no">No stock observed</mat-option>
</mat-select>
@ -302,7 +304,8 @@
</div>
</div>
</div>
<div *ngIf="finishedAndTradedGoodsCommentCard">
</div>
<div *ngIf="TGCommentCard">
<br>
<mat-form-field style="width:100%">
<mat-placeholder>Is the stock of finished / traded goods observed, sufficient considering the size of operations</mat-placeholder><br/>

View File

@ -43,7 +43,9 @@ export class PdQuestionStockInfoPage {
suppliers_retail_trade_details : any = [];
suppliers_wholesale_trade_details : any = [];
suppliers_finished_goods : any =[];
finishedAndTradedGoodsCommentCard:boolean;
RMCommentCard: boolean = false;
TGCommentCard: boolean = false
constructor(public navCtrl: NavController, public navParams: NavParams, public qustCat: QuestionCategoryProvider, public aws: AwsServiceProvider, public toast: ToastProvider, public fb: FormBuilder,public constant:ConstantsProvider) {
this.pdDetails = this.navParams.get('pdDetails');
@ -116,7 +118,7 @@ export class PdQuestionStockInfoPage {
api.forEach(val => {
if (val.type_of_activity_id == 2) {
if(val.products){
if(dataForm.manufacturing_details[0].manufacturing_finished_goods ){this.finishedAndTradedGoodsCommentCard = true;}
// if(dataForm.manufacturing_details[0].manufacturing_finished_goods ){this.finishedAndTradedGoodsCommentCard = true;}
let manufacturing_temparr = [];
manufacturing_temparr['manufacturing_raw_materials'] = dataForm.manufacturing_details[0].manufacturing_raw_materials;
this.stockForm.controls['manufacturing_details']['controls'][0].controls['is_sufficiant_raw'].setValue(dataForm.manufacturing_details[0].is_sufficiant_raw),
@ -127,7 +129,7 @@ export class PdQuestionStockInfoPage {
}
if (val.type_of_activity_id == 3) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
let retail_temparr = [];
retail_temparr['retail_traded_goods'] = dataForm.retail_details[0].retail_traded_goods;
@ -136,7 +138,7 @@ export class PdQuestionStockInfoPage {
}
if (val.type_of_activity_id == 4) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
let trading_temparr = [];
trading_temparr['trading_traded_goods'] = dataForm.trade_details[0].trading_traded_goods;
console.log("Trade",trading_temparr)
@ -171,7 +173,7 @@ export class PdQuestionStockInfoPage {
api.forEach(val => {
if (val.type_of_activity_id == 2) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_finished_goods = val.products;
this.initManufacturingDetails(null);
this.stockForm.controls['manufacturing_details']['controls'][0].controls['is_sufficiant_raw'].setValue(dataForm.manufacturing_details[0].is_sufficiant_raw.value || null),
@ -180,14 +182,14 @@ export class PdQuestionStockInfoPage {
}
if (val.type_of_activity_id == 3) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_retail_trade_details = val.products;
this.initRetailDetails(null);
}
}
if (val.type_of_activity_id == 4) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_wholesale_trade_details =val.products;
this.initTradingDetails(null);
}
@ -226,7 +228,7 @@ export class PdQuestionStockInfoPage {
api.forEach(val => {
if (val.type_of_activity_id == 2) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_finished_goods = val.products;
this.suppliers_raw_materials = rm_api;
this.initManufacturingDetails(null);
@ -236,14 +238,14 @@ export class PdQuestionStockInfoPage {
}
if (val.type_of_activity_id == 3) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_retail_trade_details= val.products;
this.initRetailDetails(null);
}
}
if (val.type_of_activity_id == 4) {
if(val.products){
this.finishedAndTradedGoodsCommentCard = true;
// this.finishedAndTradedGoodsCommentCard = true;
this.suppliers_wholesale_trade_details = val.products;
this.initTradingDetails(null);
}
@ -270,7 +272,7 @@ export class PdQuestionStockInfoPage {
{
this.qustCat.getcommondrop('UOM').subscribe(data => {
if(data['dataStatus']==true){
this.uomData = data['records'].filter(uom=>uom.isactive==1);
this.uomData = data['records'].filter(uom=>uom.isactive==1 && uom.is_land_uom == 0 || uom.is_land_uom == 2);
}
});
}
@ -383,7 +385,8 @@ export class PdQuestionStockInfoPage {
if(val.raw_value){
this.inWords(val.raw_value,1,index);
}
this.checkComments(val.is_sufficiant_raw,1,index);
// this.checkComments(val.is_sufficiant_raw,1,index);
this.checkComments(val.stock_observed, 1, index);
rawMaterial.push(this.createRawmaterial(val));
});
}
@ -395,7 +398,8 @@ export class PdQuestionStockInfoPage {
if(val.goods_value){
this.inWords(val.goods_value,2,index);
}
this.checkComments(val.is_sufficiant_goods,2,index);
// this.checkComments(val.is_sufficiant_goods,2,index);
this.checkComments(val.goods_observed, 2, index);
finishedGoods.push(this.createGoods(val));
});
@ -459,7 +463,8 @@ export class PdQuestionStockInfoPage {
if(val.estimated_traded_goods_value){
this.inWords(val.estimated_traded_goods_value,3,index);
}
this.checkComments(val.is_sufficiant_traded_goods,3,index);
// this.checkComments(val.is_sufficiant_traded_goods,3,index);
this.checkComments(val.traded_goods_observed, 3, index);
tradedGoods.push(this.createTradedGoods(val));
});
}
@ -525,7 +530,8 @@ export class PdQuestionStockInfoPage {
if(val.estimated_traded_goods_value){
this.inWords(val.estimated_traded_goods_value,4,index);
}
this.checkComments(val.is_sufficiant_traded_goods,4,index);
// this.checkComments(val.is_sufficiant_traded_goods,4,index);
this.checkComments(val.traded_goods_observed, 4, index);
tradedGoods.push(this.createTradedGoods(val));
});
}
@ -641,31 +647,32 @@ export class PdQuestionStockInfoPage {
}
checkComments(e,flag,index){
if(flag == 1 && e=='no'){
this.mrmCommentFlag[index] = true;
ManufacturingCounterArray: any = [];
FinishedCounterArray: any = [];
RetailCounterArray: any = [];
WholeSaleCounterArray: any = [];
checkComments(value, flag, index) {
if (flag == 1) {
this.ManufacturingCounterArray[index] = value == "yes" ? 1 : 0
let RMOverallCount = this.ManufacturingCounterArray.reduce((sum, val) => sum + +val, 0);
this.RMCommentCard = RMOverallCount > 0 ? true : false;
}
else if(flag == 1 && e!='no'){
this.mrmCommentFlag[index] = false;
if (flag == 2) {
this.FinishedCounterArray[index] = value == "yes" ? 1 : 0
}
if(flag == 2 && e=='no'){
this.mfgCommentFlag[index] = true;
if (flag == 3) {
this.RetailCounterArray[index] = value == "yes" ? 1 : 0
}
else if(flag == 2 && e!='no'){
this.mfgCommentFlag[index] = false;
}
if(flag == 3 && e=='no'){
this.rtrdCommentFlag[index] = true;
}
else if(flag == 3 && e!='no'){
this.rtrdCommentFlag[index] = false;
}
if(flag == 4 && e=='no'){
this.wtrdCommentFlag[index] = true;
}
else if(flag == 4 && e!='no'){
this.wtrdCommentFlag[index] = false;
if (flag == 4) {
this.WholeSaleCounterArray[index] = value == "yes" ? 1 : 0
}
let FGOverallCount = this.FinishedCounterArray.reduce((sum, val) => sum + +val, 0);
let RTGOverallCount = this.RetailCounterArray.reduce((sum, val) => sum + +val, 0);
let WTGOverallCount = this.WholeSaleCounterArray.reduce((sum, val) => sum + +val, 0);
let TGOverallCount = FGOverallCount + RTGOverallCount + WTGOverallCount;
this.TGCommentCard = TGOverallCount > 0 ? true : false;
}
/** To Save/Edited Popup Data */

View File

@ -382,7 +382,9 @@ export class PdQuestionSupplierInfoPage {
this.qustCat.getcommondrop('COMPANYRELATIONSHIPS').subscribe(
data => {
this.m_companyRelationShipList = data['records'].filter(data => data.isactive == 1);
this.m_companyRelationShipList = data['records']
//.filter(data => data.isactive == 1);
// because in general no need of "other" option but in supplier others option needed - in DB others option changed into inactive"
});
this.qustCat.getcommondrop('TITLES').subscribe(

View File

@ -17,6 +17,7 @@ import {ConstantsProvider} from '../../../providers/constants/constants'
selector: 'page-pd-question-current-loans',
templateUrl: 'pd-question-current-loans.html',
})
export class PdQuestionCurrentLoansPage {
applicants: any;
placeholderName: any = [];
@ -41,7 +42,7 @@ applicants: any;
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,public qustCat:QuestionCategoryProvider,public toast:ToastProvider, public aws:AwsServiceProvider,public constant:ConstantsProvider) {
console.log("other",this.applicants);
this.questionDetails = this.navParams.get('questionDetails');
this.pdDetails = this.navParams.get('pdDetails');
this.pdid=this.pdDetails.pd_id;
@ -50,10 +51,9 @@ applicants: any;
this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
console.log("Applicant",this.applicants)
this.getdropdown();
// this.applicants.push
this.users = this.aws.getlocale();
this.currentLoans = this.fb.group(
@ -85,10 +85,10 @@ applicants: any;
});
this.qustCat.getCompaniesListsForBusiness(this.pdid).subscribe(data=>{
// console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
if(data['dataStatus']==true){
this.existCompanyList=data['records'].filter(val =>val.is_active===true && val.is_company_applicant===true)
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
}
let modifyCompanyList : any=[];
if(this.existCompanyList.length>0){
@ -97,7 +97,7 @@ applicants: any;
});
//modifyCompanyList.push({'id':"0",'name':'Others','group_id':1})
this.mergeCompanyApplicant.push({groupName:'COMPANIES',groupValues:modifyCompanyList})
// console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
}
})
let modifyApplicantList: any=[];
@ -109,7 +109,7 @@ applicants: any;
// modifyApplicantList.push()
this.mergeCompanyApplicant.push({groupName:'APPLICANTS',groupValues:modifyApplicantList})
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
// this.listOfLanguagues.splice(this.listOfLanguagues.indexOf(languague), 1);
}
@ -128,7 +128,7 @@ applicants: any;
exitsCheck(val)
{
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
if(val =="Yes")
{
@ -232,10 +232,6 @@ inWords(e,i,flag){
selectedfrequency(e,i){
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
// alert('function in');
switch(+e){
case 1: this.placeholderName[i] = 'Instalment Amount'; break;
@ -247,11 +243,11 @@ selectedfrequency(e,i){
case 7: this.placeholderName[i] = 'Monthly Instalment Amount'; break;
default: this.placeholderName[i] = 'Instalment Amount'; break;
}
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
}
submitCurrentloan(answerData) {
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
let records: any = {};
records.pdid = this.pdDetails.pd_id;
records.formid = this.FormId.form_id;
@ -259,9 +255,9 @@ submitCurrentloan(answerData) {
records.existing_loan = answerData.existing_loan;
records.loan_details = answerData.loan_details;
records.currentloan_remarks = answerData.currentloan_remarks;
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
this.qustCat.saveForm(records).subscribe(data => {
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
if(data['dataStatus']==true)
@ -282,10 +278,10 @@ submitCurrentloan(answerData) {
if(res['dataStatus']==true )
{
let currentLoanDetails = res['records'];
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
if(res['records'].loan_details !== undefined && res['records'].loan_details !=null && res['records'].loan_details !=''){
var result = Object.keys(res['records'].loan_details).map(function(key) {
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
return res['records'].loan_details[key];
});
@ -302,22 +298,6 @@ submitCurrentloan(answerData) {
{
result.forEach((datas,index)=>
{
// let objs = {
// 'label': datas.label,
// 'loan_amount': datas.loan_amount,
// 'frequency':datas.frequency,
// 'other_frequency':datas.other_frequency,
// 'emi': datas.emi,
// 'loan_type': datas.loan_type,
// 'others_loan_type': datas.others_loan_type,
// 'loan_taken_by':datas.loan_taken_by,
// 'others_loan_taken':datas.others_loan_taken,
// 'lender': datas.lender,
// 'others_lender':datas.others_lender,
// 'original_tenure': datas.original_tenure,
// 'current_balance_tenure': datas.current_balance_tenure,
// 'elapsed_tenure':datas.elapsed_tenure
// }
control.push(this.createLoanDetail(null));
this.selectedfrequency(datas.frequency,index);
if(datas.loan_amount!=''){
@ -341,24 +321,25 @@ submitCurrentloan(answerData) {
}
else {
// console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
this.qustCat.getAssetsWithLoanFromBusiness(this.pdid).subscribe(data=>{
console.log('Enter');
if(data.dataStatus == true){
console.log("dataStatus",data.dataStatus);
let AssetData = data.record;
console.log(AssetData)
// console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
if(AssetData.business_address_asset.length > 0){
AssetData.business_address_asset.map(element=>{
this.dataFromAssets.push({mode:0,
mode_name:element.address_label,
details:[],
owner_name:element.business_name_of_the_owner,
other_owner: element.business_name_of_the_other_owner,
form_type:'Data From Bussiness Address'})
})
}
@ -369,6 +350,7 @@ submitCurrentloan(answerData) {
mode_name:element.business_assets_mode_name,
details:element.business_details,
owner_name:element.business_name_of_the_owner,
other_owner: element.business_name_of_the_other_owner,
form_type:'Data From Business Assets'})
});
}
@ -379,12 +361,13 @@ submitCurrentloan(answerData) {
mode_name:element.assets_mode_name,
details:element.details,
owner_name:element.name_of_the_owner,
other_owner: element.other_owner,
form_type:'Data From Other Asset'
})
})
}
console.log("DAta",this.dataFromAssets);
// id: "4", name: "Equipments and machinaries", isactive: "1", flag: "1", is_others: "0"
// id: "7", name: "Investments", isactive: "1", flag: "0", is_others: "0"
// id: "6", name: "Life Insurance Policy", isactive: "1", flag: "0", is_others: "0"
@ -397,15 +380,16 @@ submitCurrentloan(answerData) {
this.dataFromAssets.forEach((val,index) => {
if(val.mode == 0){
console.log("0")
let owner = val.owner_name.map((e => {
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
// labelarray[index] = ' : '+owner +' - '+ val.mode_name.split("/")[0] + ' ( ' + val.mode_name.split("/")[1] + ' )';
labelarray[index] = ' : '+owner +' - '+ val.mode_name;
}
if(val.mode == 1){
console.log("1")
let data;
let owner: any = "Owner Not Mentioned";
val.details.forEach((v,index) => {
@ -413,7 +397,8 @@ submitCurrentloan(answerData) {
});
if(val.owner_name.length>0 ){
owner = val.owner_name.map((e => {
return e.name.split(',')
// return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
@ -421,7 +406,7 @@ submitCurrentloan(answerData) {
labelarray[index] = ' : '+owner +' - '+ val.mode_name + description;
}
if(val.mode == 2){
console.log("2")
let owner: any = "Owner Not Mentioned";
let data;
val.details.forEach((v,index) => {
@ -441,7 +426,8 @@ submitCurrentloan(answerData) {
}
if(val.owner_name.length>0){
owner = val.owner_name.map((e => {
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
@ -450,7 +436,7 @@ submitCurrentloan(answerData) {
labelarray[index] = ' : '+owner +' - '+ val.mode_name + description;
}
if(val.mode == 3){
console.log("3")
let data;
let owner: any = "Owner Not Mentioned";
val.details.forEach((v,index) => {
@ -458,7 +444,8 @@ submitCurrentloan(answerData) {
});
if(val.owner_name.length>0){
owner = val.owner_name.map((e => {
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
@ -466,7 +453,7 @@ submitCurrentloan(answerData) {
labelarray[index] = ' : '+owner +' - '+ val.mode_name + description;
}
if(val.mode == 4){
console.log("4")
let data;
let owner: any = "Owner Not Mentioned";
val.details.forEach((v,index) => {
@ -474,7 +461,8 @@ submitCurrentloan(answerData) {
});
if(val.owner_name.length>0 ){
owner = val.owner_name.map((e => {
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
@ -482,21 +470,20 @@ submitCurrentloan(answerData) {
labelarray[index] = ' : '+owner +' - '+ val.mode_name + description;
}
if(val.mode == 6){
console.log("6")
let owner:any="Owner Not Mentioned";
if(val.owner_name.length>0)
{
owner=val.owner_name.map((e=>{
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
// else {
// owner = val.owner_name;
// }
labelarray[index] = ' : '+owner+' - '+ val.mode_name;
}
if(val.mode == 7){
console.log("7")
let data;
let owner: any = "Owner Not Mentioned";
val.details.forEach((v,index) => {
@ -507,15 +494,15 @@ submitCurrentloan(answerData) {
});
if(val.owner_name.length>0){
owner = val.owner_name.map((e => {
return e.name.split(',')
return (e.name == 'Others' ? val.other_owner : e.name).split(',');
}));
}
console.log("exit",owner)
let description = data != '' ? '( '+ data +' )' : '';
labelarray[index] = ' : ' + owner + ' - '+ val.mode_name + description;
var vals= owner + ' - '+ val.mode_name
console.log("labelarr",labelarray[index])
console.log(vals)
}
});
const control = <FormArray>this.currentLoans.controls['loan_details'];
@ -524,7 +511,7 @@ submitCurrentloan(answerData) {
if(this.labelArr.length > 0){
this.currentLoans.controls['existing_loan'].setValue('Yes');
this.labelArr.forEach((v,index) => {
console.log("Label",v);
arr = {
'label': v,
'loan_amount': '',
@ -547,7 +534,7 @@ submitCurrentloan(answerData) {
}
}
else{
console.log('ionViewDidLoad PdQuestionCurrentLoansPage');
control.push(this.createLoanDetail(null));
}

View File

@ -41,10 +41,6 @@
<input matInput placeholder="Enter the relationship" formControlName="personOther">
</mat-form-field> -->
<h5>Residence Details of {{FamilyMemberAsLabel[i]}}</h5>
<mat-form-field style="width:100%">
<input matInput placeholder="Place " formControlName="residence_place" required/>
</mat-form-field>
<mat-form-field>
<mat-select matInput placeholder="State" formControlName="residence_state" required (selectionChange)="getCity($event.value,i)" >
<mat-option [value]="s.state_id" *ngFor="let s of stateData">
@ -59,6 +55,9 @@
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:100%">
<input matInput placeholder="Place " formControlName="residence_place" required/>
</mat-form-field>
<mat-form-field>
<mat-select matInput placeholder="Pin" formControlName="residence_pin" required>
<mat-option *ngFor="let p of pincodeData[i]" [value]="p.pincode_id">
@ -78,7 +77,7 @@
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="tech.get('residence_ownership').value== 3">
<input matInput type="number" placeholder="Rent Amount" formControlName="rent" />
<input matInput type="number" placeholder="Rent Amount" formControlName="rent" (keyup)="inWords($event.target.value,i,2)"/>
<mat-hint align="end" style="font-size: 11px" *ngIf="tech.get('rent').value != ''">{{"&#8377;"}} {{RentAmount[i]}} Only</mat-hint>
</mat-form-field>
<mat-form-field *ngIf="tech.get('residence_ownership').value== 1">
@ -131,7 +130,7 @@
<input matInput placeholder="Specify Others" formControlName="earning_if_others_segment">
</mat-form-field>
<mat-form-field>
<input matInput type="number" placeholder="Income Per Month" formControlName="earning_gross_income_per_month" >
<input matInput type="number" placeholder="Income Per Month" formControlName="earning_gross_income_per_month" (keyup)="inWords($event.target.value,ix,1)">
<mat-hint align="end" style="font-size: 11px" *ngIf="item.get('earning_gross_income_per_month').value != '' ">{{"&#8377;"}} {{IncomePerMonth[ix]}} Only</mat-hint>
</mat-form-field>
<mat-form-field>

View File

@ -111,8 +111,7 @@ data:any;
else{
records.forEach((val,index)=>{
if(val.rent != null){
this.RentAmount[index] = this.cons.convertNumberToWords(val.rent);
this.inWords(val.rent,index,2)
}
this.FamilyMemberAsLabel[index] = this.selectPerson.filter(item => item.pd_co_applicant_id == val.selected_person)[0].applicant_name;
this.getCity(val.residence_state,index);
@ -181,8 +180,8 @@ data:any;
if(vals.earning_gross_income_per_month != null){
this.IncomePerMonth[index] = this.cons.convertNumberToWords(vals.earning_gross_income_per_month);
}
this.inWords(vals.earning_gross_income_per_month,index,1);
}
let datas = this.fb.group({
family_member_name: [vals.family_member_name || null, Validators.compose([])],
family_member_relationship: [vals.family_member_relationship || null, Validators.compose([])],
@ -783,17 +782,14 @@ resValue:any;
}) */
}
/** To Convert Amount into Words */
inWords(e,flag:number,i){
inWords(e,i,flag:number){
switch(flag){
case 1 :
this.RentAmount[i] = this.cons.convertNumberToWords(e.target.value);
break;
this.IncomePerMonth[i] = this.cons.convertNumberToWords(e);
break;
case 2 :
this.IncomePerMonth[i] = this.cons.convertNumberToWords(e.target.value);
break;
default:
break;
this.RentAmount[i] = this.cons.convertNumberToWords(e);
break;
}
}
initSetValue(records):void{

View File

@ -16,7 +16,7 @@
<form [formGroup]="generalForm">
<mat-card style="padding: 0px 10px !important;">
<h6 padding>Name of individuals</h6>
<h6 padding>Name of Person(s) Met and Individual Loan Applicant(s)</h6>
<ion-list formArrayName="list_value">
<ion-item-sliding [formGroupName]="i" *ngFor="let item of generalForm.controls.list_value['controls']; let i=index">
<ion-item>
@ -67,8 +67,8 @@
<div *ngIf="buttonClick" >
<mat-card-header>
<mat-card-title *ngIf="addIndi">Add Individual</mat-card-title>
<mat-card-title *ngIf="!addIndi">Update Individual</mat-card-title>
<mat-card-title *ngIf="addIndi">Add Name of Person(s) Met and Individual Loan Applicant(s)</mat-card-title>
<mat-card-title *ngIf="!addIndi">Update Name of Person(s) Met and Individual Loan Applicant(s)</mat-card-title>
</mat-card-header>
<!--Individual Value add Field-->
<div formArrayName="individuals">
@ -94,10 +94,12 @@
</mat-select>
<mat-error style="color:red;font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="indi.controls['qualification'].errors?.required || indi.controls['qualification'].touched">Qualification is Required</mat-error>
</mat-form-field>
<mat-form-field style="width:100%" *ngIf="indi.get('qualification').value != ''">
<!-- {{indi.get('qualification').value}} -->
<div *ngIf="indi.get('qualification').value !== ''">
<mat-form-field style="width:100%" *ngIf="indi.get('qualification').value != '4'">
<input matInput placeholder="Qualification Details" formControlName="course_name">
</mat-form-field>
</div>
<mat-checkbox class="table-checkbox-com" color="primary" formControlName="is_person_met">Is Person Met</mat-checkbox><br/> <br/>
<mat-checkbox class="table-checkbox-com" color="primary" formControlName="is_applicant">Is Applicant</mat-checkbox>
<ion-row>
@ -269,39 +271,41 @@
</div>
</mat-card-content>
</mat-card>
<!-- companies end -->
<!-- companies end -->
<!-- {{generalForm.controls.persons_with_relationships.length}} -->
<!-- Person Relationship Starts Here -->
<mat-card formArrayName="persons_with_relationships" class="rbi">
<mat-card-header>
<mat-card-title style="font-size:16px;font-weight:bold"> Relationship Between Individuals</mat-card-title>
</mat-card-header>
<div *ngFor="let relation of generalForm.controls.persons_with_relationships['controls']; let i=index" [formGroupName]="i">
<div *ngIf="generalForm.controls.persons_with_relationships.length > 1">
<mat-card formArrayName="persons_with_relationships" class="rbi">
<mat-card-header>
<mat-card-title style="font-size:16px;font-weight:bold"> Relationship Between Individuals</mat-card-title>
</mat-card-header>
<mat-card-content>
<h6>Applicant {{i+1}}</h6>
<mat-form-field style="width:100%">
<mat-select formControlName="applicant_name" placeholder="Applicant">
<mat-option *ngFor="let name of fulldata" [value]="name.applicant_name">{{name.applicant_name}}</mat-option>
</mat-select>
<div *ngFor="let relation of generalForm.controls.persons_with_relationships['controls']; let i=index" [formGroupName]="i">
<mat-card-content>
<h6>Applicant {{i+1}}</h6>
<mat-form-field style="width:100%">
<mat-select formControlName="applicant_name" placeholder="Applicant">
<mat-option *ngFor="let name of fulldata" [value]="name.applicant_name">{{name.applicant_name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select formControlName="relationship" placeholder="Relation">
<mat-option [value]="member.relationship_id" *ngFor="let member of relationShipList">{{member.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select formControlName="relationship" placeholder="Relation">
<mat-option [value]="member.relationship_id" *ngFor="let member of relationShipList">{{member.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width:100%" >
<mat-select placeholder="RelationTo" formControlName="relation_to">
<mat-option>Select</mat-option>
<mat-option [value]="rel.pd_co_applicant_id" *ngFor="let rel of individualsList ">{{rel.applicant_name | titlecase}}</mat-option>
<mat-option value="0">Not Applicable</mat-option>
</mat-select>
</mat-form-field>
</mat-card-content>
</div>
</mat-card>
<mat-form-field style="width:100%" >
<mat-select placeholder="RelationTo" formControlName="relation_to">
<mat-option>Select</mat-option>
<mat-option [value]="rel.pd_co_applicant_id" *ngFor="let rel of individualsList ">{{rel.applicant_name | titlecase}}</mat-option>
<mat-option value="0">Not Applicable</mat-option>
</mat-select>
</mat-form-field>
</mat-card-content>
</div>
</mat-card>
</div>
<mat-card>
<div formArrayName="company_with_relationships">

View File

@ -825,9 +825,10 @@ getDateObjects(values: any, controlIndex) {
}
temp: number = 0;
submitData(answerData)
{
console.log('1)',this.temp);
let saveRecords:any={}
var valuesData_indi:any=[]
@ -857,20 +858,19 @@ temp: number = 0;
}
if (valuesData_indi.length > 0) {
console.log('2)',this.temp);
valuesData_indi.forEach((val, index) => {
if (val.is_person_met == false) {
this.temp++;
}
console.log('3)',this.temp);
});
console.log('4)',this.temp,'length',valuesData_indi.length);
if (this.temp == valuesData_indi.length) {
console.log('5)',this.temp);
this.toast.pdTriggerappmessage('Please Choose Name of Person Met.!');
this.temp = 0;
console.log('6)',this.temp);
return;
}
}

View File

@ -27,8 +27,8 @@
<input matInput autocomplete="off" placeholder="No of Months" formControlName="loan_tenure" type="number">
</mat-form-field>
<mat-form-field style="width:100%">
<mat-select placeholder="Sub Product" formControlName="sub_product" (selectionChange)="subProductChange($event.value)">
<mat-option *ngFor="let sub of subProductData" [value]="sub.subproduct_id">{{sub.name}}</mat-option>
<mat-select placeholder="Sub Product" formControlName="sub_product" (selectionChange)="onChangeSubProduct($event.value)">
<mat-option *ngFor="let sub of m_endUseofLoad" [value]="sub.subproduct_id">{{sub.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width: 100%">

View File

@ -59,8 +59,6 @@ export class PdQuestionLoansPage {
sourceList:any=[];
pdid:number;
m_endUseForLoan:any;
subProductData: any=[];
constructor(public navCtrl: NavController, public navParams: NavParams, public fb: FormBuilder, public qustCat: QuestionCategoryProvider, public aws: AwsServiceProvider, public toast: ToastProvider,public constant:ConstantsProvider) {
this.FormId = this.navParams.get('FormId');
@ -133,11 +131,13 @@ export class PdQuestionLoansPage {
data => {
this.m_btLenderList = data['records'].filter(data => data.isactive == 1);
})
this.qustCat.getEndUseForLoan(this.pdid,this.pdDetails.fk_subproduct_id).subscribe(data=>{
this.m_endUseForLoan=data['records'].filter(data=>data.isactive==1);
});
this.qustCat.getcommondrop('STATUSOFCONSTRUCTION').subscribe(
data => {
this.m_statusofCunstruction = data['records'].filter(data => data.isactive == 1);
@ -211,14 +211,7 @@ export class PdQuestionLoansPage {
}
this.qustCat.getcommondrop('ENDUSEOFTOPUP').subscribe(data=>{
this.m_endUseOFTopUpList=data['records'].filter(val=>val.is_active == 1)
})
this.qustCat.getcommondrop('SUBPRODUCTS').subscribe(data=>{
this.subProductData=data['records'].filter(val=>val.isactive ==1);
console.log(this.subProductData);
})
})
}
selectedBalancesTransferChanges(event: any){
@ -306,11 +299,14 @@ export class PdQuestionLoansPage {
} }
//this.loanDetailsForm.controls['topup_amount'].setValue(topupAmt);
}
subProductChange(event){
this.qustCat.getEndUseForLoan(this.pdid,event).subscribe(res=>{
this.m_endUseForLoan=res['records'].filter(data=>data.isactive==1);
})
onChangeSubProduct(subproduct) {
this.qustCat.getEndUseForLoan(this.pdid,subproduct).subscribe(
data => {
this.m_endUseForLoan = data['records'].filter(data => data.isactive == 1);
});
}
endUserChange(event) {
//this.endUserList = [];
event.forEach(option => {

View File

@ -1,200 +1,206 @@
<ion-header>
<ion-navbar color="optblue">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title *ngIf="!viewchange">{{FormId.form_name}}</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<form [formGroup]="neighbourhoodForm">
<mat-card>
<mat-label>Please Select the type</mat-label><br/>
<mat-radio-group formControlName="check_type" class="example-radio-group" style="width: 100%;">
<mat-radio-button style="margin-top:10px" class="example-radio-button" color="primary" [value]="types.id" *ngFor="let types of check_type; let t = index">{{types.type_name}}</mat-radio-button>
</mat-radio-group>
</mat-card>
<mat-card *ngIf="neighbourhoodForm.get('check_type').value==0">
<div formArrayName="neighbourhood_list">
<div *ngFor="let neighbourhood of neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index;let last=last;"
[formGroupName]="n">
<ion-navbar color="optblue">
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title *ngIf="!viewchange">{{FormId.form_name}}</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<form [formGroup]="neighbourhoodForm">
<!-- <mat-card>
<mat-label>Please Select the type</mat-label><br/>
<mat-radio-group formControlName="check_type" class="example-radio-group" style="width: 100%;">
<mat-radio-button style="margin-top:10px" class="example-radio-button" color="primary" [value]="types.id" *ngFor="let types of check_type; let t = index">{{types.type_name}}</mat-radio-button>
</mat-radio-group>
</mat-card> -->
<mat-card *ngIf="neighbourhoodForm.get('check_type').value==0">
<div formArrayName="neighbourhood_list">
<div *ngFor="let neighbourhood of neighbourhoodForm.controls.neighbourhood_list['controls']; let n = index;let last=last;"
[formGroupName]="n">
<h5>Neighbour Details #{{n+1}}</h5><br/>
<h5>Neighbour Details #{{n+1}}</h5><br/>
<mat-form-field style="width: 100%">
<input matInput placeholder="Neighbour Name" formControlName="neighbourhood_name" type="text">
</mat-form-field>
<mat-form-field style="width: 100%">
<mat-select placeholder="Do you know about the applicants or their business?" formControlName="do_know">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<div *ngIf="neighbourhood.controls.do_know.value!=''">
<br/>
<div appearance="outline">
<label>As per you how long has this business been in operation? </label><br/>
<label style="font-size: 13px;font-weight: bold" float-right color="primary">Do not know &nbsp;
<mat-slide-toggle style="zoom: 0.9;" float-right color="primary" formControlName="did_not_know_the_business_operation" (change)="toggleVisibility($event.checked,n,1)"></mat-slide-toggle></label>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Years" formControlName="how_long_do_know_in_year" type="text" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Months" formControlName="how_long_do_know_in_month" type="text" (keypress)="keyPress($event)" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
<mat-form-field style="width: 100%">
<input matInput placeholder="Neighbour Name" formControlName="neighbourhood_name" type="text">
<mat-error style="color:red;font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].neighbourhood_name.errors?.required || neighbourhood['controls'].neighbourhood_name.touched">Neighbourhood Name is Required</mat-error>
</mat-form-field>
</div>
<br/>
<div *ngIf="neighbourhood.controls.do_know.value!='' ">
<mat-form-field *ngIf="!isDisplay2[n]">
<!-- <mat-select placeholder="Who is the owner of the organisation?" formControlName="organisation_owner">
<mat-option *ngFor="let list of applicants" [value]="list.pd_co_applicant_id">{{list.applicant_name}}</mat-option>
</mat-select> -->
<mat-select multiple placeholder="Who is the owner of the organisation?" formControlName="organisation_owner" [compareWith]="compareObjects" (selectionChange)="getOtherOrganisationOwner($event.value,n)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let app of group.groupValues" [value]="app">{{app.name}}</mat-option>
</mat-optgroup>
<mat-form-field style="width: 100%">
<mat-select placeholder="Do you know about the applicants or their business?" formControlName="do_know">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="isOrganisationOwner[n]">
<input matInput autocomplete="off" placeholder="Specify Owner name" formControlName="other_organisation_owner" type="text">
<mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].do_know.errors?.required || neighbourhood['controls'].do_know.touched">Please Choose</mat-error>
</mat-form-field>
<label *ngIf="isDisplay2[n]">Who is the owner of the organisation?</label><br/>
<label style="font-size: 13px;font-weight: bold" float-right color="primary">Do not know &nbsp;
<mat-slide-toggle style="zoom: 0.9;" float-right formControlName="did_not_know_the_owner" color="primary" (change)="toggleVisibility($event.checked,n,2)"></mat-slide-toggle></label>
</div><br/><br/>
</div>
<ion-buttons end>
<ion-col offset-3 col-3>
<a (click)="removeneighbourhood(n)">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon>
</a>
</ion-col>
<ion-col offset-1 col-2>
<a (click)="addneighbourhood()" *ngIf="last">
<ion-icon name="add-circle" color="optblue" style="font-size: 24px;"></ion-icon>
</a>
</ion-col>
</ion-buttons>
</div>
</div>
</mat-card>
<mat-card *ngIf="neighbourhoodForm.controls.check_type.value==0">
<div>
<mat-form-field >
<mat-select placeholder="Status of the check as per PD officer?" formControlName="neighbourhood_status">
<mat-option value="Positive">Positive</mat-option>
<mat-option value="Negative">Negative</mat-option>
</mat-select>
</mat-form-field>
</div>
</mat-card>
<mat-card *ngIf="neighbourhoodForm.get('check_type').value==1">
<div formArrayName="referencecheck_list">
<div *ngFor="let reference of neighbourhoodForm.controls.referencecheck_list['controls'];let r=index;let last=last" [formGroupName]="r">
<h5>Reference Details #{{r+1}}</h5><br/>
<mat-form-field style="width: 100%">
<input matInput placeholder="Name" formControlName="reference_name" type="text">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput placeholder="Mobile Number" formControlName="mobile" type="number" (keypress)="keyPress($event)">
<mat-error *ngIf="reference['controls'].mobile.hasError('maxlength') || reference['controls'].mobile.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
</mat-form-field>
<p style="color:red;font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="reference['controls'].mobile.touched && reference['controls'].mobile.hasError('maxlength') || reference.controls['mobile'].hasError('minLength')"> Enter valid Mobile Number</p>
<p> Landline Number</p>
<mat-form-field >
<input matInput placeholder="Code" formControlName="statecode" minlength="2" type="number" maxlength="4" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Number" formControlName="landline" minlength="6" type="number" maxlength="8" (keypress)="keyPress($event)">
<div *ngIf="neighbourhood.controls.do_know.value!=''">
<br/>
<div appearance="outline">
<label>As per you how long has this business been in operation? </label><br/>
<label style="font-size: 13px;font-weight: bold" float-right color="primary">Do not know &nbsp;
<mat-slide-toggle style="zoom: 0.9;" float-right color="primary" formControlName="did_not_know_the_business_operation" (change)="toggleVisibility($event.checked,n,1)"></mat-slide-toggle></label>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Years" formControlName="how_long_do_know_in_year" type="text" (keypress)="keyPress($event)">
<mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].how_long_do_know_in_year.errors?.required || neighbourhood['controls'].how_long_do_know_in_year.touched">Year is Required</mat-error>
</mat-form-field>
<mat-form-field style="width: 100%">
<textarea matInput placeholder="Location" formControlName="location"></textarea>
</mat-form-field>
<mat-form-field style="width: 100%">
<mat-select placeholder="Relation With Business" formControlName="relationship_with">
<mat-option>Select</mat-option>
<mat-option *ngFor="let relationship of relationBusiness" [value]="relationship.relation_with_business_id">
{{relationship.relation_with_business_name | titlecase}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width: 100%" *ngIf="reference.controls.relationship_with.value==1">
<input matInput placeholder="Others" formControlName="others" type="text">
</mat-form-field>
<p #period_paragraph>Period of Relationship</p>
<mat-form-field style="width: 100%">
<input matInput placeholder="Year" formControlName="year_relation_applicant" type="number" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput placeholder="Month" formControlName="months_relation_applicant" type="number" (keypress)="keyPress($event)" (change)="ConvertMonthintoYear(reference,$event.target.value,2)">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput [placeholder]="reference.controls.relationship_with.value ==4 ? 'Rent Amount' : 'Volume of Business'" formControlName="business_volume_amount"
type="text" (keyup)="inWords($event,r)" (keypress)="keyPress($event)">
<mat-hint align="end" *ngIf="reference.controls.business_volume_amount.value != ''">{{amtInWords[r]}}</mat-hint>
</mat-form-field>
<mat-form-field style="width: 100%">
<mat-select placeholder="Unit" formControlName="business_volume_unit">
<mat-option>Select</mat-option>
<mat-option *ngFor="let volume of frequency" [value]="volume.frequency_id">
{{volume.name | titlecase}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="reference.controls.business_volume_unit.value == 1 ">
<input matInput type="text" formControlName="others_unit" placeholder="Specify Unit" autocomplete="off">
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Final remarks of PD officer on Reference Check done" formControlName="reference_final_remarks">
<mat-option>Select</mat-option>
<mat-option *ngFor="let rem of finalRemarksList" [value]="rem.id">{{rem.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="reference.controls.reference_final_remarks.value !='' ">
<input matInput autocomplete="off" placeholder="Specify Remarks for PD OFFICER" formControlName="specify_final_remark" type="text">
</mat-form-field>
<ion-buttons end>
<ion-col offset-3 col-3>
<a (click)="removereferance(r)">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon>
<mat-form-field style="width: 100%" *ngIf="!isDisplay[n]">
<input matInput type="number" placeholder="Months" formControlName="how_long_do_know_in_month" type="text" (keypress)="keyPress($event)" (change)="ConvertMonthintoYear(neighbourhood,$event.target.value,1)">
<!-- <mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].how_long_do_know_in_month.errors?.required || neighbourhood['controls'].how_long_do_know_in_month.touched">Month is Required</mat-error> -->
</mat-form-field>
</div>
<br/>
<div *ngIf="neighbourhood.controls.do_know.value!='' ">
<mat-form-field *ngIf="!isDisplay2[n]">
<!-- <mat-select placeholder="Who is the owner of the organisation?" formControlName="organisation_owner">
<mat-option *ngFor="let list of applicants" [value]="list.pd_co_applicant_id">{{list.applicant_name}}</mat-option>
</mat-select> -->
<mat-select multiple placeholder="Who is the owner of the organisation?" formControlName="organisation_owner" [compareWith]="compareObjects" (selectionChange)="getOtherOrganisationOwner($event.value,n)">
<mat-optgroup *ngFor="let group of mergeCompanyApplicant" [label]="group.groupName">
<mat-option *ngFor="let app of group.groupValues" [value]="app">{{app.name}}</mat-option>
</mat-optgroup>
</mat-select>
<mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].organisation_owner.errors?.required || neighbourhood['controls'].organisation_owner.touched">pick atleast one organisation owner</mat-error>
</mat-form-field>
<mat-form-field *ngIf="isOrganisationOwner[n]">
<input matInput autocomplete="off" placeholder="Specify Owner name" formControlName="other_organisation_owner" type="text">
<mat-error style="font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="neighbourhood['controls'].organisation_owner.errors?.required || neighbourhood['controls'].organisation_owner.touched">organisation owner is required</mat-error>
</mat-form-field>
<label *ngIf="isDisplay2[n]">Who is the owner of the organisation?</label><br/>
<label style="font-size: 13px;font-weight: bold" float-right color="primary">Do not know &nbsp;
<mat-slide-toggle style="zoom: 0.9;" float-right formControlName="did_not_know_the_owner" color="primary" (change)="toggleVisibility($event.checked,n,2)"></mat-slide-toggle></label>
</div><br/><br/>
</div>
<ion-buttons end>
<ion-col offset-3 col-3>
<a (click)="removeneighbourhood(n)" *ngIf="neighbourhoodForm.controls.neighbourhood_list.controls.length > 1">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon>
</a>
</ion-col>
<ion-col offset-1 col-2>
<a (click)="addreferance()" *ngIf="last">
<ion-icon name="add-circle" color="optblue" style="font-size: 24px;"></ion-icon>
</ion-col>
<ion-col offset-1 col-2>
<a (click)="addneighbourhood()" *ngIf="last">
<ion-icon name="add-circle" color="optblue" style="font-size: 24px;"></ion-icon>
</a>
</ion-col>
</ion-col>
</ion-buttons>
</div>
</div>
</div>
</mat-card>
<mat-card>
<mat-form-field>
<textarea matInput type="text" placeholder="Remarks" name="neighbour_reference_remark" formControlName="neighbour_reference_remark"></textarea>
</mat-form-field>
</mat-card>
<ion-row>
<button ion-button full color="optblue" (click)="submitData(neighbourhoodForm.value)"> Save</button>
<!-- </ion-buttons> -->
</ion-row>
</form>
</ion-content>
<mat-card *ngIf="neighbourhoodForm.controls.check_type.value==0">
<div>
<mat-form-field >
<mat-select placeholder="Status of the check as per PD officer?" formControlName="neighbourhood_status">
<mat-option value="Positive">Positive</mat-option>
<mat-option value="Negative">Negative</mat-option>
</mat-select>
</mat-form-field>
</div>
</mat-card>
<mat-card *ngIf="neighbourhoodForm.get('check_type').value==1">
<div formArrayName="referencecheck_list">
<div *ngFor="let reference of neighbourhoodForm.controls.referencecheck_list['controls'];let r=index;let last=last" [formGroupName]="r">
<h5>Reference Details #{{r+1}}</h5><br/>
<mat-form-field style="width: 100%">
<input matInput placeholder="Name" formControlName="reference_name" type="text">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput placeholder="Mobile Number" formControlName="mobile" type="number" (keypress)="keyPress($event)">
<mat-error *ngIf="reference['controls'].mobile.hasError('maxlength') || reference['controls'].mobile.hasError('minlength')">Enter Valid Mobile Number. </mat-error>
</mat-form-field>
<p style="color:red;font-size:12px;margin:0;padding:0;font-weight: normal;float:right" *ngIf="reference['controls'].mobile.touched && reference['controls'].mobile.hasError('maxlength') || reference.controls['mobile'].hasError('minLength')"> Enter valid Mobile Number</p>
<p> Landline Number</p>
<mat-form-field >
<input matInput placeholder="Code" formControlName="statecode" minlength="2" type="number" maxlength="4" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Number" formControlName="landline" minlength="6" type="number" maxlength="8" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field style="width: 100%">
<textarea matInput placeholder="Location" formControlName="location"></textarea>
</mat-form-field>
<mat-form-field style="width: 100%">
<mat-select placeholder="Relation With Business" formControlName="relationship_with">
<mat-option>Select</mat-option>
<mat-option *ngFor="let relationship of relationBusiness" [value]="relationship.relation_with_business_id">
{{relationship.relation_with_business_name | titlecase}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field style="width: 100%" *ngIf="reference.controls.relationship_with.value==1">
<input matInput placeholder="Others" formControlName="others" type="text">
</mat-form-field>
<p #period_paragraph>Period of Relationship</p>
<mat-form-field style="width: 100%">
<input matInput placeholder="Year" formControlName="year_relation_applicant" type="number" (keypress)="keyPress($event)">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput placeholder="Month" formControlName="months_relation_applicant" type="number" (keypress)="keyPress($event)" (change)="ConvertMonthintoYear(reference,$event.target.value,2)">
</mat-form-field>
<mat-form-field style="width: 100%">
<input matInput [placeholder]="reference.controls.relationship_with.value ==4 ? 'Rent Amount' : 'Volume of Business'" formControlName="business_volume_amount"
type="text" (keyup)="inWords($event,r)" (keypress)="keyPress($event)">
<!-- <mat-hint align="end" *ngIf="reference.controls.business_volume_amount.value != ''">{{amtInWords[r]}}</mat-hint> -->
</mat-form-field>
<mat-form-field style="width: 100%">
<mat-select placeholder="Unit" formControlName="business_volume_unit">
<mat-option>Select</mat-option>
<mat-option *ngFor="let volume of frequency" [value]="volume.frequency_id">
{{volume.name | titlecase}}
</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="reference.controls.business_volume_unit.value == 1 ">
<input matInput type="text" formControlName="others_unit" placeholder="Specify Unit" autocomplete="off">
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Final remarks of PD officer on Reference Check done" formControlName="reference_final_remarks">
<mat-option>Select</mat-option>
<mat-option *ngFor="let rem of finalRemarksList" [value]="rem.id">{{rem.name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="reference.controls.reference_final_remarks.value !='' ">
<input matInput autocomplete="off" placeholder="Specify Remarks for PD OFFICER" formControlName="specify_final_remark" type="text">
</mat-form-field>
<ion-buttons end>
<ion-col offset-3 col-3>
<a (click)="removereferance(r)">
<ion-icon name="md-trash" color="optblue" style="font-size: 22px;"></ion-icon>
</a>
</ion-col>
<ion-col offset-1 col-2>
<a (click)="addreferance()" *ngIf="last">
<ion-icon name="add-circle" color="optblue" style="font-size: 24px;"></ion-icon>
</a>
</ion-col>
</ion-buttons>
</div>
</div>
</mat-card>
<mat-card>
<mat-form-field>
<textarea matInput type="text" placeholder="Remarks" name="neighbour_reference_remark" formControlName="neighbour_reference_remark"></textarea>
</mat-form-field>
</mat-card>
<ion-row>
<button ion-button full color="optblue" (click)="submitData(neighbourhoodForm.value)"> Save</button>
<!-- </ion-buttons> -->
</ion-row>
</form>
</ion-content>

View File

@ -31,7 +31,7 @@ export class PdQuestionNeighbourHoodPage {
{'id': 2,'name': "Negative"},
{'id': 3,'name': "Insufficient information provided"}];
amtInWords:any=[];
// amtInWords:any=[];
applicants:any;
isDisplay:any = [];
isDisplay2:any = [];
@ -47,7 +47,7 @@ export class PdQuestionNeighbourHoodPage {
this.applicants.push({'pd_co_applicant_id': 0,'applicant_name': "Others"})
this.neighbourhoodForm = this.fb.group(
{
pdid:this.pdDetails.pd_id,
pdid:this.pdDetails.pd_id,
formid:this.FormId.form_id,
check_type:0,
neighbourhood_list: this.fb.array([]),
@ -62,7 +62,7 @@ export class PdQuestionNeighbourHoodPage {
}
ionViewDidLoad() {
console .log('ionViewDidLoad PdQuestionNeighbourHoodPage');
console.log('ionViewDidLoad PdQuestionNeighbourHoodPage');
this.getneighbourhood();
}
@ -108,7 +108,7 @@ export class PdQuestionNeighbourHoodPage {
}
inWords(val,i)
{
this.amtInWords[i]=this.constant.convertNumberToWords(val.target.value)
// this.amtInWords[i]=this.constant.convertNumberToWords(val.target.value)
}
keyPress(event: any) {
const pattern = /[0-9]/;
@ -269,12 +269,65 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
submitData(answerData)
{
const neighbourhoodControl : FormGroup = this.neighbourhoodForm.controls['neighbourhood_list'] as FormGroup;
let NbhdCtrlLength: any = neighbourhoodControl.controls.length;
if (NbhdCtrlLength > 0) {
let Ncnt = 0;
while(Ncnt < NbhdCtrlLength){
let nbhdChildCtrl : any = neighbourhoodControl.controls[Ncnt];
nbhdChildCtrl.controls['neighbourhood_name'].setValidators([Validators.required]);
nbhdChildCtrl.controls['neighbourhood_name'].updateValueAndValidity();
nbhdChildCtrl.controls['do_know'].setValidators([Validators.required]);
nbhdChildCtrl.controls['do_know'].updateValueAndValidity();
if(nbhdChildCtrl.controls.do_know.value != ''){
// console.log('nbhdChildCtrl.controls.did_not_know_the_business_operation.value',nbhdChildCtrl.controls.did_not_know_the_business_operation.value)
if(nbhdChildCtrl.controls.did_not_know_the_business_operation.value == '' || nbhdChildCtrl.controls.did_not_know_the_business_operation.value == false){
// console.log('IF nbhdChildCtrl.controls.did_not_know_the_business_operation.value',nbhdChildCtrl.controls.did_not_know_the_business_operation.value)
// nbhdChildCtrl.controls['how_long_do_know_in_month'].setValidators([Validators.required]);
// nbhdChildCtrl.controls['how_long_do_know_in_month'].updateValueAndValidity();
nbhdChildCtrl.controls['how_long_do_know_in_year'].setValidators([Validators.required]);
nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity();
}
else if(nbhdChildCtrl.controls.did_not_know_the_business_operation.value == true){
// console.log('ELSE nbhdChildCtrl.controls.did_not_know_the_business_operation.value',nbhdChildCtrl.controls.did_not_know_the_business_operation.value)
nbhdChildCtrl.controls['how_long_do_know_in_month'].setValue('');
// nbhdChildCtrl.controls['how_long_do_know_in_month'].clearValidators();
nbhdChildCtrl.controls['how_long_do_know_in_month'].updateValueAndValidity();
nbhdChildCtrl.controls['how_long_do_know_in_year'].setValue('');
nbhdChildCtrl.controls['how_long_do_know_in_year'].clearValidators();
nbhdChildCtrl.controls['how_long_do_know_in_year'].updateValueAndValidity();
}
if(nbhdChildCtrl.controls.did_not_know_the_owner.value == '' || nbhdChildCtrl.controls.did_not_know_the_owner.value == false){
nbhdChildCtrl.controls['organisation_owner'].setValidators([Validators.required]);
nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity();
}
else if(nbhdChildCtrl.controls.did_not_know_the_owner.value == true){
nbhdChildCtrl.controls['organisation_owner'].setValue('');
nbhdChildCtrl.controls['organisation_owner'].clearValidators();
nbhdChildCtrl.controls['organisation_owner'].updateValueAndValidity();
}
}
Ncnt++;
}
this.neighbourhoodForm.controls.neighbourhood_status.setValidators([Validators.required]);
this.neighbourhoodForm.controls.neighbourhood_status.updateValueAndValidity();
}
if (this.neighbourhoodForm.invalid) {
// this.validateAllFormFields(this._neighbourhoodForm);
this.toast.pdTriggerappmessage('Please Fill All Mandatory Fields.!');
return;
}
let saveRecords:any = {}
let referencecheck_list:any=[];
let neighbourhood_list:any=[];
if(answerData.check_type==0){
// if(answerData.check_type==0){
answerData.neighbourhood_list.forEach((element,key) => {
neighbourhood_list.push({
"neighbourhood_name":element.neighbourhood_name,
@ -290,8 +343,8 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
});
saveRecords.neighbourhood_list=neighbourhood_list;
}
else{
// }
// else{
// this for referencecheck_list for selected
answerData.referencecheck_list.forEach((element,key) => {
referencecheck_list.push({
@ -312,10 +365,10 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
});
saveRecords.referencecheck_list=referencecheck_list;
}
// }
saveRecords.pdid=answerData.pdid;
saveRecords.formid=answerData.formid;
saveRecords.check_type=answerData.check_type;
// saveRecords.check_type=answerData.check_type;
saveRecords.fk_createdby = this.users;
saveRecords.neighbourhood_status=answerData.neighbourhood_status
saveRecords.neighbour_reference_remark=answerData.neighbour_reference_remark;
@ -347,16 +400,21 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
let neighbourDetails = res['records'];
// neighbourDetails.neighbourhood_list.=''
if(neighbourDetails.check_type==0)
{
// if(neighbourDetails.check_type==0)
// {
this.neighbourhoodForm.controls['check_type'].setValue(neighbourDetails.check_type);
this.neighbourhoodForm.controls['check_type'].setValue(0);//this one for mobile only
this.neighbourhoodForm.controls['neighbour_reference_remark'].setValue(neighbourDetails.neighbour_reference_remark);
this.neighbourhoodForm.controls['neighbourhood_status'].setValue(neighbourDetails.neighbourhood_status)
let neighbourhood_list = Object.keys(res['records'].neighbourhood_list).map(function(key)
{
return res['records'].neighbourhood_list[key];
});
console.log('neighbourhood_list',neighbourhood_list);
console.log('length',neighbourhood_list.length);
if(neighbourhood_list.length > 0){
neighbourhood_list.forEach((element,index)=>
{
this.toggleVisibility(element.did_not_know_the_business_operation,index,1);
@ -371,13 +429,16 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
{
this.addneighbourhood();
}
if(neighbourDetails.check_type==1)
{
// if(neighbourDetails.check_type==1)
// {
let referencecheck_list = Object.keys(res['records'].referencecheck_list).map(function(key)
{
return res['records'].referencecheck_list[key];
});
this.neighbourhoodForm.controls['check_type'].setValue(neighbourDetails.check_type);
console.log('referencecheck_list',referencecheck_list);
console.log('length',referencecheck_list.length);
if(referencecheck_list.length > 0){
// this.neighbourhoodForm.controls['check_type'].setValue(neighbourDetails.check_type);
this.neighbourhoodForm.controls['neighbour_reference_remark'].setValue(neighbourDetails.neighbour_reference_remark);
referencecheck_list.forEach((val,index)=>
{
@ -385,7 +446,7 @@ ChdCtrls.controls.other_organisation_owner.updateValueAndValidity();
referencecheck_list[index].statecode = val.landline.substr(0,statecodesearch);
referencecheck_list[index].landline = val.landline.substr(+statecodesearch + 1,8);
control.push(this.createreferance());
this.amtInWords[index]=this.constant.convertNumberToWords(val.business_volume_amount);
// this.amtInWords[index]=this.constant.convertNumberToWords(val.business_volume_amount);
});
this.neighbourhoodForm.controls['referencecheck_list'].setValue(referencecheck_list);

View File

@ -46,6 +46,7 @@
<mat-form-field style="width:100%" *ngIf="details.get('source').value == '5'">
<mat-label>Address</mat-label>
<input matInput placeholder="Rental Info Details" formControlName="address" autocomplete="off">
<mat-hint align="end"><i (click)="Toview()">Rental Info Details</i></mat-hint>
</mat-form-field>
<mat-form-field style="width: 100%;"*ngIf="details.get('source').value == '1'">
<input matInput placeholder="Specify Others Source"

View File

@ -5,6 +5,7 @@ import { QuestionCategoryProvider } from '../../../providers/question-category/q
import { AwsServiceProvider } from '../../../providers/aws-service/aws-service';
import { ToastProvider } from '../../../providers/common-provider/toast';
import { ConstantsProvider } from '../../../providers/constants/constants'
import { PdQuestionRentalInfoPage } from '../pd-question-rental-info/pd-question-rental-info';
/**
* Generated class for the PdQuestionOtherIncomePage page.
@ -38,7 +39,6 @@ export class PdQuestionOtherIncomePage {
applicants: any=[];
isOrganisationOwner: any=[];
constructor(public navCtrl: NavController, public navParams: NavParams,public fb:FormBuilder,public qustCat:QuestionCategoryProvider,public aws:AwsServiceProvider,public toast:ToastProvider, public constant:ConstantsProvider) {
this.pdDetails = this.navParams.get('pdDetails');
this.pdid=this.pdDetails.pd_id;
this.FormId = this.navParams.get('FormId');
@ -47,6 +47,18 @@ export class PdQuestionOtherIncomePage {
this.getFrequency();
this.users = this.aws.getlocale();
// this.qustCat.getLoadTemplate(this.pdid).subscribe(res=>
// {
// this.one = res;
// if(this.one.dataStatus == true)
// {
// this.one = this.one.records.template_forms;
// let one = this.one.records.template_forms.filter(val=>val.form_id == '17')
// console.log(this.one,one);
// }
// });
this.otherIncomeForm = this.fb.group({
other_income: [null],
otherincome_remarks:[null],
@ -199,8 +211,17 @@ ChdCtrls.controls.others_income_earned_by.updateValueAndValidity();
inWords(val,i){
this.amtInWords[i]=this.constant.convertNumberToWords(val.target.value)
}
Toview(){
alert('Rental Income Details - Is inprogress');
// here Hardcoded;
// let RIFormDtls = {'form_id':17,'form_name':'Rental Verification'};
// this.navCtrl.push(PdQuestionRentalInfoPage,{'FormId':RIFormDtls,'pdDetails':this.pdDetails});
}
submitOtherIncome(answerData)
{
let records: any = {};
records.pdid = this.pdDetails.pd_id;
records.formid = this.FormId.form_id;

File diff suppressed because one or more lines are too long

View File

@ -25913,7 +25913,7 @@ var ReactiveFormsModule = (function () {
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_6__components_alert_alert_controller__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__components_alert_alert_component__ = __webpack_require__(148);
/* unused harmony reexport AlertCmp */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__components_app_app__ = __webpack_require__(22);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_8__components_app_app__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__components_avatar_avatar__ = __webpack_require__(252);
/* unused harmony reexport Avatar */
@ -26594,7 +26594,8 @@ var SafeSubscriber = /*@__PURE__*/ (function (_super) {
/***/ }),
/* 7 */,
/* 8 */
/* 8 */,
/* 9 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -33181,7 +33182,6 @@ var VERSION = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["_8" /* Version */
/***/ }),
/* 9 */,
/* 10 */,
/* 11 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
@ -35265,7 +35265,7 @@ function getPromiseCtor(promiseCtor) {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Subject__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_Subject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_platform_browser__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_cdk_keycodes__ = __webpack_require__(31);
/**
@ -38584,7 +38584,8 @@ __export(__webpack_require__(530));
//# sourceMappingURL=Subject.js.map
/***/ }),
/* 21 */
/* 21 */,
/* 22 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
@ -39026,7 +39027,6 @@ var CLICK_BLOCK_BUFFER_IN_MILLIS = 64;
//# sourceMappingURL=app.js.map
/***/ }),
/* 22 */,
/* 23 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
@ -39367,7 +39367,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* unused harmony export GestureDelegate */
/* unused harmony export BlockerDelegate */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_app_app__ = __webpack_require__(22);
/** @hidden */
@ -40127,7 +40127,7 @@ function flattenUnsubscriptionErrors(errors) {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_operators_take__ = __webpack_require__(39);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_operators_take___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_operators_take__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__);
@ -43834,7 +43834,7 @@ var AnonymousSubject = /*@__PURE__*/ (function (_super) {
/* unused harmony export Dir */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BidiModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/**
* @license
* Copyright Google LLC All Rights Reserved.
@ -47200,7 +47200,7 @@ var MapSubscriber = /*@__PURE__*/ (function (_super) {
/* unused harmony export ɵh */
/* unused harmony export ɵd */
/* unused harmony export ɵe */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tslib__ = __webpack_require__(1);
/**
@ -52658,7 +52658,7 @@ var CLS = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_operator_map__ = __webpack_require__(260);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_map__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_Observable__ = __webpack_require__(48);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_rxjs_Observable__);
/**
@ -57345,7 +57345,7 @@ var KEY_TAB = 9;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Content; });
/* unused harmony export updateImgs */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__platform_dom_controller__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ion__ = __webpack_require__(13);
@ -59349,7 +59349,7 @@ function setControlCss(element, control) {
/* unused harmony export ɵd */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_scrolling__ = __webpack_require__(121);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_bidi__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_portal__ = __webpack_require__(57);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tslib__ = __webpack_require__(1);
@ -64028,7 +64028,7 @@ __export(__webpack_require__(621));
/* unused harmony export MatSuffix */
/* unused harmony export MatLabel */
/* unused harmony export matFormFieldAnimations */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_coercion__ = __webpack_require__(19);
@ -66420,7 +66420,7 @@ var SplitPane = (function (_super) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Navbar; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_util__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__navigation_nav_controller__ = __webpack_require__(66);
@ -70877,7 +70877,7 @@ var ScrollDispatchModule = /** @class */ (function () {
/* unused harmony export MatButton */
/* unused harmony export MatAnchor */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tslib__ = __webpack_require__(1);
@ -72689,7 +72689,7 @@ var SwitchMapSubscriber = /*@__PURE__*/ (function (_super) {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppRootToken; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IonicApp; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ion__ = __webpack_require__(13);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__overlay_portal__ = __webpack_require__(247);
@ -74352,7 +74352,7 @@ var ItemReorder = (function () {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PickerController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__picker__ = __webpack_require__(267);
@ -75899,7 +75899,7 @@ var loadingIds = -1;
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Nav; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__navigation_deep_linker__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__platform_dom_controller__ = __webpack_require__(25);
@ -79437,7 +79437,7 @@ var SWIPER_EFFECTS = {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Subject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_takeUntil__ = __webpack_require__(275);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_takeUntil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_takeUntil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__navigation_deep_linker__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ion__ = __webpack_require__(13);
@ -83093,7 +83093,7 @@ var ObserversModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_rxjs_observable_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_rxjs_observable_of__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rxjs_observable_throw__ = __webpack_require__(331);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_rxjs_observable_throw___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_rxjs_observable_throw__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__angular_common__ = __webpack_require__(9);
/**
* @license
* Copyright Google LLC All Rights Reserved.
@ -86519,7 +86519,7 @@ var TimeoutWithSubscriber = /*@__PURE__*/ (function (_super) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OverlayPortal; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__navigation_deep_linker__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__platform_dom_controller__ = __webpack_require__(25);
@ -86832,7 +86832,7 @@ var POINTER_EVENT_TYPE_TOUCH = 2;
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ActionSheetController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__action_sheet__ = __webpack_require__(145);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config_config__ = __webpack_require__(2);
@ -87021,7 +87021,7 @@ var ActionSheetController = (function () {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AlertController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__alert__ = __webpack_require__(147);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config_config__ = __webpack_require__(2);
@ -90645,7 +90645,7 @@ var InfiniteScrollContent = (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_Subject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_takeUntil__ = __webpack_require__(275);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_takeUntil___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_takeUntil__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__content_content__ = __webpack_require__(59);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util_dom__ = __webpack_require__(29);
@ -92136,7 +92136,7 @@ var Loading = (function (_super) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoadingController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__loading__ = __webpack_require__(281);
@ -92286,7 +92286,7 @@ var LoadingController = (function () {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Menu; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__backdrop_backdrop__ = __webpack_require__(149);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__content_content__ = __webpack_require__(59);
@ -93339,7 +93339,7 @@ function loadPrecompiledFactory(modulePath, ngModuleExport) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ModalController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__modal__ = __webpack_require__(287);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__navigation_deep_linker__ = __webpack_require__(51);
@ -93683,7 +93683,7 @@ var Note = (function (_super) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PopoverController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__popover__ = __webpack_require__(169);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__navigation_deep_linker__ = __webpack_require__(51);
@ -95457,7 +95457,7 @@ var Segment = (function (_super) {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__action_sheet_action_sheet__ = __webpack_require__(145);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__alert_alert__ = __webpack_require__(147);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__popover_popover__ = __webpack_require__(169);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__navigation_deep_linker__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__util_form__ = __webpack_require__(53);
@ -97078,7 +97078,7 @@ var SPINNERS = {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Tab; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__navigation_deep_linker__ = __webpack_require__(51);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__platform_dom_controller__ = __webpack_require__(25);
@ -97699,7 +97699,7 @@ var TOAST_POSITION_BOTTOM = 'bottom';
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ToastController; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__toast__ = __webpack_require__(312);
@ -99229,7 +99229,7 @@ var SCROLL_DIFFERENCE_MINIMUM = 40;
/* harmony export (immutable) */ __webpack_exports__["b"] = setupTapClick;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__activator__ = __webpack_require__(323);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__platform_dom_controller__ = __webpack_require__(25);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__gestures_gesture_controller__ = __webpack_require__(24);
@ -107723,7 +107723,7 @@ __export(__webpack_require__(624));
/* unused harmony export MatDialogRef */
/* unused harmony export matDialogAnimations */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_portal__ = __webpack_require__(57);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_a11y__ = __webpack_require__(28);
@ -108927,7 +108927,7 @@ var MatDialogModule = /** @class */ (function () {
/* unused harmony export getMatInputUnsupportedTypeError */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MAT_INPUT_VALUE_ACCESSOR; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material_form_field__ = __webpack_require__(84);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_observable_fromEvent__ = __webpack_require__(101);
@ -109748,7 +109748,7 @@ var MatInputModule = /** @class */ (function () {
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MatDividerModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_coercion__ = __webpack_require__(19);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material_core__ = __webpack_require__(15);
/**
* @license
@ -109891,7 +109891,7 @@ var MatDividerModule = /** @class */ (function () {
/* unused harmony export transformPanel */
/* unused harmony export fadeInContent */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_bidi__ = __webpack_require__(33);
@ -111740,7 +111740,7 @@ var MatSelectModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_cdk_bidi__ = __webpack_require__(33);
@ -112714,7 +112714,7 @@ var MatTooltipModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_Observable__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_observable_of__ = __webpack_require__(55);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rxjs_observable_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_rxjs_observable_of__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_common__ = __webpack_require__(9);
/* unused harmony reexport DataSource */
/**
* @license
@ -115459,7 +115459,7 @@ var ImageViewer = (function (_super) {
/* unused harmony export ɵb */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_compiler__ = __webpack_require__(403);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_tslib__ = __webpack_require__(1);
/**
@ -162559,10 +162559,10 @@ var IonicErrorHandler = (function (_super) {
/* unused harmony export IonicPageModule */
/* unused harmony export provideLocationStrategy */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__ = __webpack_require__(45);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_app_app_root__ = __webpack_require__(143);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__navigation_deep_linker__ = __webpack_require__(51);
@ -163190,7 +163190,7 @@ function provideLocationStrategy(platformLocationStrategy, baseHref, config) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ClickBlock; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(21);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_app__ = __webpack_require__(22);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__config_config__ = __webpack_require__(2);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__platform_platform__ = __webpack_require__(11);
@ -168153,7 +168153,7 @@ rxjs_1.Observable.prototype.map = map_1.map;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_cdk_bidi__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_cdk_keycodes__ = __webpack_require__(31);
@ -170433,7 +170433,7 @@ var MatCardModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_forms__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_cdk_observers__ = __webpack_require__(196);
/**
* @license
@ -172936,7 +172936,7 @@ var MatChipsModule = /** @class */ (function () {
/* unused harmony export ɵa31 */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material_button__ = __webpack_require__(122);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material_dialog__ = __webpack_require__(351);
@ -175647,7 +175647,7 @@ exports.takeUntil = operators_1.takeUntil;
/* unused harmony export MatExpansionPanelContent */
/* unused harmony export EXPANSION_PANEL_ANIMATION_TIMING */
/* unused harmony export matExpansionAnimations */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_collections__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_accordion__ = __webpack_require__(643);
@ -177703,7 +177703,7 @@ var MatGridListModule = /** @class */ (function () {
/* unused harmony export MatSelectionListChange */
/* unused harmony export MatListOption */
/* unused harmony export MatSelectionList */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tslib__ = __webpack_require__(1);
@ -178733,7 +178733,7 @@ var MatListModule = /** @class */ (function () {
/* unused harmony export ɵd19 */
/* unused harmony export ɵc19 */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_a11y__ = __webpack_require__(28);
@ -180059,7 +180059,7 @@ var MatMenuModule = /** @class */ (function () {
/* unused harmony export MatPaginatorIntl */
/* unused harmony export MAT_PAGINATOR_INTL_PROVIDER_FACTORY */
/* unused harmony export MAT_PAGINATOR_INTL_PROVIDER */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_button__ = __webpack_require__(122);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_material_select__ = __webpack_require__(354);
@ -180492,7 +180492,7 @@ var MatPaginatorModule = /** @class */ (function () {
/* unused harmony export _MatProgressBarMixinBase */
/* unused harmony export MatProgressBar */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tslib__ = __webpack_require__(1);
/**
@ -180698,7 +180698,7 @@ var MatProgressBarModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_platform__ = __webpack_require__(38);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_cdk_coercion__ = __webpack_require__(19);
/**
* @license
@ -181095,7 +181095,7 @@ var MatProgressSpinnerModule = /** @class */ (function () {
/* unused harmony export MatRadioButton */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_collections__ = __webpack_require__(71);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_tslib__ = __webpack_require__(1);
@ -182035,7 +182035,7 @@ var MatRadioModule = /** @class */ (function () {
/* unused harmony export matDrawerAnimations */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_cdk_scrolling__ = __webpack_require__(121);
@ -183871,7 +183871,7 @@ var MatSlideToggleModule = /** @class */ (function () {
/* unused harmony export MatSlider */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_bidi__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_platform_browser__ = __webpack_require__(45);
@ -184990,7 +184990,7 @@ var MatSliderModule = /** @class */ (function () {
/* unused harmony export HIDE_ANIMATION */
/* unused harmony export matSnackBarAnimations */
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_overlay__ = __webpack_require__(70);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_cdk_portal__ = __webpack_require__(57);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_a11y__ = __webpack_require__(28);
@ -186250,7 +186250,7 @@ exports.fromEventPattern = rxjs_1.fromEventPattern;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_Subject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_animations__ = __webpack_require__(40);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_common__ = __webpack_require__(9);
/**
* @license
* Copyright Google LLC All Rights Reserved.
@ -186857,7 +186857,7 @@ exports.BehaviorSubject = rxjs_1.BehaviorSubject;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_a11y__ = __webpack_require__(28);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_portal__ = __webpack_require__(57);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_stepper__ = __webpack_require__(663);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material_button__ = __webpack_require__(122);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_material_core__ = __webpack_require__(15);
@ -187385,7 +187385,7 @@ var MatStepperModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_cdk_bidi__ = __webpack_require__(33);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_Subject__ = __webpack_require__(20);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_rxjs_Subject__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_common__ = __webpack_require__(9);
/**
* @license
* Copyright Google LLC All Rights Reserved.
@ -188048,7 +188048,7 @@ var CdkStepperModule = /** @class */ (function () {
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_tslib__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_table__ = __webpack_require__(356);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_BehaviorSubject__ = __webpack_require__(357);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_rxjs_BehaviorSubject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_rxjs_BehaviorSubject__);
@ -188795,7 +188795,7 @@ exports.empty = rxjs_1.empty;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_cdk_observers__ = __webpack_require__(196);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_cdk_portal__ = __webpack_require__(57);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_cdk_scrolling__ = __webpack_require__(121);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(8);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_common__ = __webpack_require__(9);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_core__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_material_core__ = __webpack_require__(15);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_tslib__ = __webpack_require__(1);