-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cb00b4
commit c6cbd91
Showing
17 changed files
with
284 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
sep490-enterprise/src/main/resources/db/migration/V0.0.1.7__BuildingLocations.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE buildings | ||
ADD COLUMN latitude double precision NOT NULL; | ||
ALTER TABLE buildings | ||
ADD COLUMN longitude double precision NOT NULL; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
INSERT INTO public.enterprises (created_date, created_by, last_modified_date, last_modified_by, id, version, hotline, name, email) | ||
VALUES ('2025-02-16 20:36:14.312269', 'Anonymous', '2025-02-16 20:36:14.312269', 'Anonymous', | ||
'f87565e6-e229-4e9b-b74d-4e085d05395e', 0, '0301930055', 'FPT University', 'fptu.hcm@fpt.edu.vn'); | ||
INSERT INTO public.buildings (created_date, created_by, last_modified_date, last_modified_by, id, version, enterprise_id, name, | ||
number_of_devices, latitude, longitude) | ||
VALUES ('2025-02-16 20:45:00.595269', 'fptu.hcm@fpt.edu.vn', '2025-02-16 20:45:00.595269', 'fptu.hcm@fpt.edu.vn', | ||
'99c0932f-e8b1-44a3-a93a-514f992ef9cf', 0, 'f87565e6-e229-4e9b-b74d-4e085d05395e', 'FPT Quy Nhon', 500, | ||
13.796696244798206, 109.21856202185155); | ||
INSERT INTO public.buildings (created_date, created_by, last_modified_date, last_modified_by, id, version, enterprise_id, name, | ||
number_of_devices, latitude, longitude) | ||
VALUES ('2025-02-16 21:58:43.298707', 'fptu.hcm@fpt.edu.vn', '2025-02-16 21:58:43.298707', 'fptu.hcm@fpt.edu.vn', | ||
'c746d31a-f132-4ceb-9c96-f14c5e629531', 0, 'f87565e6-e229-4e9b-b74d-4e085d05395e', 'FPT Can Tho', 123, 10.013038185016901, | ||
105.7318063080311); | ||
INSERT INTO public.buildings (created_date, created_by, last_modified_date, last_modified_by, id, version, enterprise_id, name, | ||
number_of_devices, latitude, longitude) | ||
VALUES ('2025-02-16 22:31:08.315223', 'fptu.hcm@fpt.edu.vn', '2025-02-16 22:31:08.315223', 'fptu.hcm@fpt.edu.vn', | ||
'648af581-2635-4eed-9aee-b592085c16f3', 0, 'f87565e6-e229-4e9b-b74d-4e085d05395e', 'FPT Hà Nội', 123, 21.013579709497332, | ||
105.52510991692544); | ||
INSERT INTO public.buildings (created_date, created_by, last_modified_date, last_modified_by, id, version, enterprise_id, name, | ||
number_of_devices, latitude, longitude) | ||
VALUES ('2025-02-16 20:36:27.019184', 'fptu.hcm@fpt.edu.vn', '2025-02-16 20:36:27.019184', 'fptu.hcm@fpt.edu.vn', | ||
'c8636202-c2ff-49e7-a43a-267a4dfa1658', 0, 'f87565e6-e229-4e9b-b74d-4e085d05395e', 'FPT Ho Chi Minh', 123, | ||
10.84139877290165, 106.81006103754045); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
12 changes: 12 additions & 0 deletions
12
.../modules/enterprise/components/building-popup-marker/building-popup-marker.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div> | ||
<span class="font-bold"> | ||
{{ "enterprise.buildings.details.labels.name" | translate }}: | ||
</span> | ||
{{ building.name }} | ||
</div> | ||
<div> | ||
<span class="font-bold"> | ||
{{ "enterprise.buildings.details.labels.address" | translate }}: | ||
</span> | ||
{{ building.address }} | ||
</div> |
11 changes: 11 additions & 0 deletions
11
...pp/modules/enterprise/components/building-popup-marker/building-popup-marker.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {Component, Input} from '@angular/core'; | ||
import {Building} from '../../models/enterprise.dto'; | ||
|
||
@Component({ | ||
selector: 'app-building-popup-marker', | ||
templateUrl: './building-popup-marker.component.html', | ||
styleUrl: './building-popup-marker.component.css' | ||
}) | ||
export class BuildingPopupMarkerComponent { | ||
@Input({required: true}) building!: Building; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.