Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
c20f12430c
@ -6,7 +6,7 @@
|
|||||||
<div class="branding text-center">
|
<div class="branding text-center">
|
||||||
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
|
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
|
||||||
</h2> -->
|
</h2> -->
|
||||||
<h2><img [src]="'https://download.zoho.com/webdownload?x-service=CLIQ&event-id=0e17e076835b478c3ae33ddb3d3408e239e7c1f79dd4c2a1b626222e2cc1f221a8d3a027733fc52e82bc85cc5b0111d594abef51a345b4a64531af51c8e8c5bd'" style="height: 50px;;"> <span> {{userDep}} </span>
|
<h2><img [src]="'http://ssa.sineedge.com/sparqapi/logo/sine_edge_icon.png'" style="height: 50px;;"> <span> {{userDep}} </span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-nav">
|
<div class="main-nav">
|
||||||
|
|||||||
@ -105,18 +105,23 @@
|
|||||||
<mat-form-field style="width: 100%;">
|
<mat-form-field style="width: 100%;">
|
||||||
<input matInput placeholder="Pincode" formControlName="pincode" required>
|
<input matInput placeholder="Pincode" formControlName="pincode" required>
|
||||||
<mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode is required.</mat-error>
|
<mat-error *ngIf="pdMain.pincode.hasError('required')">Pincode is required.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-slide-toggle formControlName="allocation_type"
|
<div class="ml-xs mr-xs" style="width: 100%;" fxLayout="row" >
|
||||||
class="example-margin" id="type"
|
<h4 mat-dialog-title style="width: 14%;margin-top: 0%;">Allocation</h4>
|
||||||
[(ngModel)]="allocationTypeCheck" (change)="changeAllocationType(allocationTypeCheck)"
|
<div style="width: 20%;"> <mat-slide-toggle formControlName="allocation_type"
|
||||||
checked="allocationTypeModel==1 ? false:allocationTypeModel==2 ? false:allocationTypeModel==3 ? true"> {{allocationLabel}}
|
class="example-margin" id="type"
|
||||||
</mat-slide-toggle>
|
[(ngModel)]="allocationTypeCheck" (change)="changeAllocationType(allocationTypeCheck)"
|
||||||
<mat-slide-toggle *ngIf="allocationTypeModel==1 || allocationTypeModel==2" formControlName="sub_allocation_type"
|
checked="allocationTypeModel==1 ? false:allocationTypeModel==2 ? false:allocationTypeModel==3 ? true"> {{allocationLabel}}
|
||||||
class="example-margin" id="subType"
|
</mat-slide-toggle> </div>
|
||||||
[(ngModel)]="subAllocationTypeCheck" (change)="changeSubAllocationType(subAllocationTypeCheck)"
|
<div style="width: 20%;">
|
||||||
checked="allocationTypeModel==1 ? false:allocationTypeModel==2 ? true"> {{subAllocationLabel}}
|
<mat-slide-toggle *ngIf="allocationTypeModel==1 || allocationTypeModel==2" formControlName="sub_allocation_type"
|
||||||
</mat-slide-toggle>
|
class="example-margin" id="subType"
|
||||||
|
[(ngModel)]="subAllocationTypeCheck" (change)="changeSubAllocationType(subAllocationTypeCheck)"
|
||||||
|
checked="allocationTypeModel==1 ? false:allocationTypeModel==2 ? true"> {{subAllocationLabel}}
|
||||||
|
</mat-slide-toggle>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
@ -134,7 +139,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput placeholder="Email" formControlName="email" type="email" required>
|
<input matInput placeholder="Email" formControlName="email" type="email" required>
|
||||||
<mat-error *ngIf="pdMain.email.hasError('required')">Email is required.</mat-error>
|
<mat-error *ngIf="pdMain.email.hasError('required')">Email number is required.</mat-error>
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
@ -148,6 +153,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutWrap="wrap" formArrayName="items" *ngFor="let coDetails of pdCoApplicant.controls; let i = index;">
|
<div fxLayout="row" fxLayoutWrap="wrap" formArrayName="items" *ngFor="let coDetails of pdCoApplicant.controls; let i = index;">
|
||||||
|
|
||||||
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
|
|
||||||
<mat-card class="p-2">
|
<mat-card class="p-2">
|
||||||
@ -170,11 +176,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutWrap="wrap">
|
<div fxLayout="row" fxLayoutWrap="wrap">
|
||||||
|
|
||||||
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
<mat-card class="p-2" style="opacity: 0.5;">
|
<mat-card class="p-2" style="opacity: 0.5;">
|
||||||
|
<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 _ngcontent-c39="" class="mr-1 mb-1 mat-button" type="button"><span style="opacity: 0.5;" (click)="addCoApplicant()" class="mat-button-wrapper">Add More Co-Applicant</span><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" (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>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>
|
||||||
@ -185,10 +193,11 @@
|
|||||||
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
<div class="column" fxFlex.xs="100" fxFlex.sm="100" fxFlex.md="100" fxFlex.lg="100" fxFlex.xl="100">
|
||||||
|
|
||||||
<mat-card class="p-2" formArrayName="documents">
|
<mat-card class="p-2" formArrayName="documents">
|
||||||
|
<h5>Document</h5>
|
||||||
<mat-list>
|
<mat-list>
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<!-- <button mat-raised-button mat-button-sm color="primary" type="button">Add Document</button> -->
|
<!-- <button mat-raised-button mat-button-sm color="primary" type="button">Add Document</button> -->
|
||||||
<button _ngcontent-c39="" class="mr-1 mb-1 mat-button" type="button"><span style="opacity: 0.5;" (click)="addMoreDocs()" class="mat-button-wrapper">Add Document</span><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;" (click)="addMoreDocs()" class="mat-button-wrapper"><mat-icon>add</mat-icon><div class="mat-button-ripple mat-ripple" matripple=""></div><div class="mat-button-focus-overlay"></div></button>
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
@ -204,9 +213,7 @@
|
|||||||
<input type="file" title="Browse Document" (change)="fileSelectionEvent($event,d)" formControlName="documentFile">
|
<input type="file" title="Browse Document" (change)="fileSelectionEvent($event,d)" formControlName="documentFile">
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="removeItem(d)"
|
<button mat-button color="accent" (click)="removeItem(d)" type="button">Remove</button>
|
||||||
(click)="loadPdListCompoent()"><mat-icon>delete</mat-icon></button>
|
|
||||||
<!-- <button mat-button color="accent" (click)="removeItem(d)" type="button">Remove</button> -->
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
@ -227,4 +234,4 @@
|
|||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<notifier-container></notifier-container>
|
|
||||||
@ -12,7 +12,7 @@ import { AwsService } from '../../AwsService/aws.service';
|
|||||||
})
|
})
|
||||||
export class AddPdComponent implements OnInit {
|
export class AddPdComponent implements OnInit {
|
||||||
@Output() loadParent = new EventEmitter<string>();
|
@Output() loadParent = new EventEmitter<string>();
|
||||||
public notifier: NotifierService;
|
private notifier: NotifierService;
|
||||||
public _PDtriggerForm: FormGroup;
|
public _PDtriggerForm: FormGroup;
|
||||||
items: FormArray;
|
items: FormArray;
|
||||||
productList:any;
|
productList:any;
|
||||||
@ -31,8 +31,8 @@ export class AddPdComponent implements OnInit {
|
|||||||
subAllocationTypeCheck: boolean;
|
subAllocationTypeCheck: boolean;
|
||||||
allocationLabel: string;
|
allocationLabel: string;
|
||||||
subAllocationLabel: string;
|
subAllocationLabel: string;
|
||||||
constructor(private _fb: FormBuilder,
|
constructor(notifier: NotifierService,private _fb: FormBuilder,
|
||||||
private _pd: PdTrigerService, private _aws:AwsService, notifier: NotifierService) {
|
private _pd: PdTrigerService, private _aws:AwsService) {
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
}
|
}
|
||||||
public totalfiles: Array<File> =[];
|
public totalfiles: Array<File> =[];
|
||||||
@ -290,7 +290,7 @@ export class AddPdComponent implements OnInit {
|
|||||||
|
|
||||||
this._pd.addPdDetails(pd_form).subscribe(result => {
|
this._pd.addPdDetails(pd_form).subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'PD Saved Successfully.!');
|
this.notifier.notify('success', 'PD Saved.');
|
||||||
this.loadPdListCompoent();
|
this.loadPdListCompoent();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -70,5 +70,6 @@
|
|||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<notifier-container></notifier-container>
|
<!-- <notifier-container></notifier-container> -->
|
||||||
|
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ export class EditPdApplicantComponent implements OnInit {
|
|||||||
|
|
||||||
this._pd.updatePdApplicant(pd_applicant_details).subscribe(result => {
|
this._pd.updatePdApplicant(pd_applicant_details).subscribe(result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'PD Saved Successfully.!');
|
this.notifier.notify('success', 'Applicants updated..');
|
||||||
this.loadPdMasterCompoent();
|
this.loadPdMasterCompoent();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -115,4 +115,3 @@
|
|||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<notifier-container></notifier-container>
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
@Input() masterChild: any;
|
@Input() masterChild: any;
|
||||||
@Output() loadPdView = new EventEmitter<string>();
|
@Output() loadPdView = new EventEmitter<string>();
|
||||||
public _EditPDtriggerForm:FormGroup;
|
public _EditPDtriggerForm:FormGroup;
|
||||||
private notifier: NotifierService;
|
public notifier: NotifierService;
|
||||||
constructor(private _fb: FormBuilder,
|
constructor(private _fb: FormBuilder,
|
||||||
private _pd: PdTrigerService, notifier: NotifierService,) {
|
private _pd: PdTrigerService, notifier: NotifierService,) {
|
||||||
this.notifier=notifier
|
this.notifier=notifier
|
||||||
@ -121,7 +121,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
loadPdMasterCompoent() {
|
loadPdMasterCompoent() {
|
||||||
this.notifier.notify('success', 'Your Changes Updated.!');
|
// this.notifier.notify('success', 'Your Changes Updated.!');
|
||||||
|
|
||||||
this.loadPdView.emit('1')
|
this.loadPdView.emit('1')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,19 +1,21 @@
|
|||||||
<div align="right" *ngIf="showParentComponent">
|
<div align="right" *ngIf="showParentComponent">
|
||||||
<button mat-button (click)="addPdDetails()" color="primary">ADD PD</button>
|
<button mat-fab class="mr-1 mb-1" color="primary" (click)="addPdDetails()"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<mat-card *ngIf="showParentComponent">
|
<mat-card *ngIf="showParentComponent">
|
||||||
<mat-tab-group>
|
<mat-tab-group>
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>All PD Details</ng-template>
|
<ng-template mat-tab-label>All</ng-template>
|
||||||
|
<mat-card-content>
|
||||||
<div class="card-comment-widget">
|
<div class="card-comment-widget">
|
||||||
<mat-list *ngIf="pdList.length > 0">
|
<mat-list *ngIf="pdList.length > 0">
|
||||||
<mat-list-item *ngFor="let details of dataSource.connect() | async">
|
<mat-list-item *ngFor="let details of dataSource.connect() | async">
|
||||||
<img mat-list-avatar src="assets/images/face3.jpg" alt="">
|
<img mat-list-avatar src="assets/images/lime.jpg" alt="">
|
||||||
<!-- {{details.applicat_details[0].applicant_name}} -->
|
<!-- {{details.applicat_details[0].applicant_name}} -->
|
||||||
<p mat-line>{{details.applicat_details[0].applicant_name}} </p>
|
<p mat-line>{{details.applicat_details[0].applicant_name}} </p>
|
||||||
|
|
||||||
<p mat-line>{{details.lender_full_name}} {{details.lender_applicant_id}} {{details.pd_date_of_initiation}}</p>
|
<p 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>
|
||||||
<p mat-line>{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}} <span class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{details.loan_amount}}</span> <span class="hover-icon"><i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}/{{details.state_name}}-{{details.pincode}}</span></p>
|
<p mat-line><a style="padding-right: 7%;">{{details.product_abbr}}/{{details.subproduct_abbr}}/{{details.customer_segment_abbr}}</a><a style="padding-right: 7%;"><span 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>
|
||||||
<!-- <span class="text-mat mat-text-muted">Chennai</span> -->
|
<!-- <span class="text-mat mat-text-muted">Chennai</span> -->
|
||||||
|
|
||||||
<!-- <div class="comment-time">
|
<!-- <div class="comment-time">
|
||||||
@ -28,26 +30,26 @@
|
|||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<mat-divider></mat-divider>
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
<hr>
|
||||||
</mat-list>
|
</mat-list>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</mat-card-content>
|
||||||
|
|
||||||
<mat-card-actions *ngIf="!recordStatus">
|
<mat-card-actions *ngIf="!recordStatus">
|
||||||
<mat-paginator #paginator [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, 100]" (page)="pageEvent = $event; pageChange($event)">
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</mat-tab>
|
</mat-tab>
|
||||||
<!-- <mat-tab>
|
<!-- <mat-tab>
|
||||||
<ng-template mat-tab-label>Confirmed PD Details</ng-template>
|
<ng-template mat-tab-label>Confirmed PD Details</ng-template>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<mat-grid-list cols="2" [rowHeight]="ratio" gutterSize="4px">
|
<mat-grid-list cols="2" [rowHeight]="ratio" gutterSize="4px">
|
||||||
@ -61,11 +63,11 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-tab>
|
</mat-tab>-->
|
||||||
<mat-tab>
|
<mat-tab>
|
||||||
<ng-template mat-tab-label>In Progress PD Details</ng-template>
|
<ng-template mat-tab-label>In Progress </ng-template>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<mat-grid-list cols="2" rowHeight="fit" [gutterSize]="ratioGutter"
|
<!--<mat-grid-list cols="2" rowHeight="fit" [gutterSize]="ratioGutter"
|
||||||
[style.height]="fitListHeight">
|
[style.height]="fitListHeight">
|
||||||
<mat-grid-tile *ngFor="let tile of tiles" [style.background]="'#F1EBBA'">
|
<mat-grid-tile *ngFor="let tile of tiles" [style.background]="'#F1EBBA'">
|
||||||
{{tile.text}}
|
{{tile.text}}
|
||||||
@ -78,9 +80,47 @@
|
|||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput placeholder="Change gutter" type="number" [(ngModel)]="ratioGutter">
|
<input matInput placeholder="Change gutter" type="number" [(ngModel)]="ratioGutter">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>-->
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-tab> -->
|
</mat-tab>
|
||||||
|
<mat-tab>
|
||||||
|
<ng-template mat-tab-label>Scheduled </ng-template>
|
||||||
|
<mat-card-content>
|
||||||
|
<!--<mat-grid-list cols="2" rowHeight="fit" [gutterSize]="ratioGutter"
|
||||||
|
[style.height]="fitListHeight">
|
||||||
|
<mat-grid-tile *ngFor="let tile of tiles" [style.background]="'#F1EBBA'">
|
||||||
|
{{tile.text}}
|
||||||
|
</mat-grid-tile>
|
||||||
|
</mat-grid-list>
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="mt-2">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput placeholder="Change list height" [(ngModel)]="fitListHeight">
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput placeholder="Change gutter" type="number" [(ngModel)]="ratioGutter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>-->
|
||||||
|
</mat-card-content>
|
||||||
|
</mat-tab>
|
||||||
|
<mat-tab>
|
||||||
|
<ng-template mat-tab-label>Completed </ng-template>
|
||||||
|
<mat-card-content>
|
||||||
|
<!--<mat-grid-list cols="2" rowHeight="fit" [gutterSize]="ratioGutter"
|
||||||
|
[style.height]="fitListHeight">
|
||||||
|
<mat-grid-tile *ngFor="let tile of tiles" [style.background]="'#F1EBBA'">
|
||||||
|
{{tile.text}}
|
||||||
|
</mat-grid-tile>
|
||||||
|
</mat-grid-list>
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="mt-2">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput placeholder="Change list height" [(ngModel)]="fitListHeight">
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput placeholder="Change gutter" type="number" [(ngModel)]="ratioGutter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>-->
|
||||||
|
</mat-card-content>
|
||||||
|
</mat-tab>
|
||||||
|
|
||||||
</mat-tab-group>
|
</mat-tab-group>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
@ -88,3 +128,4 @@
|
|||||||
<app-edit-pd *ngIf="showEditComponent" [childData]="parentEditData" (loadParent)="updateParentComponent($event)"></app-edit-pd>
|
<app-edit-pd *ngIf="showEditComponent" [childData]="parentEditData" (loadParent)="updateParentComponent($event)"></app-edit-pd>
|
||||||
<app-add-pd *ngIf="showAddComponent" (loadParent)="updateParentComponent($event)"></app-add-pd>
|
<app-add-pd *ngIf="showAddComponent" (loadParent)="updateParentComponent($event)"></app-add-pd>
|
||||||
<app-view-pd *ngIf="showViewComponent" [childData]="parentViewData" (loadParent)="updateParentComponent($event)"></app-view-pd>
|
<app-view-pd *ngIf="showViewComponent" [childData]="parentViewData" (loadParent)="updateParentComponent($event)"></app-view-pd>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { Component, ViewChild, OnInit, ViewEncapsulation, EventEmitter, Output } from '@angular/core';
|
import { Component, ViewChild, OnInit, ViewEncapsulation, EventEmitter, Output } from '@angular/core';
|
||||||
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
|
|
||||||
import { PdTrigerService } from '../pd-service/pd-triger.service';
|
import { PdTrigerService } from '../pd-service/pd-triger.service';
|
||||||
|
import { MatPaginator, MatSort, MatTableDataSource, PageEvent } from '@angular/material';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-list-pd',
|
selector: 'app-list-pd',
|
||||||
@ -109,9 +109,6 @@ export class ListPdComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}, error => this.errorMessage = <any> error);
|
}, error => this.errorMessage = <any> error);
|
||||||
}
|
}
|
||||||
ngAfterViewInit() {
|
|
||||||
this.dataSource.paginator = this.paginator;
|
|
||||||
}
|
|
||||||
addPdDetails(){
|
addPdDetails(){
|
||||||
this.showParentComponent=false
|
this.showParentComponent=false
|
||||||
this.showEditComponent=false
|
this.showEditComponent=false
|
||||||
@ -152,7 +149,6 @@ export class ListPdComponent implements OnInit {
|
|||||||
this.pdListData = data.records;
|
this.pdListData = data.records;
|
||||||
this.dataLength = data.records.length;
|
this.dataLength = data.records.length;
|
||||||
this.dataSource.data = this.pdListData;
|
this.dataSource.data = this.pdListData;
|
||||||
this.recordStatus=false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@ -1,27 +1,43 @@
|
|||||||
<mat-card>
|
<div style="max-height: 480px;">
|
||||||
|
<mat-card style="width: 580px; padding: 2px;">
|
||||||
<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>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
|
||||||
<form [formGroup]="_pdAllocationForm" (submit)="onSubmit()">
|
<!-- <form [formGroup]="_pdAllocationForm" (submit)="onSubmit()"> -->
|
||||||
<!--<div class="form-group">-->
|
<mat-list *ngIf="pdOfficerList.length > 0">
|
||||||
<div fxLayout="row" fxLayoutAlign="start none">
|
<mat-list-item *ngFor="let officer of pdOfficerList">
|
||||||
<mat-form-field class="ml-xs example-full-width">
|
<p><mat-radio-button (change)="selectPdOfficer(officer)"></mat-radio-button>
|
||||||
<mat-select placeholder="Select Name" formControlName="allocation_id">
|
{{officer.first_name}}
|
||||||
<mat-option *ngFor="let ct of pdOfficerList" [value]="ct">{{ ct.categroy_name }}</mat-option>
|
</p>
|
||||||
</mat-select>
|
<p style="padding-left: 8%;">
|
||||||
<mat-error *ngIf="readForm.allocation_id.hasError('required')" class="mat-text-warn">Select name.</mat-error>
|
<span matBadge="{{officer.allocated}}" matBadgeOverlap="false" matBadgeColor="accent">Allocated</span>
|
||||||
</mat-form-field>
|
</p>
|
||||||
</div>
|
<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>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-list>
|
||||||
|
<mat-list *ngIf="pdOfficerList.length == 0">
|
||||||
|
<mat-list-item>
|
||||||
|
<p>PD officer not available..</p>
|
||||||
|
</mat-list-item>
|
||||||
|
</mat-list>
|
||||||
<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" type="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>
|
(click)="closeAllocationComponent()"><mat-icon>close</mat-icon></button>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="submit"><mat-icon>save</mat-icon></button>
|
<button mat-raised-button mat-icon-button (click)="updatePdOfficer(selectedItem)" class="mr-1 mb-1 hover-icon" type="button"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<!--</div>-->
|
<!-- </form> -->
|
||||||
</form>
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
</div>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<notifier-container></notifier-container>
|
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
.example-full-width{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
@ -1,25 +0,0 @@
|
|||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
|
|
||||||
import { PdAllocationComponent } from './pd-allocation.component';
|
|
||||||
|
|
||||||
describe('PdAllocationComponent', () => {
|
|
||||||
let component: PdAllocationComponent;
|
|
||||||
let fixture: ComponentFixture<PdAllocationComponent>;
|
|
||||||
|
|
||||||
beforeEach(async(() => {
|
|
||||||
TestBed.configureTestingModule({
|
|
||||||
declarations: [ PdAllocationComponent ]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
}));
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(PdAllocationComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -15,54 +15,61 @@ export class PdAllocationComponent implements OnInit {
|
|||||||
public pdOfficerList: any = [];
|
public pdOfficerList: any = [];
|
||||||
errorMessage: any;
|
errorMessage: any;
|
||||||
notifier : NotifierService;
|
notifier : NotifierService;
|
||||||
|
selectedItem:any;
|
||||||
|
isDisabled: boolean;
|
||||||
constructor( notifier: NotifierService,
|
constructor( notifier: NotifierService,
|
||||||
private _fb: FormBuilder,
|
private _fb: FormBuilder,
|
||||||
private dialogRef: MatDialogRef<PdAllocationComponent>,
|
private dialogRef: MatDialogRef<PdAllocationComponent>,
|
||||||
private _pd: PdTrigerService,
|
private _pd: PdTrigerService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) {
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
this.notifier=notifier;
|
this.notifier=notifier;
|
||||||
console.log(this.data)
|
|
||||||
this.getPDOfficerList();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this._pdAllocationForm = this._fb.group({
|
this.isDisabled=true;
|
||||||
pd_primary_id: [null],
|
this.getPDOfficerList(this.data.pd_id);
|
||||||
allocation_id: [null, Validators.compose([Validators.required])],
|
|
||||||
});
|
// this._pdAllocationForm = this._fb.group({
|
||||||
|
// pd_primary_id: [null],
|
||||||
|
// allocation_id: [null],
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
// convenience getter for easy access to form fields
|
// convenience getter for easy access to form fields
|
||||||
get readForm() { return this._pdAllocationForm.controls; }
|
// get readForm() { return this._pdAllocationForm.controls; }
|
||||||
|
|
||||||
// pd officer list
|
// pd officer list
|
||||||
getPDOfficerList(){
|
getPDOfficerList(pdID:string){
|
||||||
this._pd.getPdOfficerList().subscribe(
|
this._pd.getPdOfficerList(pdID).subscribe(
|
||||||
data => {
|
data => {
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.pdOfficerList=data.records.pd_master_details;
|
this.pdOfficerList=data.records;
|
||||||
|
|
||||||
}
|
}
|
||||||
}, error => this.errorMessage = <any> error);
|
}, error => this.errorMessage = <any> error);
|
||||||
|
|
||||||
}
|
}
|
||||||
/** To Save/Edited Popup Data */
|
// select pd officer list
|
||||||
onSubmit() {
|
selectPdOfficer(selected:any){
|
||||||
// stop here if form is invalid
|
this.isDisabled=false;
|
||||||
if (this._pdAllocationForm.invalid) {
|
this.selectedItem=selected;
|
||||||
this.errorMessage = "Please Fill All Mandate Fields.";
|
// this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
var updateData = this._pdAllocationForm.value;
|
|
||||||
|
|
||||||
//To Remove The "Null" With Key also
|
}
|
||||||
Object.keys(updateData).forEach((key) => (updateData[key] == null) && delete updateData[key]);
|
/** To update pd officer*/
|
||||||
|
updatePdOfficer(allocateDate:any) {
|
||||||
//Add BRANCH data with help Service File
|
if(this.isDisabled){
|
||||||
|
this.notifier.notify('warning', 'Please Choose PD Officer.!');
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
let updateData = {
|
||||||
|
"pd_id":this.data.pd_id,
|
||||||
|
"fk_pd_allocated_to":allocateDate.fk_user_id,
|
||||||
|
}
|
||||||
this._pd.updatePdOfficer(updateData).subscribe(
|
this._pd.updatePdOfficer(updateData).subscribe(
|
||||||
result => {
|
result => {
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
this.notifier.notify('success', 'Your Changes Updated.!');
|
this.notifier.notify('success', 'PD Allocated.!');
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -72,14 +79,12 @@ get readForm() { return this._pdAllocationForm.controls; }
|
|||||||
}, error => {
|
}, error => {
|
||||||
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
|
||||||
this.errorMessage = "Some Thing Wents Wrong Try Again.!";
|
this.errorMessage = "Some Thing Wents Wrong Try Again.!";
|
||||||
this.dialogRef.close();
|
// this.dialogRef.close();
|
||||||
});
|
});
|
||||||
//After Saving the BRANCH data then popup close
|
|
||||||
// this.dialogRef.close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/** For Popup Close Button */
|
/** For Popup Close Button */
|
||||||
closeAllocationComponent(): void {
|
closeAllocationComponent(): void {
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,10 +21,9 @@ export interface Master {
|
|||||||
export class PdTrigerService {
|
export class PdTrigerService {
|
||||||
|
|
||||||
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
private apiUrl = "http://ssa.sineedge.com/sparqapi/api/";
|
||||||
//private apiUrl = "http://192.168.15.5:9999/AWSEC2/sparqapi/api/";
|
//private apiUrl = "http://192.168.0.5:9999/AWSEC2/sparqapi/api/";
|
||||||
|
//private apiUrl = "http://ssa.sineedge.com/sparqtest/api/";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor(private _http: HttpClient,
|
constructor(private _http: HttpClient,
|
||||||
private _aws:AwsService) { }
|
private _aws:AwsService) { }
|
||||||
// get add pd master details
|
// get add pd master details
|
||||||
@ -113,6 +112,7 @@ export class PdTrigerService {
|
|||||||
updatePdApplicant(editData:any):Observable<any>{
|
updatePdApplicant(editData:any):Observable<any>{
|
||||||
// editData.fk_updatedby = this._aws.getlocale();
|
// editData.fk_updatedby = this._aws.getlocale();
|
||||||
// editData.updatedon = currentdate;
|
// editData.updatedon = currentdate;
|
||||||
|
console.log(editData)
|
||||||
return this._http.post<any>(this.apiUrl+"updatePDApplicants",{"pd_applicant_details":editData})
|
return this._http.post<any>(this.apiUrl+"updatePDApplicants",{"pd_applicant_details":editData})
|
||||||
|
|
||||||
.pipe(
|
.pipe(
|
||||||
@ -121,23 +121,25 @@ export class PdTrigerService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get pd allocation to details
|
// get pd allocation to details
|
||||||
getPdOfficerList(): Observable<any> {
|
getPdOfficerList(pdID:string): Observable<any> {
|
||||||
return this._http.get<any>(this.apiUrl+"getListPDOfficers")
|
return this._http.post<any>(this.apiUrl+"getListPDOfficers",{"pdid":pdID})
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
// update pd officer
|
// update pd officer
|
||||||
updatePdOfficer(updateData: any): Observable<any> {
|
updatePdOfficer(updateData: any): Observable<any> {
|
||||||
return this._http.post<any>(this.apiUrl+"updatePDApplicants",{"pd_applicant_details":updateData})
|
updateData.fk_updatedby = this._aws.getlocale();
|
||||||
|
updateData.updatedon = currentdate;
|
||||||
|
return this._http.post<any>(this.apiUrl+"allocatePD",{"records":updateData})
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private handleError<T>(operation = 'operation', result?: T) {
|
private handleError<T>(operation = 'operation', result?: T) {
|
||||||
return (error: any): Observable<T> => {
|
return (error: any): Observable<T> => {
|
||||||
return of(result as T);
|
return of(result as T);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import {
|
|||||||
MatRadioModule,
|
MatRadioModule,
|
||||||
MatButtonModule,MatTableModule,MatPaginatorModule,
|
MatButtonModule,MatTableModule,MatPaginatorModule,
|
||||||
MatProgressBarModule,MatDialogModule, MatSortModule,
|
MatProgressBarModule,MatDialogModule, MatSortModule,
|
||||||
MatToolbarModule,MatSelectModule, MatListModule, MatGridListModule, MatTabsModule } from '@angular/material';
|
MatToolbarModule,MatSelectModule, MatListModule, MatGridListModule, MatTabsModule, MatCheckboxModule, MatBadgeModule } from '@angular/material';
|
||||||
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 { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
|
import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
|
||||||
@ -19,8 +19,6 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
|||||||
|
|
||||||
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
||||||
import { NotifierModule, NotifierOptions } from 'angular-notifier';
|
import { NotifierModule, NotifierOptions } from 'angular-notifier';
|
||||||
import {MatDatepickerModule} from '@angular/material/datepicker';
|
|
||||||
|
|
||||||
|
|
||||||
import 'hammerjs';
|
import 'hammerjs';
|
||||||
import { PdTrigerRoutes } from './pd-triger-routing.module';
|
import { PdTrigerRoutes } from './pd-triger-routing.module';
|
||||||
@ -35,7 +33,7 @@ import { PdAllocationComponent } from './pd-allocation/pd-allocation.component';
|
|||||||
/**
|
/**
|
||||||
* Custom angular notifier options
|
* Custom angular notifier options
|
||||||
*/
|
*/
|
||||||
const customNotifierOptions: NotifierOptions = {
|
const pdCustomNotifierOptions: NotifierOptions = {
|
||||||
position: {
|
position: {
|
||||||
horizontal: {
|
horizontal: {
|
||||||
position: 'right',
|
position: 'right',
|
||||||
@ -79,7 +77,7 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
RouterModule.forChild(PdTrigerRoutes),
|
RouterModule.forChild(PdTrigerRoutes),
|
||||||
NotifierModule.withConfig(customNotifierOptions),
|
NotifierModule.withConfig(pdCustomNotifierOptions),
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
MatInputModule,
|
MatInputModule,
|
||||||
@ -92,15 +90,15 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
NgxDatatableModule,
|
NgxDatatableModule,
|
||||||
FormsModule,MatSlideToggleModule,
|
FormsModule,MatSlideToggleModule,
|
||||||
MatSelectModule, MatListModule,MatGridListModule, MatTabsModule,
|
MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
FileUploadModule,
|
FileUploadModule,
|
||||||
TreeModule,
|
TreeModule,
|
||||||
MatDialogModule,MatSortModule,
|
MatDialogModule,MatSortModule,
|
||||||
NgxMatSelectSearchModule,MatTooltipModule, MatDatepickerModule,
|
NgxMatSelectSearchModule,MatTooltipModule,
|
||||||
],
|
],
|
||||||
declarations: [AddPdComponent, ListPdComponent, EditPdComponent, ViewPdComponent, EditPdMasterComponent, EditPdApplicantComponent, PdAllocationComponent],
|
declarations: [AddPdComponent, ListPdComponent, EditPdComponent, ViewPdComponent, EditPdMasterComponent, EditPdApplicantComponent, PdAllocationComponent],
|
||||||
entryComponents: [PdAllocationComponent],
|
entryComponents:[PdAllocationComponent],
|
||||||
providers: [PdTrigerService]
|
providers: [PdTrigerService]
|
||||||
})
|
})
|
||||||
export class PdTrigerModule { }
|
export class PdTrigerModule { }
|
||||||
|
|||||||
@ -1,13 +1,11 @@
|
|||||||
<div class="row" style="text-align:left;">
|
<div class="row" style="text-align:right;">
|
||||||
<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" (click)="loadPdListCompoent()"><mat-icon>close</mat-icon></button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!showEditMasterComponent">
|
<div *ngIf="!showEditMasterComponent">
|
||||||
<mat-card *ngFor="let master of pdMasterData">
|
<mat-card *ngFor="let master of pdMasterData">
|
||||||
<div class="cardEdit">
|
<div class="cardEdit">
|
||||||
<button 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 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 mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button"><mat-icon>schedule</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button"><mat-icon>schedule</mat-icon></button>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)"><mat-icon>edit</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" type="button" (click)="editPdMaster(master)"><mat-icon>edit</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
@ -17,7 +15,6 @@
|
|||||||
<mat-card-subtitle class="hover-icon"><i class="fa-1x fa fa-map-marker"> </i> <span>{{master.city_name}} / {{master.state_name}}-{{master.pincode}}</span></mat-card-subtitle>
|
<mat-card-subtitle class="hover-icon"><i class="fa-1x fa fa-map-marker"> </i> <span>{{master.city_name}} / {{master.state_name}}-{{master.pincode}}</span></mat-card-subtitle>
|
||||||
|
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-divider></mat-divider>
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<p>{{master.product_name}} / {{master.subproduct_name}}</p>
|
<p>{{master.product_name}} / {{master.subproduct_name}}</p>
|
||||||
<p><span>{{master.pd_type_name}} {{master.pd_allocation_type_name}} {{master.pd_allocated_to}}</span></p>
|
<p><span>{{master.pd_type_name}} {{master.pd_allocation_type_name}} {{master.pd_allocated_to}}</span></p>
|
||||||
@ -40,7 +37,7 @@
|
|||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<mat-card-title>Applicants</mat-card-title>
|
<mat-card-title>Applicants</mat-card-title>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-divider></mat-divider>
|
<mat-card-content>
|
||||||
<mat-list *ngFor="let applicant of pdApplicantData">
|
<mat-list *ngFor="let applicant of pdApplicantData">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<p><span *ngIf="applicant.applicant_name!=null" class="mb-2 text-center hover-icon">
|
<p><span *ngIf="applicant.applicant_name!=null" class="mb-2 text-center hover-icon">
|
||||||
@ -53,8 +50,10 @@
|
|||||||
|
|
||||||
|
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
|
|
||||||
|
</mat-card-content>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<app-edit-pd-applicant *ngIf="showEditApplicantComponent" [applicantChild]="editApplicantData" (loadPdView)="updateViewComponent($event)"></app-edit-pd-applicant>
|
<app-edit-pd-applicant *ngIf="showEditApplicantComponent" [applicantChild]="editApplicantData" (loadPdView)="updateViewComponent($event)"></app-edit-pd-applicant>
|
||||||
@ -67,17 +66,18 @@
|
|||||||
<mat-card-title>Documents</mat-card-title>
|
<mat-card-title>Documents</mat-card-title>
|
||||||
<!-- <mat-card-subtitle><i class="fa-1x fa fa-map-marker"> </i> {{master.city_name}} / {{master.state_name}}-{{master.pincode}}</mat-card-subtitle> -->
|
<!-- <mat-card-subtitle><i class="fa-1x fa fa-map-marker"> </i> {{master.city_name}} / {{master.state_name}}-{{master.pincode}}</mat-card-subtitle> -->
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
<mat-divider></mat-divider>
|
|
||||||
<mat-list *ngFor="let documents of pdDocumentsData">
|
<mat-list *ngFor="let documents of pdDocumentsData">
|
||||||
<mat-list-item>
|
<mat-list-item>
|
||||||
<p><span>
|
<p><span>
|
||||||
{{documents.pd_document_title}} </span> <span class="mb-2 text-center hover-icon">
|
{{documents.pd_document_title}} </span> <span class="mb-2 text-center hover-icon">
|
||||||
<i class="fa-1x fa fa-file"></i>
|
<i class="fa-1x fa fa-file"></i>
|
||||||
{{documents.pd_document_name}} </span>
|
{{documents.pd_document_name}} </span>
|
||||||
</p>
|
</p>
|
||||||
</mat-list-item>
|
</mat-list-item>
|
||||||
|
|
||||||
</mat-list>
|
</mat-list>
|
||||||
</mat-card>
|
|
||||||
|
</mat-card>
|
||||||
<!-- pd logs card -->
|
<!-- pd logs card -->
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
@ -86,11 +86,6 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
<!-- <mat-form-field>
|
|
||||||
<input matInput [matDatepicker]="picker" placeholder="Choose a date">
|
|
||||||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
||||||
<mat-datepicker #picker></mat-datepicker>
|
|
||||||
</mat-form-field> -->
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
.cardEdit {
|
.cardEdit {
|
||||||
display: inline;float:right;
|
display: inline;float:right;padding-top:3%;
|
||||||
}
|
}
|
||||||
@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit,ViewEncapsulation, EventEmitter, Input, Output } from '@angular/core';
|
import { Component, OnInit,ViewEncapsulation, EventEmitter, Input, Output } from '@angular/core';
|
||||||
import { MatDialog } from '@angular/material';
|
|
||||||
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators, FormControl, FormArray } from '@angular/forms';
|
||||||
|
import { MatDialog } from '@angular/material';
|
||||||
import { NotifierService } from 'angular-notifier';
|
import { NotifierService } from 'angular-notifier';
|
||||||
import { PdTrigerService } from '../pd-service/pd-triger.service';
|
import { PdTrigerService } from '../pd-service/pd-triger.service';
|
||||||
import { PdAllocationComponent } from '../pd-allocation/pd-allocation.component';
|
import { PdAllocationComponent } from '../pd-allocation/pd-allocation.component';
|
||||||
@ -11,7 +11,7 @@ import { PdAllocationComponent } from '../pd-allocation/pd-allocation.component'
|
|||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class ViewPdComponent implements OnInit {
|
export class ViewPdComponent implements OnInit {
|
||||||
public notifier:NotifierService;
|
private notifier:NotifierService;
|
||||||
errorMessage: any;
|
errorMessage: any;
|
||||||
pdMasterData: any;
|
pdMasterData: any;
|
||||||
pdApplicantData: any;
|
pdApplicantData: any;
|
||||||
@ -25,8 +25,8 @@ export class ViewPdComponent implements OnInit {
|
|||||||
@Input() childData: string;
|
@Input() childData: string;
|
||||||
@Output() loadParent = new EventEmitter<string>();
|
@Output() loadParent = new EventEmitter<string>();
|
||||||
public _EditPDtriggerForm:FormGroup;
|
public _EditPDtriggerForm:FormGroup;
|
||||||
constructor(private _fb: FormBuilder,
|
constructor(notifier:NotifierService,private dialog: MatDialog,private _fb: FormBuilder,
|
||||||
private _pd: PdTrigerService, notifier:NotifierService, private dialog: MatDialog,) {
|
private _pd: PdTrigerService) {
|
||||||
this.notifier=notifier
|
this.notifier=notifier
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,9 +70,11 @@ export class ViewPdComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
dialogRef.afterClosed()
|
dialogRef.afterClosed()
|
||||||
.subscribe(dataresult => {
|
.subscribe(dataresult => {
|
||||||
//this.getQuestionsMasters();
|
// this.notifier.notify('success', 'Successfully allocated.!');
|
||||||
|
this.viewPdDetails(this.childData)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
updateViewComponent(editBack:string) {
|
updateViewComponent(editBack:string) {
|
||||||
|
|
||||||
if(editBack=='1'){
|
if(editBack=='1'){
|
||||||
|
|||||||
@ -4,12 +4,12 @@
|
|||||||
<div fxLayout="column" fxFlex.xl="40" fxFlex.lg="40" fxFlex.md="50" fxFlex.sm="80" fxFlex.xs="90">
|
<div fxLayout="column" fxFlex.xl="40" fxFlex.lg="40" fxFlex.md="50" fxFlex.sm="80" fxFlex.xs="90">
|
||||||
<mat-card class="login-session">
|
<mat-card class="login-session">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="base-border">Login Form</h2>
|
<h2 class="base-border">Login</h2>
|
||||||
<p>Enter Your Login Details</p>
|
<!-- <p>Enter Your Login Details</p> -->
|
||||||
<form #form="ngForm" (ngSubmit)="login()">
|
<form #form="ngForm" (ngSubmit)="login()">
|
||||||
<div fxLayout="column" fxLayoutAlign="start stretch">
|
<div fxLayout="column" fxLayoutAlign="start stretch">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput placeholder="E-Mail/Mobile Num" type="text" name="email" required [(ngModel)]="email">
|
<input matInput placeholder="E-Mail" type="text" name="email" required [(ngModel)]="email">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width: 100%" class="mb-1">
|
<mat-form-field style="width: 100%" class="mb-1">
|
||||||
|
|||||||
@ -1,13 +1,14 @@
|
|||||||
<div style="max-height: 580px;">
|
<div style="max-height: 580px;">
|
||||||
|
<form [formGroup]="_addQuesFrom" (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%;">{{pageTitle}}</h2>
|
<h2 mat-dialog-title style="width: 50%;">{{pageTitle}}</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 color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form [formGroup]="_addQuesFrom" (submit)="onSubmit()">
|
|
||||||
<!--<div class="form-group">-->
|
<!--<div class="form-group">-->
|
||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
||||||
@ -17,8 +18,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_entity_type_id.hasError('required')" class="mat-text-warn">You must Select Entity Type.</mat-error>
|
<mat-error *ngIf="submitted && f.fk_entity_type_id.hasError('required')" class="mat-text-warn">You must Select Entity Type.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<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">
|
||||||
@ -65,8 +65,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 placeholder="Address" formControlName="addressline1">
|
<input matInput placeholder="Address 1" formControlName="addressline1">
|
||||||
<mat-error *ngIf="submitted && f.addressline1.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>
|
<mat-error *ngIf="submitted && f.addressline1.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
|
<input matInput placeholder="Address 2" formControlName="addressline2">
|
||||||
|
<!--<mat-error *ngIf="submitted && f.addressline2.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>-->
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
|
<input matInput placeholder="Address 3" formControlName="addressline3">
|
||||||
|
<!-- <mat-error *ngIf="submitted && f.addressline3.hasError('required')" class="mat-text-warn">You must Include Address.</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">
|
||||||
<input matInput placeholder="Pincode" formControlName="pincode">
|
<input matInput placeholder="Pincode" formControlName="pincode">
|
||||||
@ -82,8 +90,8 @@
|
|||||||
</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">
|
||||||
<input matInput placeholder="Alternet Email" formControlName="alt_email">
|
<input matInput placeholder="Alternate Email" formControlName="alt_email">
|
||||||
<mat-error *ngIf="submitted && f.alt_email.hasError('required')" class="mat-text-warn">You must Select Alternet Email.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.alt_email.hasError('required')" class="mat-text-warn">You must Select Alternet Email.</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">
|
||||||
@ -93,7 +101,7 @@
|
|||||||
|
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<input matInput placeholder="Mobile Number" formControlName="mobile_no">
|
<input matInput placeholder="Mobile Number" formControlName="mobile_no">
|
||||||
<mat-error *ngIf="submitted && f.mobile_no.hasError('required')" class="mat-text-warn">You must Include Mobile Number.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.mobile_no.hasError('required')" class="mat-text-warn">You must Include Mobile Number.</mat-error>-->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -103,10 +111,12 @@
|
|||||||
<mat-error *ngIf="submitted && f.remarks.hasError('required')" class="mat-text-warn">You must Include Remarks.</mat-error>
|
<mat-error *ngIf="submitted && f.remarks.hasError('required')" class="mat-text-warn">You must Include Remarks.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
</mat-card>
|
||||||
|
<mat-card style="padding: 6px;">
|
||||||
|
<h2 mat-dialog-title style="width: 50%;">{{subTitle1}}</h2>
|
||||||
<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 placeholder="Pan Number" formControlName="pan">
|
<input matInput placeholder="PAN Number" formControlName="pan">
|
||||||
<mat-error *ngIf="submitted && f.pan.hasError('required')" class="mat-text-warn">You must Include Pan Number.</mat-error>
|
<mat-error *ngIf="submitted && f.pan.hasError('required')" class="mat-text-warn">You must Include Pan Number.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
@ -124,14 +134,16 @@
|
|||||||
<mat-error *ngIf="submitted && f.tat.hasError('required')" class="mat-text-warn">You must Include TAT.</mat-error>
|
<mat-error *ngIf="submitted && f.tat.hasError('required')" class="mat-text-warn">You must Include TAT.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
</mat-card>
|
||||||
|
<mat-card style="padding: 6px;">
|
||||||
<div fxLayout="row wrap" fxLayoutAlign="start none">
|
<div fxLayout="row wrap" fxLayoutAlign="start none">
|
||||||
|
<h2 mat-dialog-title style="width: 50%;">{{subTitle2}}</h2>
|
||||||
<div formArrayName="entity_child" class="example-full-width">
|
<div formArrayName="entity_child" class="example-full-width">
|
||||||
<div *ngFor="let answ of _addQuesFrom.controls.entity_child['controls']; let i=index">
|
<div *ngFor="let answ of _addQuesFrom.controls.entity_child['controls']; let i=index">
|
||||||
<div [formGroupName]="i">
|
<div [formGroupName]="i">
|
||||||
<div fxLayout="row wrap" style="width: 100%">
|
<div fxLayout="row wrap" style="width: 100%">
|
||||||
<div style="width: 90%">
|
<div style="width: 90%">
|
||||||
|
|
||||||
<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 placeholder="Contact Person" formControlName="contact_person">
|
<input matInput placeholder="Contact Person" formControlName="contact_person">
|
||||||
@ -157,8 +169,9 @@
|
|||||||
</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-button color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage($event); false">Add More</button>-->
|
||||||
</div>
|
<button mat-fab class="mr-1 mb-1" color="primary" matTooltip="Add More Contact Person" matTooltipPosition="above" (click)="addLanguage($event); false"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Error List Shown Here-->
|
<!--Error List Shown Here-->
|
||||||
@ -172,8 +185,9 @@
|
|||||||
<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>
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
|
</mat-card>
|
||||||
</form>
|
</form>
|
||||||
</mat-card>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,9 @@ import { EntityService } from './../../service/entity/entity.service';
|
|||||||
})
|
})
|
||||||
export class EntityAddComponent implements OnInit {
|
export class EntityAddComponent implements OnInit {
|
||||||
|
|
||||||
public pageTitle: string = "Add Entity Master Details";
|
public pageTitle: string = "Entity";
|
||||||
|
public subTitle1: string = "Tax Info";
|
||||||
|
public subTitle2: string = "Contacts";
|
||||||
public _addQuesFrom: FormGroup;
|
public _addQuesFrom: FormGroup;
|
||||||
public submitted = false;
|
public submitted = false;
|
||||||
public categories: any = [];
|
public categories: any = [];
|
||||||
@ -72,10 +74,8 @@ export class EntityAddComponent implements OnInit {
|
|||||||
fk_branch: [null, Validators.compose([Validators.required])],
|
fk_branch: [null, Validators.compose([Validators.required])],
|
||||||
addressline1: [null, Validators.compose([Validators.required])],
|
addressline1: [null, Validators.compose([Validators.required])],
|
||||||
pincode: [null, Validators.compose([Validators.required])],
|
pincode: [null, Validators.compose([Validators.required])],
|
||||||
official_email: [null, Validators.compose([Validators.required, Validators.email])],
|
official_email: [null, Validators.compose([Validators.required, Validators.email])],
|
||||||
alt_email: [null, Validators.compose([Validators.required, Validators.email])],
|
phone_number: [null, Validators.compose([Validators.required])],
|
||||||
phone_number: [null, Validators.compose([Validators.required])],
|
|
||||||
mobile_no: [null, Validators.compose([Validators.required])],
|
|
||||||
remarks: [null, Validators.compose([Validators.required])],
|
remarks: [null, Validators.compose([Validators.required])],
|
||||||
pan: [null, Validators.compose([Validators.required])],
|
pan: [null, Validators.compose([Validators.required])],
|
||||||
gst_no: [null, Validators.compose([Validators.required])],
|
gst_no: [null, Validators.compose([Validators.required])],
|
||||||
|
|||||||
@ -1,13 +1,14 @@
|
|||||||
<div style="max-height: 580px;">
|
<div style="max-height: 580px;">
|
||||||
|
<form [formGroup]="_addQuesFrom" (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%;">{{pageTitle}}</h2>
|
<h2 mat-dialog-title style="width: 50%;">{{pageTitle}}</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 color="primary" class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form [formGroup]="_addQuesFrom" (submit)="onSubmit()">
|
|
||||||
<!--<div class="form-group">-->
|
<!--<div class="form-group">-->
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
||||||
|
|
||||||
@ -17,8 +18,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="submitted && f.fk_entity_type_id.hasError('required')" class="mat-text-warn">You must Select Entity Type.</mat-error>
|
<mat-error *ngIf="submitted && f.fk_entity_type_id.hasError('required')" class="mat-text-warn">You must Select Entity Type.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
||||||
|
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
@ -65,8 +65,16 @@
|
|||||||
|
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<input matInput placeholder="Address" formControlName="addressline1">
|
<input matInput placeholder="Address 1" formControlName="addressline1">
|
||||||
<mat-error *ngIf="submitted && f.addressline1.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>
|
<mat-error *ngIf="submitted && f.addressline1.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
|
<input matInput placeholder="Address 2" formControlName="addressline2">
|
||||||
|
<!--<mat-error *ngIf="submitted && f.addressline2.hasError('required')" class="mat-text-warn">You must Include Address.</mat-error>-->
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
|
<input matInput placeholder="Address 3" formControlName="addressline3">
|
||||||
|
<!--<mat-error *ngIf="submitted && f.addressline3.hasError('required')" class="mat-text-warn">You must Include Address.</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">
|
||||||
<input matInput placeholder="Pincode" formControlName="pincode">
|
<input matInput placeholder="Pincode" formControlName="pincode">
|
||||||
@ -82,8 +90,8 @@
|
|||||||
</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">
|
||||||
<input matInput placeholder="Alternet Email" formControlName="alt_email">
|
<input matInput placeholder="Alternate Email" formControlName="alt_email">
|
||||||
<mat-error *ngIf="submitted && f.alt_email.hasError('required')" class="mat-text-warn">You must Select Alternet Email.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.alt_email.hasError('required')" class="mat-text-warn">You must Select Alternet Email.</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">
|
||||||
@ -93,7 +101,7 @@
|
|||||||
|
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<input matInput placeholder="Mobile Number" formControlName="mobile_no">
|
<input matInput placeholder="Mobile Number" formControlName="mobile_no">
|
||||||
<mat-error *ngIf="submitted && f.mobile_no.hasError('required')" class="mat-text-warn">You must Include Mobile Number.</mat-error>
|
<!-- <mat-error *ngIf="submitted && f.mobile_no.hasError('required')" class="mat-text-warn">You must Include Mobile Number.</mat-error>-->
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -103,10 +111,12 @@
|
|||||||
<mat-error *ngIf="submitted && f.remarks.hasError('required')" class="mat-text-warn">You must Include Remarks.</mat-error>
|
<mat-error *ngIf="submitted && f.remarks.hasError('required')" class="mat-text-warn">You must Include Remarks.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
</mat-card>
|
||||||
|
<mat-card style="padding: 6px;">
|
||||||
|
<h2 mat-dialog-title style="width: 50%;">{{subTitle1}}</h2>
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start" style="padding: 6px 4px;">
|
||||||
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
<mat-form-field fxFlex="0 1 auto" class="ml-xs">
|
||||||
<input matInput placeholder="Pan Number" formControlName="pan">
|
<input matInput placeholder="PAN Number" formControlName="pan">
|
||||||
<mat-error *ngIf="submitted && f.pan.hasError('required')" class="mat-text-warn">You must Include Pan Number.</mat-error>
|
<mat-error *ngIf="submitted && f.pan.hasError('required')" class="mat-text-warn">You must Include Pan Number.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
@ -124,7 +134,10 @@
|
|||||||
<mat-error *ngIf="submitted && f.tat.hasError('required')" class="mat-text-warn">You must Include TAT.</mat-error>
|
<mat-error *ngIf="submitted && f.tat.hasError('required')" class="mat-text-warn">You must Include TAT.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
</mat-card>
|
||||||
|
<mat-card style="padding: 6px;">
|
||||||
|
|
||||||
|
<h2 mat-dialog-title style="width: 50%;">{{subTitle2}}</h2>
|
||||||
<div fxLayout="row wrap" fxLayoutAlign="start none" style="padding: 6px 4px;">
|
<div fxLayout="row wrap" fxLayoutAlign="start none" style="padding: 6px 4px;">
|
||||||
<div formArrayName="entity_child" class="example-full-width">
|
<div formArrayName="entity_child" class="example-full-width">
|
||||||
<div *ngFor="let answ of _addQuesFrom.controls.entity_child['controls']; let i=index">
|
<div *ngFor="let answ of _addQuesFrom.controls.entity_child['controls']; let i=index">
|
||||||
@ -160,8 +173,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button mat-button color="primary" matTooltip="Add More" matTooltipPosition="above" (click)="addLanguage(null, null, null, null, null, $event); false">Add More</button>
|
<button mat-fab class="mr-1 mb-1" color="primary" matTooltip="Add More Answer" matTooltipPosition="above" (click)="addLanguage(null, null, null, null, null, $event); false"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--Error List Shown Here-->
|
<!--Error List Shown Here-->
|
||||||
@ -175,6 +188,7 @@
|
|||||||
(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="Save" matTooltipPosition="above" type="submit"><mat-icon>save</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="Save" matTooltipPosition="above" type="submit"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
</form>
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -33,7 +33,9 @@ export class EntityEditComponent implements OnInit{
|
|||||||
|
|
||||||
@Input() public childMessage: any;
|
@Input() public childMessage: any;
|
||||||
|
|
||||||
public pageTitle: string = "Edit Entity Master Details";
|
public pageTitle: string = "Entity";
|
||||||
|
public subTitle1: string = "Tax Info";
|
||||||
|
public subTitle2: string = "Contacts";
|
||||||
public _addQuesFrom: FormGroup;
|
public _addQuesFrom: FormGroup;
|
||||||
public submitted = false;
|
public submitted = false;
|
||||||
public categories: any = [];
|
public categories: any = [];
|
||||||
@ -95,12 +97,10 @@ public pageTitle: string = "Edit Entity Master Details";
|
|||||||
fk_state: [this.childMessage.fk_state, Validators.compose([Validators.required])],
|
fk_state: [this.childMessage.fk_state, Validators.compose([Validators.required])],
|
||||||
fk_city: [this.childMessage.fk_city, Validators.compose([Validators.required])],
|
fk_city: [this.childMessage.fk_city, Validators.compose([Validators.required])],
|
||||||
fk_branch: [this.childMessage.fk_branch, Validators.compose([Validators.required])],
|
fk_branch: [this.childMessage.fk_branch, Validators.compose([Validators.required])],
|
||||||
addressline1: [this.childMessage.addressline1, Validators.compose([Validators.required])],
|
addressline1: [this.childMessage.addressline1, Validators.compose([Validators.required])],
|
||||||
pincode: [this.childMessage.pincode, Validators.compose([Validators.required])],
|
pincode: [this.childMessage.pincode, Validators.compose([Validators.required])],
|
||||||
official_email: [this.childMessage.official_email, Validators.compose([Validators.required, Validators.email])],
|
official_email: [this.childMessage.official_email, Validators.compose([Validators.required, Validators.email])],
|
||||||
alt_email: [this.childMessage.alt_email, Validators.compose([Validators.required, Validators.email])],
|
phone_number: [this.childMessage.phone_number, Validators.compose([Validators.required])],
|
||||||
phone_number: [this.childMessage.phone_number, Validators.compose([Validators.required])],
|
|
||||||
mobile_no: [this.childMessage.mobile_no, Validators.compose([Validators.required])],
|
|
||||||
remarks: [this.childMessage.remarks, Validators.compose([Validators.required])],
|
remarks: [this.childMessage.remarks, Validators.compose([Validators.required])],
|
||||||
pan: [this.childMessage.pan, Validators.compose([Validators.required])],
|
pan: [this.childMessage.pan, Validators.compose([Validators.required])],
|
||||||
gst_no: [this.childMessage.gst_no, Validators.compose([Validators.required])],
|
gst_no: [this.childMessage.gst_no, Validators.compose([Validators.required])],
|
||||||
|
|||||||
@ -1,12 +1,13 @@
|
|||||||
<div *ngIf="listView">
|
<div *ngIf="listView">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
|
|
||||||
<mat-card class="mat-elevation-z1">
|
|
||||||
<div style="margin: 6px; padding: 4px;">
|
<div style="margin: 6px; padding: 4px;">
|
||||||
<div class="p_title" style="font-size: 16px; font-style: bold;">Entity Master</div>
|
<div class="p_title" style="font-size: 26px; font-style: bold;">Entity Master</div>
|
||||||
<div class="sub_title" style="font-size: 11px;">List of Entity Master Details</div>
|
<!--<div class="sub_title" style="font-size: 11px;">List of Entity Master Details</div>-->
|
||||||
|
<hr>
|
||||||
</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 fxFlex="80%">
|
||||||
<!--<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;">
|
||||||
@ -21,14 +22,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div fxFlex="20%">
|
<div fxFlex="20%">
|
||||||
<!--<a [routerLink]="['/'+'setting/entity/add' ]">-->
|
<!--<a [routerLink]="['/'+'setting/entity/add' ]">-->
|
||||||
<button mat-stroked-button color="primary" (click)="addNewQuestion()">
|
<!--<button mat-stroked-button color="primary" (click)="addNewQuestion()">Add New Entity</button>-->
|
||||||
Add New Entity</button>
|
<button mat-fab class="mr-1 mb-1" color="primary" (click)="addNewQuestion()"><mat-icon>add</mat-icon></button>
|
||||||
<!--</a>-->
|
<!--</a>-->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--</mat-card-content>-->
|
<!--</mat-card-content>-->
|
||||||
</mat-card>
|
|
||||||
<!--
|
<!--
|
||||||
<mat-card class="mat-elevation-z1">
|
<mat-card class="mat-elevation-z1">
|
||||||
<div style="margin: 6px; padding: 4px;">
|
<div style="margin: 6px; padding: 4px;">
|
||||||
@ -39,13 +40,13 @@
|
|||||||
<ng-container *ngIf="enityList.length > 0">
|
<ng-container *ngIf="enityList.length > 0">
|
||||||
<div style="padding: 0 12px;">
|
<div style="padding: 0 12px;">
|
||||||
<mat-card class="product-card" *ngFor="let product of dataSource.connect() | async">
|
<mat-card class="product-card" *ngFor="let product of dataSource.connect() | async">
|
||||||
<div fxLayout="row" fxLayoutAlign="start start" style="padding: 6px 2px;">
|
<div fxLayout="row" fxLayoutAlign="start start">
|
||||||
<div fxFlex="90%" style="padding: 12px 8px;">
|
<div fxFlex="90%" style="padding-top: 10px;">
|
||||||
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
<div fxLayout="row wrap" fxLayoutGap="32px" fxLayoutAlign="flex-start">
|
||||||
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="10%">
|
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="10%">
|
||||||
{{ product.entity_name }}
|
{{ product.entity_name }}
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="30%">
|
<div fxFlex="0 1 auto" class="ml-xs" fxFlex="40%">
|
||||||
<div><b>{{ product.full_name }} ({{product.short_name}})</b></div>
|
<div><b>{{ product.full_name }} ({{product.short_name}})</b></div>
|
||||||
<div> {{ product.branch_name }} </div>
|
<div> {{ product.branch_name }} </div>
|
||||||
<div> {{product.city_name}}, {{product.state_name}} </div>
|
<div> {{product.city_name}}, {{product.state_name}} </div>
|
||||||
|
|||||||
@ -1,21 +1,15 @@
|
|||||||
<!-- <div class="mb-1">
|
|
||||||
<h2 mat-dialog-title>Branch
|
|
||||||
<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>
|
|
||||||
</h2>
|
|
||||||
</div> -->
|
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
fxLayout="row"
|
fxLayout="row"
|
||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 30%;"> Branch </h2>
|
<h2 mat-dialog-title style="width: 30%;"> Branch </h2>
|
||||||
<div style="width: 40%;"></div>
|
<div style="width: 40%;"></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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- {{empresas|json}} -->
|
|
||||||
|
|
||||||
<form [formGroup]="_branchForm" (submit)="onSubmit()">
|
<form [formGroup]="_branchForm" (submit)="onSubmit()">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
@ -35,38 +29,21 @@ fxLayoutAlign="center">
|
|||||||
<div class="ml-xs mr-xs">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput type="text" placeholder="Branch Name" required [formControl]="_branchForm.controls['name']">
|
<input matInput type="text" placeholder="Branch Name" required [formControl]="_branchForm.controls['name']">
|
||||||
<mat-error *ngIf="!_branchForm.controls['name'].valid && _branchForm.controls['name'].touched">You must inculde a Name</mat-error>
|
<mat-error *ngIf="!_branchForm.controls['name'].valid && _branchForm.controls['name'].touched">You must inculde a Branch Name</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <small *ngIf="!_branchForm.controls['name'].valid && _branchForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</small> -->
|
<!-- <small *ngIf="!_branchForm.controls['name'].valid && _branchForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</small> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="mb-1">
|
|
||||||
<mat-form-field style="width: 100%">
|
|
||||||
|
|
||||||
tate_id: "1", fk_region_id: "1", name: "TamilNadu", code: "TN", createdon: "2018-08-07 15:10:00", …}
|
|
||||||
1
|
|
||||||
:
|
|
||||||
{state_id: "2", fk_region_id: "0", name: "one edited", code:
|
|
||||||
<input matInput type="text" placeholder="City Name" required [formControl]="_branchForm.controls['fk_city_id']">
|
|
||||||
</mat-form-field>
|
|
||||||
<small *ngIf="!_branchForm.controls['fk_city_id'].valid && _branchForm.controls['fk_city_id'].touched" class="mat-text-warn">You must include a City Name.</small>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
<button *ngIf="isEmptyObject(_branchForm.controls['branch_id']);else editreset;" 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 *ngIf="isEmptyObject(_branchForm.controls['branch_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_branchForm.valid"><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]="!_branchForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!--
|
|
||||||
|
|
||||||
-->
|
|
||||||
@ -14,6 +14,7 @@ import { MatDialog,
|
|||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
/** Model */
|
/** Model */
|
||||||
import { Branch,City } from '../../../model/branch';
|
import { Branch,City } from '../../../model/branch';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -27,11 +28,20 @@ export class BranchDialogComponent implements OnInit {
|
|||||||
|
|
||||||
citydatas: City[];
|
citydatas: City[];
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
|
color = 'primary';
|
||||||
|
/**
|
||||||
|
* Notifier service
|
||||||
|
*/
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(
|
||||||
|
notifier: NotifierService,
|
||||||
|
private _formBuilder: FormBuilder,
|
||||||
private dialogRef: MatDialogRef<BranchDialogComponent>,
|
private dialogRef: MatDialogRef<BranchDialogComponent>,
|
||||||
private _mastersService: MastersService,
|
private _mastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: Branch) { }
|
@Inject(MAT_DIALOG_DATA) public data: Branch) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
@ -81,10 +91,12 @@ export class BranchDialogComponent implements OnInit {
|
|||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
this.dialogRef.close();//After Saving the BRANCH data then popup close
|
this.dialogRef.close();//After Saving the BRANCH data then popup close
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -94,10 +106,12 @@ export class BranchDialogComponent implements OnInit {
|
|||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
|
|
||||||
this.dialogRef.close();//After Editing the BRANCH data then popup close
|
this.dialogRef.close();//After Editing the BRANCH data then popup close
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,21 +1,40 @@
|
|||||||
<mat-card-content>
|
<!-- <div style="text-align: right;">
|
||||||
<div style="text-align: right;">
|
<!-- <button mat-stroked-button [color]="color" (click)="addBranch()"> + Add Branch</button> -->
|
||||||
<button mat-stroked-button [color]="color" (click)="addBranch()"> + Add Branch</button>
|
<!-- <button mat-icon-button class="mr-1 mb-1 hover-icon" style="height: 40%;" ><mat-icon>add_box</mat-icon></button> -->
|
||||||
</div>
|
|
||||||
<br>
|
<!-- <button mat-fab class="mr-1 mb-1" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button> -->
|
||||||
|
<!-- <mat-button-toggle class="mr-1 mb-1">Single toggle</mat-button-toggle> -->
|
||||||
|
<!-- </div> -->
|
||||||
|
<!-- <br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
<br> -->
|
<br> -->
|
||||||
|
<mat-card-content>
|
||||||
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
||||||
<div class="example-header">
|
<!-- <div class="example-header" fxLayout="row">
|
||||||
<mat-form-field>
|
<div class="ml-xs mr-xs" style="width: 80%;">
|
||||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
<mat-form-field>
|
||||||
</mat-form-field>
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
</div>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="example-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<!-- <button mat-fab class="mr-1 mb-1" style="margin-top: 7px;"color="primary" ><mat-icon>add</mat-icon></button> -->
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<mat-table [dataSource]="dataSource" matSort>
|
<mat-table [dataSource]="dataSource" matSort>
|
||||||
|
|
||||||
<ng-container matColumnDef="serialno">
|
<ng-container matColumnDef="serialno">
|
||||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let row;" class="example-margin"> {{row.serialno}} </mat-cell>
|
<mat-cell *matCellDef="let row;" class="example-margin"> {{row.serialno}} </mat-cell>
|
||||||
@ -99,11 +118,13 @@
|
|||||||
|
|
||||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->
|
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
<!-- <p *ngIf="dataSource.length === 0">No records found</p> -->
|
<!-- <p *ngIf="dataSource.length === 0">No records found</p> -->
|
||||||
|
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -6,6 +6,7 @@
|
|||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.example-header {
|
.example-header {
|
||||||
min-height: 56px;
|
min-height: 56px;
|
||||||
max-height: 56px;
|
max-height: 56px;
|
||||||
@ -116,7 +117,6 @@
|
|||||||
.example-margin {
|
.example-margin {
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mat-table {
|
.mat-table {
|
||||||
display: table;
|
display: table;
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 30%;"> City </h2>
|
<h2 mat-dialog-title style="width: 30%;"> City </h2>
|
||||||
<div style="width: 40%;"></div>
|
<div style="width: 40%;"></div>
|
||||||
<div style="width: 30%;text-align:right;">
|
<div style="width: 30%;text-align:right;">
|
||||||
|
<!-- <button color="warn" 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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -53,11 +54,11 @@ fxLayoutAlign="center">
|
|||||||
</div> -->
|
</div> -->
|
||||||
<br>
|
<br>
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
<button *ngIf="isEmptyObject(_cityForm.controls['city_id']);else editreset;" 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 *ngIf="isEmptyObject(_cityForm.controls['city_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_cityForm.valid"><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]="!_cityForm.valid" ><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
/** Model */
|
/** Model */
|
||||||
import { States } from '../../../model/states';
|
import { States } from '../../../model/states';
|
||||||
@Component({
|
@Component({
|
||||||
@ -22,14 +23,18 @@ export class CityDialogComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
public _cityForm: FormGroup;
|
public _cityForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
stateDatas: any[];
|
stateDatas: any[];
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
|
color = 'primary';
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<CityDialogComponent>,
|
private dialogRef: MatDialogRef<CityDialogComponent>,
|
||||||
private _mastersService: MastersService,
|
private _mastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -84,10 +89,12 @@ export class CityDialogComponent implements OnInit {
|
|||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
this.dialogRef.close();//After Saving the City data then popup close
|
this.dialogRef.close();//After Saving the City data then popup close
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -99,10 +106,12 @@ export class CityDialogComponent implements OnInit {
|
|||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
|
|
||||||
this.dialogRef.close();//After Editing the City data then popup close
|
this.dialogRef.close();//After Editing the City data then popup close
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,8 @@
|
|||||||
<mat-card-content>
|
<!-- <div style="text-align: right;">
|
||||||
<div style="text-align: right;">
|
<!- <button mat-stroked-button [color]="color" (click)="addCity()"> + Add City</button> ->
|
||||||
<button mat-stroked-button [color]="color" (click)="addCity()"> + Add City</button>
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addCity()" matTooltip="Add City" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div> -->
|
||||||
<br>
|
|
||||||
<div *ngIf="loader">
|
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<!-- displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
<!-- displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
||||||
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="example-container mat-elevation-z8">
|
||||||
<table>
|
<table>
|
||||||
@ -72,12 +68,25 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
<mat-card-content>
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<!-- <button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button> -->
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addCity()" matTooltip="Add City" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -157,4 +166,5 @@
|
|||||||
|
|
||||||
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->
|
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -18,6 +18,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 70%;"> Comment On Locality </h2>
|
<h2 mat-dialog-title style="width: 70%;"> Comment On Locality </h2>
|
||||||
<div style="width: 25%;text-align:right;">
|
<div style="width: 25%;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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -38,11 +39,11 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
<button *ngIf="isEmptyObject(_CommentOnLocalityForm.controls['comments_on_locality_id']);else editreset;" 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 *ngIf="isEmptyObject(_CommentOnLocalityForm.controls['comments_on_locality_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_CommentOnLocalityForm.valid"><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]="!_CommentOnLocalityForm.valid" ><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import { MatDialog,
|
|||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -21,14 +22,17 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
styleUrls: ['./comments-on-locality-dialog.component.scss']
|
styleUrls: ['./comments-on-locality-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class CommentsOnLocalityDialogComponent implements OnInit {
|
export class CommentsOnLocalityDialogComponent implements OnInit {
|
||||||
|
color = 'primary';
|
||||||
|
|
||||||
public _CommentOnLocalityForm: FormGroup;
|
public _CommentOnLocalityForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<CommentsOnLocalityDialogComponent>,
|
private dialogRef: MatDialogRef<CommentsOnLocalityDialogComponent>,
|
||||||
private _mastersService: MastersService,
|
private _mastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() { this.commentOnLocalityFormDatas(); }
|
ngOnInit() { this.commentOnLocalityFormDatas(); }
|
||||||
@ -59,10 +63,12 @@ export class CommentsOnLocalityDialogComponent implements OnInit {
|
|||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
this.dialogRef.close();//After Saving the City data then popup close
|
this.dialogRef.close();//After Saving the City data then popup close
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -74,10 +80,13 @@ export class CommentsOnLocalityDialogComponent implements OnInit {
|
|||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
|
|
||||||
this.dialogRef.close();//After Editing the City data then popup close
|
this.dialogRef.close();//After Editing the City data then popup close
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addCommentsOnLocality()" > + Add Comments On Locality</button>
|
<!- <button mat-stroked-button [color]="color" (click)="addCommentsOnLocality()" > + Add Comments On Locality</button> ->
|
||||||
</div>
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addCommentsOnLocality()" matTooltip="Add Comments On Locality" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -63,10 +64,23 @@
|
|||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addCommentsOnLocality()" matTooltip="Add Comments On Locality" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -125,8 +139,9 @@
|
|||||||
</mat-row>
|
</mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
|
|
||||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -18,6 +18,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title> Customer Behaviour </h2>
|
<h2 mat-dialog-title> Customer Behaviour </h2>
|
||||||
<div style="text-align:right;">
|
<div style="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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,9 +43,9 @@ fxLayoutAlign="center">
|
|||||||
<br>
|
<br>
|
||||||
<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 *ngIf="isEmptyObject(_customerBehaviourForm.controls['customer_behaviour_id']);else editreset;" 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 *ngIf="isEmptyObject(_customerBehaviourForm.controls['customer_behaviour_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()"><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_customerBehaviourForm.valid"><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]="!_customerBehaviourForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -19,13 +20,16 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
styleUrls: ['./customer-behaviour-dialog.component.scss']
|
styleUrls: ['./customer-behaviour-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class CustomerBehaviourDialogComponent implements OnInit {
|
export class CustomerBehaviourDialogComponent implements OnInit {
|
||||||
|
color = 'primary';
|
||||||
public _customerBehaviourForm: FormGroup;
|
public _customerBehaviourForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<CustomerBehaviourDialogComponent>,
|
private dialogRef: MatDialogRef<CustomerBehaviourDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -76,10 +80,12 @@ onNoClick(): void {
|
|||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
this.dialogRef.close();//After Saving the data then popup close
|
this.dialogRef.close();//After Saving the data then popup close
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -91,10 +97,12 @@ onNoClick(): void {
|
|||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
|
|
||||||
this.dialogRef.close();//After Editing the City data then popup close
|
this.dialogRef.close();//After Editing the City data then popup close
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addCustomerBehaviour()" > + Add CustomerBehaviour</button>
|
<!- <button mat-stroked-button [color]="color" (click)="addCustomerBehaviour()" > + Add CustomerBehaviour</button> ->
|
||||||
</div>
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addCustomerBehaviour()" matTooltip="Add Customer Behaviour" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
<br>
|
|
||||||
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -62,12 +64,24 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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>
|
</div>
|
||||||
|
-->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addCustomerBehaviour()" matTooltip="Add Customer Behaviour" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -133,3 +147,4 @@
|
|||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|||||||
@ -18,7 +18,8 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 72%;"> Customer Segment </h2>
|
<h2 mat-dialog-title style="width: 72%;"> Customer Segment </h2>
|
||||||
<div style="width: 28%;text-align:right;">
|
<div style="width: 28%;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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -19,13 +20,14 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
styleUrls: ['./customer-segment-dialog.component.scss']
|
styleUrls: ['./customer-segment-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class CustomerSegmentDialogComponent implements OnInit {
|
export class CustomerSegmentDialogComponent implements OnInit {
|
||||||
|
color = 'primary';
|
||||||
public _customerSegmentForm: FormGroup;
|
public _customerSegmentForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<CustomerSegmentDialogComponent>,
|
private dialogRef: MatDialogRef<CustomerSegmentDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -74,10 +76,12 @@ export class CustomerSegmentDialogComponent implements OnInit {
|
|||||||
dataresult=>{
|
dataresult=>{
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
this.dialogRef.close();//After Saving the BRANCH data then popup close
|
this.dialogRef.close();//After Saving the BRANCH data then popup close
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -88,10 +92,12 @@ export class CustomerSegmentDialogComponent implements OnInit {
|
|||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
|
|
||||||
this.dialogRef.close();//After Editing the BRANCH data then popup close
|
this.dialogRef.close();//After Editing the BRANCH data then popup close
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addCustomerSegment()" > + Add CustomerSegment</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addCustomerSegment()" > + Add CustomerSegment</button> ->
|
||||||
</div>
|
</div> -->
|
||||||
<br>
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -68,10 +68,20 @@
|
|||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addCustomerSegment()" matTooltip="Add Customer Segment" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -131,4 +141,4 @@
|
|||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -19,6 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 30%;"> Designation </h2>
|
<h2 mat-dialog-title style="width: 30%;"> Designation </h2>
|
||||||
<div style="width: 40%;"></div>
|
<div style="width: 40%;"></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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -21,11 +22,15 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class DesignationDialogComponent implements OnInit {
|
export class DesignationDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _designationForm: FormGroup;
|
public _designationForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
color="primary";
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<DesignationDialogComponent>,
|
private dialogRef: MatDialogRef<DesignationDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -70,10 +75,12 @@ export class DesignationDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -85,10 +92,12 @@ export class DesignationDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addDesignation()" > + Add Designation</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addDesignation()" > + Add Designation</button> ->
|
||||||
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addDesignation()" matTooltip="Add Designation" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -67,10 +68,21 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addDesignation()" matTooltip="Add Designation" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -129,3 +141,5 @@
|
|||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 30%;">Frequency </h2>
|
<h2 mat-dialog-title style="width: 30%;">Frequency </h2>
|
||||||
<div style="width: 40%;"></div>
|
<div style="width: 40%;"></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" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -40,11 +41,11 @@ fxLayoutAlign="center">
|
|||||||
<br>
|
<br>
|
||||||
<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 *ngIf="isEmptyObject(_frequencyForm.controls['frequency_id']);else editreset;" 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 *ngIf="isEmptyObject(_frequencyForm.controls['frequency_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]="color" matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_frequencyForm.valid"><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]="!_frequencyForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -21,11 +22,15 @@ export class FrequencyDialogComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
public _frequencyForm: FormGroup;
|
public _frequencyForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
color = 'primary';
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<FrequencyDialogComponent>,
|
private dialogRef: MatDialogRef<FrequencyDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -57,10 +62,12 @@ export class FrequencyDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -70,10 +77,12 @@ export class FrequencyDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
// alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addFrequency()" > + Add Frequency</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addFrequency()" > + Add Frequency</button> ->
|
||||||
</div>
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addFrequency()" matTooltip="Add Frequency" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -76,10 +77,21 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addFrequency()" matTooltip="Add Frequency" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -135,4 +147,5 @@
|
|||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title>Industry Classification
|
<h2 mat-dialog-title>Industry Classification
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Industry Classification</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Industry Classification</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -18,7 +18,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 70%;"> Industry Classification </h2>
|
<h2 mat-dialog-title style="width: 70%;"> Industry Classification </h2>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,10 +39,10 @@ fxLayoutAlign="center">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_IndustryClassificationForm.controls['industry_classification_id']);else editreset;" 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 *ngIf="isEmptyObject(_IndustryClassificationForm.controls['industry_classification_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_IndustryClassificationForm.valid"><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]="!_IndustryClassificationForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -20,12 +21,16 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
})
|
})
|
||||||
export class IndustryClassificationDialogComponent implements OnInit {
|
export class IndustryClassificationDialogComponent implements OnInit {
|
||||||
|
|
||||||
|
color = 'primary';
|
||||||
public _IndustryClassificationForm: FormGroup;
|
public _IndustryClassificationForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<IndustryClassificationDialogComponent>,
|
private dialogRef: MatDialogRef<IndustryClassificationDialogComponent>,
|
||||||
private _contactService: MastersService,
|
private _contactService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -73,10 +78,12 @@ onNoClick(): void {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -87,10 +94,12 @@ onNoClick(): void {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,17 +1,28 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addIndustryClassification()" > + Add Industry Classification</button>
|
<!- <button mat-stroked-button [color]="color" (click)="addIndustryClassification()" > + Add Industry Classification</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
|
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addIndustryClassification()" matTooltip="Add Industry Classification" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -68,4 +79,5 @@
|
|||||||
<div class="nocontent">No records found</div>
|
<div class="nocontent">No records found</div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title>Lender Hierarchy
|
<h2 mat-dialog-title>Lender Hierarchy
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@ fxLayoutAlign="center"
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Lender Hierarchy </div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Lender Hierarchy </div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -18,7 +18,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 70%;"> Lender Hierarchy </h2>
|
<h2 mat-dialog-title style="width: 70%;"> Lender Hierarchy </h2>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -38,12 +38,12 @@ fxLayoutAlign="center">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_lenderHierarchyForm.controls['lender_hierarchy_id']);else editreset;" 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 *ngIf="isEmptyObject(_lenderHierarchyForm.controls['lender_hierarchy_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_lenderHierarchyForm.valid"><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]="!_lenderHierarchyForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -17,13 +18,16 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
styleUrls: ['./lender-hierarchy-dialog.component.scss']
|
styleUrls: ['./lender-hierarchy-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class LenderHierarchyDialogComponent implements OnInit {
|
export class LenderHierarchyDialogComponent implements OnInit {
|
||||||
|
color = 'primary';
|
||||||
public _lenderHierarchyForm: FormGroup;
|
public _lenderHierarchyForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<LenderHierarchyDialogComponent>,
|
private dialogRef: MatDialogRef<LenderHierarchyDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -71,10 +75,12 @@ export class LenderHierarchyDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -89,10 +95,12 @@ export class LenderHierarchyDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addLenderHierarchy()" > + Add LenderHierarchy</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addLenderHierarchy()" > + Add LenderHierarchy</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
@ -61,10 +63,21 @@
|
|||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addLenderHierarchy()" matTooltip="Add Lender Hierarchy" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -124,4 +137,5 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title>Occupation of Non earning members
|
<h2 mat-dialog-title>Occupation of Non earning members
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,14 +10,14 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Occupation of Non earning members </div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Occupation of Non earning members </div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="2px"></div>
|
<div fxFlex="2px"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
fxLayout="row">
|
fxLayout="row">
|
||||||
<h2 mat-dialog-title style="width: 85%;">Occupation of Non earning members</h2>
|
<h2 mat-dialog-title style="width: 85%;">Occupation of Non earning members</h2>
|
||||||
<div style="width: 10%;text-align:right;">
|
<div style="width: 10%;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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -38,12 +38,12 @@ fxLayout="row">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_occupationForm.controls['occupation_non_earning_member_id']);else editreset;" 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 *ngIf="isEmptyObject(_occupationForm.controls['occupation_non_earning_member_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_occupationForm.valid"><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]="!_occupationForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -18,13 +19,16 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
})
|
})
|
||||||
export class MembersOccupationDialogComponent implements OnInit {
|
export class MembersOccupationDialogComponent implements OnInit {
|
||||||
|
|
||||||
|
color = 'primary';
|
||||||
public _occupationForm: FormGroup;
|
public _occupationForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<MembersOccupationDialogComponent>,
|
private dialogRef: MatDialogRef<MembersOccupationDialogComponent>,
|
||||||
private _memberService: MastersService,
|
private _memberService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
occupationFormDatas(){
|
occupationFormDatas(){
|
||||||
this._occupationForm = this._formBuilder.group({
|
this._occupationForm = this._formBuilder.group({
|
||||||
@ -56,10 +60,12 @@ export class MembersOccupationDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -70,10 +76,12 @@ export class MembersOccupationDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addMemberOccupation()" > + Add Member's Occupation</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addMemberOccupation()" > + Add Member's Occupation</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
@ -80,10 +81,21 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addMemberOccupation()" matTooltip="Add Member's Occupation" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -143,4 +155,5 @@
|
|||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,16 +1,23 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<!-- <button mat-raised-button [color]="color" (click)="addPDAllocationType()" > + Add PDAllocationType</button> -->
|
<!-- <button mat-raised-button [color]="color" (click)="addPDAllocationType()" > + Add PDAllocationType</button> ->
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -81,3 +88,4 @@
|
|||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
MatTableDataSource } from '@angular/material';
|
MatTableDataSource } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../service/masters/masters.service';
|
import { MastersService } from '../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
/** Model */
|
/** Model */
|
||||||
import { PdAllocationType } from '../../model/pd';
|
import { PdAllocationType } from '../../model/pd';
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ export class PdAllocationTypeListComponent implements OnInit {
|
|||||||
noRecordFound: boolean = false;
|
noRecordFound: boolean = false;
|
||||||
dataSourceRecords = null;
|
dataSourceRecords = null;
|
||||||
color = 'primary';
|
color = 'primary';
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
public dataLength: number;
|
public dataLength: number;
|
||||||
public dataSource = new MatTableDataSource();
|
public dataSource = new MatTableDataSource();
|
||||||
@ -39,8 +40,9 @@ export class PdAllocationTypeListComponent implements OnInit {
|
|||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private _MastersService: MastersService) {
|
constructor(private _MastersService: MastersService,notifier: NotifierService) {
|
||||||
this.getPDAllocationType();
|
this.getPDAllocationType();
|
||||||
|
this.notifier = notifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
@ -106,10 +108,12 @@ export class PdAllocationTypeListComponent implements OnInit {
|
|||||||
|
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
//this.getPDAllocationType();
|
//this.getPDAllocationType();
|
||||||
alert("Done");
|
//alert("Done");
|
||||||
|
this.notifier.notify('success', 'Done.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//console.log('at last Completed Section');
|
//console.log('at last Completed Section');
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title>PD Location Approach
|
<h2 mat-dialog-title>PD Location Approach
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD Location Approach</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD Location Approach</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="2px" fxFlexOrder="2"></div>
|
<div fxFlex="2px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -19,7 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 70%;">PD Location Approach </h2>
|
<h2 mat-dialog-title style="width: 70%;">PD Location Approach </h2>
|
||||||
|
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -41,12 +41,12 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_pdLocationApproachForm.controls['pd_location_approach_id']);else editreset;" 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 *ngIf="isEmptyObject(_pdLocationApproachForm.controls['pd_location_approach_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_pdLocationApproachForm.valid"><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]="!_pdLocationApproachForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -17,13 +18,16 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
styleUrls: ['./pd-location-approach-dialog.component.scss']
|
styleUrls: ['./pd-location-approach-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class PdLocationApproachDialogComponent implements OnInit {
|
export class PdLocationApproachDialogComponent implements OnInit {
|
||||||
|
color = 'primary';
|
||||||
public _pdLocationApproachForm: FormGroup;
|
public _pdLocationApproachForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<PdLocationApproachDialogComponent>,
|
private dialogRef: MatDialogRef<PdLocationApproachDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//pd_location_approach_id, description, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//pd_location_approach_id, description, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
@ -69,10 +73,12 @@ export class PdLocationApproachDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -86,10 +92,12 @@ export class PdLocationApproachDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addPdLocationApproach()" > + Add Pd Location Approach</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addPdLocationApproach()" > + Add Pd Location Approach</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
@ -63,10 +64,21 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addPdLocationApproach()" matTooltip="Add Pd Location Approach" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -122,3 +134,4 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|||||||
@ -1,19 +1,26 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<!-- <button mat-raised-button color="primary" (click)="addPDAllocationType()" > + Add PDAllocationType</button> -->
|
<button mat-raised-button color="primary" (click)="addPDAllocationType()" > + Add PDAllocationType</button> -->
|
||||||
<!-- displayedColumns = ['','fk_pd_status_id',
|
<!-- displayedColumns = ['','fk_pd_status_id',
|
||||||
'sms_lender','sms_pdofficer','sms_pdincharge',
|
'sms_lender','sms_pdofficer','sms_pdincharge',
|
||||||
'mail_lender', 'mail_pdincharge','mail_pdofficer']; -->
|
'mail_lender', 'mail_pdincharge','mail_pdofficer'];
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -134,3 +141,4 @@
|
|||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import 'rxjs/add/operator/map';
|
|||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../service/masters/masters.service';
|
import { MastersService } from '../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-pd-notification-list',
|
selector: 'app-pd-notification-list',
|
||||||
@ -29,7 +30,7 @@ export class PdNotificationListComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
notificationData = null;
|
notificationData = null;
|
||||||
noRecordFound: boolean = false;
|
noRecordFound: boolean = false;
|
||||||
|
private notifier: NotifierService;
|
||||||
public dataLength: number;
|
public dataLength: number;
|
||||||
public dataSource = new MatTableDataSource();
|
public dataSource = new MatTableDataSource();
|
||||||
|
|
||||||
@ -38,9 +39,10 @@ export class PdNotificationListComponent implements OnInit {
|
|||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,notifier: NotifierService,
|
||||||
private _MastersService: MastersService) {
|
private _MastersService: MastersService) {
|
||||||
this.getPdNotification();
|
this.getPdNotification();
|
||||||
|
this.notifier = notifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
@ -126,6 +128,12 @@ export class PdNotificationListComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
//console.log(this.notificationData);
|
//console.log(this.notificationData);
|
||||||
this.dataLength = data.records.length;
|
this.dataLength = data.records.length;
|
||||||
|
// if(data.records.length >= 1){
|
||||||
|
// this.notificationData = this.notificationData.map((val, i)=>{
|
||||||
|
// val['serialno'] = i + 1;
|
||||||
|
// return val;
|
||||||
|
// })
|
||||||
|
// }
|
||||||
this.dataSource.data = this.notificationData;
|
this.dataSource.data = this.notificationData;
|
||||||
}else{
|
}else{
|
||||||
this.noRecordFound = true;
|
this.noRecordFound = true;
|
||||||
@ -184,10 +192,13 @@ SaveData(dataSource){
|
|||||||
this._MastersService.saveAllPDNotification(PDNotificationArray).subscribe(
|
this._MastersService.saveAllPDNotification(PDNotificationArray).subscribe(
|
||||||
dataresult => {
|
dataresult => {
|
||||||
if(dataresult.dataStatus == true){
|
if(dataresult.dataStatus == true){
|
||||||
alert('Updated Successfully !');
|
//alert('Updated Successfully !');
|
||||||
this.getPdNotification();
|
this.getPdNotification();
|
||||||
|
this.notifier.notify('success', 'Record Updated Successfully.!');
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
alert('Sorry Try Again !');
|
//alert('Sorry Try Again !');
|
||||||
|
this.notifier.notify('warning', 'Sorry Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 70%;"> PD Team Details </h2>
|
<h2 mat-dialog-title style="width: 70%;"> PD Team Details </h2>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -75,14 +75,14 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<!-- <button *ngIf="_pdTeamForm.controls['pdteam_id']);else Editreset;" 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 *ngIf="_pdTeamForm.controls['pdteam_id']);else Editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_pdTeamForm.controls['pdteam_id']);else Editreset;"
|
<button *ngIf="isEmptyObject(_pdTeamForm.controls['pdteam_id']);else Editreset;"
|
||||||
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForAdd()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForAdd()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #Editreset>
|
<ng-template #Editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<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>
|
<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-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -11,6 +11,7 @@ import { MatDialog,
|
|||||||
/** 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';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-pd-team-dialog',
|
selector: 'app-pd-team-dialog',
|
||||||
@ -22,6 +23,8 @@ import { PdTeamService } from '../../../../service/masters/pd-team.service';
|
|||||||
export class PdTeamDialogComponent implements OnInit {
|
export class PdTeamDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _pdTeamForm: FormGroup;
|
public _pdTeamForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
color = 'primary';
|
||||||
citydatas: any[];
|
citydatas: any[];
|
||||||
lenderdatas: any[];
|
lenderdatas: any[];
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
@ -33,11 +36,13 @@ AllPDTeamMapData: any[];
|
|||||||
PDTeamMaplen:any = 0;
|
PDTeamMaplen:any = 0;
|
||||||
|
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<PdTeamDialogComponent>,
|
private dialogRef: MatDialogRef<PdTeamDialogComponent>,
|
||||||
private _pdTeamService: PdTeamService,
|
private _pdTeamService: PdTeamService,
|
||||||
private _masterService: MastersService,
|
private _masterService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -261,11 +266,13 @@ Object.keys(pdTeamFormValues).forEach(
|
|||||||
//this._memberService.addMasterDetails(OccupationFormValues,'OCCUPATIONMEMBERS').subscribe(
|
//this._memberService.addMasterDetails(OccupationFormValues,'OCCUPATIONMEMBERS').subscribe(
|
||||||
this._pdTeamService.addPdTeamDetail(pdTeamFormValues).subscribe(
|
this._pdTeamService.addPdTeamDetail(pdTeamFormValues).subscribe(
|
||||||
dataresult=>{
|
dataresult=>{
|
||||||
|
console.log(dataresult);
|
||||||
if (dataresult.dataStatus == true){
|
if (dataresult.dataStatus == true){
|
||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
// alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
alert("SomeThing Wents Wrong Try Again !");
|
||||||
@ -283,10 +290,12 @@ if (dataresult.dataStatus == true){
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addPdTeam()" > + Add PD Team</button>
|
<!- <button mat-stroked-button [color]="color" (click)="addPdTeam()" > + Add PD Team</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
@ -71,10 +72,20 @@
|
|||||||
|
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addPdTeam()" matTooltip="Add PD Team" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -134,4 +145,5 @@ onclick="return confirm('Are you sure?')">
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title>PD TYPE
|
<h2 mat-dialog-title>PD TYPE
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD type</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD type</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2" ></div>
|
<div fxFlex="15px" fxFlexOrder="2" ></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -41,12 +41,12 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_pdTypeForm.controls['pd_type_id']);else editreset;" 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 *ngIf="isEmptyObject(_pdTypeForm.controls['pd_type_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_pdTypeForm.valid"><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]="!_pdTypeForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,8 @@ import { MatDialog,
|
|||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
templateUrl: './pd-type-dialog.component.html',
|
templateUrl: './pd-type-dialog.component.html',
|
||||||
@ -19,11 +21,15 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class PdTypeDialogComponent implements OnInit {
|
export class PdTypeDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _pdTypeForm: FormGroup;
|
public _pdTypeForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
color = 'primary';
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<PdTypeDialogComponent>,
|
private dialogRef: MatDialogRef<PdTypeDialogComponent>,
|
||||||
private _pdTypeService: MastersService,
|
private _pdTypeService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -67,10 +73,12 @@ export class PdTypeDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -83,10 +91,12 @@ export class PdTypeDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addPDType()" > + Add PDType</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addPDType()" > + Add PDType</button> --
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div> <br> -->
|
</div> <br> -->
|
||||||
@ -61,10 +62,22 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addPDType()" matTooltip="Add PD Type" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -121,3 +134,4 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2 mat-dialog-title> Product Details
|
<h2 mat-dialog-title> Product Details
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Product Details</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Product Details</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -45,12 +45,12 @@ fxLayoutAlign="center">
|
|||||||
</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" 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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_productMasterForm.controls['product_id']);else editreset;" 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 *ngIf="isEmptyObject(_productMasterForm.controls['product_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_productMasterForm.valid"><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]="!_productMasterForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -20,11 +21,14 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class ProductDialogComponent implements OnInit {
|
export class ProductDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _productMasterForm: FormGroup;
|
public _productMasterForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<ProductDialogComponent>,
|
private dialogRef: MatDialogRef<ProductDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
|
this.notifier = notifier;
|
||||||
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.productFormDatas();
|
this.productFormDatas();
|
||||||
@ -61,10 +65,12 @@ export class ProductDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -75,10 +81,12 @@ export class ProductDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,19 +1,31 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addProductMaster()" > + Add Product</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addProductMaster()" > + Add Product</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
<br> -->
|
<br> -->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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>
|
</div>
|
||||||
|
-->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addProductMaster()" matTooltip="Add Product" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
@ -343,4 +355,5 @@
|
|||||||
<mat-paginator [pageSizeOptions]="[5, 10, 15, 20, 25]" showFirstLastButtons></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[5, 10, 15, 20, 25]" showFirstLastButtons></mat-paginator>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -22,11 +22,11 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
|
|
||||||
<button *ngIf="isEmptyObject(_questionCategoryForm.controls['question_categroy_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="ADD Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
<button *ngIf="isEmptyObject(_questionCategoryForm.controls['question_categroy_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="ADD Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetedited()" ><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)="onResetedited()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_questionCategoryForm.valid"><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]="!_questionCategoryForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { FormBuilder,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-question-category-dialog',
|
selector: 'app-question-category-dialog',
|
||||||
@ -19,11 +20,12 @@ import { FormBuilder,
|
|||||||
export class QuestionCategoryDialogComponent implements OnInit {
|
export class QuestionCategoryDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _questionCategoryForm: FormGroup;
|
public _questionCategoryForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<QuestionCategoryDialogComponent>,
|
private dialogRef: MatDialogRef<QuestionCategoryDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
ngOnInit() { this.formfunction(); }
|
ngOnInit() { this.formfunction(); }
|
||||||
|
|
||||||
@ -52,10 +54,12 @@ export class QuestionCategoryDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
// alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -66,10 +70,12 @@ export class QuestionCategoryDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
// alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,20 +1,32 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!--<div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addQuestionCategory()" > + Add Question Category</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addQuestionCategory()" > + Add Question Category</button> ->
|
||||||
</div>
|
|
||||||
<br>
|
</div>-->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
<br> -->
|
<br> -->
|
||||||
<br>
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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>
|
</div>
|
||||||
|
-->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addQuestionCategory()" matTooltip="Add Question Category" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<mat-table [dataSource]="dataSource" matSort >
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
<ng-container matColumnDef="serialno">
|
<ng-container matColumnDef="serialno">
|
||||||
@ -66,4 +78,5 @@
|
|||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2 mat-dialog-title>Region
|
<h2 mat-dialog-title>Region
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Region</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Region</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -19,7 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 35%;"> Region </h2>
|
<h2 mat-dialog-title style="width: 35%;"> Region </h2>
|
||||||
<div style="width: 32%;"></div>
|
<div style="width: 32%;"></div>
|
||||||
<div style="width: 33%;text-align:right;">
|
<div style="width: 33%;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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -41,12 +41,12 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
|
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_regionsForm.controls['region_id']);else editreset;" 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 *ngIf="isEmptyObject(_regionsForm.controls['region_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_regionsForm.valid"><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]="!_regionsForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -20,11 +21,12 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class RegionsDialogComponent implements OnInit {
|
export class RegionsDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _regionsForm: FormGroup;
|
public _regionsForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<RegionsDialogComponent>,
|
private dialogRef: MatDialogRef<RegionsDialogComponent>,
|
||||||
private _regionsService: MastersService,
|
private _regionsService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -66,10 +68,12 @@ onNoClick(): void {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -81,10 +85,12 @@ onNoClick(): void {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addregions()" > + Add regions</button>
|
<!-- <button mat-stroked-button [color]="color" > + Add regions</button> --
|
||||||
</div>
|
|
||||||
<br>
|
</div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -66,10 +67,21 @@
|
|||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addregions()" matTooltip="Add Region" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -128,4 +140,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2 mat-dialog-title>Relation Ship
|
<h2 mat-dialog-title>Relation Ship
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Relation Ship</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Relation Ship</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="2px" fxFlexOrder="2"></div>
|
<div fxFlex="2px" fxFlexOrder="2"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -40,12 +40,12 @@ fxLayoutAlign="center">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_relationShipForm.controls['relationship_id']);else editreset;" 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 *ngIf="isEmptyObject(_relationShipForm.controls['relationship_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_relationShipForm.valid"><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]="!_relationShipForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -22,11 +23,12 @@ export class RelationShipDialogComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
public _relationShipForm: FormGroup;
|
public _relationShipForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef< RelationShipDialogComponent>,
|
private dialogRef: MatDialogRef< RelationShipDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -68,10 +70,12 @@ onNoClick(): void {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -83,10 +87,12 @@ onNoClick(): void {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addRelationShip()" > + Add Relation ship</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addRelationShip()" > + Add Relation ship</button> ->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -82,10 +83,22 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addRelationShip()" matTooltip="Add Relation ship" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -144,4 +157,5 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2 mat-dialog-title>State
|
<h2 mat-dialog-title>State
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">State</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">State</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -19,7 +19,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 30%;"> State </h2>
|
<h2 mat-dialog-title style="width: 30%;"> State </h2>
|
||||||
<div style="width: 40%;"></div>
|
<div style="width: 40%;"></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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -65,12 +65,12 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_statesForm.controls['state_id']);else editreset;" 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 *ngIf="isEmptyObject(_statesForm.controls['state_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_statesForm.valid"><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]="!_statesForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
import { States } from '../../../model/states';
|
import { States } from '../../../model/states';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -20,14 +21,16 @@ import { States } from '../../../model/states';
|
|||||||
export class StatesDialogComponent implements OnInit {
|
export class StatesDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _statesForm: FormGroup;
|
public _statesForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
|
color = 'primary';
|
||||||
regionDatas : any[];
|
regionDatas : any[];
|
||||||
foundBooks: any;
|
foundBooks: any;
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<StatesDialogComponent>,
|
private dialogRef: MatDialogRef<StatesDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -88,10 +91,12 @@ export class StatesDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -103,10 +108,12 @@ export class StatesDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;">
|
||||||
<button mat-stroked-button color="primary" (click)="addState()" > + Add State</button>
|
<!-- <button mat-stroked-button color="primary" (click)="addState()" > + Add State</button> ->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br> -->
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -102,10 +103,21 @@
|
|||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addState()" matTooltip="Add State" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -168,4 +180,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2> Sub Product Details
|
<h2> Sub Product Details
|
||||||
<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 " [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -11,7 +11,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Sub Product Details</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Sub Product Details</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div> -->
|
</div> -->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -19,7 +19,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 80%;"> Sub Product Details </h2>
|
<h2 mat-dialog-title style="width: 80%;"> Sub Product Details </h2>
|
||||||
<div style="width: 20%;text-align:right;">
|
<div style="width: 20%;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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -72,12 +72,12 @@ fxLayoutAlign="center">
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_subProductMasterForm.controls['subproduct_id']);else editreset;" 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 *ngIf="isEmptyObject(_subProductMasterForm.controls['subproduct_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_subProductMasterForm.valid"><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]="!_subProductMasterForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-dialog-content>
|
</mat-dialog-content>
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import { MatDialog,
|
|||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -22,13 +23,15 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class SubProductDialogComponent implements OnInit {
|
export class SubProductDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _subProductMasterForm: FormGroup;
|
public _subProductMasterForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
productDatas : any[];
|
productDatas : any[];
|
||||||
errorMessage:string;
|
errorMessage:string;
|
||||||
|
color = 'primary';
|
||||||
|
|
||||||
constructor(private _formBuilder: FormBuilder,
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<SubProductDialogComponent>,
|
private dialogRef: MatDialogRef<SubProductDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.subProductFormDatas();
|
this.subProductFormDatas();
|
||||||
@ -82,10 +85,12 @@ export class SubProductDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -97,10 +102,12 @@ export class SubProductDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<button mat-stroked-button [color]="color" (click)="addSubProductMaster()" > + Add Sub Product</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addSubProductMaster()" > + Add Sub Product</button> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
@ -92,10 +93,21 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addSubProductMaster()" matTooltip="Add Sub Product" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -158,4 +170,5 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="ml-xs mr-xs">
|
<!-- <div class="ml-xs mr-xs">
|
||||||
<h2 mat-dialog-title>Title
|
<h2 mat-dialog-title>Title
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
@ -10,7 +10,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Title</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Title</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div>
|
<div fxFlex="15px" fxFlexOrder="2"></div>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -40,11 +40,11 @@ fxLayoutAlign="center">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="row" style="text-align:right;">
|
<div class="row" style="text-align:right;">
|
||||||
<button *ngIf="isEmptyObject(_titleForm.controls['title_id']);else editreset;" 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 *ngIf="isEmptyObject(_titleForm.controls['title_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_titleForm.valid"><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]="!_titleForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -22,11 +23,12 @@ export class TitleDialogComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
public _titleForm: FormGroup;
|
public _titleForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<TitleDialogComponent>,
|
private dialogRef: MatDialogRef<TitleDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -70,10 +72,12 @@ export class TitleDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -84,10 +88,12 @@ export class TitleDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
|
||||||
<button mat-stroked-button [color]="color" (click)="addTitle()" > + Add Title</button>
|
<mat-card-content>
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -82,10 +80,22 @@
|
|||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addTitle()" matTooltip="Add Title" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -143,4 +153,5 @@
|
|||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <div class="mb-1">
|
||||||
<h2 mat-dialog-title> Type of activity
|
<h2 mat-dialog-title> Type of activity
|
||||||
<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" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
@ -11,7 +11,7 @@
|
|||||||
fxLayoutGap="35px"
|
fxLayoutGap="35px"
|
||||||
fxLayoutGap.xs="0">
|
fxLayoutGap.xs="0">
|
||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Type of activity</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Type of activity</div>
|
||||||
<div fxFlex="20px" fxFlexOrder="3" style="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></div>
|
<div fxFlex="20px" fxFlexOrder="3" style="text-align:right;"><button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" [color]='color' matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px" fxFlexOrder="2"></div> -->
|
<div fxFlex="15px" fxFlexOrder="2"></div> -->
|
||||||
|
|
||||||
<div class="ml-xs mr-xs" style="width: 100%;"
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
@ -20,7 +20,7 @@ fxLayoutAlign="center">
|
|||||||
<h2 mat-dialog-title style="width: 80%;"> Type of activity </h2>
|
<h2 mat-dialog-title style="width: 80%;"> Type of activity </h2>
|
||||||
|
|
||||||
<div style="width: 20%;text-align:right;">
|
<div style="width: 20%;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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -40,12 +40,12 @@ fxLayoutAlign="center">
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<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" [color]='color' matTooltip="Reset" matTooltipPosition="above" type="reset" ><mat-icon>settings_backup_restore</mat-icon></button> -->
|
||||||
<button *ngIf="isEmptyObject(_activityMasterForm.controls['type_of_activity_id']);else editreset;" 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 *ngIf="isEmptyObject(_activityMasterForm.controls['type_of_activity_id']);else editreset;" 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>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_activityMasterForm.valid"><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]="!_activityMasterForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -22,11 +23,12 @@ import { MastersService } from '../../../../service/masters/masters.service';
|
|||||||
export class ActivityDialogComponent implements OnInit {
|
export class ActivityDialogComponent implements OnInit {
|
||||||
|
|
||||||
public _activityMasterForm: FormGroup;
|
public _activityMasterForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<ActivityDialogComponent>,
|
private dialogRef: MatDialogRef<ActivityDialogComponent>,
|
||||||
private _MastersService: MastersService,
|
private _MastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -61,10 +63,12 @@ onSubmit() {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -76,10 +80,12 @@ onSubmit() {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
|
||||||
<div style="text-align: right;">
|
<!-- <div style="text-align: right;"> -->
|
||||||
<button mat-stroked-button [color]="color" (click)="addActivity()" > + Add Activity</button>
|
<!-- <button mat-stroked-button [color]="color" (click)="addActivity()" > + Add Activity()</button> -->
|
||||||
</div>
|
|
||||||
<br>
|
<!-- </div> -->
|
||||||
|
<mat-card-content>
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -75,10 +76,20 @@
|
|||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addActivity()" matTooltip="Add Activity()" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -136,4 +147,5 @@
|
|||||||
|
|
||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -18,7 +18,7 @@ fxLayout="row"
|
|||||||
fxLayoutAlign="center">
|
fxLayoutAlign="center">
|
||||||
<h2 mat-dialog-title style="width: 70%;"> Unit of Measurement </h2>
|
<h2 mat-dialog-title style="width: 70%;"> Unit of Measurement </h2>
|
||||||
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -39,11 +39,11 @@ fxLayoutAlign="center">
|
|||||||
<br>
|
<br>
|
||||||
<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 *ngIf="isEmptyObject(_uomForm.controls['uom_id']);else editreset;" 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 *ngIf="isEmptyObject(_uomForm.controls['uom_id']);else editreset;" mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="reset" [color]="color"><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
<ng-template #editreset>
|
<ng-template #editreset>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Reset" matTooltipPosition="above" type="button" (click)="onResetForEdit()" ><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()" ><mat-icon>settings_backup_restore</mat-icon></button>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Save" matTooltipPosition="above" type="submit" [disabled]="!_uomForm.valid"><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]="!_uomForm.valid"><mat-icon>save</mat-icon></button>
|
||||||
<!-- <button mat-button >RESET</button> -->
|
<!-- <button mat-button >RESET</button> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -12,6 +12,7 @@ import { MatDialog,
|
|||||||
MAT_DIALOG_DATA } from '@angular/material';
|
MAT_DIALOG_DATA } from '@angular/material';
|
||||||
/** Service */
|
/** Service */
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
|
import { NotifierService } from 'angular-notifier';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-jazz-dialog',
|
selector: 'app-jazz-dialog',
|
||||||
@ -22,11 +23,12 @@ export class UomDialogComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
public _uomForm: FormGroup;
|
public _uomForm: FormGroup;
|
||||||
|
private notifier: NotifierService;
|
||||||
constructor(private _formBuilder: FormBuilder,
|
color = 'primary';
|
||||||
|
constructor(private _formBuilder: FormBuilder,notifier: NotifierService,
|
||||||
private dialogRef: MatDialogRef<UomDialogComponent>,
|
private dialogRef: MatDialogRef<UomDialogComponent>,
|
||||||
private _mastersService: MastersService,
|
private _mastersService: MastersService,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { this.notifier = notifier; }
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -73,10 +75,12 @@ export class UomDialogComponent implements OnInit {
|
|||||||
//After Saving the data then popup close
|
//After Saving the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Dispaly saving Datas
|
//Need To Dispaly saving Datas
|
||||||
alert("Data Saved Successfully");
|
//alert("Data Saved Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Saved Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -88,10 +92,12 @@ export class UomDialogComponent implements OnInit {
|
|||||||
//After Editing the data then popup close
|
//After Editing the data then popup close
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
//Need To Display saving Datas
|
//Need To Display saving Datas
|
||||||
alert("Data Edited Successfully");
|
//alert("Data Edited Successfully");
|
||||||
|
this.notifier.notify('success', 'Record Edited Successfully.!');
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert("SomeThing Wents Wrong Try Again !");
|
//alert("SomeThing Wents Wrong Try Again !");
|
||||||
|
this.notifier.notify('warning', 'SomeThing Wents Wrong Try Again !');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,9 @@
|
|||||||
<mat-card-content>
|
<!-- <div style="text-align: right;">
|
||||||
<div style="text-align: right;">
|
<!- <button mat-stroked-button [color]="color" (click)="addUOM()" > + Add UOM</button> ->
|
||||||
<button mat-stroked-button [color]="color" (click)="addUOM()" > + Add UOM</button>
|
<button mat-fab class="mr-1 mb-1" [color]="color" (click)="addUOM()" matTooltip="Add UOM" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div> -->
|
||||||
<br>
|
<mat-card-content>
|
||||||
|
|
||||||
<!-- <div *ngIf="loader">
|
<!-- <div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" [color]="color" class="mb-1"></mat-progress-bar>
|
||||||
</div>
|
</div>
|
||||||
@ -77,10 +78,21 @@
|
|||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
<div *ngIf="!noRecordFound" class="filter-container mat-elevation-z8">
|
||||||
<div class="filter-header">
|
<!-- <div class="filter-header">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<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> -->
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="filter-header">
|
||||||
|
<div class="ml-xs mr-xs" style="width: 90%;">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addUOM()" matTooltip="Add UOM" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -138,4 +150,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent">No records found</div>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
<notifier-container></notifier-container>
|
||||||
@ -1,31 +1,21 @@
|
|||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title><span> Masters </span></mat-card-title>
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-1">
|
||||||
<mat-card-subtitle> Pick up for Master</mat-card-subtitle>
|
|
||||||
|
|
||||||
<mat-card-content>
|
|
||||||
|
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
|
||||||
<div class="ml-xs mr-xs" style="width: 30%;">
|
<div class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<mat-card-title><span> Masters </span></mat-card-title>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ml-xs mr-xs" style="width: 30%;">
|
<div class="ml-xs mr-xs" style="width: 30%;">
|
||||||
|
<br>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select color="accent" placeholder="Select" #singleSelect required [formControl]="masterCtrl">
|
<mat-select color="accent" placeholder="Select" #singleSelect required [formControl]="masterCtrl">
|
||||||
<ngx-mat-select-search [formControl]="masterFilterCtrl" ></ngx-mat-select-search>
|
<ngx-mat-select-search [formControl]="masterFilterCtrl" ></ngx-mat-select-search>
|
||||||
<mat-option *ngFor="let master of filteredMasters | async" [value]="master.id">
|
<mat-option *ngFor="let master of filteredMasters | async" [value]="master.id">
|
||||||
{{master.name}}
|
{{master.name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
<mat-error *ngIf="masterCtrl.value ==''" class="mat-text-warn">You must Pickup Master Name.</mat-error>
|
||||||
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-card-content>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div *ngIf="masterCtrl.value =='master-1'" >
|
<div *ngIf="masterCtrl.value =='master-1'" >
|
||||||
<app-industry_classification-list></app-industry_classification-list>
|
<app-industry_classification-list></app-industry_classification-list>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
mat-form-field{
|
mat-form-field{
|
||||||
width:100%;
|
width:100%;
|
||||||
}
|
}
|
||||||
|
.mat-card-title{
|
||||||
|
font-size: 25px !important;
|
||||||
|
}
|
||||||
@ -23,6 +23,7 @@ import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
|
|||||||
|
|
||||||
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
||||||
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
||||||
|
import { NotifierModule, NotifierOptions } from 'angular-notifier';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
|
||||||
import 'hammerjs';
|
import 'hammerjs';
|
||||||
@ -91,6 +92,49 @@ import { MastersRoutes } from './masters.routing';
|
|||||||
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';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Custom angular notifier options
|
||||||
|
*/
|
||||||
|
const customNotifierOptions: NotifierOptions = {
|
||||||
|
position: {
|
||||||
|
horizontal: {
|
||||||
|
position: 'right',
|
||||||
|
distance: 12
|
||||||
|
},
|
||||||
|
vertical: {
|
||||||
|
position: 'top',
|
||||||
|
distance: 32,
|
||||||
|
gap: 10
|
||||||
|
}
|
||||||
|
},
|
||||||
|
theme: 'material',
|
||||||
|
behaviour: {
|
||||||
|
autoHide: 5000,
|
||||||
|
onClick: 'hide',
|
||||||
|
onMouseover: 'pauseAutoHide',
|
||||||
|
showDismissButton: true,
|
||||||
|
stacking: 4
|
||||||
|
},
|
||||||
|
animations: {
|
||||||
|
enabled: true,
|
||||||
|
show: {
|
||||||
|
preset: 'slide',
|
||||||
|
speed: 300,
|
||||||
|
easing: 'ease'
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
preset: 'fade',
|
||||||
|
speed: 300,
|
||||||
|
easing: 'ease',
|
||||||
|
offset: 50
|
||||||
|
},
|
||||||
|
shift: {
|
||||||
|
speed: 300,
|
||||||
|
easing: 'ease'
|
||||||
|
},
|
||||||
|
overlap: 150
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -116,6 +160,7 @@ import { PdTeamService } from '../service/masters/pd-team.service';
|
|||||||
MatSortModule,
|
MatSortModule,
|
||||||
MatSlideToggleModule,
|
MatSlideToggleModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
|
NotifierModule.withConfig(customNotifierOptions),
|
||||||
MatCheckboxModule
|
MatCheckboxModule
|
||||||
],
|
],
|
||||||
declarations: [MastersComponent,
|
declarations: [MastersComponent,
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<ng-container matColumnDef="SerialNo">
|
<ng-container matColumnDef="SerialNo">
|
||||||
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
<mat-cell *matCellDef="let us; let i = index;"> {{us.SerialNo}} </mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container matColumnDef="FullName">
|
<ng-container matColumnDef="FullName">
|
||||||
|
|||||||
@ -70,6 +70,12 @@ export class UserListComponent implements OnInit {
|
|||||||
console.log(data.records.length);
|
console.log(data.records.length);
|
||||||
this.dataLength = data.records.length;
|
this.dataLength = data.records.length;
|
||||||
this.dataSource.data = this.userdata;
|
this.dataSource.data = this.userdata;
|
||||||
|
if(data.records.length >= 1){
|
||||||
|
this.userdata = this.userdata.map((val, i)=>{
|
||||||
|
val['SerialNo'] = i + 1;
|
||||||
|
return val;
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user