master detail changes
This commit is contained in:
parent
938c5d8ec2
commit
1a86382a15
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<div class="example-container mat-elevation-z8">
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
<mat-table *ngIf="dataSource.length > 0" #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>
|
||||||
@ -53,12 +53,11 @@
|
|||||||
</mat-row>
|
</mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
|
|
||||||
<p *ngIf="dataSource.length === 0">No records found</p>
|
<!-- <div *ngIf="dataSource.length === 0">No records found</div> -->
|
||||||
|
|
||||||
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
</div>
|
</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> -->
|
||||||
@ -12,8 +12,7 @@ import { map } from 'rxjs/operators';
|
|||||||
|
|
||||||
import { DataSource } from '@angular/cdk/table';
|
import { DataSource } from '@angular/cdk/table';
|
||||||
import { of as observableOf, merge } from 'rxjs';
|
import { of as observableOf, merge } from 'rxjs';
|
||||||
// import { Bra } from './../branch-list';
|
|
||||||
// BranchListComponent
|
|
||||||
import { MastersService } from '../../../../service/masters/masters.service';
|
import { MastersService } from '../../../../service/masters/masters.service';
|
||||||
import { BranchDialogComponent } from '../branch-dialog/branch-dialog.component';
|
import { BranchDialogComponent } from '../branch-dialog/branch-dialog.component';
|
||||||
import { Branch,States,City } from '../../../model/branch';
|
import { Branch,States,City } from '../../../model/branch';
|
||||||
@ -45,7 +44,10 @@ export class BranchListComponent implements OnInit {
|
|||||||
data => {
|
data => {
|
||||||
this.userData = data.records;
|
this.userData = data.records;
|
||||||
// alert(this.userData);
|
// alert(this.userData);
|
||||||
this.dataLength = data.records.length;
|
if(data.records === ''){
|
||||||
|
this.dataLength = data.records.length;
|
||||||
|
}else{
|
||||||
|
this.dataLength = 0}
|
||||||
this.dataSource.data = this.userData;
|
this.dataSource.data = this.userData;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>City
|
<h2 mat-dialog-title>City
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,15 +12,23 @@
|
|||||||
<div class="mat-dialog-title" fxFlex="15px">City</div>
|
<div class="mat-dialog-title" fxFlex="15px">City</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex></div>
|
<div fxFlex></div>
|
||||||
|
</div> -->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> City </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_cityForm" (submit)="onSubmit()">
|
<form [formGroup]="_cityForm" (submit)="onSubmit()">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="Pick Up State Name" required [formControl]="_cityForm.controls['fk_state_id']">
|
<mat-select placeholder="Pick Up State Name" required [formControl]="_cityForm.controls['fk_state_id']">
|
||||||
<mat-option *ngFor="let sd of stateDatas" [value]="sd.state_id">{{ sd.name }}</mat-option>
|
<mat-option *ngFor="let sd of stateDatas" [value]="sd.state_id">{{ sd.name }}</mat-option>
|
||||||
@ -29,7 +37,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<input matInput type="text" placeholder="City Name" required [formControl]="_cityForm.controls['name']">
|
<input matInput type="text" placeholder="City Name" required [formControl]="_cityForm.controls['name']">
|
||||||
<mat-error *ngIf="!_cityForm.controls['name'].valid && _cityForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_cityForm.controls['name'].valid && _cityForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
<!-- displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
||||||
<div class="example-container mat-elevation-z8">
|
<div class="example-container mat-elevation-z8">
|
||||||
<table>-->
|
<table>
|
||||||
<div datatable>
|
<div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div> -->
|
||||||
|
|
||||||
<!-- <div>
|
<!-- <div>
|
||||||
<!-- <mat-table [dataSource]="dataSource"> ->
|
<!-- <mat-table [dataSource]="dataSource"> ->
|
||||||
@ -71,6 +71,55 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
.mat-table {
|
.mat-table {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
@ -66,4 +66,25 @@
|
|||||||
.button{
|
.button{
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
@ -28,9 +28,15 @@ export class CityListComponent implements OnInit {
|
|||||||
//, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
displayedColumns = ['city_id','name', 'fk_state_id','state_name' , 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
|
|
||||||
@ -38,7 +44,7 @@ export class CityListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllCity();
|
// return this._MastersService.getAllCity();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getCity();
|
this.getCity();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>CommentOnLocality
|
<h2 mat-dialog-title>CommentOnLocality
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,6 +12,15 @@
|
|||||||
<div class="mat-dialog-title" fxFlex="15px">Comment On Locality</div>
|
<div class="mat-dialog-title" fxFlex="15px">Comment On Locality</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex></div>
|
<div fxFlex></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Comment On Locality </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +29,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Rating" required [formControl]="_CommentOnLocalityForm.controls['rating']">
|
<input matInput type="text" placeholder="Rating" required [formControl]="_CommentOnLocalityForm.controls['rating']">
|
||||||
<mat-error *ngIf="!_CommentOnLocalityForm.controls['rating'].valid && _CommentOnLocalityForm.controls['rating'].touched" class="mat-text-warn">You must include a Rating.</mat-error>
|
<mat-error *ngIf="!_CommentOnLocalityForm.controls['rating'].valid && _CommentOnLocalityForm.controls['rating'].touched" class="mat-text-warn">You must include a Rating.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!--<div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -60,6 +60,55 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -89,5 +89,25 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,9 +28,15 @@ export class CommentsOnLocalityListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['comments_on_locality_id','rating','isactive','actions'];
|
displayedColumns = ['comments_on_locality_id','rating','isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
//displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
|
|
||||||
@ -38,7 +44,7 @@ export class CommentsOnLocalityListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllCommentsOnLocality();
|
// return this._MastersService.getAllCommentsOnLocality();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
// dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getCommentsOnLocality();
|
this.getCommentsOnLocality();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Company
|
<h2 mat-dialog-title>Company
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
|
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
@ -13,7 +13,17 @@
|
|||||||
<div class="mat-dialog-title" fxFlex="15px">Company</div>
|
<div class="mat-dialog-title" fxFlex="15px">Company</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex></div>
|
<div fxFlex></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Company </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_companyForm" (ngsubmit)="onSubmit()">
|
<form [formGroup]="_companyForm" (ngsubmit)="onSubmit()">
|
||||||
|
|||||||
@ -6,15 +6,15 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
<!-- <th style="text-align: center;">Company ID</th> -->
|
<!-- <th style="text-align: center;">Company ID</th> ->
|
||||||
<th style="text-align: center;">Company Name</th>
|
<th style="text-align: center;">Company Name</th>
|
||||||
<th style="text-align: center;">Company City</th>
|
<th style="text-align: center;">Company City</th>
|
||||||
<th style="text-align: center;">Company State</th>
|
<th style="text-align: center;">Company State</th>
|
||||||
<!-- <th style="text-align: center;">Is Active</th> -->
|
<!-- <th style="text-align: center;">Is Active</th> ->
|
||||||
<th style="text-align: center;">Action</th>
|
<th style="text-align: center;">Action</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
@ -94,7 +94,53 @@
|
|||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<br>
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -89,5 +89,25 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,8 +29,15 @@ export class CompanyListComponent implements OnInit {
|
|||||||
//displayedColumns = ['Company_id', 'fk_city_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
//displayedColumns = ['Company_id', 'fk_city_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
||||||
displayedColumns = ['company_id', 'name', 'addressline1', 'addressline2','addressline3', 'city', 'state','city_name', 'state_name', 'pincode', 'logo','action'];
|
displayedColumns = ['company_id', 'name', 'addressline1', 'addressline2','addressline3', 'city', 'state','city_name', 'state_name', 'pincode', 'logo','action'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
@ -40,7 +47,7 @@ export class CompanyListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllCompany();
|
// return this._MastersService.getAllCompany();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getCompany();
|
this.getCompany();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Customer Behaviour
|
<h2 mat-dialog-title>Customer Behaviour
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<div class="mat-dialog-title" fxFlex>Customer Behaviour</div>
|
<div class="mat-dialog-title" fxFlex>Customer Behaviour</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px"></div>
|
<div fxFlex="15px"></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Customer Behaviour </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -60,6 +60,55 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -90,4 +90,24 @@
|
|||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -28,9 +28,15 @@ export class CustomerBehaviourListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['customer_behaviour_id', 'description', 'isactive','actions'];
|
displayedColumns = ['customer_behaviour_id', 'description', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
@ -39,7 +45,7 @@ export class CustomerBehaviourListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllCustomerBehaviour();
|
// return this._MastersService.getAllCustomerBehaviour();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getCustomerBehaviour();
|
this.getCustomerBehaviour();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Customer Segment
|
<h2 mat-dialog-title>Customer Segment
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<div class="mat-dialog-title" fxFlex>Customer Segment</div>
|
<div class="mat-dialog-title" fxFlex>Customer Segment</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px"></div>
|
<div fxFlex="15px"></div>
|
||||||
|
</div> -->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Customer Segment </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!--<div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
<!-- <th style="text-align: center;">CustomerSegment ID</th> -->
|
<!-- <th style="text-align: center;">CustomerSegment ID</th> ->
|
||||||
<th style="text-align: center;">CustomerSegment Name</th>
|
<th style="text-align: center;">CustomerSegment Name</th>
|
||||||
<th style="text-align: center;">Abbrevation</th>
|
<th style="text-align: center;">Abbrevation</th>
|
||||||
<th style="text-align: center;">IsActive</th>
|
<th style="text-align: center;">IsActive</th>
|
||||||
@ -65,6 +65,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,24 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -27,9 +27,15 @@ export class CustomerSegmentListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['customer_segment_id', 'abbr', 'name', 'isactive','actions'];
|
displayedColumns = ['customer_segment_id', 'abbr', 'name', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
@ -38,7 +44,7 @@ export class CustomerSegmentListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllCustomerSegment();
|
// return this._MastersService.getAllCustomerSegment();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getCustomerSegment();
|
this.getCustomerSegment();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Designation
|
<h2 mat-dialog-title>Designation
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,16 +12,23 @@
|
|||||||
<div class="mat-dialog-title" fxFlex="15px">Designation</div>
|
<div class="mat-dialog-title" fxFlex="15px">Designation</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex></div>
|
<div fxFlex></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Designation </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_designationForm" (submit)="onSubmit()">
|
<form [formGroup]="_designationForm" (submit)="onSubmit()">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_designationForm.controls['name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_designationForm.controls['name']">
|
||||||
<mat-error *ngIf="!_designationForm.controls['name'].valid && _designationForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_designationForm.controls['name'].valid && _designationForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
@ -31,7 +38,7 @@
|
|||||||
|
|
||||||
<!-- //designation_id, name, short_name, createdon, fk_createdby, updatedon, fk_updatedby, isactive -->
|
<!-- //designation_id, name, short_name, createdon, fk_createdby, updatedon, fk_updatedby, isactive -->
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Short Name" required [formControl]="_designationForm.controls['short_name']">
|
<input matInput type="text" placeholder="Short Name" required [formControl]="_designationForm.controls['short_name']">
|
||||||
<mat-error *ngIf="!_designationForm.controls['short_name'].valid && _designationForm.controls['short_name'].touched" class="mat-text-warn">You must include a Short Name.</mat-error>
|
<mat-error *ngIf="!_designationForm.controls['short_name'].valid && _designationForm.controls['short_name'].touched" class="mat-text-warn">You must include a Short Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -65,6 +65,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -89,5 +89,27 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,9 +29,15 @@ export class DesignationListComponent implements OnInit {
|
|||||||
displayedColumns = ['designation_id', 'name', 'short_name','isactive','actions'];
|
displayedColumns = ['designation_id', 'name', 'short_name','isactive','actions'];
|
||||||
|
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
@ -40,7 +46,7 @@ export class DesignationListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllDesignation();
|
// return this._MastersService.getAllDesignation();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getDesignation();
|
this.getDesignation();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Frequency
|
<h2 mat-dialog-title>Frequency
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,6 +12,15 @@
|
|||||||
<div class="mat-dialog-title" fxFlex>Frequency</div>
|
<div class="mat-dialog-title" fxFlex>Frequency</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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="15px"></div>
|
<div fxFlex="15px"></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;">Frequency </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +30,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Frequency Name" required [formControl]="_frequencyForm.controls['name']">
|
<input matInput type="text" placeholder="Frequency Name" required [formControl]="_frequencyForm.controls['name']">
|
||||||
<mat-error *ngIf="!_frequencyForm.controls['name'].valid && _frequencyForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_frequencyForm.controls['name'].valid && _frequencyForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -74,6 +74,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -118,5 +118,28 @@ table {
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,12 @@ export class FrequencyListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['frequency_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['frequency_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
@ -39,7 +45,7 @@ export class FrequencyListComponent implements OnInit {
|
|||||||
// return this._MastersService. getAllFrequency();
|
// return this._MastersService. getAllFrequency();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
// dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getFrequency();
|
this.getFrequency();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Industry Classification </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Classification Name" required [formControl]="_IndustryClassificationForm.controls['name']">
|
<input matInput type="text" placeholder="Classification Name" required [formControl]="_IndustryClassificationForm.controls['name']">
|
||||||
<mat-error *ngIf="!_IndustryClassificationForm.controls['name'].valid && _IndustryClassificationForm.controls['name'].touched" class="mat-text-warn">You must include a Classified Name.</mat-error>
|
<mat-error *ngIf="!_IndustryClassificationForm.controls['name'].valid && _IndustryClassificationForm.controls['name'].touched" class="mat-text-warn">You must include a Classified Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!--<div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -75,5 +75,55 @@
|
|||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -114,5 +114,27 @@ table {
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -36,9 +36,16 @@ export class IndustryClassificationListComponent implements OnInit {
|
|||||||
displayedColumns = ['industry_classification_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['industry_classification_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
//industry_classification_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//industry_classification_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _IMService: MastersService) { }
|
private _IMService: MastersService) { }
|
||||||
@ -48,7 +55,7 @@ export class IndustryClassificationListComponent implements OnInit {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
//displayedColumns: string[] = ['ID','ClassifiedName'];
|
//displayedColumns: string[] = ['ID','ClassifiedName'];
|
||||||
dataSource = new UserDataSource(this._IMService);
|
//dataSource = new UserDataSource(this._IMService);
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@ 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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Lender Hierarchy </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_lenderHierarchyForm" (submit)="onSubmit()">
|
<form [formGroup]="_lenderHierarchyForm" (submit)="onSubmit()">
|
||||||
@ -20,7 +30,7 @@ fxLayoutGap.xs="0">
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Lender Hierarchy Name" required [formControl]="_lenderHierarchyForm.controls['lender_hierarchy']">
|
<input matInput type="text" placeholder="Lender Hierarchy Name" required [formControl]="_lenderHierarchyForm.controls['lender_hierarchy']">
|
||||||
<mat-error *ngIf="!_lenderHierarchyForm.controls['lender_hierarchy'].valid && _lenderHierarchyForm.controls['lender_hierarchy'].touched" class="mat-text-warn">You must include a Lender Hierarchy Name.</mat-error>
|
<mat-error *ngIf="!_lenderHierarchyForm.controls['lender_hierarchy'].valid && _lenderHierarchyForm.controls['lender_hierarchy'].touched" class="mat-text-warn">You must include a Lender Hierarchy Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -59,6 +59,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -89,5 +89,27 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,12 @@ export class LenderHierarchyListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['lender_hierarchy_id', 'lender_hierarchy','isactive','actions'];
|
displayedColumns = ['lender_hierarchy_id', 'lender_hierarchy','isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
@ -39,7 +45,7 @@ export class LenderHierarchyListComponent implements OnInit {
|
|||||||
// return this._MastersService. getAllLenderHierarchy();
|
// return this._MastersService. getAllLenderHierarchy();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
// dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getLenderHierarchy();
|
this.getLenderHierarchy();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button></div>
|
||||||
<div fxFlex="2px"></div>
|
<div fxFlex="2px"></div>
|
||||||
|
</div>-->
|
||||||
|
<div class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;">Occupation of Non earning members </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_occupationForm.controls['name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_occupationForm.controls['name']">
|
||||||
<mat-error *ngIf="!_occupationForm.controls['name'].valid && _occupationForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_occupationForm.controls['name'].valid && _occupationForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -6,11 +6,11 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
<!-- <th style="text-align: center;">Occupation ID</th> -->
|
<!-- <th style="text-align: center;">Occupation ID</th> ->
|
||||||
<th style="text-align: center;">Occupation Name</th>
|
<th style="text-align: center;">Occupation Name</th>
|
||||||
<th style="text-align: center;">IsActive</th>
|
<th style="text-align: center;">IsActive</th>
|
||||||
<th style="text-align: center;">Action</th>
|
<th style="text-align: center;">Action</th>
|
||||||
@ -79,6 +79,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
.header-cell{
|
.header-cell{
|
||||||
display:flex;
|
display:flex;
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
}*/
|
}*
|
||||||
|
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -56,4 +56,26 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -30,6 +30,14 @@ export class MembersOccupationListComponent implements OnInit {
|
|||||||
displayedColumns = ['occupation_non_earning_member_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['occupation_non_earning_member_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
//occupation_non_earning_member_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//occupation_non_earning_member_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
// @ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
|
// @ViewChild(MatSort) sort: MatSort;
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
@ -45,7 +53,7 @@ export class MembersOccupationListComponent implements OnInit {
|
|||||||
this.getMemberOccupation();
|
this.getMemberOccupation();
|
||||||
}
|
}
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._memberService);
|
//dataSource = new UserDataSource(this._memberService);
|
||||||
|
|
||||||
addMemberOccupation() {
|
addMemberOccupation() {
|
||||||
this.isPopupOpened = true;
|
this.isPopupOpened = true;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>PD Allocation Type
|
<h2 mat-dialog-title>PD Allocation 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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
|
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
@ -13,14 +13,24 @@
|
|||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD Allocation Type</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">PD Allocation 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" 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%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> PD Allocation Type </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_PDAllocationTypeForm" (submit)="onSubmit()">
|
<form [formGroup]="_PDAllocationTypeForm" (submit)="onSubmit()">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="PD Allocation Type Name" required [formControl]="_PDAllocationTypeForm.controls['pd_allocation_type_name']">
|
<input matInput type="text" placeholder="PD Allocation Type Name" required [formControl]="_PDAllocationTypeForm.controls['pd_allocation_type_name']">
|
||||||
<mat-error *ngIf="!_PDAllocationTypeForm.controls['pd_allocation_type_name'].valid && _PDAllocationTypeForm.controls['pd_allocation_type_name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_PDAllocationTypeForm.controls['pd_allocation_type_name'].valid && _PDAllocationTypeForm.controls['pd_allocation_type_name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!--<div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -57,7 +57,55 @@
|
|||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mattable>
|
</mattable>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,25 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -28,9 +28,15 @@ export class PdAllocationTypeListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['pd_allocation_type_id','pd_allocation_type_name','isactive','actions'];
|
displayedColumns = ['pd_allocation_type_id','pd_allocation_type_name','isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
@ -39,7 +45,7 @@ export class PdAllocationTypeListComponent implements OnInit {
|
|||||||
// return this._MastersService.getAllPDAllocationType();
|
// return this._MastersService.getAllPDAllocationType();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getPDAllocationType();
|
this.getPDAllocationType();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;">PD Location Approach </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_pdLocationApproachForm.controls['description']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_pdLocationApproachForm.controls['description']">
|
||||||
<mat-error *ngIf="!_pdLocationApproachForm.controls['description'].valid && _pdLocationApproachForm.controls['description'].touched" class="mat-text-warn">You must include a Description.</mat-error>
|
<mat-error *ngIf="!_pdLocationApproachForm.controls['description'].valid && _pdLocationApproachForm.controls['description'].touched" class="mat-text-warn">You must include a Description.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -15,7 +15,7 @@
|
|||||||
<th style="text-align: center;">Action</th>
|
<th style="text-align: center;">Action</th>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<!-- , createdon, fk_createdby, updatedon, fk_updatedby, isactive -->
|
<!- , createdon, fk_createdby, updatedon, fk_updatedby, isactive ->
|
||||||
|
|
||||||
<tr *ngIf="MemberOccupationList.length === 0" > <td colspan="4" style="text-align: center;"> No Records </td></tr>
|
<tr *ngIf="MemberOccupationList.length === 0" > <td colspan="4" style="text-align: center;"> No Records </td></tr>
|
||||||
<tr *ngFor="let PAL of PdLocationApproachList; let i=index">
|
<tr *ngFor="let PAL of PdLocationApproachList; let i=index">
|
||||||
@ -62,6 +62,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,25 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -29,9 +29,15 @@ export class PdLocationApproachListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['pd_allocation_type_id', 'pd_allocation_type_name', 'isactive','actions'];
|
displayedColumns = ['pd_allocation_type_id', 'pd_allocation_type_name', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> PD type </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_pdTypeForm.controls['type_name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_pdTypeForm.controls['type_name']">
|
||||||
<mat-error *ngIf="!_pdTypeForm.controls['type_name'].valid && _pdTypeForm.controls['type_name'].touched" class="mat-text-warn">You must include a type_name.</mat-error>
|
<mat-error *ngIf="!_pdTypeForm.controls['type_name'].valid && _pdTypeForm.controls['type_name'].touched" class="mat-text-warn">You must include a type_name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">S.no</th>
|
<th style="text-align: center;">S.no</th>
|
||||||
@ -59,6 +59,54 @@
|
|||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,25 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -29,9 +29,15 @@ export class PdTypeListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['pd_type_id', 'type_name', 'isactive','actions'];
|
displayedColumns = ['pd_type_id', 'type_name', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
//displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _PDTypeService: MastersService) { }
|
private _PDTypeService: MastersService) { }
|
||||||
@ -40,7 +46,7 @@ export class PdTypeListComponent implements OnInit {
|
|||||||
// return this._PDTypeService.getAllPDType();
|
// return this._PDTypeService.getAllPDType();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._PDTypeService);
|
// dataSource = new UserDataSource(this._PDTypeService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getPDType();
|
this.getPDType();
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Product Details </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_productMasterForm" (submit)="onSubmit()">
|
<form [formGroup]="_productMasterForm" (submit)="onSubmit()">
|
||||||
@ -20,7 +30,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Product Name" required [formControl]="_productMasterForm.controls['name']">
|
<input matInput type="text" placeholder="Product Name" required [formControl]="_productMasterForm.controls['name']">
|
||||||
<mat-error *ngIf="!_productMasterForm.controls['name'].valid && _productMasterForm.controls['name'].touched" class="mat-text-warn">You must include a Product name.</mat-error>
|
<mat-error *ngIf="!_productMasterForm.controls['name'].valid && _productMasterForm.controls['name'].touched" class="mat-text-warn">You must include a Product name.</mat-error>
|
||||||
@ -28,7 +38,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Product Abbr" required [formControl]="_productMasterForm.controls['abbr']">
|
<input matInput type="text" placeholder="Product Abbr" required [formControl]="_productMasterForm.controls['abbr']">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@ -4,37 +4,53 @@
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
<mat-form-field>
|
<div class="example-header">
|
||||||
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
<mat-form-field>
|
||||||
</mat-form-field>
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mat-elevation-z8">
|
<div class="example-container mat-elevation-z8">
|
||||||
<table mat-table [dataSource]="dataSource" matSort class="mat-elevation-z8">
|
|
||||||
|
|
||||||
<!-- Position Column -->
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
<ng-container matColumnDef="ID">
|
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> No. </th>
|
<ng-container matColumnDef="SerialNo">
|
||||||
<td mat-cell *matCellDef="let element"> {{element.ID}} </td>
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- Name Column -->
|
<ng-container matColumnDef="StateName">
|
||||||
<ng-container matColumnDef="ProductName">
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
<td mat-cell *matCellDef="let element"> {{element.ProductName}} </td>
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|
||||||
<ng-container matColumnDef="ProductAbbr">
|
<ng-container matColumnDef="IsActive">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> ProductAbbr </th>
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
<td mat-cell *matCellDef="let element"> {{element.ProductAbbr}} </td>
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
</table>
|
</mat-table>
|
||||||
|
|
||||||
<mat-paginator [pageSizeOptions]="[5, 10, 20]" showFirstLastButtons></mat-paginator>
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Copyright 2018 Google Inc. All Rights Reserved.
|
<!-- Copyright 2018 Google Inc. All Rights Reserved.
|
||||||
|
|||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -89,4 +89,26 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -32,13 +32,21 @@ export class ProductListComponent implements OnInit {
|
|||||||
|
|
||||||
//dataSource = new UserDataSource(this._ProductService);
|
//dataSource = new UserDataSource(this._ProductService);
|
||||||
|
|
||||||
displayedColumns: string[] = ['ID','ProductName','ProductAbbr'];
|
// displayedColumns: string[] = ['ID','ProductName','ProductAbbr'];
|
||||||
dataSource = new MatTableDataSource<ProductElement>(ELEMENT_DATA1);
|
// dataSource = new MatTableDataSource<ProductElement>(ELEMENT_DATA1);
|
||||||
|
|
||||||
|
// @ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
|
// @ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
//Onready function
|
//Onready function
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.dataSource.paginator = this.paginator;
|
this.dataSource.paginator = this.paginator;
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Region </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_regionsForm.controls['name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_regionsForm.controls['name']">
|
||||||
<mat-error *ngIf="!_regionsForm.controls['name'].valid && _regionsForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_regionsForm.controls['name'].valid && _regionsForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -60,6 +60,57 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,25 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -30,9 +30,15 @@ export class RegionsListComponent implements OnInit {
|
|||||||
displayedColumns = ['region_id', 'name', 'isactive','actions'];
|
displayedColumns = ['region_id', 'name', 'isactive','actions'];
|
||||||
//region_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//region_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _regionsService: MastersService) { }
|
private _regionsService: MastersService) { }
|
||||||
|
|
||||||
@ -40,7 +46,7 @@ export class RegionsListComponent implements OnInit {
|
|||||||
// return this._regionsService.getAllregions();
|
// return this._regionsService.getAllregions();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._regionsService);
|
//dataSource = new UserDataSource(this._regionsService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getregions();
|
this.getregions();
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Relation Ship </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_relationShipForm.controls['name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_relationShipForm.controls['name']">
|
||||||
<mat-error *ngIf="!_relationShipForm.controls['name'].valid && _relationShipForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_relationShipForm.controls['name'].valid && _relationShipForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -80,6 +80,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -118,3 +118,24 @@ th {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
|
|||||||
@ -41,14 +41,21 @@ export class RelationShipListComponent implements OnInit {
|
|||||||
displayedColumns = ['relationship_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['relationship_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
//relationship_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//relationship_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getRelationShip();
|
this.getRelationShip();
|
||||||
}
|
}
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
addRelationShip() {
|
addRelationShip() {
|
||||||
this.isPopupOpened = true;
|
this.isPopupOpened = true;
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> State </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_statesForm" (submit)="onSubmit()">
|
<form [formGroup]="_statesForm" (submit)="onSubmit()">
|
||||||
@ -20,7 +30,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="Pick Up Region Name" required [formControl]="_statesForm.controls['fk_region_id']">
|
<mat-select placeholder="Pick Up Region Name" required [formControl]="_statesForm.controls['fk_region_id']">
|
||||||
<mat-option *ngFor="let sd of regionDatas" [value]="sd.region_id">{{ sd.name }}</mat-option>
|
<mat-option *ngFor="let sd of regionDatas" [value]="sd.region_id">{{ sd.name }}</mat-option>
|
||||||
@ -29,14 +39,14 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Name" required [formControl]="_statesForm.controls['name']">
|
<input matInput type="text" placeholder="Name" required [formControl]="_statesForm.controls['name']">
|
||||||
<mat-error *ngIf="!_statesForm.controls['name'].valid && _statesForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
<mat-error *ngIf="!_statesForm.controls['name'].valid && _statesForm.controls['name'].touched" class="mat-text-warn">You must include a Name.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<!-- <mat-form-field style="width: 100%">
|
<!-- <mat-form-field style="width: 100%">
|
||||||
<mat-select placeholder="Pick up Region" required [formControl]="_statesForm.controls['fk_region_id']">
|
<mat-select placeholder="Pick up Region" required [formControl]="_statesForm.controls['fk_region_id']">
|
||||||
<mat-option *ngFor="let RD of RegionData" [value]="RD.region_id">
|
<mat-option *ngFor="let RD of RegionData" [value]="RD.region_id">
|
||||||
@ -45,7 +55,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field> -->
|
</mat-form-field> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Code" required [formControl]="_statesForm.controls['code']">
|
<input matInput type="text" placeholder="Code" required [formControl]="_statesForm.controls['code']">
|
||||||
<mat-error *ngIf="!_statesForm.controls['code'].valid && _statesForm.controls['code'].touched" class="mat-text-warn">You must include a Code.</mat-error>
|
<mat-error *ngIf="!_statesForm.controls['code'].valid && _statesForm.controls['code'].touched" class="mat-text-warn">You must include a Code.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -100,6 +100,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br>-->
|
<br>-->
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -91,3 +91,25 @@
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -28,9 +28,15 @@ export class StatesListComponent implements OnInit {
|
|||||||
//displayedColumns = ['states_id', 'fk_city_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
//displayedColumns = ['states_id', 'fk_city_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
||||||
displayedColumns = ['state_id', 'fk_region_id','region_name', 'name', 'code', 'isactive','actions'];
|
displayedColumns = ['state_id', 'fk_region_id','region_name', 'name', 'code', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _statesService: MastersService) { }
|
private _statesService: MastersService) { }
|
||||||
@ -39,7 +45,7 @@ export class StatesListComponent implements OnInit {
|
|||||||
// return this._statesService.getAllStates();
|
// return this._statesService.getAllStates();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._statesService);
|
//dataSource = new UserDataSource(this._statesService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getState();
|
this.getState();
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
<!-- <div class="mb-1">
|
<!-- <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 hover-icon" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -13,7 +13,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Sub Product Details </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_subProductMasterForm" (submit)="onSubmit()">
|
<form [formGroup]="_subProductMasterForm" (submit)="onSubmit()">
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<!-- <mat-form-field>
|
<!-- <mat-form-field>
|
||||||
<input matInput placeholder="Pick Up Product Name" [matAutocomplete]="tdAuto" [(ngModel)]="currentState" #modelDir="ngModel" required
|
<input matInput placeholder="Pick Up Product Name" [matAutocomplete]="tdAuto" [(ngModel)]="currentState" #modelDir="ngModel" required
|
||||||
(ngModelChange)="this.tdStates = filterStates(currentState)" [disabled]="tdDisabled">
|
(ngModelChange)="this.tdStates = filterStates(currentState)" [disabled]="tdDisabled">
|
||||||
@ -31,7 +41,7 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-autocomplete>
|
</mat-autocomplete>
|
||||||
</mat-form-field> -->
|
</mat-form-field> -->
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select placeholder="Pick Up Product Name" required [formControl]="_subProductMasterForm.controls['fk_product_id']">
|
<mat-select placeholder="Pick Up Product Name" required [formControl]="_subProductMasterForm.controls['fk_product_id']">
|
||||||
<mat-option *ngFor="let sd of productDatas" [value]="sd.product_id">{{ sd.name }}</mat-option>
|
<mat-option *ngFor="let sd of productDatas" [value]="sd.product_id">{{ sd.name }}</mat-option>
|
||||||
@ -46,7 +56,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Sub Product Name" required [formControl]="_subProductMasterForm.controls['name']">
|
<input matInput type="text" placeholder="Sub Product Name" required [formControl]="_subProductMasterForm.controls['name']">
|
||||||
<mat-error *ngIf="!_subProductMasterForm.controls['name'].valid && _subProductMasterForm.controls['name'].touched" class="mat-text-warn">You must include a Sub Product name.</mat-error>
|
<mat-error *ngIf="!_subProductMasterForm.controls['name'].valid && _subProductMasterForm.controls['name'].touched" class="mat-text-warn">You must include a Sub Product name.</mat-error>
|
||||||
@ -55,7 +65,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Sub Product Abbrevation" required [formControl]="_subProductMasterForm.controls['abbr']">
|
<input matInput type="text" placeholder="Sub Product Abbrevation" required [formControl]="_subProductMasterForm.controls['abbr']">
|
||||||
<mat-error *ngIf="!_subProductMasterForm.controls['abbr'].valid && _subProductMasterForm.controls['abbr'].touched" class="mat-text-warn">You must include a Sub Product Abbrevation.</mat-error>
|
<mat-error *ngIf="!_subProductMasterForm.controls['abbr'].valid && _subProductMasterForm.controls['abbr'].touched" class="mat-text-warn">You must include a Sub Product Abbrevation.</mat-error>
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<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>
|
</div>
|
||||||
|
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -90,6 +90,56 @@
|
|||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -82,7 +82,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -118,3 +118,25 @@ th {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -39,10 +39,16 @@ export class SubProductListComponent implements OnInit {
|
|||||||
displayedColumns = ['subproduct_id','fk_product_id','product_name','name','abbr','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['subproduct_id','fk_product_id','product_name','name','abbr','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
//subproduct_id, fk_product_id, name, abbr, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//subproduct_id, fk_product_id, name, abbr, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
<!-- <div class="mb-1">
|
<!-- <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" matTooltip="Close" matTooltipPosition="above" (click)="onNoClick()"><mat-icon>close</mat-icon></button>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;">Title </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +31,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<div class="mb-1">
|
<div class="ml-xs mr-xs">
|
||||||
<mat-form-field style="width: 100%">
|
<mat-form-field style="width: 100%">
|
||||||
<input matInput type="text" placeholder="Title" required [formControl]="_titleForm.controls['name']">
|
<input matInput type="text" placeholder="Title" required [formControl]="_titleForm.controls['name']">
|
||||||
<mat-error *ngIf="!_titleForm.controls['name'].valid && _titleForm.controls['name'].touched" class="mat-text-warn">You must include a Title.</mat-error>
|
<mat-error *ngIf="!_titleForm.controls['name'].valid && _titleForm.controls['name'].touched" class="mat-text-warn">You must include a Title.</mat-error>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<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>
|
</div>
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -80,6 +80,56 @@
|
|||||||
</div>-->
|
</div>-->
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -81,7 +81,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -117,3 +117,25 @@ th {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -36,10 +36,15 @@ export class TitleListComponent implements OnInit {
|
|||||||
displayedColumns = ['title_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['title_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
|
|
||||||
//title_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//title_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
|
||||||
|
|
||||||
|
|
||||||
// get TitleList() {
|
// get TitleList() {
|
||||||
|
|||||||
@ -13,7 +13,17 @@
|
|||||||
<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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Company </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_activityMasterForm" (submit)="onSubmit()">
|
<form [formGroup]="_activityMasterForm" (submit)="onSubmit()">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<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>
|
</div>
|
||||||
|
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -73,7 +73,55 @@
|
|||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -80,7 +80,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -116,3 +116,25 @@ th {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
|
}
|
||||||
@ -27,13 +27,20 @@ export class ActivityListComponent implements OnInit {
|
|||||||
|
|
||||||
displayedColumns = ['type_of_activity_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
displayedColumns = ['type_of_activity_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
constructor(private dialog: MatDialog,
|
constructor(private dialog: MatDialog,
|
||||||
private _MastersService: MastersService) { }
|
private _MastersService: MastersService) { }
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
// dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.getActivity();
|
this.getActivity();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<h2 mat-dialog-title>Unit of Measurement
|
<h2 mat-dialog-title>Unit of Measurement
|
||||||
<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>
|
||||||
</h2>
|
</h2>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="container"
|
<div class="container"
|
||||||
fxLayout
|
fxLayout
|
||||||
fxLayout.xs="column"
|
fxLayout.xs="column"
|
||||||
@ -12,7 +12,17 @@ fxLayoutGap.xs="0">
|
|||||||
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Unit of Measurement</div>
|
<div class="mat-dialog-title" fxFlex fxFlexOrder="1">Unit of Measurement</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" 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 class="ml-xs mr-xs" style="width: 100%;"
|
||||||
|
fxLayout="row"
|
||||||
|
fxLayoutAlign="center">
|
||||||
|
<h2 mat-dialog-title style="width: 30%;"> Unit of Measurement </h2>
|
||||||
|
<div style="width: 40%;"></div>
|
||||||
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form [formGroup]="_uomForm" (submit)="onSubmit()">
|
<form [formGroup]="_uomForm" (submit)="onSubmit()">
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
<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>
|
</div>
|
||||||
|
|
||||||
<div datatable>
|
<!-- <div datatable>
|
||||||
<table style="border-collapse: collapse">
|
<table style="border-collapse: collapse">
|
||||||
<thead>
|
<thead>
|
||||||
<th style="text-align: center;">#</th>
|
<th style="text-align: center;">#</th>
|
||||||
@ -75,5 +75,54 @@
|
|||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
</div>-->
|
</div>-->
|
||||||
|
<div class="example-header">
|
||||||
|
<mat-form-field>
|
||||||
|
<input matInput (keyup)="applyFilter($event.target.value)" placeholder="Filter">
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="example-container mat-elevation-z8">
|
||||||
|
|
||||||
|
<mat-table [dataSource]="dataSource" matSort >
|
||||||
|
|
||||||
|
<ng-container matColumnDef="SerialNo">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header>Sl </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row; let i = index;"> {{i+1}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="CityName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> City Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="StateName">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> State Name </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"> {{row.cityname}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="IsActive">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row"><!--{{row.isactive}}-->
|
||||||
|
<mat-icon *ngIf="row.isactive == 1;else notactive;" class="hover-icon" matTooltip="Active" matTooltipPosition="above">done</mat-icon>
|
||||||
|
<ng-template #notactive ><mat-icon class="hover-icon" matTooltip="Inactive" matTooltipPosition="above">clear</mat-icon></ng-template>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<ng-container matColumnDef="Actions">
|
||||||
|
<mat-header-cell *matHeaderCellDef> Actions </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let row">
|
||||||
|
<button mat-icon-button class="hover-icon" matTooltip="Edit" matTooltipPosition="above" (click)="editCity(row)"><mat-icon>edit</mat-icon></button>
|
||||||
|
<button *ngIf="row.isactive == 1;" mat-icon-button class="hover-icon" matTooltip="Delete" matTooltipPosition="above" (click)="deleteBranch(row.city_id)"><mat-icon>delete_outline</mat-icon></button>
|
||||||
|
</mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
|
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||||
|
<mat-row *matRowDef="let row; columns: displayedColumns;">
|
||||||
|
</mat-row>
|
||||||
|
</mat-table>
|
||||||
|
|
||||||
|
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]"></mat-paginator>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
@ -81,7 +81,7 @@
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-height: 500px;
|
max-height: 500px;
|
||||||
}*/
|
}*/
|
||||||
/* Structure */
|
/* Structure *
|
||||||
.example-container {
|
.example-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -115,4 +115,25 @@ table {
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-header {
|
||||||
|
min-height: 64px;
|
||||||
|
padding: 8px 24px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-table {
|
||||||
|
overflow: auto;
|
||||||
|
max-height: 500px;
|
||||||
}
|
}
|
||||||
@ -44,10 +44,17 @@ export class UomListComponent implements OnInit {
|
|||||||
displayedColumns = ['uom_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
displayedColumns = ['uom_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
|
||||||
//uom_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
//uom_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive
|
||||||
|
|
||||||
|
userData = null;
|
||||||
|
|
||||||
|
public dataLength: number;
|
||||||
|
public dataSource = new MatTableDataSource();
|
||||||
|
// displayedColumns = ['SerialNo','BranchName','CityName', 'IsActive','Actions'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|
||||||
|
|
||||||
dataSource = new UserDataSource(this._MastersService);
|
//dataSource = new UserDataSource(this._MastersService);
|
||||||
|
|
||||||
|
|
||||||
addUOM() {
|
addUOM() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user