Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
74ef93b07b
3644
ng6-seed/package-lock.json
generated
3644
ng6-seed/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="pad-wrap">
|
<div class="pad-wrap">
|
||||||
<div fxLayout="row wrap">
|
<!--<div fxLayout="row wrap">
|
||||||
<div fxFlex.gt-sm="100" fxFlex.gt-xs="100" fxFlex="100">
|
<div fxFlex.gt-sm="100" fxFlex.gt-xs="100" fxFlex="100">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title>Today's Status</mat-card-title>
|
<mat-card-title>Today's Status</mat-card-title>
|
||||||
@ -15,8 +15,49 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
</div> -->
|
||||||
|
<div fxLayout="row wrap">
|
||||||
|
<div fxFlex.gt-sm="33.33%" fxFlex="100" class="m-gap">
|
||||||
|
<mat-card>
|
||||||
|
<mat-card-title>Full</mat-card-title>
|
||||||
|
<mat-card-subtitle></mat-card-subtitle>
|
||||||
|
<hr>
|
||||||
|
<mat-card-content>
|
||||||
|
<div class="w-100 h-300px">
|
||||||
|
<ngx-charts-gauge [view]="view" [scheme]="colorScheme" [results]="full" [min]="0" [max]="100" [angleSpan]="240" [startAngle]="-120" [units]="'PD'" [bigSegments]="10" [smallSegments]="5" >
|
||||||
|
</ngx-charts-gauge>
|
||||||
</div>
|
</div>
|
||||||
|
</mat-card-content>
|
||||||
|
</mat-card>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.gt-sm="33.33%" fxFlex="100" class="m-gap">
|
||||||
|
<mat-card>
|
||||||
|
<mat-card-title>Smart</mat-card-title>
|
||||||
|
<mat-card-subtitle></mat-card-subtitle>
|
||||||
|
<hr>
|
||||||
|
<mat-card-content>
|
||||||
|
<div class="w-100 h-300px">
|
||||||
|
<ngx-charts-gauge [view]="view" [scheme]="colorScheme" [results]="smart" [min]="0" [max]="100" [angleSpan]="240" [startAngle]="-120" [units]="'PD'" [bigSegments]="10" [smallSegments]="5" >
|
||||||
|
</ngx-charts-gauge>
|
||||||
|
</div>
|
||||||
|
</mat-card-content>
|
||||||
|
</mat-card>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.gt-sm="33.33%" fxFlex="100" class="m-gap">
|
||||||
|
<mat-card>
|
||||||
|
<mat-card-title>Tele</mat-card-title>
|
||||||
|
<mat-card-subtitle></mat-card-subtitle>
|
||||||
|
<hr>
|
||||||
|
<mat-card-content>
|
||||||
|
<div class="w-100 h-300px">
|
||||||
|
|
||||||
|
<ngx-charts-gauge [view]="view" [scheme]="colorScheme" [results]="tele" [min]="0" [max]="100" [angleSpan]="240" [startAngle]="-120" [units]="'PD'" [bigSegments]="10" [smallSegments]="5" >
|
||||||
|
</ngx-charts-gauge>
|
||||||
|
</div>
|
||||||
|
</mat-card-content>
|
||||||
|
</mat-card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!--Lender,Citywise, Same Status-->
|
<!--Lender,Citywise, Same Status-->
|
||||||
|
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
@ -29,7 +70,7 @@
|
|||||||
<ng-template let-item let-last="last" ngFor [ngForOf]="lenderpd">
|
<ng-template let-item let-last="last" ngFor [ngForOf]="lenderpd">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<h3 mat-line> {{item.lendername}} / {{item.billingaddr}} </h3>
|
<h3 mat-line> {{item.lendername}} / {{item.billingaddr}} </h3>
|
||||||
<p mat-line> Full -{{item.fullpd}} / Smart -{{item.smartpd}} </p>
|
<p mat-line> Full -{{item.fullpd}} / Smart -{{item.smartpd}} / Tele - {{item.telepd}} </p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
@ -44,7 +85,7 @@
|
|||||||
<ng-template let-item let-last="last" ngFor [ngForOf]="citywisepd">
|
<ng-template let-item let-last="last" ngFor [ngForOf]="citywisepd">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<h3 mat-line> {{item.cityname}} </h3>
|
<h3 mat-line> {{item.cityname}} </h3>
|
||||||
<p mat-line> Full -{{item.fullpd}} / Smart -{{item.smartpd}} </p>
|
<p mat-line> Full -{{item.fullpd}} / Smart -{{item.smartpd}} / Tele - {{item.telepd}}</p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-dashboard',
|
selector: 'app-dashboard',
|
||||||
templateUrl: './dashboard.component.html',
|
templateUrl: './dashboard.component.html',
|
||||||
@ -9,114 +8,147 @@ import { Component } from '@angular/core';
|
|||||||
|
|
||||||
|
|
||||||
export class DashboardComponent {
|
export class DashboardComponent {
|
||||||
//public single: any[];
|
|
||||||
//public multi: any[];
|
|
||||||
|
|
||||||
public showXAxis = true;
|
public showXAxis = true;
|
||||||
public showYAxis = true;
|
public showYAxis = true;
|
||||||
public gradient = false;
|
public gradient = true;
|
||||||
public showLegend = false;
|
public showLegend = false;
|
||||||
public showXAxisLabel = true;
|
public showXAxisLabel = true;
|
||||||
public xAxisLabel = 'Type';
|
public xAxisLabel = 'Status';
|
||||||
public showYAxisLabel = true;
|
public showYAxisLabel = true;
|
||||||
public yAxisLabel = 'PD';
|
public yAxisLabel = 'PD';
|
||||||
|
view: any[];
|
||||||
|
width = 350;
|
||||||
|
height= 250;
|
||||||
public colorScheme = {
|
public colorScheme = {
|
||||||
domain: ['#673ab7', '#f44336', '#009688 ', '#2196f3', '#ffd740 ', '#eb35bb ']
|
domain: ['#673ab7', '#f44336', '#009688 ', '#2196f3', '#234278 ', '#2a1653']
|
||||||
};
|
};
|
||||||
|
public autoScale = true;
|
||||||
constructor() {
|
constructor() {
|
||||||
|
}
|
||||||
|
ngOnInit(){
|
||||||
|
this.view = [this.width, this.height];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//Full Pd Data
|
||||||
|
full: Object[] = [
|
||||||
|
{
|
||||||
|
name: 'Triggered',
|
||||||
|
value: 45
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Allocated',
|
||||||
|
value: 50
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Scheduled',
|
||||||
|
value: 36
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'InProgress',
|
||||||
|
value: 90
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Completed',
|
||||||
|
value: 56
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'QC Completed',
|
||||||
|
value: 81
|
||||||
|
}
|
||||||
|
];
|
||||||
|
//smart PD data
|
||||||
|
smart: Object[] = [
|
||||||
|
{
|
||||||
|
name: 'Triggered',
|
||||||
|
value: 65
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Allocated',
|
||||||
|
value: 20
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Scheduled',
|
||||||
|
value: 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'InProgress',
|
||||||
|
value: 60
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Completed',
|
||||||
|
value: 26
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'QC Completed',
|
||||||
|
value: 51
|
||||||
|
}
|
||||||
|
];
|
||||||
|
//Tele PD Data
|
||||||
|
tele: Object[] = [
|
||||||
|
{
|
||||||
|
name: 'Triggered',
|
||||||
|
value: 95
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Allocated',
|
||||||
|
value: 59
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Scheduled',
|
||||||
|
value: 45
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'InProgress',
|
||||||
|
value: 25
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Completed',
|
||||||
|
value: 36
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'QC Completed',
|
||||||
|
value: 49
|
||||||
|
}
|
||||||
|
];
|
||||||
// //Lender wise PD Triggered
|
// //Lender wise PD Triggered
|
||||||
lenderpd: Object[] = [{
|
lenderpd: Object[] = [{
|
||||||
lendername:'ICICI',
|
lendername:'ICICI',
|
||||||
billingaddr:'Bangalore',
|
billingaddr:'Bangalore',
|
||||||
fullpd:'9',
|
fullpd:'19',
|
||||||
smartpd:'6',
|
smartpd:'6',
|
||||||
|
telepd:'10',
|
||||||
}, {
|
}, {
|
||||||
lendername:'IOB',
|
lendername:'IOB',
|
||||||
billingaddr:'Chennai',
|
billingaddr:'Chennai',
|
||||||
fullpd:'10',
|
fullpd:'10',
|
||||||
smartpd:'5',
|
smartpd:'5',
|
||||||
|
telepd:'7',
|
||||||
}, {
|
}, {
|
||||||
lendername:'SBI',
|
lendername:'SBI',
|
||||||
billingaddr:'Pune',
|
billingaddr:'Pune',
|
||||||
fullpd:'16',
|
fullpd:'16',
|
||||||
smartpd:'3',
|
smartpd:'3',
|
||||||
|
telepd:'33',
|
||||||
}, ];
|
}, ];
|
||||||
|
|
||||||
multi: Object[] = [
|
|
||||||
{
|
|
||||||
name: 'Full',
|
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: 'Triggered',
|
|
||||||
value: 50
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Allocated',
|
|
||||||
value: 29
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Schudled',
|
|
||||||
value: 45
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'InProgress',
|
|
||||||
value: 67
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Completed',
|
|
||||||
value: 34
|
|
||||||
},{
|
|
||||||
name: 'QC Completed',
|
|
||||||
value: 22
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Smart',
|
|
||||||
series: [
|
|
||||||
{
|
|
||||||
name: 'Triggred',
|
|
||||||
value: 60
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Allocated',
|
|
||||||
value: 33
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Schudled',
|
|
||||||
value: 76
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'InProgress',
|
|
||||||
value: 34
|
|
||||||
},{
|
|
||||||
name: 'Completed',
|
|
||||||
value: 56
|
|
||||||
},{
|
|
||||||
name: 'QC Completed',
|
|
||||||
value: 45
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
|
|
||||||
//City Wise PD Triggered
|
//City Wise PD Triggered
|
||||||
citywisepd: Object[] = [{
|
citywisepd: Object[] = [{
|
||||||
cityname: 'Bangalore',
|
cityname: 'Bangalore',
|
||||||
fullpd:'45',
|
fullpd:'45',
|
||||||
smartpd:'17',
|
smartpd:'17',
|
||||||
|
telepd:'10',
|
||||||
}, {
|
}, {
|
||||||
cityname: 'Chennai',
|
cityname: 'Chennai',
|
||||||
fullpd:'33',
|
fullpd:'33',
|
||||||
smartpd:'16',
|
smartpd:'16',
|
||||||
|
telepd:'8',
|
||||||
}, {
|
}, {
|
||||||
cityname: 'Salem',
|
cityname: 'Salem',
|
||||||
fullpd:'22',
|
fullpd:'22',
|
||||||
smartpd:'12',
|
smartpd:'12',
|
||||||
|
telepd:'2',
|
||||||
} ];
|
} ];
|
||||||
|
|
||||||
// //Same status
|
// //Same status
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<mat-card class="p-1">
|
|
||||||
<form [formGroup]="_PDtriggerForm" (submit)="submitPdDetails(_PDtriggerForm.value,PDTriggerStatus)">
|
<form [formGroup]="_PDtriggerForm" (submit)="submitPdDetails(_PDtriggerForm.value,PDTriggerStatus)">
|
||||||
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
@ -212,7 +212,7 @@
|
|||||||
<h5>Co-Applicant</h5>
|
<h5>Co-Applicant</h5>
|
||||||
<!-- <button _ngcontent-c29="" class="mr-1 mb-2 mat-fab1 mat-accent" mat-fab="" (click)="addCoApplicant(createWithLongContent)"><span class="mat-button-wrapper"><mat-icon _ngcontent-c29="" class="mat-icon material-icons" role="img" aria-hidden="true">add</mat-icon></span><div class="mat-button-ripple mat-ripple mat-button-ripple-round" matripple=""></div><div class="mat-button-focus-overlay"></div></button> -->
|
<!-- <button _ngcontent-c29="" class="mr-1 mb-2 mat-fab1 mat-accent" mat-fab="" (click)="addCoApplicant(createWithLongContent)"><span class="mat-button-wrapper"><mat-icon _ngcontent-c29="" class="mat-icon material-icons" role="img" aria-hidden="true">add</mat-icon></span><div class="mat-button-ripple mat-ripple mat-button-ripple-round" matripple=""></div><div class="mat-button-focus-overlay"></div></button> -->
|
||||||
<!--<button mat-fab class="mr-1 mb-1" color="primary" (click)="addCoApplicant()"><mat-icon>add</mat-icon></button>-->
|
<!--<button mat-fab class="mr-1 mb-1" color="primary" (click)="addCoApplicant()"><mat-icon>add</mat-icon></button>-->
|
||||||
<button mat-fab class="mr-1 mb-1" color="primary" style="opacity: 0.5;" (click)="addCoApplicant()"><mat-icon>group_add</mat-icon><div class="mat-button-ripple mat-ripple" matripple=""></div><div class="mat-button-focus-overlay"></div></button>
|
<button mat-fab class="mr-1 mb-1" color="primary" style="opacity: 0.5;border:2px;border-radius: 50%;" (click)="addCoApplicant()"><mat-icon>group_add</mat-icon><div class="mat-button-ripple mat-ripple" matripple=""></div><div class="mat-button-focus-overlay"></div></button>
|
||||||
<!-- <button mat-raised-button mat-button-sm color="primary" (click)="addCoApplicant()" type="button">Add More Co-Applicant</button> -->
|
<!-- <button mat-raised-button mat-button-sm color="primary" (click)="addCoApplicant()" type="button">Add More Co-Applicant</button> -->
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
@ -267,11 +267,11 @@
|
|||||||
(click)="onReset()"><mat-icon>settings_backup_restore</mat-icon></button>
|
(click)="onReset()"><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
|
|
||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Click To Draft" matTooltipPosition="above" type="button" (click)="addCoApplicant()"><mat-icon>drafts</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Click To Draft" matTooltipPosition="above" type="button" (click)="addCoApplicant()"><mat-icon>drafts</mat-icon></button> -->
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" (click)="submitPdDetails(_PDtriggerForm.value,draftStatus)" matTooltip="PD Draft" matTooltipPosition="above"><mat-icon>drafts</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" (click)="submitPdDetails(_PDtriggerForm.value,draftStatus)" matTooltip="PD Draft" matTooltipPosition="above"><mat-icon>description</mat-icon></button>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit" matTooltip="PD Process" matTooltipPosition="above" [disabled]="!enablePDButton || !_PDtriggerForm.valid "><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit" matTooltip="PD Process" matTooltipPosition="above" [disabled]="!enablePDButton || !_PDtriggerForm.valid "><mat-icon>save</mat-icon></button>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
|
||||||
|
|
||||||
|
|
||||||
@ -18,43 +18,48 @@
|
|||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>All</ng-template>
|
<ng-template mat-tab-label>All</ng-template>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div class="card-comment-widget">
|
<mat-table [dataSource]="dataSource" matSort *ngIf="pdList.length > 0" >
|
||||||
<mat-list *ngIf="pdList.length > 0">
|
|
||||||
<mat-list-item *ngFor="let details of dataSource.connect() | async" style="border-bottom:1px solid #f1f7f5">
|
|
||||||
<img mat-list-avatar src="assets/images/lime.jpg" alt="">
|
|
||||||
<!-- {{details.applicat_details[0].applicant_name}} -->
|
|
||||||
<p *ngIf="details.applicat_details" mat-line>{{details.applicat_details[0].applicant_name}} </p>
|
|
||||||
|
|
||||||
<p *ngIf="details.lender_full_name" mat-line><a style="padding-right: 7%;">{{details.lender_full_name}} </a><a style="padding-right: 7%">{{details.lender_applicant_id}}</a>{{details.pd_date_of_initiation}}</p>
|
<ng-container matColumnDef="Name">
|
||||||
<p *ngIf="details.product_abbr" mat-line><a style="padding-right: 7%;">{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}}</a><a style="padding-right: 7%;"><span *ngIf="details.loan_amount" class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span></a><span class="hover-icon"><i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}/{{details.state_name}}-{{details.pincode}}</span></p>
|
<mat-cell class="cell" *matCellDef="let details;">
|
||||||
<!-- <span class="text-mat mat-text-muted">Chennai</span> -->
|
<span *ngIf="details.applicat_details" mat-line><b>{{details.applicat_details[0].applicant_name}}</b></span><br>
|
||||||
|
<span class="fontsize"> {{details.lender_applicant_id}}</span> <span class="fontsize" *ngIf="details.customer_segment_abbr">-({{details.customer_segment_abbr}} )</span>
|
||||||
<!-- <div class="comment-time">
|
</mat-cell>
|
||||||
<button mat-raised-button mat-icon-button mat-button-sm class="mr-1 mb-1" type="button" color="primary" (click)="editPdDetails(details.pd_id)"><mat-icon>edit</mat-icon></button>
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Lenderid">
|
||||||
</div> -->
|
<mat-cell class="cell" *matCellDef="let details">
|
||||||
<div class="comment-time">
|
<span *ngIf="details.lender_full_name" mat-line> {{details.lender_full_name}} </span><br>
|
||||||
|
<span *ngIf="details.product_abbr" mat-line class="fontsize"> {{details.product_abbr}}/{{details.subproduct_abbr}}</span> <br>
|
||||||
<!-- <button mat-raised-button mat-icon-button mat-button-sm class="mr-1 mb-1" color="accent" type="button" (click)="viewPdDetails(details.pd_id)"><mat-icon>visibility</mat-icon></button> -->
|
<span *ngIf="details.loan_amount" class="fontsize"><i class="fa-1x fa fa-rupee"></i> {{details.loan_amount}}</span>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Address">
|
||||||
|
<mat-cell class="cell" *matCellDef="let details;">
|
||||||
|
<span>{{details.pd_date_of_initiation}}</span><br>
|
||||||
|
<span class="fontsize" *ngIf="details.city_name"> <i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode}} </span>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Status">
|
||||||
|
<mat-cell class="cell center" *matCellDef="let details;">
|
||||||
|
<span> Triggered</span><br>
|
||||||
|
<span class="fontsize"> 25/10/2018 </span>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Action">
|
||||||
|
<mat-cell class="cell center" *matCellDef="let details;">
|
||||||
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPDDetails(details.pd_id)"><mat-icon>visibility</mat-icon></button>
|
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="viewPDDetails(details.pd_id)"><mat-icon>visibility</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
<!---- <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>-->
|
||||||
|
<mat-row style="align-items: normal !important;" *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</mat-list-item>
|
|
||||||
|
|
||||||
</mat-list>
|
|
||||||
<mat-list *ngIf="recordStatus">
|
|
||||||
<mat-list-item>
|
|
||||||
<p mat-line>No Record Found ...</p>
|
|
||||||
|
|
||||||
</mat-list-item>
|
|
||||||
</mat-list>
|
|
||||||
</div>
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
<mat-card-actions *ngIf="!recordStatus">
|
<mat-card-actions *ngIf="!recordStatus">
|
||||||
<mat-paginator #paginator class="mat-elevation-z1" [length]="pdList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
<mat-paginator #paginator class="mat-elevation-z1" [length]="pdList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
||||||
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
|
[pageSizeOptions]="[5, 10, 25,50, 100]" (page)="pageEvent = $event; pageChange($event)">
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
@ -134,8 +139,9 @@
|
|||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<notifier-container></notifier-container>
|
<notifier-container></notifier-container>
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
|
|
||||||
@ -2,3 +2,15 @@
|
|||||||
transform: scale(1.1);
|
transform: scale(1.1);
|
||||||
color: green;
|
color: green;
|
||||||
}
|
}
|
||||||
|
.cell{
|
||||||
|
display:inline !important;
|
||||||
|
}
|
||||||
|
.cellhide{
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
.center{
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
.fontsize{
|
||||||
|
font-size:14px;
|
||||||
|
}
|
||||||
@ -10,6 +10,12 @@ import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/m
|
|||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class ListPdComponent implements OnInit, OnDestroy {
|
export class ListPdComponent implements OnInit, OnDestroy {
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
displayedColumns = ['Name','Lenderid','Address','Status','Action'];
|
||||||
|
|
||||||
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
recordStatus: boolean;
|
recordStatus: boolean;
|
||||||
noRecordFound:boolean;
|
noRecordFound:boolean;
|
||||||
@ -24,10 +30,7 @@ export class ListPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// data source variable details
|
// data source variable details
|
||||||
pdListData = null;
|
pdListData = null;
|
||||||
public dataLength: number;
|
|
||||||
public dataSource = new MatTableDataSource();
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
|
||||||
pdList:any[] = [];
|
pdList:any[] = [];
|
||||||
constructor( notifier: NotifierService, private route: ActivatedRoute,
|
constructor( notifier: NotifierService, private route: ActivatedRoute,
|
||||||
private router: Router, private _pd: PdTrigerService) {
|
private router: Router, private _pd: PdTrigerService) {
|
||||||
|
|||||||
@ -1,68 +1,67 @@
|
|||||||
|
|
||||||
<div fxLayout="row">
|
<div fxLayout="row">
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
<div *ngIf="!noRecordFound" class="ml-xs mr-xs" style="width: 95%;">
|
<div *ngIf="!noRecordFound" class="ml-xs mr-xs" style="width: 95%;">
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 24%;">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 24%;">
|
||||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<div style="text-align:right;margin-top: -6%;">
|
|
||||||
<button mat-fab color="primary" (click)="goList()" class="mr-1 mb-1"><mat-icon>close</mat-icon></button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-2" >
|
<div>
|
||||||
|
<div style="text-align:right;position:absolute;z-index:2;right:1px">
|
||||||
|
<button mat-fab color="primary" matTooltip="Close" matTooltipPosition="above" (click)="goList()"><mat-icon>close</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="25" fxFlex.lg="25" fxFlex.xl="25" style="position:absolute;z-index:1">
|
||||||
|
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="25" fxFlex.lg="25" fxFlex.xl="25">
|
<div [style.overflow]="'auto'" [style.height.px]="'500'" *ngIf="pdList.length > 0">
|
||||||
<!-- <mat-expansion-panel *ngFor="let details of dataSource.connect() | async">
|
<mat-expansion-panel>
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header style="background-color:#f44336;color:#fff">
|
||||||
<mat-panel-title>
|
PD Details
|
||||||
<b> {{details.applicat_details[0].applicant_name}} </b>
|
|
||||||
</mat-panel-title>
|
|
||||||
<mat-panel-description>
|
|
||||||
{{details.product_abbr}}/{{details.subproduct_abbr}}
|
|
||||||
</mat-panel-description>
|
|
||||||
</mat-expansion-panel-header>
|
</mat-expansion-panel-header>
|
||||||
<p mat-line>Lendor ID:{{details.lender_applicant_id}}</p>
|
<div>
|
||||||
<p mat-line>Lendor Name:{{details.lender_full_name}}</p>
|
<input style="border-bottom: 1px solid #dcd9d9;padding-top: 5%;" matInput (keyup)="applyFilter($event.target.value)" placeholder="Search">
|
||||||
<p mat-line>Date Of Initiation:{{details.pd_date_of_initiation}}</p>
|
|
||||||
<p mat-line class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}
|
|
||||||
</p>
|
|
||||||
<p mat-line>
|
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="pdAllocationTo(master)"><mat-icon>directions_run</mat-icon></button>
|
|
||||||
|
|
||||||
</p>
|
</div>
|
||||||
|
<mat-card *ngFor="let details of dataSource.connect() | async">
|
||||||
|
|
||||||
|
<mat-card-title *ngIf="details.applicat_details" style="margin-bottom: 0px;">
|
||||||
|
<div fxLayout="row" fxFlex="100">
|
||||||
|
<div fxFlex="55">
|
||||||
|
<span style="font-weight:700">{{details.applicat_details[0].applicant_name}}</span> <br>
|
||||||
|
<span style="font-size: 13px;" >{{details.lender_full_name}}({{details.lender_applicant_id}})</span><br>
|
||||||
|
</div>
|
||||||
|
<div fxFlex="45" style="text-align:right;">
|
||||||
|
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 hover-icon" type="button" matTooltip="PD Allocation" matTooltipPosition="above" (click)="pdAllocationTo(details)"><mat-icon>verified_user</mat-icon></button>
|
||||||
|
<button mat-raised-button mat-button-sm mat-icon-button class=" hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(details)"><mat-icon>schedule</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</mat-card-title>
|
||||||
|
<mat-card-content style="padding: 2% 0% 0% 7%;">
|
||||||
|
|
||||||
</mat-expansion-panel> -->
|
<span class="hover-icon"><i *ngIf="details.city_name" class="fa-1x fa fa-map-marker"> </i>{{details.city_name}}/{{details.state_name}}-{{details.pincode}}</span> <br>
|
||||||
<mat-card [style.overflow]="'auto'" [style.height.px]="'500'" *ngIf="pdList.length > 0">
|
<span *ngIf="details.product_abbr">{{details.product_abbr}}/{{details.subproduct_abbr}}</span><br>
|
||||||
<mat-card class="mb-1" *ngFor="let details of dataSource.connect() | async">
|
<span> {{details.customer_segment_abbr}}<span *ngIf="details.loan_amount" style="padding-left: 48%;"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span></span><br>
|
||||||
<mat-card-actions style="text-align:right;">
|
<span>{{details.pd_date_of_initiation}}</span>
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="pdAllocationTo(details)"><mat-icon>directions_run</mat-icon></button>
|
|
||||||
<button mat-raised-button mat-button-sm mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="scheduleDetails(details)"><mat-icon>schedule</mat-icon></button>
|
|
||||||
</mat-card-actions>
|
|
||||||
|
|
||||||
<mat-card-title *ngIf="details.applicat_details">{{details.applicat_details[0].applicant_name}}</mat-card-title>
|
|
||||||
<mat-card-content class="mb-1"><p class="hover-icon"><i *ngIf="details.city_name" class="fa-1x fa fa-map-marker"> </i>{{details.city_name}}/{{details.state_name}}-{{details.pincode}}</p>
|
|
||||||
<p>{{details.lender_full_name}}({{details.lender_applicant_id}})</p>
|
|
||||||
<p *ngIf="details.product_abbr">{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}}</p>
|
|
||||||
<p>{{details.pd_date_of_initiation}} <span *ngIf="details.loan_amount" style="padding-left: 4%;" class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span></p>
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</mat-card>
|
|
||||||
<mat-list *ngIf="recordStatus">
|
<mat-list *ngIf="recordStatus">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<p mat-line>No Record Found ...</p>
|
<p mat-line>No Record Found ...</p>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
<!-- </mat-card-content> -->
|
|
||||||
<!-- <mat-card-actions *ngIf="!recordStatus"> -->
|
</mat-expansion-panel>
|
||||||
<mat-paginator #paginator [length]="pdList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
|
||||||
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
|
|
||||||
</mat-paginator>
|
|
||||||
<!-- </mat-card-actions>
|
|
||||||
</mat-card> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="75" fxFlex.lg="75" fxFlex.xl="75">
|
|
||||||
|
|
||||||
|
<!---- <mat-paginator #paginator [length]="pdList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
||||||
|
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
|
||||||
|
</mat-paginator> -->
|
||||||
|
</div>
|
||||||
|
<div fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
<mat-card class="mb-2" *ngIf="pdList.length > 0">
|
<mat-card class="mb-2" *ngIf="pdList.length > 0">
|
||||||
<agm-map [latitude]="lat" [longitude]="lng">
|
<agm-map [latitude]="lat" [longitude]="lng">
|
||||||
<agm-marker *ngFor="let getMap of mapDetails" [latitude]="getMap.lat" [longitude]="getMap.lng"></agm-marker>
|
<agm-marker *ngFor="let getMap of mapDetails" [latitude]="getMap.lat" [longitude]="getMap.lng"></agm-marker>
|
||||||
@ -71,5 +70,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -1,9 +1,9 @@
|
|||||||
<div style="max-height: 480px;">
|
<div style="height: 480px;">
|
||||||
<div style="text-align: right">
|
<div style="text-align: right">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="closeAllocationComponent()"><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<mat-card style="width: 580px; padding: 2px;">
|
<mat-card style="width: 750px;">
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title>{{pageTitle}}</mat-card-title>
|
<mat-card-title>{{pageTitle}}</mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
@ -13,15 +13,11 @@
|
|||||||
<mat-list *ngIf="pdOfficerList.length > 0">
|
<mat-list *ngIf="pdOfficerList.length > 0">
|
||||||
<mat-list-item *ngFor="let officer of pdOfficerList">
|
<mat-list-item *ngFor="let officer of pdOfficerList">
|
||||||
<p><mat-radio-button (change)="selectPdOfficer(officer)"></mat-radio-button>
|
<p><mat-radio-button (change)="selectPdOfficer(officer)"></mat-radio-button>
|
||||||
{{officer.first_name}}
|
{{officer.first_name}} -
|
||||||
</p>
|
|
||||||
<p style="padding-left: 8%;">
|
|
||||||
<span matBadge="{{officer.allocated}}" matBadgeOverlap="false" matBadgeColor="accent">Allocated</span>
|
<span matBadge="{{officer.allocated}}" matBadgeOverlap="false" matBadgeColor="accent">Allocated</span>
|
||||||
</p>
|
<span matBadge="{{officer.scheduled}}" matBadgeOverlap="false" >Scheduled</span>
|
||||||
<p style="padding-left: 8%;">
|
|
||||||
<span matBadge="{{officer.scheduled}}" matBadgeOverlap="false" >Scheduled</span>
|
|
||||||
</p>
|
|
||||||
<p style="padding-left: 8%;">
|
|
||||||
<span matBadge="{{officer.inprogress}}" matBadgeOverlap="false" matBadgeColor="warn">Inprogress</span>
|
<span matBadge="{{officer.inprogress}}" matBadgeOverlap="false" matBadgeColor="warn">Inprogress</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
<mat-list *ngIf="pdOfficerList.length > 0" >
|
<mat-list *ngIf="pdOfficerList.length > 0" >
|
||||||
<mat-radio-group>
|
<mat-radio-group>
|
||||||
<mat-list-item *ngFor="let officer of pdOfficerList; ">
|
<mat-list-item *ngFor="let officer of pdOfficerList; ">
|
||||||
<p><mat-radio-button [value]="officer" (change)="selectPdOfficer(officer)"></mat-radio-button>
|
<!-- <p><mat-radio-button [value]="officer" (change)="selectPdOfficer(officer)"></mat-radio-button>
|
||||||
{{officer.first_name}}
|
{{officer.first_name}}
|
||||||
</p>
|
</p>
|
||||||
<p style="padding-left: 8%;">
|
<p style="padding-left: 8%;">
|
||||||
@ -26,6 +26,15 @@
|
|||||||
<p style="padding-left: 8%;">
|
<p style="padding-left: 8%;">
|
||||||
<span matBadge="{{officer.inprogress}}" matBadgeOverlap="false" matBadgeColor="warn">Inprogress</span>
|
<span matBadge="{{officer.inprogress}}" matBadgeOverlap="false" matBadgeColor="warn">Inprogress</span>
|
||||||
</p>
|
</p>
|
||||||
|
-->
|
||||||
|
<p><mat-radio-button [value]="officer" (change)="selectPdOfficer(officer)"></mat-radio-button>
|
||||||
|
{{officer.first_name}} -
|
||||||
|
|
||||||
|
|
||||||
|
<span matBadge="{{officer.allocated}}" matBadgeOverlap="false" matBadgeColor="accent">Allocated</span>
|
||||||
|
<span matBadge="{{officer.scheduled}}" matBadgeOverlap="false" >Scheduled</span>
|
||||||
|
<span matBadge="{{officer.inprogress}}" matBadgeOverlap="false" matBadgeColor="warn">Inprogress</span>
|
||||||
|
</p>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-radio-group>
|
</mat-radio-group>
|
||||||
|
|||||||
@ -5,10 +5,10 @@
|
|||||||
{{master.pd_date_of_initiation}}
|
{{master.pd_date_of_initiation}}
|
||||||
</div>
|
</div>
|
||||||
<div *ngFor="let master of pdMasterData" class="ml-xs mr-xs pt-1" fxFlex="25" style="text-align:right;" >
|
<div *ngFor="let master of pdMasterData" class="ml-xs mr-xs pt-1" fxFlex="25" style="text-align:right;" >
|
||||||
<button *ngIf="master.pd_type_name" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="pdAllocationTo(master)"><mat-icon>directions_run</mat-icon></button>
|
<button *ngIf="master.pd_type_name" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PD Allocation" matTooltipPosition="above" (click)="pdAllocationTo(master)"><mat-icon>verified_user</mat-icon></button>
|
||||||
<button *ngIf="master.pd_type_name" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
|
<button *ngIf="master.pd_type_name" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Schedule" matTooltipPosition="above" (click)="scheduleDetails(master)"><mat-icon>schedule</mat-icon></button>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="getPDStart(viewID)"><mat-icon>question_answer</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="PD Details" matTooltipPosition="above" (click)="getPDStart(viewID)"><mat-icon>question_answer</mat-icon></button>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" matTooltip="Close" matTooltipPosition="above" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
||||||
<br><span style="color:red;text-align:center">{{master.pd_allocated_to}} -{{master.pd_status_name}}</span>
|
<br><span style="color:red;text-align:center">{{master.pd_allocated_to}} -{{master.pd_status_name}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
|
<mat-card>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<h2> Company </h2>
|
|
||||||
|
|
||||||
<form [formGroup]="_companyForm" (submit)="onSubmit()">
|
<form [formGroup]="_companyForm" (submit)="onSubmit()">
|
||||||
|
|
||||||
@ -16,21 +16,21 @@
|
|||||||
|
|
||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Addressline1" required formControlName="addressline1">
|
<input matInput type="text" placeholder="Address line 1" required formControlName="addressline1">
|
||||||
<!-- <mat-error *ngIf="!_companyForm.controls['addressline1'].valid && _companyForm.controls['addressline1'].touched" class="mat-text-warn">You must include a addressline1.</mat-error> -->
|
<!-- <mat-error *ngIf="!_companyForm.controls['addressline1'].valid && _companyForm.controls['addressline1'].touched" class="mat-text-warn">You must include a addressline1.</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Addressline2" formControlName="addressline2">
|
<input matInput type="text" placeholder="Address line 2" formControlName="addressline2">
|
||||||
<!-- <mat-error *ngIf="!_companyForm.controls['addressline2'].valid && _companyForm.controls['addressline2'].touched" class="mat-text-warn">You must include a Name.</mat-error> -->
|
<!-- <mat-error *ngIf="!_companyForm.controls['addressline2'].valid && _companyForm.controls['addressline2'].touched" class="mat-text-warn">You must include a Name.</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Addressline3" formControlName="addressline3">
|
<input matInput type="text" placeholder="Address line 3" formControlName="addressline3">
|
||||||
<!-- <mat-error *ngIf="!_companyForm.controls['addressline3'].valid && _companyForm.controls['addressline3'].touched" class="mat-text-warn">You must include a Name.</mat-error> -->
|
<!-- <mat-error *ngIf="!_companyForm.controls['addressline3'].valid && _companyForm.controls['addressline3'].touched" class="mat-text-warn">You must include a Name.</mat-error> -->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<mat-select placeholder="State" formControlName="state" [disabled]="true">
|
<mat-select placeholder="State" formControlName="state" >
|
||||||
<mat-option *ngFor="let sd of stateDatas" [value]="sd.state_id">{{ sd.name }}</mat-option>
|
<mat-option *ngFor="let sd of stateDatas" [value]="sd.state_id">{{ sd.name }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<!-- <mat-error *ngIf="!_companyForm.controls['state'].valid && _companyForm.controls['state'].touched" class="mat-text-warn">You must Pickup a State.</mat-error> -->
|
<!-- <mat-error *ngIf="!_companyForm.controls['state'].valid && _companyForm.controls['state'].touched" class="mat-text-warn">You must Pickup a State.</mat-error> -->
|
||||||
@ -58,7 +58,7 @@
|
|||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Pin code" required formControlName="pincode">
|
<input matInput type="text" placeholder="Pin code" required formControlName="pincode">
|
||||||
<mat-hint>pincode should be in 6 digit format</mat-hint>
|
<mat-hint>Pincode should be in 6 digit format</mat-hint>
|
||||||
<!-- <mat-error *ngIf="_companyForm.controls['pincode'].hasError('required') && _companyForm.controls['pincode'].touched" class="mat-text-warn">You must include phone number.</mat-error> -->
|
<!-- <mat-error *ngIf="_companyForm.controls['pincode'].hasError('required') && _companyForm.controls['pincode'].touched" class="mat-text-warn">You must include phone number.</mat-error> -->
|
||||||
<!-- <mat-error *ngIf="!_companyForm.controls['pincode'].valid && _companyForm.controls['pincode'].touched" class="mat-text-warn">You must include a pincode number.</mat-error> -->
|
<!-- <mat-error *ngIf="!_companyForm.controls['pincode'].valid && _companyForm.controls['pincode'].touched" class="mat-text-warn">You must include a pincode number.</mat-error> -->
|
||||||
<!-- <mat-error *ngIf="_companyForm.controls['pincode'].hasError('minlength') && _companyForm.controls['pincode'].touched" class="mat-text-warn">Your pincode must be at least 5 characters long.</mat-error>
|
<!-- <mat-error *ngIf="_companyForm.controls['pincode'].hasError('minlength') && _companyForm.controls['pincode'].touched" class="mat-text-warn">Your pincode must be at least 5 characters long.</mat-error>
|
||||||
@ -79,4 +79,5 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
</mat-card>
|
||||||
<notifier-container></notifier-container>
|
<notifier-container></notifier-container>
|
||||||
@ -119,7 +119,7 @@
|
|||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container> -->
|
</ng-container> -->
|
||||||
|
|
||||||
<button mat-icon-button color="primary" class="hover-icon" matTooltip="Save Data" matTooltipPosition="above" (click)="SaveData(dataSource)"><mat-icon>save</mat-icon></button>
|
<!-- <button mat-icon-button color="primary" class="hover-icon" matTooltip="Save Data" matTooltipPosition="above" (click)="SaveData(dataSource)"><mat-icon>save</mat-icon></button> -->
|
||||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
|
|||||||
@ -2,10 +2,10 @@
|
|||||||
<form [formGroup]="_pdTeamForm" (submit)="onSubmit()">
|
<form [formGroup]="_pdTeamForm" (submit)="onSubmit()">
|
||||||
<mat-card style="padding: 6px;">
|
<mat-card style="padding: 6px;">
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" fxLayoutAlign="center">
|
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 50%;">PD TEAM</h2>
|
<h2 mat-dialog-title style="width: 50%;">Add New PD Team</h2>
|
||||||
<div style="width: 20%;"></div>
|
<div style="width: 20%;"></div>
|
||||||
<div style="width: 30%;text-align:right;">
|
<div style="width: 30%;text-align:right;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()" [color]="color"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -36,17 +36,17 @@
|
|||||||
<mat-error *ngIf="!_pdTeamForm.controls['fk_city'].valid && _pdTeamForm.controls['fk_city'].touched" class="mat-text-warn">City Name Requried.</mat-error>
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_city'].valid && _pdTeamForm.controls['fk_city'].touched" class="mat-text-warn">City Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Cities are., </h6>
|
<h6 *ngIf="selectedCityDatas.length != 0"> The Selected Cities are </h6>
|
||||||
<ul *ngFor="let data of selectedCityDatas">
|
<ul *ngFor="let data of selectedCityDatas">
|
||||||
|
<!-- <h6> The Selected Cities are </h6> -->
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h6>Products</h6><hr><br>
|
<h6>Products</h6> <hr> <br>
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<mat-select placeholder="Product" required formControlName="fk_product" multiple>
|
<mat-select placeholder="Product" required formControlName="fk_product" multiple>
|
||||||
@ -56,8 +56,9 @@
|
|||||||
<mat-error *ngIf="!_pdTeamForm.controls['fk_product'].valid && _pdTeamForm.controls['fk_product'].touched" class="mat-text-warn">Product Name Requried.</mat-error>
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_product'].valid && _pdTeamForm.controls['fk_product'].touched" class="mat-text-warn">Product Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Products are., </h6>
|
<h6 *ngIf="selectedProductDatas.length != 0"> The Selected Products are </h6>
|
||||||
<ul *ngFor="let data of selectedProductDatas">
|
<ul *ngFor="let data of selectedProductDatas">
|
||||||
|
<!-- <h6> The Selected Products are </h6> -->
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
@ -75,8 +76,9 @@
|
|||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Customer segment are., </h6>
|
<h6 *ngIf="selectedSegmentDatas.length != 0"> The Selected Customer segment are </h6>
|
||||||
<ul *ngFor="let data of selectedSegmentDatas">
|
<ul *ngFor="let data of selectedSegmentDatas">
|
||||||
|
<!-- <h6> The Selected Customer segment are </h6> -->
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -24,7 +24,6 @@ export class PdTeamAddComponent implements OnInit {
|
|||||||
|
|
||||||
public _pdTeamForm: FormGroup;
|
public _pdTeamForm: FormGroup;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
//public submitted = false;
|
|
||||||
color = 'primary';
|
color = 'primary';
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
|
|
||||||
@ -36,25 +35,24 @@ customerSegmentdatas: any[];
|
|||||||
|
|
||||||
//This Type Of Array Declaration
|
//This Type Of Array Declaration
|
||||||
pdTeamCityArray:any= [];
|
pdTeamCityArray:any= [];
|
||||||
pdTeamProductArray: Array<{teamid: number, productid: number}> = [];
|
CityValidation:any= [];
|
||||||
pdTeamCustomerSegmentArray: Array<{teamid: number, customerid: number}> = [];
|
|
||||||
|
|
||||||
//This Type Of Array Declaration for Local Purpose and List the data in html page
|
//This Type Of Array Declaration for Local Purpose and List the data in html page
|
||||||
selectedCityDatas : any=[];
|
selectedCityDatas : any=[];
|
||||||
selectedProductDatas : any=[];
|
selectedProductDatas : any=[];
|
||||||
selectedSegmentDatas : any=[];
|
selectedSegmentDatas : any=[];
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,
|
||||||
notifier: NotifierService,
|
private _notifier: NotifierService,
|
||||||
private _pdTeamService: PdTeamService,
|
private _pdTeamService: PdTeamService,
|
||||||
private _router: Router,
|
private _router: Router,
|
||||||
private _masterService: MastersService)
|
private _masterService: MastersService)
|
||||||
{
|
{
|
||||||
this.notifier = notifier;
|
this.notifier = _notifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
//console.log(this.notifier);
|
||||||
this.PdTeamFormDatas();
|
this.PdTeamFormDatas();
|
||||||
|
|
||||||
/** For Checking City Validation datas - checking purpose - Already exists are not */
|
/** For Checking City Validation datas - checking purpose - Already exists are not */
|
||||||
@ -71,7 +69,7 @@ this._pdTeamService.getAllPdTeamCityMapping()
|
|||||||
/** To Display The City Data For City DropDown */
|
/** To Display The City Data For City DropDown */
|
||||||
this._masterService.getAllMasterData('CITY').subscribe(
|
this._masterService.getAllMasterData('CITY').subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if(dataresult.dataStatus == true){
|
||||||
this.citydatas = dataresult.records;
|
this.citydatas = dataresult.records;
|
||||||
this.citydatas = this.citydatas.filter(city=>city.isactive == 1 );
|
this.citydatas = this.citydatas.filter(city=>city.isactive == 1 );
|
||||||
}
|
}
|
||||||
@ -81,7 +79,7 @@ this._masterService.getAllMasterData('CITY').subscribe(
|
|||||||
/** To Display The Entities Data For Entities DropDown */
|
/** To Display The Entities Data For Entities DropDown */
|
||||||
this._masterService.getAllMasterData('ENTITY').subscribe(
|
this._masterService.getAllMasterData('ENTITY').subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if(dataresult.dataStatus == true){
|
||||||
this.lenderdatas = dataresult.records;
|
this.lenderdatas = dataresult.records;
|
||||||
this.lenderdatas = this.lenderdatas.filter(entity=>entity.isactive == 1 );
|
this.lenderdatas = this.lenderdatas.filter(entity=>entity.isactive == 1 );
|
||||||
}
|
}
|
||||||
@ -90,7 +88,7 @@ this._masterService.getAllMasterData('ENTITY').subscribe(
|
|||||||
/** To Display The Entities Data For Entities DropDown */
|
/** To Display The Entities Data For Entities DropDown */
|
||||||
this._masterService.getAllMasterData('PRODUCTS').subscribe(
|
this._masterService.getAllMasterData('PRODUCTS').subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if(dataresult.dataStatus == true) {
|
||||||
this.productdatas = dataresult.records;
|
this.productdatas = dataresult.records;
|
||||||
this.productdatas = this.productdatas.filter(product=>product.isactive == 1 );
|
this.productdatas = this.productdatas.filter(product=>product.isactive == 1 );
|
||||||
}
|
}
|
||||||
@ -99,7 +97,7 @@ this._masterService.getAllMasterData('PRODUCTS').subscribe(
|
|||||||
/** To Display The Entities Data For Entities DropDown */
|
/** To Display The Entities Data For Entities DropDown */
|
||||||
this._masterService.getAllMasterData('CUSTOMERSEGMENT').subscribe(
|
this._masterService.getAllMasterData('CUSTOMERSEGMENT').subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if(dataresult.dataStatus == true) {
|
||||||
this.customerSegmentdatas = dataresult.records;
|
this.customerSegmentdatas = dataresult.records;
|
||||||
this.customerSegmentdatas = this.customerSegmentdatas.filter(segment=>segment.isactive == 1 );
|
this.customerSegmentdatas = this.customerSegmentdatas.filter(segment=>segment.isactive == 1 );
|
||||||
}
|
}
|
||||||
@ -144,11 +142,11 @@ onSubmit() {
|
|||||||
|
|
||||||
this._pdTeamService.addPdTeamDetail(this._pdTeamForm.value).subscribe(
|
this._pdTeamService.addPdTeamDetail(this._pdTeamForm.value).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if (dataresult.status == 200) {
|
if(dataresult.dataStatus == true) {
|
||||||
//this.notifier.notify('success', 'Record Saved Successfully.!');
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
Swal('Record Saved Successfully.!','success');
|
Swal('Record Saved Successfully.!','success');
|
||||||
this._pdTeamForm.reset();
|
|
||||||
this._router.navigate(['/setting/pdteam/pdteamlist']);
|
this._router.navigate(['/setting/pdteam/pdteamlist']);
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
@ -176,27 +174,66 @@ onChangeCustomerSegmentDatas($event){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**on change function for City to display the as List in html page */
|
/**on change function for City to display the as List in html page */
|
||||||
|
// onChangeCityDatas($event){
|
||||||
|
// var mycheck = 0 ;
|
||||||
|
// //let cityName = $event.source.value;
|
||||||
|
// let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];
|
||||||
|
|
||||||
|
// if($event.source._selected === true ){
|
||||||
|
|
||||||
|
// for(let Duplication_City of this.pdTeamCityArray){
|
||||||
|
|
||||||
|
// let teamname = Duplication_City.team_name;
|
||||||
|
// let dup_cityname = Duplication_City.CITYMAP.filter(city=>city.city_id == $event.source.value);
|
||||||
|
|
||||||
|
// if(dup_cityname != ''){
|
||||||
|
// for(let data of dup_cityname){
|
||||||
|
|
||||||
|
// if(data.name == cityName.name){
|
||||||
|
// alert('"'+data.name+'" Already Existing with "'+ teamname +'"');
|
||||||
|
// $event.source._selected = false;
|
||||||
|
// mycheck++;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(mycheck == 0){
|
||||||
|
// this.selectedCityDatas.push(cityName.name);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else if($event.source._selected === false ){
|
||||||
|
// let index = this.selectedCityDatas.indexOf(cityName.name);
|
||||||
|
// this.selectedCityDatas.splice(index,1);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
onChangeCityDatas($event){
|
onChangeCityDatas($event){
|
||||||
|
|
||||||
var mycheck = 0 ;
|
var mycheck = 0 ;
|
||||||
//let cityName = $event.source.value;
|
let lenderId = this._pdTeamForm.value['fk_lender'];
|
||||||
let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];
|
if(lenderId != null){
|
||||||
|
let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];//city array
|
||||||
|
// console.log(cityName);
|
||||||
|
// console.log($event.source.value);
|
||||||
|
|
||||||
if($event.source._selected === true ){
|
if($event.source._selected === true ){
|
||||||
|
this._pdTeamService.getLenderData(lenderId).subscribe(
|
||||||
|
dataresult => {
|
||||||
|
|
||||||
for(let Duplication_City of this.pdTeamCityArray){
|
if(dataresult.dataStatus == true) {
|
||||||
|
this.CityValidation = dataresult.records;
|
||||||
let teamname = Duplication_City.team_name;
|
|
||||||
let dup_cityname = Duplication_City.CITYMAP.filter(city=>city.city_id == $event.source.value);
|
|
||||||
|
|
||||||
if(dup_cityname != ''){
|
|
||||||
for(let data of dup_cityname){
|
|
||||||
|
|
||||||
if(data.name == cityName.name){
|
|
||||||
alert('"'+data.name+'" Already Existing with "'+ teamname +'"');
|
|
||||||
$event.source._selected = false;
|
|
||||||
mycheck++;
|
|
||||||
}
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
|
if(this.CityValidation != ''){
|
||||||
|
for(let data of this.CityValidation){
|
||||||
|
if(data['fk_city_id'] == $event.source.value){
|
||||||
|
Swal('<h5>"'+data['city_name']+'" already existing with "'+ data['team_name'] +'"</h5>');
|
||||||
|
$event.source._selected = false;
|
||||||
|
mycheck = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -204,13 +241,17 @@ onChangeCityDatas($event){
|
|||||||
if(mycheck == 0){
|
if(mycheck == 0){
|
||||||
this.selectedCityDatas.push(cityName.name);
|
this.selectedCityDatas.push(cityName.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if($event.source._selected === false ){
|
else if($event.source._selected === false ){
|
||||||
|
$event.source._selected = false;
|
||||||
let index = this.selectedCityDatas.indexOf(cityName.name);
|
let index = this.selectedCityDatas.indexOf(cityName.name);
|
||||||
this.selectedCityDatas.splice(index,1);
|
this.selectedCityDatas.splice(index,1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Swal('Pick Up The Lender Name');
|
||||||
|
$event.source._selected = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**on change function for Product to display the data as List in html page */
|
/**on change function for Product to display the data as List in html page */
|
||||||
|
|||||||
@ -2,10 +2,11 @@
|
|||||||
<form [formGroup]="_pdTeamForm" (submit)="onSubmit()">
|
<form [formGroup]="_pdTeamForm" (submit)="onSubmit()">
|
||||||
<mat-card style="padding: 6px;">
|
<mat-card style="padding: 6px;">
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" fxLayoutAlign="center">
|
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 50%;">PD TEAM</h2>
|
<h2 mat-dialog-title style="width: 50%;">Edit PD Team</h2>
|
||||||
<div style="width: 20%;"></div>
|
<div style="width: 20%;"></div>
|
||||||
<div style="width: 30%;text-align:right;">
|
<div style="width: 30%;text-align:right;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button> -->
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" type="button" (click)="onNoClick()" [color]="color"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -13,14 +14,16 @@
|
|||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<input matInput type="text" placeholder="Team Name" required formControlName="team_name">
|
<input matInput type="text" placeholder="Team Name" required formControlName="team_name">
|
||||||
<mat-error *ngIf="submitted && f.team_name.hasError('required')" class="mat-text-warn">You must Include Team Name.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.team_name.hasError('required')" class="mat-text-warn">You must Include Team Name.</mat-error> -->
|
||||||
|
<mat-error *ngIf="!_pdTeamForm.controls['team_name'].valid && _pdTeamForm.controls['team_name'].touched" class="mat-text-warn">Team Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<mat-select placeholder="Lender" required formControlName="fk_lender">
|
<mat-select placeholder="Lender" required formControlName="fk_lender">
|
||||||
<mat-option *ngFor="let ld of lenderdatas" [value]="ld.entity_id" >{{ ld.short_name }} {{ ld.full_name }} </mat-option>
|
<mat-option *ngFor="let ld of lenderdatas" [value]="ld.entity_id" >{{ ld.short_name }} {{ ld.full_name }} </mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_lender.hasError('required')" class="mat-text-warn">You must Select Lender Name.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.fk_lender.hasError('required')" class="mat-text-warn">You must Select Lender Name.</mat-error> -->
|
||||||
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_lender'].valid && _pdTeamForm.controls['fk_lender'].touched" class="mat-text-warn">Lender Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -29,12 +32,15 @@
|
|||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<mat-select placeholder="City" required formControlName="fk_city" multiple>
|
<mat-select placeholder="City" required formControlName="fk_city" multiple>
|
||||||
<mat-option *ngFor="let cd of citydatas " [value]="cd.city_id" (onSelectionChange)="onChangeCityDatas($event)" >{{ cd.name }} </mat-option>
|
<mat-option *ngFor="let cd of citydatas " [value]="cd.city_id" (onSelectionChange)="onChangeCityDatas($event)" >{{ cd.name }} </mat-option>
|
||||||
|
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_city.hasError('required')" class="mat-text-warn">You must Select Cities.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.fk_city.hasError('required')" class="mat-text-warn">You must Select Cities.</mat-error> -->
|
||||||
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_city'].valid && _pdTeamForm.controls['fk_city'].touched" class="mat-text-warn">City Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Cities are., </h6>
|
<h6 *ngIf="selectedCityDatas.length != 0"> The Selected Cities are </h6>
|
||||||
<ul *ngFor="let data of selectedCityDatas">
|
<ul *ngFor="let data of selectedCityDatas">
|
||||||
|
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
@ -49,11 +55,13 @@
|
|||||||
<mat-select placeholder="Product" required formControlName="fk_product" multiple>
|
<mat-select placeholder="Product" required formControlName="fk_product" multiple>
|
||||||
<mat-option *ngFor="let pd of productdatas " [value]="pd.product_id" (onSelectionChange)="onChangeProductDatas($event)" >{{ pd.name }} </mat-option>
|
<mat-option *ngFor="let pd of productdatas " [value]="pd.product_id" (onSelectionChange)="onChangeProductDatas($event)" >{{ pd.name }} </mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_product.hasError('required')" class="mat-text-warn">You must Select Product.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.fk_product.hasError('required')" class="mat-text-warn">You must Select Product.</mat-error> -->
|
||||||
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_product'].valid && _pdTeamForm.controls['fk_product'].touched" class="mat-text-warn">Product Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Products are., </h6>
|
<h6 *ngIf="selectedProductDatas.length != 0"> The Selected Products are </h6>
|
||||||
<ul *ngFor="let data of selectedProductDatas">
|
<ul *ngFor="let data of selectedProductDatas">
|
||||||
|
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
@ -66,11 +74,13 @@
|
|||||||
<mat-select placeholder="Customer Segment" required formControlName="fk_customer_segment" multiple>
|
<mat-select placeholder="Customer Segment" required formControlName="fk_customer_segment" multiple>
|
||||||
<mat-option *ngFor="let csd of customerSegmentdatas" [value]="csd.customer_segment_id" (onSelectionChange)="onChangeCustomerSegmentDatas($event)">{{csd.name}}</mat-option>
|
<mat-option *ngFor="let csd of customerSegmentdatas" [value]="csd.customer_segment_id" (onSelectionChange)="onChangeCustomerSegmentDatas($event)">{{csd.name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_customer_segment.hasError('required')" class="mat-text-warn">You must Select Customer Segment.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.fk_customer_segment.hasError('required')" class="mat-text-warn">You must Select Customer Segment.</mat-error> -->
|
||||||
|
<mat-error *ngIf="!_pdTeamForm.controls['fk_customer_segment'].valid && _pdTeamForm.controls['fk_customer_segment'].touched" class="mat-text-warn">CustomerSegment Name Requried.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<span fxFlex="0 1 auto" class="ml-xs">
|
<span fxFlex="0 1 auto" class="ml-xs">
|
||||||
<h6> The Selected Customer segment are., </h6>
|
<h6 *ngIf="selectedSegmentDatas.length != 0"> The Selected Customer segment are </h6>
|
||||||
<ul *ngFor="let data of selectedSegmentDatas">
|
<ul *ngFor="let data of selectedSegmentDatas">
|
||||||
|
|
||||||
<li>{{data}}</li>
|
<li>{{data}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
@ -79,7 +89,8 @@
|
|||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><mat-icon>settings_backup_restore</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit($event)" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
<!-- <button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit($event)" ><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>
|
<!-- <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> -->
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_pdTeamForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -1,16 +1,12 @@
|
|||||||
|
|
||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
|
|
||||||
import { FormBuilder,
|
import { FormBuilder,
|
||||||
FormGroup,
|
FormGroup,
|
||||||
Validators,
|
Validators,
|
||||||
FormControl } from '@angular/forms';
|
FormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../service/masters/masters.service';
|
import { MastersService } from '../../service/masters/masters.service';
|
||||||
import { PdTeamService } from '../../service/masters/pd-team.service';
|
import { PdTeamService } from '../../service/masters/pd-team.service';
|
||||||
import { NotifierService } from 'angular-notifier';
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
/** Here this component is like as a partent component */
|
/** Here this component is like as a partent component */
|
||||||
import { PdTeamListComponent } from './../pd-team-list/pd-team-list.component';
|
import { PdTeamListComponent } from './../pd-team-list/pd-team-list.component';
|
||||||
/**sweet alert */
|
/**sweet alert */
|
||||||
@ -25,6 +21,7 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
|
|
||||||
public _pdTeamForm: FormGroup;
|
public _pdTeamForm: FormGroup;
|
||||||
public submitted = false;
|
public submitted = false;
|
||||||
|
public listView: any = true;
|
||||||
private notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
color = 'primary';
|
color = 'primary';
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
@ -40,8 +37,14 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
|
|
||||||
//This Type Of Array Declaration for Validation
|
//This Type Of Array Declaration for Validation
|
||||||
pdTeamCityArray:any= [];
|
pdTeamCityArray:any= [];
|
||||||
pdTeamProductArray: Array<{teamid: number, productid: number}> = [];
|
CityValidation:any= [];
|
||||||
pdTeamCustomerSegmentArray: Array<{teamid: number, customerid: number}> = [];
|
//pdTeamProductArray: Array<{teamid: number, productid: number}> = [];
|
||||||
|
//pdTeamCustomerSegmentArray: Array<{teamid: number, customerid: number}> = [];
|
||||||
|
|
||||||
|
//This Type Of Array Declaration to Check the Existing Data
|
||||||
|
DBCityDatas:any=[];
|
||||||
|
DBProductDatas:any=[];
|
||||||
|
DBCustomerSegmentDatas:any=[];
|
||||||
|
|
||||||
//This Type Of Array Declaration for Local Purpose and List the data in html page
|
//This Type Of Array Declaration for Local Purpose and List the data in html page
|
||||||
selectedCityDatas : any=[];
|
selectedCityDatas : any=[];
|
||||||
@ -133,22 +136,42 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let PdTeamProduct:any = [];
|
let PdTeamProduct:any = [];
|
||||||
for(let ptp of this.childMessage[0].PRODUCTS){
|
// for(let ptp of this.childMessage[0].PRODUCTS){
|
||||||
PdTeamProduct.push(ptp.product_id);
|
// PdTeamProduct.push(ptp.product_id);
|
||||||
|
// }
|
||||||
|
this._pdTeamService.getProductData(this.childMessage[0].pdteam_id).subscribe(
|
||||||
|
dataresult => {
|
||||||
|
if (dataresult.dataStatus == true) {
|
||||||
|
for(let ptp of dataresult.records){
|
||||||
|
this.DBProductDatas.push(ptp.fk_product_id);
|
||||||
|
this.selectedProductDatas.push(ptp.name);
|
||||||
|
this._pdTeamForm.controls['fk_product'].setValue(this.DBProductDatas);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
let PdTeamCS:any = [];
|
let PdTeamCS:any = [];
|
||||||
for(let ptcs of this.childMessage[0].CUSTOMERSEGMENT){
|
// for(let ptcs of this.childMessage[0].CUSTOMERSEGMENT){
|
||||||
PdTeamCS.push(ptcs.customer_segment_id);
|
// PdTeamCS.push(ptcs.customer_segment_id);
|
||||||
|
// }
|
||||||
|
this._pdTeamService.getCustomerSegmentData(this.childMessage[0].pdteam_id).subscribe(
|
||||||
|
dataresult => {
|
||||||
|
if (dataresult.dataStatus == true) {
|
||||||
|
for(let ptcs of dataresult.records){
|
||||||
|
this.DBCustomerSegmentDatas.push(ptcs.customer_segment_id);
|
||||||
|
this.selectedSegmentDatas.push(ptcs.name);
|
||||||
|
this._pdTeamForm.controls['fk_customer_segment'].setValue(this.DBCustomerSegmentDatas);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
this._pdTeamForm = this._formBuilder.group({
|
this._pdTeamForm = this._formBuilder.group({
|
||||||
pdteam_id: [this.childMessage[0].pdteam_id, Validators.compose([Validators.required])],
|
pdteam_id: [this.childMessage[0].pdteam_id, Validators.compose([Validators.required])],
|
||||||
team_name: [this.childMessage[0].team_name, Validators.compose([Validators.required])],
|
team_name: [this.childMessage[0].team_name, Validators.compose([Validators.required])],
|
||||||
fk_lender: [this.childMessage[0].fk_lender_id, Validators.compose([Validators.required])],
|
fk_lender: [this.childMessage[0].fk_lender_id, Validators.compose([Validators.required])],
|
||||||
fk_city: [PdTeamCity, Validators.compose([Validators.required])],
|
fk_city: [PdTeamCity, Validators.compose([Validators.required])],
|
||||||
fk_customer_segment: [PdTeamCS, Validators.compose([Validators.required])],
|
fk_customer_segment: [this.DBCustomerSegmentDatas, Validators.compose([Validators.required])],
|
||||||
fk_product:[PdTeamProduct, Validators.compose([Validators.required])],
|
fk_product:[this.DBProductDatas, Validators.compose([Validators.required])],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -169,41 +192,103 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
|
|
||||||
/**on change function for customer segment to dispaly the as List in html page */
|
/**on change function for customer segment to dispaly the as List in html page */
|
||||||
onChangeCustomerSegmentDatas($event){
|
onChangeCustomerSegmentDatas($event){
|
||||||
//let CustomerSegmentName = $event.source.value.name;
|
if($event.isUserInput != false){
|
||||||
let CustomerSegmentName = this.customerSegmentdatas.filter(cs=>cs.customer_segment_id == $event.source.value)[0];
|
let CustomerSegmentName = this.customerSegmentdatas.filter(cs=>cs.customer_segment_id == $event.source.value)[0];
|
||||||
|
|
||||||
|
|
||||||
if($event.source._selected === true ){
|
if($event.source._selected === true ){
|
||||||
|
|
||||||
this.selectedSegmentDatas.push(CustomerSegmentName.name);
|
this.selectedSegmentDatas.push(CustomerSegmentName.name);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if($event.source._selected === false ){
|
else if($event.isUserInput != false && $event.source._selected === false ){
|
||||||
|
|
||||||
|
let index = this.selectedSegmentDatas.indexOf(CustomerSegmentName.name);
|
||||||
|
this.selectedSegmentDatas.splice(index,1);
|
||||||
|
let data;
|
||||||
|
this._masterService.getAllMasterData('PDTEAMCUSTOMERSEGMENT').subscribe(
|
||||||
|
dataresult => {
|
||||||
|
if (dataresult.dataStatus == true) {
|
||||||
|
data = dataresult.records;
|
||||||
|
data = data.filter(pdteamcustomer=>pdteamcustomer.fk_cs_id == $event.source.value && pdteamcustomer.isactive == 1);
|
||||||
|
data = data.filter(pdteamcustomer=>pdteamcustomer.fk_pdteam_id == this._pdTeamForm.value.pdteam_id)[0];
|
||||||
|
let ActiveDatas = { 'pdteam_customer_segment_id':data.pdteam_customer_segment_id,'isactive': '0'} ;
|
||||||
|
this._pdTeamService.editPdTeamchildDetails(ActiveDatas,'PDTEAMCUSTOMERSEGMENT')
|
||||||
|
.subscribe(dataresult=>{
|
||||||
|
if (dataresult.dataStatus == true){
|
||||||
|
//alert('InActive Changes Done in cs');
|
||||||
let index = this.selectedSegmentDatas.indexOf(CustomerSegmentName.name);
|
let index = this.selectedSegmentDatas.indexOf(CustomerSegmentName.name);
|
||||||
this.selectedSegmentDatas.splice(index,1);
|
this.selectedSegmentDatas.splice(index,1);
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}else{}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
/**on change function for City to display the as List in html page */
|
/**on change function for City to display the as List in html page */
|
||||||
|
// onChangeCityDatas($event){
|
||||||
|
|
||||||
|
// var mycheck = 0 ;
|
||||||
|
|
||||||
|
// let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];
|
||||||
|
|
||||||
|
// if($event.source._selected == true ){
|
||||||
|
|
||||||
|
// for(let Duplication_City of this.pdTeamCityArray){
|
||||||
|
|
||||||
|
// let teamname = Duplication_City.team_name;
|
||||||
|
// let dup_cityname = Duplication_City.CITYMAP.filter(city=>city.city_id == $event.source.value);
|
||||||
|
|
||||||
|
// if(dup_cityname != ''){
|
||||||
|
// for(let data of dup_cityname){
|
||||||
|
|
||||||
|
// if(data.name == cityName.name){
|
||||||
|
// Swal('<h5>"'+data.name+'" already existing with "'+ teamname +'"</h5>');
|
||||||
|
// $event.source._selected = false;
|
||||||
|
// mycheck=1;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if(mycheck == 0){
|
||||||
|
// this.selectedCityDatas.push(cityName.name);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else if($event.source._selected === false ){
|
||||||
|
// let index = this.selectedCityDatas.indexOf(cityName.name);
|
||||||
|
// this.selectedCityDatas.splice(index,1);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
onChangeCityDatas($event){
|
onChangeCityDatas($event){
|
||||||
|
//console.log('inside the function Event');
|
||||||
var mycheck = 0 ;
|
var mycheck = 0 ;
|
||||||
|
let lenderId = this._pdTeamForm.value['fk_lender'];
|
||||||
|
let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];//city array
|
||||||
|
if($event.isUserInput != false){
|
||||||
|
// console.log(cityName);
|
||||||
|
// console.log($event.source.value);
|
||||||
|
|
||||||
let cityName = this.citydatas.filter(city=>city.city_id == $event.source.value)[0];
|
if($event.source._selected === true ){
|
||||||
|
this._pdTeamService.getLenderData(lenderId).subscribe(
|
||||||
if($event.source._selected == true ){
|
dataresult => {
|
||||||
|
if(dataresult.dataStatus == true){
|
||||||
for(let Duplication_City of this.pdTeamCityArray){
|
this.CityValidation = dataresult.records;
|
||||||
|
|
||||||
let teamname = Duplication_City.team_name;
|
|
||||||
let dup_cityname = Duplication_City.CITYMAP.filter(city=>city.city_id == $event.source.value);
|
|
||||||
|
|
||||||
if(dup_cityname != ''){
|
|
||||||
for(let data of dup_cityname){
|
|
||||||
|
|
||||||
if(data.name == cityName.name){
|
|
||||||
Swal('<h5>"'+data.name+'" already existing with "'+ teamname +'"</h5>');
|
|
||||||
$event.source._selected = false;
|
|
||||||
mycheck=1;
|
|
||||||
}
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
|
if(this.CityValidation != ''){
|
||||||
|
for(let data of this.CityValidation){
|
||||||
|
if(data['fk_city_id'] == $event.source.value){
|
||||||
|
Swal('<h5>"'+data['city_name']+'" already existing with "'+ data['team_name'] +'"</h5>');
|
||||||
|
$event.source._selected = false;
|
||||||
|
mycheck = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,28 +296,82 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
if(mycheck == 0){
|
if(mycheck == 0){
|
||||||
this.selectedCityDatas.push(cityName.name);
|
this.selectedCityDatas.push(cityName.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if($event.source._selected === false ){
|
else if($event.source._selected === false ){
|
||||||
|
|
||||||
|
console.log('Return False for city Selection Data');
|
||||||
let index = this.selectedCityDatas.indexOf(cityName.name);
|
let index = this.selectedCityDatas.indexOf(cityName.name);
|
||||||
this.selectedCityDatas.splice(index,1);
|
this.selectedCityDatas.splice(index,1);
|
||||||
|
|
||||||
|
|
||||||
|
//$event.source._selected = false;
|
||||||
|
let data;
|
||||||
|
this._masterService.getAllMasterData('PDTEAMCITY').subscribe(
|
||||||
|
dataresult => {
|
||||||
|
if (dataresult.dataStatus == true) {
|
||||||
|
data = dataresult.records;
|
||||||
|
console.log('data',data);
|
||||||
|
data = data.filter(pdteamcity=>pdteamcity.fk_city_id == $event.source.value);
|
||||||
|
data = data.filter(pdteamcity=>pdteamcity.fk_pdteam_id == this._pdTeamForm.value.pdteam_id)[0];
|
||||||
|
console.log(data.pdteam_city_id);
|
||||||
|
this._pdTeamService.deletePDteamCity($event.source.value).subscribe(data=>{
|
||||||
|
if (dataresult.dataStatus == true) {//alert('Deleted');
|
||||||
|
let index = this.selectedCityDatas.indexOf(cityName.name);
|
||||||
|
this.selectedCityDatas.splice(index,1);
|
||||||
|
//this._PdTeamListComponent.changeListView();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
|
//console.log(data);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else if($event.isUserInput != true && $event.source._selected == true) {
|
||||||
|
this.selectedCityDatas.push(cityName.name);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**on change function for Product to display the data as List in html page */
|
/**on change function for Product to display the data as List in html page */
|
||||||
onChangeProductDatas($event){
|
onChangeProductDatas($event){
|
||||||
|
if($event.isUserInput != false){
|
||||||
//let productName = $event.source.value.name;
|
//let productName = $event.source.value.name;
|
||||||
let productName = this.productdatas.filter(product=>product.product_id == $event.source.value )[0];
|
let productName = this.productdatas.filter(product=>product.product_id == $event.source.value )[0];
|
||||||
|
|
||||||
if($event.source._selected === true ){
|
if($event.source._selected === true ){
|
||||||
this.selectedProductDatas.push(productName.name);
|
this.selectedProductDatas.push(productName.name);
|
||||||
}
|
}
|
||||||
else if($event.source._selected === false ){
|
else if($event.isUserInput != false && $event.source._selected === false ){
|
||||||
|
let index = this.selectedProductDatas.indexOf(productName.name);
|
||||||
|
this.selectedProductDatas.splice(index,1);
|
||||||
|
let data;
|
||||||
|
this._masterService.getAllMasterData('PDTEAMPRODUCT').subscribe(
|
||||||
|
dataresult => {
|
||||||
|
if (dataresult.dataStatus == true) {
|
||||||
|
data = dataresult.records;
|
||||||
|
console.log('data',data);
|
||||||
|
data = data.filter(pdteamproduct=>pdteamproduct.fk_product_id == $event.source.value && pdteamproduct.isactive == 1);
|
||||||
|
data = data.filter(pdteamcity=>pdteamcity.fk_pdteam_id == this._pdTeamForm.value.pdteam_id)[0];
|
||||||
|
console.log(data.pdteam_city_id);
|
||||||
|
let ActiveDatas = { 'pdteam_product_id':data.pdteam_product_id,'isactive': '0'} ;
|
||||||
|
this._pdTeamService.editPdTeamchildDetails(ActiveDatas,'PDTEAMPRODUCT')
|
||||||
|
.subscribe(dataresult=>{
|
||||||
|
if (dataresult.dataStatus == true){
|
||||||
|
//alert('InActive Changes Done in product');
|
||||||
let index = this.selectedProductDatas.indexOf(productName.name);
|
let index = this.selectedProductDatas.indexOf(productName.name);
|
||||||
this.selectedProductDatas.splice(index,1);
|
this.selectedProductDatas.splice(index,1);
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
//alert("Sorry Try Again !");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}, error => this.errorMessage = <any> error);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** To Edited form Data */
|
/** To Edited form Data */
|
||||||
@ -243,7 +382,6 @@ export class PdTeamEditComponent implements OnInit {
|
|||||||
(key) => ( pdTeamFormValues[key] == null) && delete pdTeamFormValues[key]);
|
(key) => ( pdTeamFormValues[key] == null) && delete pdTeamFormValues[key]);
|
||||||
|
|
||||||
this._pdTeamService.editPdTeamDetail(pdTeamFormValues).subscribe(
|
this._pdTeamService.editPdTeamDetail(pdTeamFormValues).subscribe(
|
||||||
|
|
||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
Swal("Data Edited Successfully");
|
Swal("Data Edited Successfully");
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<mat-card>
|
<mat-card>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-1">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-1">
|
||||||
<div class="ml-xs mr-xs" style="width: 30%;">
|
<div class="ml-xs mr-xs" style="width: 30%;">
|
||||||
<mat-card-title><span> PD Team Master</span></mat-card-title>
|
<mat-card-title><span> PD Team</span></mat-card-title>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
|||||||
@ -149,8 +149,11 @@ isactivePdTeam(id: number,isactive : number) {
|
|||||||
|
|
||||||
/** For Display Tables Pagination And Sorting */
|
/** For Display Tables Pagination And Sorting */
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
|
//alert('ngAfterViewInit()');
|
||||||
this.dataSource.paginator = this.paginator;
|
this.dataSource.paginator = this.paginator;
|
||||||
this.dataSource.sort = this.sort;
|
this.dataSource.sort = this.sort;
|
||||||
|
//alert('pagintor'+this.dataSource.paginator);
|
||||||
|
//alert('sort'+this.dataSource.sort);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** For Display Tables Filtering */
|
/** For Display Tables Filtering */
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-card>
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" color="primary" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" color="primary" class="mb-1"></mat-progress-bar>
|
||||||
@ -20,11 +20,11 @@
|
|||||||
<div fxFlex.gt-sm="33" fxFlex.gt-xs="33" fxFlex="50" *ngFor="let pdteamdetails of pdTeamManageData; let i = index;" >
|
<div fxFlex.gt-sm="33" fxFlex.gt-xs="33" fxFlex="50" *ngFor="let pdteamdetails of pdTeamManageData; let i = index;" >
|
||||||
<mat-card class="mb-1">
|
<mat-card class="mb-1">
|
||||||
|
|
||||||
<mat-card-title style="margin-bottom:0px!important;font-size:19px;font-weight:800;" ><span fxFlex="80">{{pdteamdetails.team_name | titlecase}}</span> <mat-icon (click)="cityinfo(pdteamdetails.pdteam_id)" color="primary" matTooltip="Click for more info" matTooltipPosition="above" fxFlex="16" style="text-align:right;">info</mat-icon></mat-card-title>
|
<mat-card-title style="margin-bottom:0px!important;font-size:19px;font-weight:800;background-color:#f44336;color:#fff" ><span fxFlex="80">{{pdteamdetails.team_name | titlecase}}</span> <mat-icon (click)="cityinfo(pdteamdetails.pdteam_id)" matTooltip="Click for more info" matTooltipPosition="above" fxFlex="16" style="text-align:right;">info</mat-icon></mat-card-title>
|
||||||
|
|
||||||
|
<mat-card-subtitle style="background-color:#f44336;color:#fff;margin-bottom:0px !important;;line-height: 2 !important;">{{pdteamdetails.short_name}}</mat-card-subtitle>
|
||||||
|
|
||||||
<mat-card-subtitle >{{pdteamdetails.short_name}}</mat-card-subtitle>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<mat-list class='bag' [dragula]='"bag"' [dragulaModel]="pdteamdetails.USERPROFILE" [attr.data-id]="pdteamdetails.pdteam_id" >
|
<mat-list class='bag' [dragula]='"bag"' [dragulaModel]="pdteamdetails.USERPROFILE" [attr.data-id]="pdteamdetails.pdteam_id" >
|
||||||
|
|
||||||
@ -53,6 +53,6 @@
|
|||||||
<span>{{pdTeamManageData}}</span>
|
<span>{{pdTeamManageData}}</span>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
@ -65,13 +65,25 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
|||||||
|
|
||||||
var ArrayData = { "records": Records }
|
var ArrayData = { "records": Records }
|
||||||
console.log(ArrayData);
|
console.log(ArrayData);
|
||||||
return this._http.post(this.apiUrl+'savePDTeam',ArrayData)
|
//return this._http.post(this.apiUrl+'savePDTeam',ArrayData)
|
||||||
|
return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('role', []))
|
catchError(this.handleError('role', []))
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editPdTeamchildDetails(Records: any,MasterName:string): Observable<any> {
|
||||||
|
|
||||||
|
var ArrayData = { "master_name":MasterName,
|
||||||
|
"records": Records }
|
||||||
|
|
||||||
|
var data = this._http.post(this.apiUrl+'saveMaster',ArrayData);
|
||||||
|
|
||||||
|
return data;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TO Inactive the Master Datas using API Call
|
* TO Inactive the Master Datas using API Call
|
||||||
@ -100,20 +112,65 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
//To delete PDTeam Mapping Details
|
//To delete PDTeam Mapping Details
|
||||||
deletePdTeamMapDetails(Records:any){
|
deletePDteamCity(id:any): Observable<any> {
|
||||||
Records.fk_updatedby = this._aws.getlocale();//to get user id for who is update the record
|
|
||||||
Records.updatedon = currentdate;//to get Current date and Time for when the Record is updated
|
|
||||||
|
|
||||||
var ArrayData = { "records": [Records]};
|
var ArrayData = { "pdteam_city_id": id};
|
||||||
|
console.log('service data',ArrayData);
|
||||||
|
|
||||||
// console.log(ArrayData);
|
return this._http.post<any>(this.apiUrl+"deletePdTeamMapping", ArrayData).pipe(
|
||||||
// console.log('PdTeamMapDetails in service');
|
|
||||||
|
|
||||||
return this._http.post(this.apiUrl+"deletePdTeamMapping",ArrayData).pipe(
|
|
||||||
catchError(this.handleError('role', []))
|
catchError(this.handleError('role', []))
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// deletePdTeamMapDetails(Records:any){
|
||||||
|
// Records.fk_updatedby = this._aws.getlocale();//to get user id for who is update the record
|
||||||
|
// Records.updatedon = currentdate;//to get Current date and Time for when the Record is updated
|
||||||
|
|
||||||
|
// var ArrayData = { "records": [Records]};
|
||||||
|
|
||||||
|
// // console.log(ArrayData);
|
||||||
|
// // console.log('PdTeamMapDetails in service');
|
||||||
|
|
||||||
|
// return this._http.post(this.apiUrl+"deletePdTeamMapping",ArrayData).pipe(
|
||||||
|
// catchError(this.handleError('role', []))
|
||||||
|
// );
|
||||||
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
getLenderData(lenderId: any): Observable<any> {
|
||||||
|
|
||||||
|
var ArrayData = {"lender_id":lenderId }
|
||||||
|
|
||||||
|
return this._http.post(this.apiUrl+"getLender",ArrayData)
|
||||||
|
.pipe(
|
||||||
|
catchError(this.handleError('role', []))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
getProductData(TeamId: any): Observable<any> {
|
||||||
|
var ArrayData = {"team_id":TeamId }
|
||||||
|
|
||||||
|
return this._http.post(this.apiUrl+"getProduct",ArrayData)
|
||||||
|
.pipe(
|
||||||
|
catchError(this.handleError('role', []))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
getCustomerSegmentData(TeamId: any): Observable<any> {
|
||||||
|
var ArrayData = {"team_id":TeamId }
|
||||||
|
|
||||||
|
return this._http.post(this.apiUrl+"getCustomerSegment",ArrayData)
|
||||||
|
.pipe(
|
||||||
|
catchError(this.handleError('role', []))
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
getExistingCityDatas(){
|
||||||
|
return this._http.get<any>(this.apiUrl+'getExistingCityDatas')
|
||||||
|
.pipe(
|
||||||
|
catchError(this.handleError('role', []))
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -143,7 +200,7 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
getAllPDTeamWithPDTeamID(Primarykey): Observable<any> {
|
getAllPDTeamWithPDTeamID(Primarykey: any): Observable<any> {
|
||||||
|
|
||||||
var pk = { "primary_key":Primarykey }
|
var pk = { "primary_key":Primarykey }
|
||||||
return this._http.post<any>(this.apiUrl+'getListOfPDTeam',pk)
|
return this._http.post<any>(this.apiUrl+'getListOfPDTeam',pk)
|
||||||
@ -153,7 +210,7 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// /** Get All PD Team Child Data using API call Based on Primary Key */
|
// /** Get All PD Team Child Data using API call Based on Primary Key */
|
||||||
getAllPdTeamMapListWithPK(Primarykey): Observable<any> {
|
getAllPdTeamMapListWithPK(Primarykey: any): Observable<any> {
|
||||||
var pk = { "primary_key":Primarykey }
|
var pk = { "primary_key":Primarykey }
|
||||||
|
|
||||||
//var Primar = Primarykey
|
//var Primar = Primarykey
|
||||||
|
|||||||
@ -353,7 +353,7 @@ this.loader = true;
|
|||||||
|
|
||||||
let users= {
|
let users= {
|
||||||
'userid':this.usersData.userid,
|
'userid':this.usersData.userid,
|
||||||
'entityid':this.usersData.fk_entity_id,
|
'entityid':this.usersData.fk_entity_type_id,
|
||||||
'profilepic':this.usersData.profilepic
|
'profilepic':this.usersData.profilepic
|
||||||
}
|
}
|
||||||
this.profileaccess = false;
|
this.profileaccess = false;
|
||||||
|
|||||||
@ -57,7 +57,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage($event); false">Add More</button>
|
<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)="addLanguage($event); false"><mat-icon>add</mat-icon></button>
|
||||||
|
<!-- <button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage($event); false">Add More</button> -->
|
||||||
<!--<a (click)="addLanguage()" style="cursor: default">Add another Answer </a>-->
|
<!--<a (click)="addLanguage()" style="cursor: default">Add another Answer </a>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -60,7 +60,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage(null, null, null, $event); false">Add More</button>
|
<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)="addLanguage(null, null, null, $event); false"><mat-icon>add</mat-icon></button>
|
||||||
|
<!-- <button mat-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage(null, null, null, $event); false">Add More</button> -->
|
||||||
<!--<a (click)="addLanguage()" style="cursor: default">Add another Answer </a>-->
|
<!--<a (click)="addLanguage()" style="cursor: default">Add another Answer </a>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
<div>
|
<div>
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card class="mat-elevation-z1">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-1">
|
||||||
<div style="margin: 6px; padding: 4px;">
|
<div class="ml-xs mr-xs" style="width: 30%;">
|
||||||
<div class="p_title" style="font-size: 16px; font-style: bold;">Questions Master</div>
|
<mat-card-title><span> Questions Master</span></mat-card-title>
|
||||||
<div class="sub_title" style="font-size: 11px;">List of Questions</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutAlign="center none">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutAlign="center none">
|
||||||
<div fxFlex="80%">
|
|
||||||
|
<div fxflexoffset="30%" fxFlex="40%">
|
||||||
<form [formGroup]="filterFormGroupCtrl">
|
<form [formGroup]="filterFormGroupCtrl">
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5px" fxLayoutAlign="start none" style="padding: 6px;">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5px" fxLayoutAlign="start none" style="padding: 6px;">
|
||||||
|
|
||||||
@ -19,12 +20,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="20%">
|
<div fxFlex="30%" style="text-align:right">
|
||||||
<button mat-stroked-button color="primary" (click)="addNewQuestion()">Add Questions</button>
|
<button mat-fab class="mr-1 mb-1" color="primary" (click)="addNewQuestion()" matTooltip="Add Questions" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--</mat-card-content>-->
|
<!--</mat-card-content>-->
|
||||||
</mat-card>
|
|
||||||
|
|
||||||
<ng-container *ngIf="productList.length > 0">
|
<ng-container *ngIf="productList.length > 0">
|
||||||
<div style="padding: 0 12px;">
|
<div style="padding: 0 12px;">
|
||||||
@ -46,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="10%">
|
<div fxFlex="10%">
|
||||||
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="editQuestion(product)"><mat-icon>edit</mat-icon></button>
|
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editQuestion(product)"><mat-icon>edit</mat-icon></button>
|
||||||
<!--<button mat-icon-button [matMenuTriggerFor]="menu">
|
<!--<button mat-icon-button [matMenuTriggerFor]="menu">
|
||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
@ -78,7 +79,7 @@
|
|||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<mat-paginator #paginator class="mat-elevation-z1" [length]="productList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
<mat-paginator #paginator class="mat-elevation-z1" [length]="productList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
||||||
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
|
[pageSizeOptions]="[5, 10, 25, 50, 100]" (page)="pageEvent = $event; pageChange($event)" showFirstLastButtons>
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
<!--<mat-card>
|
<!--<mat-card>
|
||||||
<div class="example-container mat-elevation-z8">
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|||||||
@ -15,7 +15,9 @@
|
|||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
// width: 100%;
|
// width: 100%;
|
||||||
}
|
}
|
||||||
|
.mat-card-title{
|
||||||
|
font-size:24px !important;
|
||||||
|
}
|
||||||
.mat-table {
|
.mat-table {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
|
|||||||
@ -14,6 +14,7 @@ import {
|
|||||||
MatListModule, MatMenuModule,
|
MatListModule, MatMenuModule,
|
||||||
MatCheckboxModule
|
MatCheckboxModule
|
||||||
} from '@angular/material';
|
} from '@angular/material';
|
||||||
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
|
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
@ -88,6 +89,7 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
MatToolbarModule,MatSelectModule,MatListModule, MatMenuModule,
|
MatToolbarModule,MatSelectModule,MatListModule, MatMenuModule,
|
||||||
MatSlideToggleModule,
|
MatSlideToggleModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
|
MatTooltipModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
QuestionsRouting
|
QuestionsRouting
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<div [formGroupName]="i">
|
<div [formGroupName]="i">
|
||||||
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutGap="2%" fxLayoutAlign="center center">
|
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutGap="2%" fxLayoutAlign="center center">
|
||||||
<div fxFlex="30%">
|
<div fxFlex="30%">
|
||||||
<mat-form-field>
|
<mat-form-field style="width:275px">
|
||||||
<mat-select placeholder="Category *" formControlName="fk_question_category_id">
|
<mat-select placeholder="Category *" formControlName="fk_question_category_id">
|
||||||
<mat-option *ngFor="let category of m_category" [value]="category.question_category_id">{{ category.category_name }}</mat-option>
|
<mat-option *ngFor="let category of m_category" [value]="category.question_category_id">{{ category.category_name }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
@ -27,10 +27,9 @@
|
|||||||
<mat-error *ngIf="submitted && i == dublicateRerdIndex "> This Category Already Exist.!</mat-error>
|
<mat-error *ngIf="submitted && i == dublicateRerdIndex "> This Category Already Exist.!</mat-error>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<button mat-fab class="mr-1 mb-1" color="primary" matTooltip="Add More Contact Person" matTooltipPosition="above" (click)="addLanguage(null, $event); false"><mat-icon>add</mat-icon></button>
|
|
||||||
</div>
|
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
|
<button mat-raised-button mat-icon-button color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Add More Category" matTooltipPosition="above" (click)="addLanguage(null, $event); false"><mat-icon>add</mat-icon></button>
|
||||||
<!--<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><mat-icon>settings_backup_restore</mat-icon></button>-->
|
<!--<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><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>
|
<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>
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
|
||||||
@ -1,30 +1,38 @@
|
|||||||
<form [formGroup]="_editTempLenderFrom" (submit)="onSubmit()">
|
<form [formGroup]="_editTempLenderFrom" (submit)="onSubmit()">
|
||||||
<div formArrayName="temp_lender" class="example-full-width">
|
<div formArrayName="temp_lender" class="example-full-width">
|
||||||
|
|
||||||
<mat-card *ngFor="let answ of _editTempLenderFrom.controls.temp_lender['controls']; let i=index">
|
<mat-card *ngFor="let answ of _editTempLenderFrom.controls.temp_lender['controls']; let i=index">
|
||||||
<div [formGroupName]="i">
|
<div [formGroupName]="i">
|
||||||
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutGap="2%" fxLayoutAlign="center center">
|
<div class="p-1" fxLayout="row wrap" fxLayout.xs="column" fxLayoutGap="2%" fxLayoutAlign="center center">
|
||||||
<mat-form-field fxFlex="20%">
|
<div fxFlex="22%">
|
||||||
|
<mat-form-field >
|
||||||
<mat-select placeholder="Lender *" formControlName="fk_lender_id">
|
<mat-select placeholder="Lender *" formControlName="fk_lender_id">
|
||||||
<mat-option *ngFor="let lend of m_lender" [value]="lend.entity_id">{{ lend.full_name }}</mat-option>
|
<mat-option *ngFor="let lend of m_lender" [value]="lend.entity_id">{{ lend.full_name }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && answ['controls'].fk_lender_id.hasError('required')" class="mat-text-warn">Lender Type Required.!</mat-error>
|
<mat-error *ngIf="submitted && answ['controls'].fk_lender_id.hasError('required')" class="mat-text-warn">Lender Type Required.!</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
<mat-form-field fxFlex="20%">
|
<div fxFlex="22%">
|
||||||
|
<mat-form-field >
|
||||||
<mat-select placeholder="Product *" formControlName="fk_product_id">
|
<mat-select placeholder="Product *" formControlName="fk_product_id">
|
||||||
<mat-option *ngFor="let prcd of m_product" [value]="prcd.product_id">{{ prcd.product_name }}</mat-option>
|
<mat-option *ngFor="let prcd of m_product" [value]="prcd.product_id">{{ prcd.product_name }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && answ['controls'].fk_product_id.hasError('required')" class="mat-text-warn">Product Required.!</mat-error>
|
<mat-error *ngIf="submitted && answ['controls'].fk_product_id.hasError('required')" class="mat-text-warn">Product Required.!</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<mat-form-field fxFlex="20%">
|
|
||||||
|
<div fxFlex="22%">
|
||||||
|
<mat-form-field >
|
||||||
<mat-select placeholder="Customer Segment *" formControlName="fk_customer_segment">
|
<mat-select placeholder="Customer Segment *" formControlName="fk_customer_segment">
|
||||||
<mat-option *ngFor="let cusSeg of m_customerSegment" [value]="cusSeg.customer_segment_id">{{ cusSeg.customer_segment }}</mat-option>
|
<mat-option *ngFor="let cusSeg of m_customerSegment" [value]="cusSeg.customer_segment_id">{{ cusSeg.customer_segment }}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && answ['controls'].fk_customer_segment.hasError('required')" class="mat-text-warn">Customer Segment Required.!</mat-error>
|
<mat-error *ngIf="submitted && answ['controls'].fk_customer_segment.hasError('required')" class="mat-text-warn">Customer Segment Required.!</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div fxFlex="20%">
|
|
||||||
|
<div fxFlex="22%">
|
||||||
<mat-checkbox *ngIf="answ.get('template_lender_map_id').value != null" formControlName="isactive" [ngModel]="answ.get('isactive').value == 1 ? true : answ.get('isactive').value == 0 ? false : null"
|
<mat-checkbox *ngIf="answ.get('template_lender_map_id').value != null" formControlName="isactive" [ngModel]="answ.get('isactive').value == 1 ? true : answ.get('isactive').value == 0 ? false : null"
|
||||||
(ngModelChange)="answ.get('isactive').value = $event ? 1 : 0"></mat-checkbox>
|
(ngModelChange)="answ.get('isactive').value = $event ? 1 : 0"></mat-checkbox>
|
||||||
|
|
||||||
@ -36,9 +44,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<button mat-fab class="mr-1 mb-1" color="primary" matTooltip="Add More Contact Person" matTooltipPosition="above" (click)="addLanguage(null, $event); false"><mat-icon>add</mat-icon></button>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" color="primary" matTooltip="Add More Lender Details" matTooltipPosition="above" (click)="addLanguage(null, $event); false"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><mat-icon>settings_backup_restore</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset"><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>
|
<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>
|
||||||
|
|||||||
@ -1,27 +1,28 @@
|
|||||||
<form [formGroup]="_editquestionAnswerForm" (submit)="onSubmit()">
|
<form [formGroup]="_editquestionAnswerForm" (submit)="onSubmit()">
|
||||||
<div formArrayName="temp_questions" class="example-full-width">
|
<div formArrayName="temp_questions" class="example-full-width">
|
||||||
<table>
|
<table style="width:100%">
|
||||||
<tr *ngFor="let ques of _editquestionAnswerForm.controls.temp_questions['controls']; let i=index ; let last = last;">
|
<tr *ngFor="let ques of _editquestionAnswerForm.controls.temp_questions['controls']; let i=index ; let last = last;">
|
||||||
<td>
|
<td>
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<div [formGroupName]="i">
|
<div [formGroupName]="i">
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="5%" fxLayoutAlign="start center">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="5%" fxLayoutAlign="start center">
|
||||||
<div fxFlex="1 1 auto" class="ml-xs" fxFlex="60%">
|
<div fxFlex="1 1 auto" class="ml-xs" fxFlex="70%">
|
||||||
<span>{{i+1}}</span> ) <label>{{ques.get('question').value}}</label>
|
<span>{{i+1}}</span> ) <label>{{ques.get('question').value}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="1 1 auto" class="ml-xs" fxFlex="20%">
|
<div fxFlex="1 1 auto" class="ml-xs" fxFlex="20%">
|
||||||
<mat-form-field style="width: 45px; text-align: center" appearance="outline">
|
<mat-form-field style="width: 35%; text-align: center" appearance="outline">
|
||||||
<input matInput formControlName="question_weightage">
|
<input matInput formControlName="question_weightage">
|
||||||
</mat-form-field> <span> % </span>
|
</mat-form-field> <span> % </span>
|
||||||
<mat-error *ngIf="submitted && ques['controls'].question_weightage.hasError('required')" class="mat-text-warn">Ques. WT is Required.!</mat-error>
|
<mat-error *ngIf="submitted && ques['controls'].question_weightage.hasError('required')" class="mat-text-warn">Ques. WT is Required.!</mat-error>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="20%">
|
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="10%">
|
||||||
<button (click)="removeLanguage(i)" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above"
|
<button (click)="removeLanguage(i)" mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Delete" matTooltipPosition="above"
|
||||||
type="button"><mat-icon>delete</mat-icon></button>
|
type="button"><mat-icon>delete</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div formArrayName="answers" class="example-full-width">
|
<div formArrayName="answers" class="example-full-width">
|
||||||
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5%" fxLayoutAlign="center">
|
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5%" fxLayoutAlign="center">
|
||||||
|
|
||||||
<div fxFlex.gt-xs="50%" [fxFlex.gt-md]="regularDistribution" *ngFor="let answ of ques['controls'].answers['controls']; let i_ans = index ; let Ans_last = last;">
|
<div fxFlex.gt-xs="50%" [fxFlex.gt-md]="regularDistribution" *ngFor="let answ of ques['controls'].answers['controls']; let i_ans = index ; let Ans_last = last;">
|
||||||
<div [formGroupName]="i_ans">
|
<div [formGroupName]="i_ans">
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%" fxLayoutAlign="start center">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="0.5%" fxLayoutAlign="start center">
|
||||||
@ -55,10 +56,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutAlign="start">
|
|
||||||
<button mat-fab class="mr-1 mb-1" color="primary" matTooltip="Add More Contact Person" matTooltipPosition="above" (click)="openDialog(); false"><mat-icon>add</mat-icon></button>
|
|
||||||
</div>
|
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Add More Question and Answer" matTooltipPosition="above" color="primary" (click)="openDialog(); 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>
|
<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>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
(click)="backToList()"><mat-icon>close</mat-icon></button>
|
(click)="backToList()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<mat-card style="padding: 6px;">
|
<mat-card style="padding: 6px;">
|
||||||
<h6>Template Name</h6>
|
<!--<h6>Template Name</h6>
|
||||||
<hr>
|
<hr>
|
||||||
<!---->
|
-->
|
||||||
<div *ngIf="templateNameRecord">
|
<div *ngIf="templateNameRecord">
|
||||||
<form [formGroup]="_editTempNameFrom" (submit)="onSubmit()">
|
<form [formGroup]="_editTempNameFrom" (submit)="onSubmit()">
|
||||||
<div fxLayout="row" fxLayoutWrap fxLayoutGap="0.5%" fxLayoutAlign="start center">
|
<div fxLayout="row" fxLayoutWrap fxLayoutGap="0.5%" fxLayoutAlign="start center">
|
||||||
|
|||||||
@ -1,13 +1,16 @@
|
|||||||
|
|
||||||
<div style="width: 320px;">
|
<div style="width: 320px;">
|
||||||
<div fxLayout="row" fxLayoutAlign="end start">
|
<div fxLayout="row">
|
||||||
<button mat-raised-button mat-icon-button color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above"
|
<div style="width:100%"> <h5>Add New Template</h5>
|
||||||
|
</div>
|
||||||
|
<div > <button mat-raised-button mat-icon-button color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above"
|
||||||
(click)="onClose()"><mat-icon>close</mat-icon></button>
|
(click)="onClose()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<mat-card style="padding: 4px;">
|
|
||||||
<h5>Add New Template</h5>
|
</div>
|
||||||
<hr>
|
|
||||||
<form [formGroup]="_addTemplateFrom" (submit)="onSubmit()">
|
<form [formGroup]="_addTemplateFrom" (submit)="onSubmit()">
|
||||||
<div fxLayout="row" fxLayoutAlign="center">
|
<div fxLayout="row" >
|
||||||
<mat-form-field class="ml-xs example-full-width">
|
<mat-form-field class="ml-xs example-full-width">
|
||||||
<textarea matInput placeholder="Template Name" formControlName="template_name"></textarea>
|
<textarea matInput placeholder="Template Name" formControlName="template_name"></textarea>
|
||||||
<mat-error *ngIf="submitted && f.template_name.hasError('required')" class="mat-text-warn">You must Include Template Name.</mat-error>
|
<mat-error *ngIf="submitted && f.template_name.hasError('required')" class="mat-text-warn">You must Include Template Name.</mat-error>
|
||||||
@ -18,5 +21,6 @@
|
|||||||
<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>
|
<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>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,15 +1,13 @@
|
|||||||
<div *ngIf="listView">
|
<div *ngIf="listView">
|
||||||
<!--========================== Template List View-->
|
<!--========================== Template List View-->
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card class="mat-elevation-z1">
|
|
||||||
<div style="margin: 6px; padding: 4px;">
|
<div class="p-1" fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutAlign="center none">
|
||||||
<div class="p_title" style="font-size: 16px; font-style: bold;">Template Master</div>
|
|
||||||
<div class="sub_title" style="font-size: 11px;">List of Templates</div>
|
|
||||||
</div>
|
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutAlign="center none">
|
|
||||||
<div fxFlex="80%">
|
<div fxFlex="80%">
|
||||||
|
<mat-card-title><span style="font-size:24px"> Template Master</span></mat-card-title>
|
||||||
|
|
||||||
|
|
||||||
<!--<form [formGroup]="filterFormGroupCtrl">
|
<!--<form [formGroup]="filterFormGroupCtrl">
|
||||||
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5px" fxLayoutAlign="start none" style="padding: 6px;">
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5px" fxLayoutAlign="start none" style="padding: 6px;">
|
||||||
<mat-select placeholder="Category" formControlName="category">
|
<mat-select placeholder="Category" formControlName="category">
|
||||||
@ -20,12 +18,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>-->
|
</form>-->
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="20%">
|
<div fxFlex="20%" style="text-align:right;">
|
||||||
<button mat-stroked-button color="primary" (click)="addNewTemplate()">Add New Template</button>
|
<button mat-fab color="primary" (click)="addNewTemplate()" matTooltip="Add Template" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
<!--<button mat-stroked-button color="primary" (click)="addNewQuestion()">Add Questions</button>-->
|
<!--<button mat-stroked-button color="primary" (click)="addNewQuestion()">Add Questions</button>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
|
||||||
<ng-container *ngIf="templateList.length > 0">
|
<ng-container *ngIf="templateList.length > 0">
|
||||||
<div style="padding: 0 12px;">
|
<div style="padding: 0 12px;">
|
||||||
<mat-card class="product-card" *ngFor="let template of dataSource.connect() | async">
|
<mat-card class="product-card" *ngFor="let template of dataSource.connect() | async">
|
||||||
@ -45,7 +42,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="10%">
|
<div fxFlex="10%">
|
||||||
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="goToEdit(template.template_id)"><mat-icon>edit</mat-icon></button>
|
<button mat-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="goToEdit(template.template_id)"><mat-icon>edit</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
@ -56,7 +53,7 @@
|
|||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<mat-paginator #paginator class="mat-elevation-z1" [length]="templateList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
<mat-paginator #paginator class="mat-elevation-z1" [length]="templateList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
|
||||||
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
|
[pageSizeOptions]="[5, 10, 25, 50, 100]" (page)="pageEvent = $event; pageChange($event)" showFirstLastButtons>
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -15,6 +15,7 @@ import {
|
|||||||
MatCheckboxModule, MatStepperModule, MatTabsModule,
|
MatCheckboxModule, MatStepperModule, MatTabsModule,
|
||||||
MatExpansionModule
|
MatExpansionModule
|
||||||
} from '@angular/material';
|
} from '@angular/material';
|
||||||
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
|
import {MatSlideToggleModule} from '@angular/material/slide-toggle';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { RouterModule } from '@angular/router';
|
import { RouterModule } from '@angular/router';
|
||||||
@ -100,6 +101,7 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
MatTabsModule,
|
MatTabsModule,
|
||||||
MatSlideToggleModule,
|
MatSlideToggleModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
|
MatTooltipModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
TemplatesRouting
|
TemplatesRouting
|
||||||
|
|||||||
@ -121,11 +121,11 @@
|
|||||||
transform: scale3D(0, 0, 1);
|
transform: scale3D(0, 0, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mat-cell{
|
.mat-cell,.mat-form-field{
|
||||||
font-size:1.2em !important;
|
font-size:1.2rem !important;
|
||||||
}
|
}
|
||||||
.mat-header-cell{
|
.mat-header-cell{
|
||||||
font-size:1.2em !important;
|
font-size:1.2rem !important;
|
||||||
font-weight:800 !important;
|
font-weight:800 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user