diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.component.spec.ts b/alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.component.spec.ts
index 763c225ebd..308b692cf4 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.component.spec.ts
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/application-details.component.spec.ts
@@ -101,6 +101,13 @@ describe('ApplicationDetailsComponent', () => {
soilHasSubmittedNotice: null,
soilIsExtractionOrMining: null,
soilIsFollowUp: null,
+ soilIsNewStructure: null,
+ soilStructureFarmUseReason: null,
+ soilStructureResidentialUseReason: null,
+ soilAgriParcelActivity: null,
+ soilStructureResidentialAccessoryUseReason: null,
+ soilStructureOtherUseReason: null,
+ soilProposedStructures: [],
soilFollowUpIDs: null,
soilProjectDuration: null,
soilReduceNegativeImpacts: null,
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.html b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.html
index e26a33bfdf..374bb61354 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.html
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.html
@@ -1,4 +1,12 @@
- What alternative measures have you considered or attempted before proposing to place fill?
-
- Describe the type, origin and quality of fill proposed to be placed.
{{ _applicationSubmission.soilFillTypeToPlace }}
@@ -136,10 +137,92 @@
{{ _applicationSubmission.soilTypeRemoved }}
-
What steps will be taken to reduce impacts to surrounding agricultural land?
-
- {{ _applicationSubmission.soilReduceNegativeImpacts }}
-
+
+
+ The total floor area (m2) for each of the proposed structure(s)
+
+
#
+
Type
+
Area
+
+
+ {{ i + 1 }}
+
+
+ {{ mapStructureTypeValueToLabel(structure.type) }}
+
+
+
+ {{ structure.area }}
m2
+
+
+
+
+
+
+
+ Describe how the structure is necessary for farm use
+
+ {{ _applicationSubmission.soilStructureFarmUseReason }}
+
+
+
+
+
+
+ Describe why placing fill/removing soil is required for the residential structure(s)
+
+
+ {{ _applicationSubmission.soilStructureResidentialUseReason }}
+
+
+
+
+
+ Describe the current or proposed agricultural activity on the parcel(s)
+
+ {{ _applicationSubmission.soilAgriParcelActivity }}
+
+
+
+
+
+
+ Describe the intended use of the residential accessory structure(s) and why placing fill/removing soil is
+ required
+
+
+ {{ _applicationSubmission.soilStructureResidentialAccessoryUseReason }}
+
+
+
+
+
+
+ Describe the intended use of the 'Other' structure(s) and why placing fill/removing soil is required
+
+
+ {{ _applicationSubmission.soilStructureOtherUseReason }}
+
+
+
+
+
+
+
+ What alternative measures have you considered or attempted before proposing to place fill?
+
+
+ {{ _applicationSubmission.soilAlternativeMeasures }}
+
+
+ What steps will be taken to reduce impacts to surrounding agricultural land?
+
+ {{ _applicationSubmission.soilReduceNegativeImpacts }}
+
+
Proposal Map / Site Plan
@@ -147,41 +230,57 @@
{{ file.fileName }}
-
Cross Sections
-
-
-
Reclamation Plan
-
+
-
Is your proposal for aggregate extraction or placer mining?
-
-
- {{ _applicationSubmission.soilIsExtractionOrMining ? 'Yes' : 'No' }}
-
-
+
+ Detailed Building Plan(s)
+
+
-
- Have you submitted a Notice of Work to the Ministry of Energy, Mines and Low Carbon Innovation (EMLI)?
-
-
-
- {{ _applicationSubmission.soilHasSubmittedNotice ? 'Yes' : 'No' }}
-
-
+
+ Is your proposal for aggregate extraction or placer mining?
+
+
+ {{ _applicationSubmission.soilIsExtractionOrMining ? 'Yes' : 'No' }}
+
+
- Notice of Work
-
+
+ Have you submitted a Notice of Work to the Ministry of Energy, Mines and Low Carbon Innovation (EMLI)?
+
+
+
+ {{ _applicationSubmission.soilHasSubmittedNotice ? 'Yes' : 'No' }}
+
+
+
+ Notice of Work
+
+
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.scss b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.scss
index f4efa4f475..63d243debd 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.scss
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.scss
@@ -9,3 +9,11 @@
height: 16px;
}
}
+
+.structure-table {
+ display: grid;
+ grid-template-columns: max-content max-content max-content;
+ overflow-x: auto;
+ grid-column-gap: 36px;
+ grid-row-gap: 12px;
+}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.ts b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.ts
index 88e9a6284e..f116acaa11 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.ts
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pfrs-details/pfrs-details.component.ts
@@ -4,6 +4,8 @@ import { ApplicationDocumentDto } from '../../../../../services/application/appl
import { ApplicationDocumentService } from '../../../../../services/application/application-document/application-document.service';
import { ApplicationSubmissionDto } from '../../../../../services/application/application.dto';
import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
+import { STRUCTURE_TYPES } from '../../../../../services/notice-of-intent/notice-of-intent.dto';
+import { STRUCTURE_TYPE_LABEL_MAP } from '../../../../notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component';
@Component({
selector: 'app-pfrs-details[applicationSubmission]',
@@ -11,10 +13,35 @@ import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
styleUrls: ['./pfrs-details.component.scss'],
})
export class PfrsDetailsComponent {
+ isSoilStructureFarmUseReasonVisible = false;
+ isSoilStructureResidentialUseReasonVisible = false;
+ isSoilAgriParcelActivityVisible = false;
+ isSoilStructureResidentialAccessoryUseReasonVisible = false;
+ isSoilOtherStructureVisible = false;
+
_applicationSubmission: ApplicationSubmissionDto | undefined;
@Input() set applicationSubmission(application: ApplicationSubmissionDto | undefined) {
if (application) {
this._applicationSubmission = application;
+
+ this.isSoilStructureFarmUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialUseReasonVisible = application.soilProposedStructures.some(
+ (structure) =>
+ structure.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilAgriParcelActivityVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialAccessoryUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilOtherStructureVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.OTHER,
+ );
}
}
@@ -23,6 +50,7 @@ export class PfrsDetailsComponent {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.reclamationPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.RECLAMATION_PLAN);
+ this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
this.noticeOfWork = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.NOTICE_OF_WORK);
}
}
@@ -30,6 +58,7 @@ export class PfrsDetailsComponent {
crossSections: ApplicationDocumentDto[] = [];
proposalMap: ApplicationDocumentDto[] = [];
reclamationPlans: ApplicationDocumentDto[] = [];
+ buildingPlans: ApplicationDocumentDto[] = [];
noticeOfWork: ApplicationDocumentDto[] = [];
constructor(private router: Router, private applicationDocumentService: ApplicationDocumentService) {}
@@ -37,4 +66,12 @@ export class PfrsDetailsComponent {
async openFile(file: ApplicationDocumentDto) {
await this.applicationDocumentService.download(file.uuid, file.fileName);
}
+
+ mapStructureTypeValueToLabel(value: STRUCTURE_TYPES | null): string | null {
+ if (value === null) {
+ return null;
+ }
+
+ return STRUCTURE_TYPE_LABEL_MAP[value];
+ }
}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.html b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.html
index 0d22a0273f..563e0dbb4a 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.html
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.html
@@ -1,4 +1,12 @@
+
Are you removing soil and placing fill in order to build a structure?
+
+
+ {{ _applicationSubmission.soilIsNewStructure ? 'Yes' : 'No' }}
+
+
+
+
Has the ALC previously received an application or Notice of Intent for this proposal?
@@ -70,21 +78,96 @@
m
-
- What alternative measures have you considered or attempted before proposing to place fill?
-
-
- {{ _applicationSubmission.soilAlternativeMeasures }}
-
-
Describe the type, origin and quality of fill proposed to be placed.
{{ _applicationSubmission.soilFillTypeToPlace }}
-
What steps will be taken to reduce impacts to surrounding agricultural land?
-
- {{ _applicationSubmission.soilReduceNegativeImpacts }}
-
+
+
+ The total floor area (m2) for each of the proposed structure(s)
+
+
#
+
Type
+
Area
+
+
+ {{ i + 1 }}
+
+
+ {{ mapStructureTypeValueToLabel(structure.type) }}
+
+
+
+ {{ structure.area }}
m2
+
+
+
+
+
+
+
+ Describe how the structure is necessary for farm use
+
+ {{ _applicationSubmission.soilStructureFarmUseReason }}
+
+
+
+
+
+
+ Describe why placing fill/removing soil is required for the residential structure(s)
+
+
+ {{ _applicationSubmission.soilStructureResidentialUseReason }}
+
+
+
+
+
+ Describe the current or proposed agricultural activity on the parcel(s)
+
+ {{ _applicationSubmission.soilAgriParcelActivity }}
+
+
+
+
+
+
+ Describe the intended use of the residential accessory structure(s) and why placing fill/removing soil is
+ required
+
+
+ {{ _applicationSubmission.soilStructureResidentialAccessoryUseReason }}
+
+
+
+
+
+
+ Describe the intended use of the 'Other' structure(s) and why placing fill/removing soil is required
+
+
+ {{ _applicationSubmission.soilStructureOtherUseReason }}
+
+
+
+
+
+
+
+ What alternative measures have you considered or attempted before proposing to place fill?
+
+
+ {{ _applicationSubmission.soilAlternativeMeasures }}
+
+
+ What steps will be taken to reduce impacts to surrounding agricultural land?
+
+ {{ _applicationSubmission.soilReduceNegativeImpacts }}
+
+
Proposal Map / Site Plan
@@ -92,16 +175,30 @@
{{ file.fileName }}
-
Cross Sections
-
-
Reclamation Plan
-
+
+
+ Cross Sections
+
+
+ Reclamation Plan
+
+
+
+
+ Detailed Building Plan(s)
+
+
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.scss b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.scss
index e69de29bb2..8c01a936dc 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.scss
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.scss
@@ -0,0 +1,7 @@
+.structure-table {
+ display: grid;
+ grid-template-columns: max-content max-content max-content;
+ overflow-x: auto;
+ grid-column-gap: 36px;
+ grid-row-gap: 12px;
+}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.ts b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.ts
index 2b4f326bbc..0fb6cd6ff8 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.ts
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/pofo-details/pofo-details.component.ts
@@ -4,6 +4,8 @@ import { ApplicationDocumentDto } from '../../../../../services/application/appl
import { ApplicationDocumentService } from '../../../../../services/application/application-document/application-document.service';
import { ApplicationSubmissionDto } from '../../../../../services/application/application.dto';
import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
+import { STRUCTURE_TYPES } from '../../../../../services/notice-of-intent/notice-of-intent.dto';
+import { STRUCTURE_TYPE_LABEL_MAP } from '../../../../notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component';
@Component({
selector: 'app-pofo-details[applicationSubmission]',
@@ -11,10 +13,35 @@ import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
styleUrls: ['./pofo-details.component.scss'],
})
export class PofoDetailsComponent {
+ isSoilStructureFarmUseReasonVisible = false;
+ isSoilStructureResidentialUseReasonVisible = false;
+ isSoilAgriParcelActivityVisible = false;
+ isSoilStructureResidentialAccessoryUseReasonVisible = false;
+ isSoilOtherStructureVisible = false;
+
_applicationSubmission: ApplicationSubmissionDto | undefined;
@Input() set applicationSubmission(application: ApplicationSubmissionDto | undefined) {
if (application) {
this._applicationSubmission = application;
+
+ this.isSoilStructureFarmUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialUseReasonVisible = application.soilProposedStructures.some(
+ (structure) =>
+ structure.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilAgriParcelActivityVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialAccessoryUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilOtherStructureVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.OTHER,
+ );
}
}
@@ -23,16 +50,26 @@ export class PofoDetailsComponent {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.reclamationPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.RECLAMATION_PLAN);
+ this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
}
}
crossSections: ApplicationDocumentDto[] = [];
proposalMap: ApplicationDocumentDto[] = [];
reclamationPlans: ApplicationDocumentDto[] = [];
+ buildingPlans: ApplicationDocumentDto[] = [];
constructor(private router: Router, private applicationDocumentService: ApplicationDocumentService) {}
async openFile(file: ApplicationDocumentDto) {
await this.applicationDocumentService.download(file.uuid, file.fileName);
}
+
+ mapStructureTypeValueToLabel(value: STRUCTURE_TYPES | null): string | null {
+ if (value === null) {
+ return null;
+ }
+
+ return STRUCTURE_TYPE_LABEL_MAP[value];
+ }
}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.html b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.html
index 8ec3a2ec4c..20d9f7f457 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.html
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.html
@@ -1,4 +1,12 @@
+
Are you removing soil and placing fill in order to build a structure?
+
+
+ {{ _applicationSubmission.soilIsNewStructure ? 'Yes' : 'No' }}
+
+
+
+
Has the ALC previously received an application or Notice of Intent for this proposal?
@@ -76,10 +84,85 @@
{{ _applicationSubmission.soilTypeRemoved }}
-
What steps will be taken to reduce impacts to surrounding agricultural land?
-
- {{ _applicationSubmission.soilReduceNegativeImpacts }}
-
+
+
+ The total floor area (m2) for each of the proposed structure(s)
+
+
#
+
Type
+
Area
+
+
+ {{ i + 1 }}
+
+
+ {{ mapStructureTypeValueToLabel(structure.type) }}
+
+
+
+ {{ structure.area }}
m2
+
+
+
+
+
+
+
+ Describe how the structure is necessary for farm use
+
+ {{ _applicationSubmission.soilStructureFarmUseReason }}
+
+
+
+
+
+
+ Describe why placing fill/removing soil is required for the residential structure(s)
+
+
+ {{ _applicationSubmission.soilStructureResidentialUseReason }}
+
+
+
+
+
+ Describe the current or proposed agricultural activity on the parcel(s)
+
+ {{ _applicationSubmission.soilAgriParcelActivity }}
+
+
+
+
+
+
+ Describe the intended use of the residential accessory structure(s) and why placing fill/removing soil is
+ required
+
+
+ {{ _applicationSubmission.soilStructureResidentialAccessoryUseReason }}
+
+
+
+
+
+
+ Describe the intended use of the 'Other' structure(s) and why placing fill/removing soil is required
+
+
+ {{ _applicationSubmission.soilStructureOtherUseReason }}
+
+
+
+
+
+
+ What steps will be taken to reduce impacts to surrounding agricultural land?
+
+ {{ _applicationSubmission.soilReduceNegativeImpacts }}
+
+
Proposal Map / Site Plan
@@ -87,16 +170,30 @@
{{ file.fileName }}
-
Cross Sections
-
-
Reclamation Plan
-
+
+
+ Cross Sections
+
+
+ Reclamation Plan
+
+
+
+
+ Detailed Building Plan(s)
+
+
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.scss b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.scss
index e69de29bb2..8c01a936dc 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.scss
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.scss
@@ -0,0 +1,7 @@
+.structure-table {
+ display: grid;
+ grid-template-columns: max-content max-content max-content;
+ overflow-x: auto;
+ grid-column-gap: 36px;
+ grid-row-gap: 12px;
+}
diff --git a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.ts b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.ts
index bd32944e31..355f600350 100644
--- a/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.ts
+++ b/alcs-frontend/src/app/features/application/applicant-info/application-details/roso-details/roso-details.component.ts
@@ -4,6 +4,8 @@ import { ApplicationDocumentDto } from '../../../../../services/application/appl
import { ApplicationDocumentService } from '../../../../../services/application/application-document/application-document.service';
import { ApplicationSubmissionDto } from '../../../../../services/application/application.dto';
import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
+import { STRUCTURE_TYPES } from '../../../../../services/notice-of-intent/notice-of-intent.dto';
+import { STRUCTURE_TYPE_LABEL_MAP } from '../../../../notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component';
@Component({
selector: 'app-roso-details[applicationSubmission]',
@@ -11,10 +13,35 @@ import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
styleUrls: ['./roso-details.component.scss'],
})
export class RosoDetailsComponent {
+ isSoilStructureFarmUseReasonVisible = false;
+ isSoilStructureResidentialUseReasonVisible = false;
+ isSoilAgriParcelActivityVisible = false;
+ isSoilStructureResidentialAccessoryUseReasonVisible = false;
+ isSoilOtherStructureVisible = false;
+
_applicationSubmission: ApplicationSubmissionDto | undefined;
@Input() set applicationSubmission(application: ApplicationSubmissionDto | undefined) {
if (application) {
this._applicationSubmission = application;
+
+ this.isSoilStructureFarmUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialUseReasonVisible = application.soilProposedStructures.some(
+ (structure) =>
+ structure.type === STRUCTURE_TYPES.PRINCIPAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ADDITIONAL_RESIDENCE ||
+ structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilAgriParcelActivityVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.FARM_STRUCTURE,
+ );
+ this.isSoilStructureResidentialAccessoryUseReasonVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.ACCESSORY_STRUCTURE,
+ );
+ this.isSoilOtherStructureVisible = application.soilProposedStructures.some(
+ (structure) => structure.type === STRUCTURE_TYPES.OTHER,
+ );
}
}
@@ -23,16 +50,26 @@ export class RosoDetailsComponent {
this.crossSections = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.CROSS_SECTIONS);
this.proposalMap = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.PROPOSAL_MAP);
this.reclamationPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.RECLAMATION_PLAN);
+ this.buildingPlans = documents.filter((document) => document.type?.code === DOCUMENT_TYPE.BUILDING_PLAN);
}
}
crossSections: ApplicationDocumentDto[] = [];
proposalMap: ApplicationDocumentDto[] = [];
reclamationPlans: ApplicationDocumentDto[] = [];
+ buildingPlans: ApplicationDocumentDto[] = [];
constructor(private router: Router, private applicationDocumentService: ApplicationDocumentService) {}
async openFile(file: ApplicationDocumentDto) {
await this.applicationDocumentService.download(file.uuid, file.fileName);
}
+
+ mapStructureTypeValueToLabel(value: STRUCTURE_TYPES | null): string | null {
+ if (value === null) {
+ return null;
+ }
+
+ return STRUCTURE_TYPE_LABEL_MAP[value];
+ }
}
diff --git a/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component.ts b/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component.ts
index fba6a14e39..e0687da116 100644
--- a/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component.ts
+++ b/alcs-frontend/src/app/features/notice-of-intent/applicant-info/notice-of-intent-details/additional-information/additional-information.component.ts
@@ -9,7 +9,7 @@ import {
} from '../../../../../services/notice-of-intent/notice-of-intent.dto';
import { DOCUMENT_TYPE } from '../../../../../shared/document/document.dto';
-const NOI_STRUCTURE_TYPE_LABEL_MAP: Record