This commit is contained in:
saravanakumarkandasami 2018-11-09 13:46:13 +05:30
parent 2c15ad0cb5
commit dbd7bb71f3
9 changed files with 471 additions and 408 deletions

View File

@ -1,4 +1,6 @@
<p>Address</p> <mat-card style="min-height: 550px;">
<mat-card-content>
<p>Address Details</p>
<form class="address" [formGroup]="addressForm"> <form class="address" [formGroup]="addressForm">
<mat-form-field> <mat-form-field>
<input matInput placeholder="Address" formControlName="address"> <input matInput placeholder="Address" formControlName="address">
@ -16,7 +18,7 @@
<mat-option value="Other">Other (PD officer to fill)</mat-option> <mat-option value="Other">Other (PD officer to fill)</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-form-field>
<mat-select placeholder="Locality" formControlName="locality"> <mat-select placeholder="Locality" formControlName="locality">
<mat-option value="CommercialOffice">Commercial (Office type) Area <mat-option value="CommercialOffice">Commercial (Office type) Area
@ -57,7 +59,7 @@
</mat-form-field> </mat-form-field>
<mat-card> <mat-card>
<mat-card-header> <mat-card-header>
<p>Neighbour hood <p>Neighbourhood
<p> <p>
</mat-card-header> </mat-card-header>
<div formArrayName="neighbourhood"> <div formArrayName="neighbourhood">
@ -86,22 +88,29 @@
<mat-option value="dont_know">Dont Know</mat-option> <mat-option value="dont_know">Dont Know</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<button type="button" mat-raised-button mat-icon-button *ngIf="i==0" <button type="button" matTooltip="Add More Neighbour Details" matTooltipPosition="above" mat-raised-button mat-icon-button *ngIf="i==0"
(click)="addNeighbour($event)" (click)="addNeighbour($event)"
style="float: right;"> style="float: right;">
<mat-icon>add</mat-icon> <mat-icon>add</mat-icon>
</button> </button>
<button type="button" mat-raised-button mat-icon-button *ngIf="i>0" <button type="button" matTooltip="Delete" matTooltipPosition="above" mat-raised-button mat-icon-button *ngIf="i>0"
(click)="removeNeighbour(i)" (click)="removeNeighbour(i)"
style="float: right;"> style="float: right;">
<mat-icon>close</mat-icon> <mat-icon>delete</mat-icon>
</button> </button>
</mat-card-content> </mat-card-content>
</div> </div>
</div> </div>
</mat-card> </mat-card>
<button mat-raised-button type="submit" class="button" (click)="onSubmit()">Submit <div style="text-align: right;">
</button> <button mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="onSubmit()"><mat-icon>save</mat-icon>
</button>
</div>
</form> </form>
<notifier-container></notifier-container> <notifier-container></notifier-container>
</mat-card-content>
</mat-card>

View File

