Pagesize for all master details

This commit is contained in:
saravanakumarkandasami 2018-10-11 12:00:16 +05:30
parent ab0d2e5cf8
commit c74b4ed377
46 changed files with 88 additions and 36 deletions

View File

@ -14,7 +14,7 @@
</div>
<div *ngIf="noRecordFound" class="nocontent ml-xs mr-xs" style="width: 90%;">No records found</div>
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
<button mat-fab class="mr-1 mb-1 secondary" style="margin-top: 7px;" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addBranch()" matTooltip="Add Branch" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
</div>
</div>
@ -69,9 +69,7 @@
<mat-row *matRowDef="let row; columns: displayedColumns;">
</mat-row>
</mat-table>
<!--- <mat-paginator #paginator class="mat-elevation-z1" [length]="productList.length" [pageIndex]="pageIndex" [pageSize]="pageSize"
[pageSizeOptions]="[5, 10, 25, 100]" (page)="pageEvent = $event; pageChange($event)">
</mat-paginator>-->
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>

View File

@ -32,10 +32,8 @@ export class BranchListComponent implements OnInit {
color = 'primary';
// pagination variable details
//length = 50;
//pageIndex = 0;
pageSize = 10;
// pageEvent: PageEvent;
// changed(id: number,isactive : number) {
// console.log('Id',id);
// console.log('Isactive',isactive)

View File

@ -161,7 +161,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>

View File

@ -29,6 +29,8 @@ export class CityListComponent implements OnInit {
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -140,7 +140,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->
</mat-card-content>

View File

@ -30,6 +30,8 @@ export class CommentsOnLocalityListComponent implements OnInit {
CommentsOnLocalityList: any = [];
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -137,7 +137,7 @@
</mat-row>
</mat-table>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->
<div *ngIf="noRecordFound" class="nocontent">No records found</div>

View File

@ -38,6 +38,8 @@ export class CompanyListComponent implements OnInit {
CompanyList: any = [];
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -140,7 +140,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" style="color: red; font-size: 16px;">No records found</div> -->

View File

@ -30,6 +30,8 @@ export class CustomerBehaviourListComponent implements OnInit {
noRecordFound: boolean = false;
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -137,7 +137,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
</mat-card-content>

View File

@ -28,6 +28,9 @@ export class CustomerSegmentListComponent implements OnInit {
CustomerSegmentList: any = [];
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
// displayedColumns = ['customer_segment_id', 'abbr', 'name', 'isactive','actions'];
userData = null;

View File

@ -136,7 +136,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
</mat-card-content>

View File

@ -29,6 +29,8 @@ export class DesignationListComponent implements OnInit {
noRecordFound: boolean = false;
DesignationList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
userData = null;

View File

@ -143,7 +143,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -30,6 +30,8 @@ export class FrequencyListComponent implements OnInit {
FrequencyList: any = [];
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
userData = null;

View File

@ -73,7 +73,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="example-container mat-elevation-z8">

View File

@ -39,6 +39,8 @@ export class IndustryClassificationListComponent implements OnInit {
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -133,7 +133,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -32,6 +32,9 @@ export class LenderHierarchyListComponent implements OnInit {
loader: boolean = false;
LenderHierarchyList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
//displayedColumns = ['lender_hierarchy_id', 'lender_hierarchy','isactive','actions'];
userData = null;

View File

@ -151,7 +151,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -31,6 +31,9 @@ export class MembersOccupationListComponent implements OnInit {
loader: boolean = false;
MemberOccupationList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
userData = null;
noRecordFound: boolean = false;

View File

@ -80,7 +80,7 @@
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
<mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<div *ngIf="noRecordFound" class="nocontent">No records found</div>

View File

@ -29,6 +29,9 @@ export class PdAllocationTypeListComponent implements OnInit {
noRecordFound: boolean = false;
dataSourceRecords = null;
color = 'primary';
// pagination variable details
pageSize = 10;
private notifier: NotifierService;
public dataLength: number;

View File

@ -130,7 +130,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -37,6 +37,9 @@ export class PdLocationApproachListComponent implements OnInit {
loader: boolean = false;
PdLocationApproachList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
userData = null;
noRecordFound: boolean = false;
public dataLength: number;

View File

@ -130,7 +130,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- -->

View File

@ -30,6 +30,9 @@ export class PdTypeListComponent implements OnInit {
PDTypeList: any = [];
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
userData = null;
public dataLength: number;

View File

@ -82,7 +82,7 @@
</mat-table>
<!-- <mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator> -->
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -31,6 +31,8 @@ export class ProductListComponent implements OnInit {
noRecordFound: boolean = false;
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -74,7 +74,7 @@
</mat-table>
<!-- <mat-paginator [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator> -->
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<div *ngIf="noRecordFound" class="nocontent">No records found</div>

View File

@ -29,6 +29,8 @@ export class QuestionCategoryListComponent implements OnInit {
noRecordFound: boolean = false;
userData = null;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -11,7 +11,7 @@
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addregions()" matTooltip="Add Region" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
</div>
</div>
</div>
<mat-table *ngIf="!noRecordFound" [dataSource]="dataSource" matSort >
@ -58,6 +58,7 @@
<mat-row *matRowDef="let row; columns: displayedColumns;">
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
</mat-card-content>
<notifier-container></notifier-container>

View File

@ -32,6 +32,8 @@ export class RegionsListComponent implements OnInit {
noRecordFound: boolean = false;
color = 'primary';
userData = null;
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -153,7 +153,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -29,6 +29,9 @@ export class RelationShipListComponent implements OnInit {
RelationShipList: any = [];
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
//displayedColumns = ['relationship_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
//relationship_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive

View File

@ -176,7 +176,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>

View File

@ -29,6 +29,9 @@ export class StatesListComponent implements OnInit {
loader: boolean = false;
StateList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
noRecordFound: boolean = false;
//displayedColumns = ['states_id', 'fk_city_id', 'name', 'createdon', 'fk_createdby', 'updatedon', 'fk_updatedby', 'isactive','actions'];

View File

@ -165,7 +165,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -33,6 +33,8 @@ export class SubProductListComponent implements OnInit {
userData = null;
noRecordFound: boolean = false;
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();

View File

@ -149,7 +149,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -27,6 +27,9 @@ export class TitleListComponent implements OnInit {
TitleList: any = [];
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
//displayedColumns = ['title_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
//title_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive

View File

@ -143,7 +143,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>

View File

@ -33,6 +33,9 @@ export class ActivityListComponent implements OnInit {
userData = null;
noRecordFound: boolean = false;
color = 'primary';
// pagination variable details
pageSize = 10;
public dataLength: number;
public dataSource = new MatTableDataSource();
displayedColumns = ['serialno','name','actions', 'isactive'];

View File

@ -70,7 +70,7 @@
</mat-row>
</mat-table>
<mat-paginator *ngIf="!noRecordFound" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
<mat-paginator *ngIf="!noRecordFound" [pageSize]="pageSize" [pageSizeOptions]="[5, 10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
</div>
<!-- <div *ngIf="noRecordFound" class="nocontent">No records found</div> -->

View File

@ -33,6 +33,9 @@ export class UomListComponent implements OnInit {
loader: boolean = false;
UOMList: any = [];
color = 'primary';
// pagination variable details
pageSize = 10;
//displayedColumns = ['uom_id','name','createdon','fk_createdby','updatedon','isactive','fk_updatedby','actions'];
//uom_id, name, createdon, fk_createdby, updatedon, fk_updatedby, isactive