diff --git a/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.html b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.html
new file mode 100644
index 000000000..245ceca79
--- /dev/null
+++ b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+ Filter
+
+
+
+
+
+
+
+
+
+ | Entity |
+ {{ entityDataTableCheck.entity }} |
+
+
+
+ Product Name |
+ {{ entityDataTableCheck.productName }} |
+
+
+
+ Data Table |
+ {{ entityDataTableCheck.datatableName }} |
+
+
+
+ Status |
+ {{ entityDataTableCheck.status.value }} |
+
+
+
+ System Defined |
+
+
+
+
+
+ |
+
+
+
+ Actions |
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.scss b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.scss
new file mode 100644
index 000000000..bf52d42c8
--- /dev/null
+++ b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.scss
@@ -0,0 +1,11 @@
+table {
+ width: 100%;
+}
+
+.true {
+ color: #32cd32;
+}
+
+.false {
+ color: #f44366;
+}
diff --git a/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.spec.ts b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.spec.ts
new file mode 100644
index 000000000..650157fb5
--- /dev/null
+++ b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { EntityDataTableChecksComponent } from './entity-data-table-checks.component';
+
+describe('EntityDataTableChecksComponent', () => {
+ let component: EntityDataTableChecksComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ EntityDataTableChecksComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(EntityDataTableChecksComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.ts b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.ts
new file mode 100644
index 000000000..50ef7eca8
--- /dev/null
+++ b/src/app/organization/entity-data-table-checks/entity-data-table-checks.component.ts
@@ -0,0 +1,130 @@
+/** Angular Imports */
+import { Component, OnInit, ViewChild } from '@angular/core';
+import { MatTableDataSource, MatPaginator, MatSort, MatDialog } from '@angular/material';
+import { ActivatedRoute } from '@angular/router';
+
+/** Custom Services */
+import { OrganizationService } from '../organization.service';
+
+/** Custom Components */
+import { DeleteDialogComponent } from '../../shared/delete-dialog/delete-dialog.component';
+
+/**
+ * Entity Data Table Checks component.
+ */
+@Component({
+ selector: 'mifosx-entity-data-table-checks',
+ templateUrl: './entity-data-table-checks.component.html',
+ styleUrls: ['./entity-data-table-checks.component.scss']
+})
+export class EntityDataTableChecksComponent implements OnInit {
+
+ /** Entity Data Table Checks data. */
+ entityDataTableChecksData: any;
+ /** Columns to be displayed in entity data table checks table. */
+ displayedColumns: string[] = ['entity', 'productName', 'datatableName', 'status', 'systemDefined', 'actions'];
+ /** Data source for entity data table checks table. */
+ dataSource: MatTableDataSource;
+ /** Corresponding values for Entity */
+ entityValues: any = [
+ {
+ code: 'm_client',
+ value: 'Client'
+ },
+ {
+ code: 'm_loan',
+ value: 'Loan'
+ },
+ {
+ code: 'm_group',
+ value: 'Group'
+ },
+ {
+ code: 'm_savings_account',
+ value: 'Savings Account'
+ }
+ ];
+
+ /** Paginator for entity data table checks table. */
+ @ViewChild(MatPaginator) paginator: MatPaginator;
+ /** Sorter for entity data table checks table. */
+ @ViewChild(MatSort) sort: MatSort;
+
+ /**
+ * Retrieves the entity data table checks data from `resolve`.
+ * @param {OrganizationService} organizationService Organization Service.
+ * @param {ActivatedRoute} route Activated Route.
+ * @param {MatDialog} dialog Dialog reference.
+ */
+ constructor(private organizationService: OrganizationService,
+ private route: ActivatedRoute,
+ private dialog: MatDialog) {
+ this.route.data.subscribe(( data: { entityDataTableChecks: any }) => {
+ this.entityDataTableChecksData = data.entityDataTableChecks.pageItems;
+ });
+ }
+
+ /**
+ * Filters data in entity data table checks table based on passed value.
+ * @param {string} filterValue Value to filter data.
+ */
+ applyFilter(filterValue: string) {
+ this.dataSource.filter = filterValue.trim().toLowerCase();
+ }
+
+ /**
+ * Sets the entity data table checks table.
+ */
+ ngOnInit() {
+ this.setEntityDataTableChecks();
+ this.setEntity();
+ }
+
+ /**
+ * Sets Entity to its corresponding values
+ */
+ setEntity() {
+ for (let i = 0; i < this.dataSource.data.length; i++) {
+ for (let j = 0; j < this.entityValues.length; j++) {
+ if (this.entityValues[j].code === this.dataSource.data[i].entity) {
+ this.dataSource.data[i].entity = this.entityValues[j].value;
+ }
+ }
+ }
+ }
+
+ /**
+ * Initializes the data source, paginator and sorter for entity data table checks table.
+ */
+ setEntityDataTableChecks() {
+ this.dataSource = new MatTableDataSource(this.entityDataTableChecksData);
+ this.dataSource.paginator = this.paginator;
+ this.dataSource.sort = this.sort;
+ this.dataSource.sortingDataAccessor = (item, property) => {
+ switch (property) {
+ case 'status': return item.status.value;
+ default: return item[property];
+ }
+ };
+ }
+
+ /**
+ * Deletes the entity data table check
+ * @param {string} entityDataTableCheckId Entity Data Table Check ID of entity data table check to be deleted.
+ */
+ deleteEntityDataTableCheck(entityDataTableCheckId: string) {
+ const deleteEntityDataTableCheckDialogRef = this.dialog.open(DeleteDialogComponent, {
+ data: { deleteContext: `entity data table check ${entityDataTableCheckId}` }
+ });
+ deleteEntityDataTableCheckDialogRef.afterClosed().subscribe((response: any) => {
+ if (response.delete) {
+ this.organizationService.deleteEntityDataTableCheck(entityDataTableCheckId)
+ .subscribe(() => {
+ this.entityDataTableChecksData = this.entityDataTableChecksData.filter((entityDataTableChecks: any) => entityDataTableChecks.id !== entityDataTableCheckId);
+ this.dataSource.data = this.entityDataTableChecksData;
+ });
+ }
+ });
+ }
+
+}
diff --git a/src/app/organization/entity-data-table-checks/entity-data-table-checks.resolver.ts b/src/app/organization/entity-data-table-checks/entity-data-table-checks.resolver.ts
new file mode 100644
index 000000000..a3fa811da
--- /dev/null
+++ b/src/app/organization/entity-data-table-checks/entity-data-table-checks.resolver.ts
@@ -0,0 +1,30 @@
+/** Angular Imports */
+import { Injectable } from '@angular/core';
+import { Resolve } from '@angular/router';
+
+/** rxjs Imports */
+import { Observable } from 'rxjs';
+
+/** Custom Services */
+import { OrganizationService } from '../organization.service';
+
+/**
+ * Entity Data Table Checks data resolver.
+ */
+@Injectable()
+export class EntityDataTableChecksResolver implements Resolve