@ -1,235 +1,252 @@
<!--<pre> {{ m_group | json}}</pre>--> <!--<pre> {{ m_group | json}}</pre>-->
<mat-card style="padding: 12px;"> <mat-card style="min-height: 550px;" >
<form *ngIf="apiLoadFinish && loadDetails" [formGroup]="_assetsQuesFrom" (submit)="onSubmit()" novalidate> <mat-card-content>
<div fxLayout="row" fxLayoutAlign="start none"> <p>Assets Details</p>
<div formArrayName="assets_details" fxFill> <form *ngIf="apiLoadFinish && loadDetails" [formGroup]="_assetsQuesFrom" (submit)="onSubmit()" novalidate>
<div *ngFor="let sup of _assetsQuesFrom.controls.assets_details['controls']; let i=index"> <div fxLayout="row" fxLayoutAlign="start none">
<mat-card> <div formArrayName="assets_details" fxFill>
<div [formGroupName]="i"> <div *ngFor="let sup of _assetsQuesFrom.controls.assets_details['controls']; let i=index">
<div fxLayout="row wrap" fxLayoutGap="12px" fxLayoutAlign="start none"> <mat-card>
<div> <mat-card-content>
<mat-form-field> <div [formGroupName]="i">
<mat-select (selectionChange)="selectedAssetsType($event, i)" placeholder="Select Assets Type" formControlName="assets_mode"> <div fxLayout="row wrap" fxLayoutGap="5px" fxLayoutAlign="start none">
<mat-option *ngFor="let asset of m_assets_type" [value]="asset.id">{{ asset.name }}</mat-option> <div>
</mat-select> <mat-form-field>
</mat-form-field> <mat-select (selectionChange)="selectedAssetsType($event, i)" placeholder="Assets Type" formControlName="assets_mode">
</div> <mat-option *ngFor="let asset of m_assets_type" [value]="asset.id">{{ asset.name }}</mat-option>
</div> </mat-select>
<!--Desction Dynamic details: START--> </mat-form-field>
<div formArrayName="details" class="example-full-width"> </div>
<!--Property--> </div>
<div *ngIf="sup.get('assets_mode').value == 1 "> <!--Desction Dynamic details: START-->
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> <div formArrayName="details" class="example-full-width">
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Property-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 1 ">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<mat-select placeholder="Select Property" formControlName="property_type"> <div [formGroupName]="s">
<mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name }}</mat-option> <div>
</mat-select> <mat-form-field>
</mat-form-field> <mat-select placeholder="Select Property" formControlName="property_type">
</div> <mat-option *ngFor="let prop of m_propertyType" [value]="prop.id">{{ prop.name }}</mat-option>
</div> </mat-select>
</div> </mat-form-field>
</div> </div>
</div> </div>
<!--Four Wheeler--> </div>
<div *ngIf="sup.get('assets_mode').value == 2"> </div>
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Four Wheeler-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 2">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field class="ml-xs example-full-width"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model"> <div [formGroupName]="s">
</mat-form-field> <div>
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model">
</div> </mat-form-field>
</div> </div>
</div> </div>
<!--Two Wheeler--> </div>
<div *ngIf="sup.get('assets_mode').value == 3"> </div>
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Two Wheeler-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 3">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field class="ml-xs example-full-width"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model"> <div [formGroupName]="s">
</mat-form-field> <div>
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Manufacturer, Model" formControlName="manufacturer_model">
</div> </mat-form-field>
</div> </div>
</div> </div>
<!--jwell details--> </div>
<div *ngIf="sup.get('assets_mode').value == 4"> </div>
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--jwell details
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 4">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field class="ml-xs example-full-width"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<input matInput placeholder="Description" formControlName="jwell_description"> <div [formGroupName]="s">
</mat-form-field> <div>
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Description" formControlName="jwell_description">
</div> </mat-form-field>
</div> </div>
</div> </div>
<!--Consumer Durable--> </div>
<div *ngIf="sup.get('assets_mode').value == 5"> </div>
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>-->
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Consumer Durable-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 5">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field class="ml-xs example-full-width"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<input matInput placeholder="Description" formControlName="consumer_durable_description"> <div [formGroupName]="s">
</mat-form-field> <div>
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Description" formControlName="consumer_durable_description">
</div> </mat-form-field>
</div> </div>
</div> </div>
<!--Insurance--> </div>
<div *ngIf="sup.get('assets_mode').value == 6"> </div>
<div fxFill> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Insurance-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 6">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none"> <div fxFill>
<div fxFlex="33"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<mat-form-field> <div [formGroupName]="s">
<mat-select placeholder="Type" formControlName="insurance_type"> <div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-option *ngFor="let ins_type of m_insuranceType" [value]="ins_type.id">{{ ins_type.name }}</mat-option> <div fxFlex="33">
</mat-select> <mat-form-field>
</mat-form-field> <mat-select placeholder="Type" formControlName="insurance_type">
</div> <mat-option *ngFor="let ins_type of m_insuranceType" [value]="ins_type.id">{{ ins_type.name }}</mat-option>
<div fxFlex="33"> </mat-select>
<mat-form-field class="ml-xs example-full-width"> </mat-form-field>
<input matInput placeholder="Premium Paid" formControlName="premium_paid"> </div>
</mat-form-field> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
<div fxFlex="33"> <input matInput placeholder="Premium Paid" formControlName="premium_paid">
<mat-form-field> </mat-form-field>
<mat-select placeholder="Frequency" formControlName="frequency_mode"> </div>
<mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.id">{{ freqn.name }}</mat-option> <div fxFlex="33">
</mat-select> <mat-form-field>
</mat-form-field> <mat-select placeholder="Frequency" formControlName="frequency_mode">
</div> <mat-option *ngFor="let freqn of m_freqOfPurchase" [value]="freqn.id">{{ freqn.name }}</mat-option>
</div> </mat-select>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none"> </mat-form-field>
<div fxFlex="33"> </div>
<mat-form-field class="ml-xs example-full-width"> </div>
<input matInput placeholder="Sum Assured" formControlName="sum_assured"> <div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
</mat-form-field> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
<div fxFlex="33"> <input matInput placeholder="Sum Assured" formControlName="sum_assured">
<mat-form-field class="ml-xs example-full-width"> </mat-form-field>
<input matInput placeholder="Members Covered" formControlName="members_coverd"> </div>
</mat-form-field> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Members Covered" formControlName="members_coverd">
</div> </mat-form-field>
</div> </div>
</div> </div>
</div> </div>
<!--Investments--> </div>
<div *ngIf="sup.get('assets_mode').value == 7"> </div>
<div> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--Investments-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 7">
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none"> <div>
<div fxFlex="33"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<mat-form-field> <div [formGroupName]="s">
<mat-select placeholder="Type" formControlName="investments_type"> <div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name }}</mat-option> <div fxFlex="33">
</mat-select> <mat-form-field>
</mat-form-field> <mat-select placeholder="Type" formControlName="investments_type">
</div> <mat-option *ngFor="let ins_type of m_investmentType" [value]="ins_type.id">{{ ins_type.name }}</mat-option>
<div fxFlex="33"> </mat-select>
<mat-form-field class="ml-xs example-full-width"> </mat-form-field>
<input matInput placeholder="Amount of Investment" formControlName="amount_of_invest"> </div>
</mat-form-field> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
<div fxFlex="33"> <input matInput placeholder="Amount of Investment" formControlName="amount_of_invest">
<mat-form-field class="ml-xs example-full-width"> </mat-form-field>
<input matInput placeholder="Bank Name" formControlName="bank_name"> </div>
</mat-form-field> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Bank Name" formControlName="bank_name">
</div> </mat-form-field>
</div> </div>
</div> </div>
</div> </div>
<!--other assets--> </div>
<div *ngIf="sup.get('assets_mode').value == 8"> </div>
<div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div *ngFor="let detail of sup['controls'].details['controls']; let s = index"> <!--other assets-->
<div [formGroupName]="s"> <div *ngIf="sup.get('assets_mode').value == 8">
<div> <div fxLayout="row" fxLayoutGap="2px" fxLayoutAlign="start none">
<mat-form-field class="ml-xs example-full-width"> <div *ngFor="let detail of sup['controls'].details['controls']; let s = index">
<input matInput placeholder="Description of the Assets" formControlName="any_other_assets"> <div [formGroupName]="s">
</mat-form-field> <div>
</div> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Description of the Assets" formControlName="any_other_assets">
</div> </mat-form-field>
</div> </div>
</div> </div>
</div> </div>
<!--Desction Dynamic details : END --> </div>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div fxFlex="33"> </div>
<mat-form-field class="ml-xs example-full-width"> <!--Desction Dynamic details : END -->
<input matInput placeholder="Approximate Market Value" formControlName="approximate_market_value"> <div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
</mat-form-field> <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 4">
</div> <div fxFlex="33">
<div fxFlex="33"> <mat-form-field class="ml-xs example-full-width">
<mat-form-field class="ml-xs example-full-width"> <input matInput placeholder="Approximate Market Value" formControlName="approximate_market_value">
<input matInput placeholder="Name of the Owner" formControlName="name_of_the_owner"> </mat-form-field>
</mat-form-field> </div>
</div> </div>
<div fxFlex="33"> <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5">
<mat-form-field class="ml-xs example-full-width">
<input matInput placeholder="Year of Purchase and Approximate month" formControlName="year_of_purchase"> <div fxFlex="33">
</mat-form-field> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="Name of the Owner" formControlName="name_of_the_owner">
</div> </mat-form-field>
<div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none"> </div>
<div fxFlex="33"> </div>
<mat-checkbox formControlName="emi" [ngModel]="sup.get('emi').value === '1' ? true : false" <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 5">
(ngModelChange)="sup.get('emi').value = $event ? '1' : '0'">EMI</mat-checkbox> <div fxFlex="33">
</div> <mat-form-field class="ml-xs example-full-width">
<div *ngIf="sup.get('emi').value === '1'" fxFlex="33"> <input matInput placeholder="Year and month of purchase" formControlName="year_of_purchase">
<mat-form-field class="ml-xs example-full-width"> </mat-form-field>
<input matInput placeholder="EMI Paid" formControlName="emi_paid"> </div>
</mat-form-field> </div>
</div> </div>
<div *ngIf="sup.get('emi').value === '1'" fxFlex="33"> <div *ngIf="sup.get('assets_mode').value == 1 || sup.get('assets_mode').value == 2 || sup.get('assets_mode').value == 3 || sup.get('assets_mode').value == 4 || sup.get('assets_mode').value == 5">
<mat-form-field class="ml-xs example-full-width">
<input matInput placeholder="Elapsed Tenure" formControlName="elapsed_tenure"> <div fxLayout="row wrap" fxLayoutGap="2px" fxLayoutAlign="start none">
</mat-form-field> <div fxFlex="33">
</div> <mat-checkbox formControlName="emi" [ngModel]="sup.get('emi').value === '1' ? true : false"
<div *ngIf="sup.get('emi').value === '1'" fxFlex="33"> (ngModelChange)="sup.get('emi').value = $event ? '1' : '0'">Is there a loan?</mat-checkbox>
<mat-form-field class="ml-xs example-full-width"> </div>
<input matInput placeholder="Balance Tenure" formControlName="balance_tenure"> <div *ngIf="sup.get('emi').value === '1'" fxFlex="33">
</mat-form-field> <mat-form-field class="ml-xs example-full-width">
</div> <input matInput placeholder="EMI Paid" formControlName="emi_paid">
</div> </mat-form-field>
<div fxLayout="row" fxLayoutGap="12px" fxLayoutAlign="start none"> </div>
<div fxFlex="20"> <div *ngIf="sup.get('emi').value === '1'" fxFlex="33">
<span *ngIf="_assetsQuesFrom.controls.assets_details.controls.length > 1" (click)="removeLanguage(i)"> <mat-form-field class="ml-xs example-full-width">
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above"><mat-icon>delete</mat-icon></button> <input matInput placeholder="Elapsed Tenure in months" formControlName="elapsed_tenure">
</span> </mat-form-field>
</div> </div>
<div *ngIf="sup.get('emi').value === '1'" fxFlex="33">
<mat-form-field class="ml-xs example-full-width">
<input matInput placeholder="Balance Tenure in months" formControlName="balance_tenure">
</mat-form-field>
</div>
</div>
</div>
<div fxLayout="row" fxLayoutGap="12px" fxLayoutAlign="start none">
<div fxFlex="20">
<span *ngIf="_assetsQuesFrom.controls.assets_details.controls.length > 1" (click)="removeLanguage(i)">
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above"><mat-icon>delete</mat-icon></button>
</span>
</div>
</div>
</div>
</mat-card-content>
</mat-card>
</div> </div>
<button mat-raised-button mat-icon-button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above"
class="mr-1 mb-1 hover-icon" (click)="addSupplierDetails($event); false"><mat-icon>add</mat-icon></button>
</div> </div>
</mat-card> </div>
</div> <div class="row" style="text-align:right;">
<button mat-raised-button mat-icon-button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" (click)="onReset(); false"><mat-icon>settings_backup_restore</mat-icon></button>
class="mr-1 mb-1 hover-icon" (click)="addSupplierDetails($event); false"><mat-icon>add</mat-icon></button> <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
</div> </div>
</div> </form>
<div class="row" style="text-align:right;"> </mat-card-content>
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" (click)="onReset(); false"><mat-icon>settings_backup_restore</mat-icon></button>
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
</div>
</form>
</mat-card> </mat-card>

