@@ -59,83 +59,41 @@
{{ rowIndex + 1 }}
+
- Estimasi Cost Name
+ Building
- {{ value }}
+ {{ value.name }}
+
- Category
+ Room
- {{ value }}
+ {{ value.name }}
+
-
- Location
-
-
- {{ value }}
-
-
-
-
- Location Room
-
-
- {{ value }}
-
-
-
-
- Duration Use
-
-
- {{ value }}
-
-
-
@@ -146,9 +104,10 @@
ngx-datatable-cell-template
let-value="value"
>
- {{ value }}
+ {{ value.name }}
+
{
- this.data = response;
- this.filteredRows = this.data.rows;
+ this.monitoringApiService.getBuildingRoomList().subscribe((res) => {
+ console.log(res);
+ this.data = res;
+ this.filteredRows = this.data.results.data;
+ console.log(this.filteredRows);
+
});
}
@@ -64,12 +69,12 @@ export class ListMonitoringComponent {
viewRow(row) {
console.log("View row:", row);
- this.router.navigate(["/cost-management/view", row.name]);
+ this.router.navigate(["/list-monitoring/view", row.name]);
}
editRow(row) {
console.log("Edit row:", row);
- this.router.navigate(["/cost-management/edit", row.name]);
+ this.router.navigate(["/list-monitoring/edit", row.name]);
}
deleteRow(row) {
diff --git a/src/app/content/hemat-app/list-monitoring/list-monitoring.module.ts b/src/app/content/hemat-app/list-monitoring/list-monitoring.module.ts
index ce4523f..152b167 100644
--- a/src/app/content/hemat-app/list-monitoring/list-monitoring.module.ts
+++ b/src/app/content/hemat-app/list-monitoring/list-monitoring.module.ts
@@ -12,12 +12,14 @@ import { BlockUIModule } from 'ng-block-ui';
import { BlockTemplateComponent } from '../../../_layout/blockui/block-template.component';
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
import { ListMonitoringComponent } from './list-monitoring.component';
+import { AddEditListComponent } from './add-edit-list/add-edit-list.component';
@NgModule({
declarations: [
- ListMonitoringComponent
+ ListMonitoringComponent,
+ AddEditListComponent
],
imports: [
CommonModule,
@@ -37,7 +39,21 @@ import { ListMonitoringComponent } from './list-monitoring.component';
path: '',
component: ListMonitoringComponent
},
-
+ {
+ path: 'add-row',
+ component: AddEditListComponent,
+ data: { mode: 'add' }
+ },
+ {
+ path: 'edit/:id',
+ component: AddEditListComponent,
+ data: { mode: 'edit' }
+ },
+ {
+ path: 'view/:id',
+ component: AddEditListComponent,
+ data: { mode: 'view' }
+ }
])
]
})
diff --git a/src/app/content/hemat-app/master/master-user/master-user.component.html b/src/app/content/hemat-app/master/master-user/master-user.component.html
index 0ec3cd8..1eb31e0 100644
--- a/src/app/content/hemat-app/master/master-user/master-user.component.html
+++ b/src/app/content/hemat-app/master/master-user/master-user.component.html
@@ -1 +1,38 @@
-master-user works!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This page is under maintenance
+
We're sorry for the inconvenience.
+
Please check back later.
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/content/hemat-app/service/monitoring-api.service.ts b/src/app/content/hemat-app/service/monitoring-api.service.ts
index de03f2b..4a12c74 100644
--- a/src/app/content/hemat-app/service/monitoring-api.service.ts
+++ b/src/app/content/hemat-app/service/monitoring-api.service.ts
@@ -108,6 +108,15 @@ export class BuildingService {
return this.http.get(url, { headers });
}
+ getBuildingList(): Observable {
+ const url = `https://kapi.absys.ninja/hemat/building/list`;
+ const headers = new HttpHeaders({
+ 'Content-Type': 'application/json',
+ 'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT'
+ });
+ return this.http.get(url, { headers });
+ }
+
getListRoomData(): Observable {
const url = `https://kapi.absys.ninja/hemat/room/list`;
const headers = new HttpHeaders({
diff --git a/src/app/content/hemat-app/user-access/user-access.component.html b/src/app/content/hemat-app/user-access/user-access.component.html
index a05456d..cb9aa4f 100644
--- a/src/app/content/hemat-app/user-access/user-access.component.html
+++ b/src/app/content/hemat-app/user-access/user-access.component.html
@@ -1,119 +1,37 @@
-
+
-
-
-
-
-
-
- User Access Table
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
- {{ rowIndex + 1 }}
-
-
-
-
- Category Name
-
-
- {{ value }}
-
-
-
-
- Status
-
-
- {{ value }}
-
-
-
-
-
-
-
-
-
-
+
+
This page is under maintenance
+
We're sorry for the inconvenience.
+
Please check back later.
+
-
-
+
+
+
+
-
-
+
diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html
index 5c34764..88e7d47 100644
--- a/src/app/login/login.component.html
+++ b/src/app/login/login.component.html
@@ -133,7 +133,7 @@
- New to Modern ? (v@2024.05.31.01)
+ New to Modern ? (v@2024.06.03.01)