View File

@ -1,66 +1,76 @@
<form [formGroup]="bankingForm" class="bankForm"> <mat-card style="min-height: 550px;">
<div formArrayName="itemRows"> <mat-card-content>
<mat-accordion <p>Banking Information</p>
*ngFor="let itemrow of bankingForm.controls.itemRows['controls']; let i=index" <form [formGroup]="bankingForm" class="bankForm">
[formGroupName]="i"> <div formArrayName="itemRows">
<mat-expansion-panel class="banlFields" [expanded]="step == i"> <mat-accordion
<mat-expansion-panel-header> *ngFor="let itemrow of bankingForm.controls.itemRows['controls']; let i=index"
<mat-panel-title> [formGroupName]="i">
<h4>{{i+1}} Banking details<span *ngIf="i==0" style="float: right;"> <mat-expansion-panel class="banlFields" [expanded]="step == i">
<mat-icon (click)="addBankdetails(i)">add</mat-icon> <mat-expansion-panel-header>
</span> <mat-panel-title>
<span *ngIf="i > 0"> <p>{{i+1}} , Banking Details
<mat-icon (click)="deleteBankdetails(i)">delete</mat-icon> </p>
</span></h4> </mat-panel-title>
</mat-panel-title> </mat-expansion-panel-header>
</mat-expansion-panel-header> <mat-form-field>
<mat-form-field> <input matInput placeholder="Applicant Name"
<input matInput placeholder="Applicant Name" formControlName="applicant_name">
formControlName="applicant_name"> </mat-form-field>
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="Bank Name" formControlName="bank_name">
<input matInput placeholder="Bank Name" formControlName="bank_name"> </mat-form-field>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Account Type"
formControlName="account_type">
<mat-option value="Savings">Savings</mat-option>
<mat-option value="Current">Current</mat-option>
<mat-option value="OD">OD</mat-option>
<mat-option value="CC">CC</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Salary Credited in this account"
formControlName="salary">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
<mat-option value="NA">NA</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Limit in case of OD / CC account"
formControlName="limit">
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Is this the main business account"
formControlName="is_main">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Approximate Vintage"
formControlName="vintage">
</mat-form-field>
<button *ngIf="i > 0" mat-raised-button mat-icon-button matTooltip="Delete" matTooltipPosition="above" (click)="deleteBankdetails(i)">
<mat-icon >delete</mat-icon>
</button>
</mat-expansion-panel>
</mat-accordion>
</div>
<div style="text-align: right;" class="pt-1">
<button class="mr-1 mb-1" color="primary" mat-raised-button mat-icon-button matTooltip="Add More Bank Details" matTooltipPosition="above" (click)="addBankdetails(i)">
<mat-icon >add</mat-icon>
</button>
<button class="mr-1 mb-1" type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="bankSubmit()"><mat-icon>save</mat-icon>
</button>
</div>
</form>
<notifier-container></notifier-container>
</mat-card-content>
</mat-card>
<mat-form-field>
<mat-select placeholder="Account Type"
formControlName="account_type">
<mat-option value="Savings">Savings</mat-option>
<mat-option value="Current">Current</mat-option>
<mat-option value="OD">OD</mat-option>
<mat-option value="CC">CC</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Salary Credited in this account"
formControlName="salary">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
<mat-option value="NA">NA</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Limit in case of OD / CC account"
formControlName="limit">
</mat-form-field>
<mat-form-field>
<mat-select placeholder="Is this the main business account"
formControlName="is_main">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field>
<input matInput placeholder="Approximate Vintage"
formControlName="vintage">
</mat-form-field>
</mat-expansion-panel>
</mat-accordion>
</div>
<button mat-raised-button class="button" (click)="bankSubmit()">Submit
</button>
</form>
<notifier-container></notifier-container>

View File

@ -1,5 +1,5 @@
.banlFields mat-form-field { .banlFields mat-form-field {
width: 100%; //width: 100%;
margin: 0 2%; margin: 0 2%;
} }
.bankForm .button { .bankForm .button {

View File

@ -1,49 +1,58 @@
<p>Current Loan Details</p> <mat-card style="min-height: 550px;">
<form [formGroup]="currentLoanForm" class="address"> <mat-card-content>
<mat-form-field> <p>Current Loan Details</p>
<mat-select placeholder="Do you have any other existing Loan" <form [formGroup]="currentLoanForm" class="address">
formControlName="existing_loan"> <mat-form-field>
<mat-option value="Yes">Yes</mat-option> <mat-select placeholder="Do you have any other existing loan"
<mat-option value="No">No</mat-option> formControlName="existing_loan">
</mat-select> <mat-option value="Yes">Yes</mat-option>
</mat-form-field> <mat-option value="No">No</mat-option>
<mat-card *ngIf="currentLoanForm.controls.existing_loan.value == 'Yes'"> </mat-select>
<mat-card-header> </mat-form-field>
<p>Loan Details<p> <mat-card *ngIf="currentLoanForm.controls.existing_loan.value == 'Yes'">
</mat-card-header> <mat-card-header>
<div formArrayName="loan_details"> <p>Loan Details<p>
<div *ngFor="let details of currentLoanForm.get('loan_details').controls; let i=index" </mat-card-header>
[formGroupName]="i"> <div formArrayName="loan_details">
<mat-card-content class="matcard"> <div *ngFor="let details of currentLoanForm.get('loan_details').controls; let i=index"
<mat-form-field> [formGroupName]="i">
<input matInput placeholder="Loan Amount" formControlName="loan_amount"> <mat-card-content class="matcard">
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="Loan Amount" formControlName="loan_amount">
<input matInput placeholder="EMI" formControlName="emi"> </mat-form-field>
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="EMI" formControlName="emi">
<input matInput placeholder="Loan Type" formControlName="loan_type"> </mat-form-field>
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="Loan Type" formControlName="loan_type">
<input matInput placeholder="Lender" formControlName="lender"> </mat-form-field>
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="Lender" formControlName="lender">
<input matInput placeholder="Original Tenure" formControlName="original_tenure"> </mat-form-field>
</mat-form-field> <mat-form-field>
<mat-form-field> <input matInput placeholder="Original Tenure" formControlName="original_tenure">
<input matInput placeholder="Current Balance Tenure" formControlName="current_balance_tenure"> </mat-form-field>
</mat-form-field> <mat-form-field>
<button type="button" mat-raised-button mat-icon-button (click)="addLoanDetails()" <input matInput placeholder="Current Balance Tenure" formControlName="current_balance_tenure">
*ngIf="i==0"> </mat-form-field>
<mat-icon>add</mat-icon> <button type="button" mat-raised-button mat-icon-button matTooltip="Add More Loan Details" matTooltipPosition="above" (click)="addLoanDetails()"
</button> *ngIf="i==0">
<button type="button" mat-raised-button mat-icon-button (click)="deleteLoanDetails(i)" <mat-icon>add</mat-icon>
*ngIf="i>0"> </button>
<mat-icon>close</mat-icon> <button type="button" mat-raised-button mat-icon-button matTooltip="Delete" matTooltipPosition="above" (click)="deleteLoanDetails(i)"
</button> *ngIf="i>0">
</mat-card-content> <mat-icon>delete</mat-icon>
</div> </button>
</div> </mat-card-content>
</mat-card> </div>
<button mat-raised-button type="submit" class="button" (click)="submitCurrentloan()"></button> </div>
</form> </mat-card>
<div style="text-align: right;">
<button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitCurrentloan()"><mat-icon>save</mat-icon>
</button>
</div>
</form>
</mat-card-content>
</mat-card>

View File

@ -1,4 +1,6 @@
<p>Family</p> <mat-card style="min-height: 550px;">
<mat-card-content>
<p>Family Details</p>
<form class="address" [formGroup]="familyForm"> <form class="address" [formGroup]="familyForm">
<mat-form-field> <mat-form-field>
<mat-select placeholder="Person Met" formControlName="person"> <mat-select placeholder="Person Met" formControlName="person">
@ -52,7 +54,7 @@
</button> </button>
<button type="button" mat-raised-button mat-icon-button <button type="button" mat-raised-button mat-icon-button
(click)="deleteEarningMembers(i)" *ngIf="i>0"> (click)="deleteEarningMembers(i)" *ngIf="i>0">
<mat-icon>close</mat-icon> <mat-icon>delete</mat-icon>
</button> </button>
</mat-card-content> </mat-card-content>
</div> </div>
@ -94,7 +96,7 @@
</button> </button>
<button type="button" mat-raised-button mat-icon-button (click)="deleteMembers(i)" <button type="button" mat-raised-button mat-icon-button (click)="deleteMembers(i)"
*ngIf="i>0"> *ngIf="i>0">
<mat-icon>close</mat-icon> <mat-icon>delete</mat-icon>
</button> </button>
</mat-card-content> </mat-card-content>
</div> </div>
@ -125,11 +127,17 @@
<input matInput placeholder="Please specify" formControlName="ownershipOther"> <input matInput placeholder="Please specify" formControlName="ownershipOther">
</mat-form-field> </mat-form-field>
<mat-form-field *ngIf="ownership.value =='Rented'"> <mat-form-field *ngIf="ownership.value =='Rented'">
<input matInput placeholder="what rent" <input matInput placeholder="Rent Amount"
formControlName="rent"> formControlName="rent">
</mat-form-field> </mat-form-field>
</mat-card-content> </mat-card-content>
</mat-card> </mat-card>
<button mat-raised-button class="button" (click)="submitFamily()">Submit</button> <div style="text-align: right;">
</form> <button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitFamily()"><mat-icon>save</mat-icon>
</button>
</div>
</form>
<notifier-container></notifier-container> <notifier-container></notifier-container>
</mat-card-content>
</mat-card>

View File

@ -43,7 +43,8 @@ export class FamilyDetailsComponent implements OnInit {
public ownershipOther: AbstractControl; public ownershipOther: AbstractControl;
public rent: AbstractControl; public rent: AbstractControl;
filteredStates: any = [ filteredStates: any = [
'Co-Applicant 1 to x', 'Main Applicant',
'Co-Applicant ',
'Accountant', 'Accountant',
'Manager', 'Manager',
'Relative of the applicant', 'Relative of the applicant',

View File

@ -1,47 +1,56 @@
<form [formGroup]="otherIncomeForm" class="address"> <mat-card style="min-height: 550px;">
<mat-form-field> <mat-card-content>
<mat-select placeholder="Other Income" <p>Other Income Details</p>
formControlName="other_income"> <form [formGroup]="otherIncomeForm" class="address">
<mat-option value="Yes">Yes</mat-option>
<mat-option value="No">No</mat-option>
</mat-select>
</mat-form-field>
<mat-card *ngIf="otherIncomeForm.controls.other_income.value == 'Yes'">
<mat-card-header>
<p>Loan Details<p>
</mat-card-header>
<div formArrayName="income_details">
<div *ngFor="let details of otherIncomeForm.get('income_details').controls; let i=index"
[formGroupName]="i">
<mat-card-content class="matcard">
<mat-form-field> <mat-form-field>
<mat-select placeholder="Source" <mat-select placeholder="Other Income"
formControlName="source"> formControlName="other_income">
<mat-option value="rental_income">Rental Income</mat-option> <mat-option value="Yes">Yes</mat-option>
<mat-option value="interest_income">Interest Income</mat-option> <mat-option value="No">No</mat-option>
<mat-option value="agricultural_income">Agricultural Income</mat-option>
<mat-option value="dividend_income">Dividend Income and Others</mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
<mat-form-field> <mat-card *ngIf="otherIncomeForm.controls.other_income.value == 'Yes'">
<input matInput placeholder="Amount" formControlName="amount"> <mat-card-header>
</mat-form-field> <p>Income Details<p>
<mat-form-field> </mat-card-header>
<mat-select placeholder="Frequency" formControlName="frequency"> <div formArrayName="income_details">
<mat-option value="{{frq.frequency_id}}" *ngFor="let frq of frequencyData">{{frq.name}}</mat-option> <div *ngFor="let details of otherIncomeForm.get('income_details').controls; let i=index"
</mat-select> [formGroupName]="i">
</mat-form-field> <mat-card-content class="matcard">
<button type="button" mat-raised-button mat-icon-button (click)="addIncomeDetails()" <mat-form-field>
*ngIf="i==0"> <mat-select placeholder="Source"
<mat-icon>add</mat-icon> formControlName="source">
</button> <mat-option value="rental_income">Rental Income</mat-option>
<button type="button" mat-raised-button mat-icon-button (click)="deleteIncomeDetails(i)" <mat-option value="interest_income">Interest Income</mat-option>
*ngIf="i>0"> <mat-option value="agricultural_income">Agricultural Income</mat-option>
<mat-icon>close</mat-icon> <mat-option value="dividend_income">Dividend Income</mat-option>
</button> </mat-select>
</mat-card-content> </mat-form-field>
</div> <mat-form-field>
</div> <input matInput placeholder="Amount" formControlName="amount">
</mat-card> </mat-form-field>
<button mat-raised-button type="submit" class="button" (click)="submitCurrentDetails()"></button> <mat-form-field>
</form> <mat-select placeholder="Frequency" formControlName="frequency">
<mat-option value="{{frq.frequency_id}}" *ngFor="let frq of frequencyData">{{frq.name}}</mat-option>
</mat-select>
</mat-form-field>
<button type="button" matTooltip="Add More Income Details" matTooltipPosition="above" mat-raised-button mat-icon-button (click)="addIncomeDetails()"
*ngIf="i==0">
<mat-icon>add</mat-icon>
</button>
<button type="button" matTooltip="Delete" matTooltipPosition="above" mat-raised-button mat-icon-button (click)="deleteIncomeDetails(i)"
*ngIf="i>0">
<mat-icon>delete</mat-icon>
</button>
</mat-card-content>
</div>
</div>
</mat-card>
<div style="text-align: right;">
<button type="submit" mat-raised-button mat-icon-button type="submit" matTooltip="Submit" matTooltipPosition="above" (click)="submitCurrentDetails()"><mat-icon>save</mat-icon>
</button>
</div>
</form>
</mat-card-content>
</mat-card>

View File

@ -72,7 +72,7 @@
<mat-form-field style="width: 100%"> <mat-form-field style="width: 100%">
<!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> --> <!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> -->
<input matInput placeholder="Entity" formControlName="entity_ans" type="text" required> <input matInput placeholder="Entity" formControlName="entity_ans" type="text" required>
</mat-form-field> </mat-form-field>
<mat-form-field style="width: 100%"> <mat-form-field style="width: 100%">
<!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> --> <!-- <mat-label>{{coDetails.controls.pd_question.value}}</mat-label> -->