ember-ebau-gwr 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/addon/components/linked-models.hbs +8 -3
- package/addon/components/linked-projects.hbs +29 -28
- package/addon/components/project-nav.js +1 -1
- package/addon/controllers/project/form.js +40 -118
- package/addon/controllers/project/linked-buildings.js +0 -7
- package/addon/models/building.js +5 -2
- package/addon/models/construction-project.js +7 -10
- package/addon/models/options.js +1 -1
- package/addon/services/building-entrance.js +12 -8
- package/addon/services/building.js +27 -10
- package/addon/services/construction-project.js +8 -12
- package/addon/services/gwr.js +12 -13
- package/addon/templates/building/edit/dwellings.hbs +42 -40
- package/addon/templates/building/edit/entrances.hbs +15 -14
- package/addon/templates/project/form.hbs +29 -73
- package/addon/templates/project/linked-buildings.hbs +31 -28
- package/package.json +6 -6
- package/translations/building/de.yaml +2 -1
- package/translations/building/fr.yaml +5 -3
- package/translations/construction-project/de.yaml +4 -2
- package/translations/construction-project/fr.yaml +4 -2
- package/translations/de.yaml +9 -25
- package/translations/fr.yaml +6 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# [7.3.0](https://github.com/inosca/ember-ebau-gwr/compare/v7.2.1...v7.3.0) (2023-07-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **extractErrorsFromXML:** use object for error list for readability ([5f552b8](https://github.com/inosca/ember-ebau-gwr/commit/5f552b80a448ed54845fe22d6ab2823d0652b738))
|
|
7
|
+
* **project/form:** fix spelling error on class ([f036b31](https://github.com/inosca/ember-ebau-gwr/commit/f036b310170c2369fa10ec9f47f8e79484b1ccaf))
|
|
8
|
+
* **translations:** add french deepl translations ([eeab6fe](https://github.com/inosca/ember-ebau-gwr/commit/eeab6febca62c37765860c2cb728bf81fc6e4d93))
|
|
9
|
+
* **translations:** spelling ([2802f37](https://github.com/inosca/ember-ebau-gwr/commit/2802f376747ad26cf6606cc9dcd9fc6d6b039e7e))
|
|
10
|
+
* **work:** allow linked work for all types of constructions ([cde554b](https://github.com/inosca/ember-ebau-gwr/commit/cde554bbe0851360c397ad69c348b56a3d2b3642))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **building:** add error mapping for forbidden buildingClass Landwirtschaftliche Betriebsgebäude ([027357f](https://github.com/inosca/ember-ebau-gwr/commit/027357fc8ab91ec8abc04197ab223ae91013d910))
|
|
16
|
+
* **constructionProject:** add Sonderbau as a typeOfConstructionProject ([defbd9b](https://github.com/inosca/ember-ebau-gwr/commit/defbd9b649adf767c61dabfa17159b002e12e683))
|
|
17
|
+
|
|
18
|
+
## [7.2.1](https://github.com/inosca/ember-ebau-gwr/compare/v7.2.0...v7.2.1) (2023-07-03)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **project:** improve styling of info box for special constructions ([bceb735](https://github.com/inosca/ember-ebau-gwr/commit/bceb735736fad4a45a062f42ef1bbce7960c9b16))
|
|
24
|
+
|
|
1
25
|
# [7.2.0](https://github.com/inosca/ember-ebau-gwr/compare/v7.1.0...v7.2.0) (2023-06-29)
|
|
2
26
|
|
|
3
27
|
|
|
@@ -20,9 +20,14 @@
|
|
|
20
20
|
<tbody>
|
|
21
21
|
{{#each @models as |model|}}
|
|
22
22
|
<tr>
|
|
23
|
-
{{yield model}}
|
|
24
|
-
{{
|
|
25
|
-
|
|
23
|
+
{{yield model to="list"}}
|
|
24
|
+
{{! If the model is a work and has a linked building, we display an infotext that the work is linked to the building}}
|
|
25
|
+
{{#if
|
|
26
|
+
(and (eq @modelName "building-work") (not model.building.isNew))
|
|
27
|
+
}}
|
|
28
|
+
{{yield model to="buildingLink"}}
|
|
29
|
+
{{else if @removeLink}}
|
|
30
|
+
<td class="uk-table-shrink uk-text-right">
|
|
26
31
|
<button
|
|
27
32
|
type="button"
|
|
28
33
|
class="uk-icon-button"
|
|
@@ -4,33 +4,34 @@
|
|
|
4
4
|
@searchRoute="search-project"
|
|
5
5
|
@newRoute="project.new"
|
|
6
6
|
...attributes
|
|
7
|
-
as |project|
|
|
8
7
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{{project.EPROID}}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{{project.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
8
|
+
<:list as |project|>
|
|
9
|
+
<td
|
|
10
|
+
class={{concat
|
|
11
|
+
"uk-table-shrink "
|
|
12
|
+
(if (eq @activeProjectId project.EPROID) "uk-text-bold")
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
<LinkTo @route="project.form" @model={{project.EPROID}} class="uk-link">
|
|
16
|
+
{{project.EPROID}}
|
|
17
|
+
</LinkTo>
|
|
18
|
+
</td>
|
|
19
|
+
<td class={{if (eq @activeProjectId project.EPROID) "uk-text-bold"}}>
|
|
20
|
+
{{project.constructionProjectDescription}}
|
|
21
|
+
</td>
|
|
22
|
+
<td class="uk-table-shrink">
|
|
23
|
+
{{#if (eq @activeProjectId project.EPROID)}}
|
|
24
|
+
<button
|
|
25
|
+
type="button"
|
|
26
|
+
class="uk-icon-button"
|
|
27
|
+
uk-icon="trash"
|
|
28
|
+
uk-tooltip="title: {{t
|
|
29
|
+
'ember-gwr.components.linkedModels.removeLink'
|
|
30
|
+
}}; container: {{this.config.modalContainer}}"
|
|
31
|
+
{{on "click" this.removeProjectLink}}
|
|
32
|
+
>
|
|
33
|
+
</button>
|
|
34
|
+
{{/if}}
|
|
35
|
+
</td>
|
|
36
|
+
</:list>
|
|
36
37
|
</LinkedModels>
|
|
@@ -18,7 +18,7 @@ export default class ProjectNavComponent extends Component {
|
|
|
18
18
|
)
|
|
19
19
|
: this.args.projects[0];
|
|
20
20
|
|
|
21
|
-
return project?.typeOfConstructionProject
|
|
21
|
+
return project?.typeOfConstructionProject === 6010
|
|
22
22
|
? this.intl.t(
|
|
23
23
|
"ember-gwr.linkedBuildings.buildingDisabledForInfrastructure"
|
|
24
24
|
)
|
|
@@ -11,6 +11,7 @@ import ConstructionProjectValidations from "ember-ebau-gwr/validations/construct
|
|
|
11
11
|
export default class ProjectFormController extends ImportController {
|
|
12
12
|
ConstructionProjectValidations = ConstructionProjectValidations;
|
|
13
13
|
kindOfWorkOptions = BuildingWork.kindOfWorkOptions;
|
|
14
|
+
ConstructionProject = ConstructionProject;
|
|
14
15
|
|
|
15
16
|
@service constructionProject;
|
|
16
17
|
@service building;
|
|
@@ -26,7 +27,6 @@ export default class ProjectFormController extends ImportController {
|
|
|
26
27
|
@tracked typeOfConstructionProject;
|
|
27
28
|
@tracked removedWork = [];
|
|
28
29
|
@tracked errors;
|
|
29
|
-
@tracked showConfirmationDialog = false;
|
|
30
30
|
|
|
31
31
|
choiceOptions = Options;
|
|
32
32
|
|
|
@@ -45,6 +45,29 @@ export default class ProjectFormController extends ImportController {
|
|
|
45
45
|
return { correction: true, change: true };
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
get hasRemoveWorkLink() {
|
|
49
|
+
return !(this.project.isNew && this.project.work.length === 1);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
get typeOfConstructionProjectHint() {
|
|
53
|
+
switch (this.typeOfConstructionProject) {
|
|
54
|
+
case this.ConstructionProject.INFRASTRUCTURE: {
|
|
55
|
+
return this.intl.t(
|
|
56
|
+
"ember-gwr.linkedBuildings.buildingDisabledForInfrastructure"
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
case this.ConstructionProject.SUPERSTRUCTURE: {
|
|
60
|
+
return this.intl.t("ember-gwr.linkedBuildings.superstructureInfo");
|
|
61
|
+
}
|
|
62
|
+
case this.ConstructionProject.SPECIALSTRUCTURE: {
|
|
63
|
+
return this.intl.t("ember-gwr.linkedBuildings.specialstructureInfo");
|
|
64
|
+
}
|
|
65
|
+
default: {
|
|
66
|
+
return "";
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
48
71
|
@lastValue("fetchProject") project;
|
|
49
72
|
@task
|
|
50
73
|
*fetchProject() {
|
|
@@ -82,39 +105,25 @@ export default class ProjectFormController extends ImportController {
|
|
|
82
105
|
yield this.constructionProject.all.perform(this.model.instanceId);
|
|
83
106
|
this.router.transitionTo("project.form", project.EPROID);
|
|
84
107
|
} else {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
this.workWithoutBuildings.length > 1)
|
|
92
|
-
) {
|
|
93
|
-
this.showConfirmationDialog = true;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (this.typeOfConstructionProject === 6010) {
|
|
98
|
-
const added = this.project.work.filter((work) => work.isNew);
|
|
99
|
-
yield Promise.all(
|
|
100
|
-
added.map((work) =>
|
|
101
|
-
this.constructionProject.addWorkToProject(
|
|
102
|
-
this.model.projectId,
|
|
103
|
-
work
|
|
104
|
-
)
|
|
108
|
+
const added = this.project.work.filter((work) => work.isNew);
|
|
109
|
+
yield Promise.all(
|
|
110
|
+
added.map((work) =>
|
|
111
|
+
this.constructionProject.addWorkToProject(
|
|
112
|
+
this.model.projectId,
|
|
113
|
+
work
|
|
105
114
|
)
|
|
106
|
-
)
|
|
115
|
+
)
|
|
116
|
+
);
|
|
107
117
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
)
|
|
118
|
+
yield Promise.all(
|
|
119
|
+
this.removedWork.map((work) =>
|
|
120
|
+
this.constructionProject.removeWorkFromProject(
|
|
121
|
+
this.model.projectId,
|
|
122
|
+
work.ARBID
|
|
114
123
|
)
|
|
115
|
-
)
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
)
|
|
125
|
+
);
|
|
126
|
+
this.removedWork = [];
|
|
118
127
|
yield this.constructionProject.update(this.project);
|
|
119
128
|
}
|
|
120
129
|
|
|
@@ -231,93 +240,6 @@ export default class ProjectFormController extends ImportController {
|
|
|
231
240
|
this.project.work = [...this.project.work, new BuildingWork()];
|
|
232
241
|
}
|
|
233
242
|
|
|
234
|
-
@task
|
|
235
|
-
*addDefaultWork() {
|
|
236
|
-
const buildingWork = yield this.constructionProject.addDefaultWork(
|
|
237
|
-
this.project.EPROID
|
|
238
|
-
);
|
|
239
|
-
this.project.work = [...this.project.work, buildingWork];
|
|
240
|
-
return buildingWork;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
@task
|
|
244
|
-
*removeBuildings() {
|
|
245
|
-
return yield Promise.all(
|
|
246
|
-
this.workWithBuildings.map(async (work) => {
|
|
247
|
-
await this.building.unbindBuildingFromConstructionProject(
|
|
248
|
-
this.project.EPROID,
|
|
249
|
-
work.building.EGID
|
|
250
|
-
);
|
|
251
|
-
// locally remove building from work list
|
|
252
|
-
// so that it runs through second save check
|
|
253
|
-
this.project.work = this.project.work.filter((w) => w !== work);
|
|
254
|
-
})
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
@task
|
|
259
|
-
*removeWork() {
|
|
260
|
-
// always create default work of type "Neubau" to
|
|
261
|
-
// prevent errors from API, remove all others
|
|
262
|
-
const defaultWork = yield this.addDefaultWork.perform();
|
|
263
|
-
return yield Promise.all(
|
|
264
|
-
this.workWithoutBuildings.map(async (work) => {
|
|
265
|
-
if (work.ARBID !== defaultWork.ARBID) {
|
|
266
|
-
if (!work.isNew) {
|
|
267
|
-
await this.constructionProject.removeWorkFromProject(
|
|
268
|
-
this.project.EPROID,
|
|
269
|
-
work.ARBID
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
// locally remove work from work list
|
|
273
|
-
// so that it runs through second save check
|
|
274
|
-
this.project.work = this.project.work.filter((w) => w !== work);
|
|
275
|
-
}
|
|
276
|
-
})
|
|
277
|
-
);
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
@task
|
|
281
|
-
*processTypeOfConstructionProjectChange() {
|
|
282
|
-
this.showConfirmationDialog = false;
|
|
283
|
-
|
|
284
|
-
if (
|
|
285
|
-
this.typeOfConstructionProject === 6010 &&
|
|
286
|
-
this.workWithBuildings.length
|
|
287
|
-
) {
|
|
288
|
-
if (!this.workWithoutBuildings.length) {
|
|
289
|
-
yield this.addDefaultWork.perform();
|
|
290
|
-
}
|
|
291
|
-
yield this.removeBuildings.perform();
|
|
292
|
-
} else if (
|
|
293
|
-
this.typeOfConstructionProject === 6011 &&
|
|
294
|
-
this.workWithoutBuildings.length
|
|
295
|
-
) {
|
|
296
|
-
yield this.removeWork.perform();
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
this.saveProject.perform();
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
@action
|
|
303
|
-
cancelTypeOfConstructionProjectChange() {
|
|
304
|
-
this.showConfirmationDialog = false;
|
|
305
|
-
// Reset the type of construction project set on model during submit
|
|
306
|
-
// This ensures that the buildings tab is correctly (in)activated
|
|
307
|
-
this.project.typeOfConstructionProject =
|
|
308
|
-
this.typeOfConstructionProject === 6011 ? 6010 : 6011;
|
|
309
|
-
|
|
310
|
-
this.typeOfConstructionProject = this.project.typeOfConstructionProject;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
get workWithoutBuildings() {
|
|
314
|
-
return this.project.work.filter((work) => work.building.isNew);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
get workWithBuildings() {
|
|
318
|
-
return this.project.work.filter((work) => !work.building.isNew);
|
|
319
|
-
}
|
|
320
|
-
|
|
321
243
|
@action
|
|
322
244
|
isClientMismatch(changeset) {
|
|
323
245
|
const personNamePath =
|
|
@@ -41,13 +41,6 @@ export default class ProjectLinkedBuildingsController extends Controller {
|
|
|
41
41
|
this.model,
|
|
42
42
|
EGID
|
|
43
43
|
);
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
!this.workWithoutBuildings.length &&
|
|
47
|
-
this.workWithBuildings.length === 1
|
|
48
|
-
) {
|
|
49
|
-
await this.constructionProject.addDefaultWork(this.model);
|
|
50
|
-
}
|
|
51
44
|
await this.fetchBuildings.perform();
|
|
52
45
|
} catch (error) {
|
|
53
46
|
console.error(error);
|
package/addon/models/building.js
CHANGED
|
@@ -168,9 +168,9 @@ export default class Building extends XMLModel {
|
|
|
168
168
|
{{/if}}
|
|
169
169
|
|
|
170
170
|
{{#if model.isNew}}
|
|
171
|
-
{{!--The default building entrance on a new building is stored as a single
|
|
171
|
+
{{!--The default building entrance on a new building is stored as a single
|
|
172
172
|
element to facilitate form validation--}}
|
|
173
|
-
{{!--After building creation the building entrances are stored in an
|
|
173
|
+
{{!--After building creation the building entrances are stored in an
|
|
174
174
|
array on the building and handled through building entrance API requests--}}
|
|
175
175
|
<ns2:buildingEntrance>
|
|
176
176
|
{{> BuildingEntrance model=model.buildingEntrance}}
|
|
@@ -348,6 +348,9 @@ export default class Building extends XMLModel {
|
|
|
348
348
|
[this.STATUS_DEMOLISHED]: {},
|
|
349
349
|
[this.STATUS_NOT_REALIZED]: {},
|
|
350
350
|
};
|
|
351
|
+
|
|
352
|
+
static FORBIDDEN_BUILDING_CLASS_ERROR =
|
|
353
|
+
"This building class is not allowed for a building newly being added into the FRBD. Please chose among building classes 1276, 1277, 1278 instead.";
|
|
351
354
|
}
|
|
352
355
|
|
|
353
356
|
export class Volume extends XMLModel {
|
|
@@ -149,16 +149,9 @@ export default class ConstructionProject extends XMLModel {
|
|
|
149
149
|
{{{modelField model "projectFreeText2"}}}
|
|
150
150
|
|
|
151
151
|
{{#if model.isNew}}
|
|
152
|
-
{{#
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
<ns2:ARBID>1</ns2:ARBID>
|
|
156
|
-
</ns2:work>
|
|
157
|
-
{{else if (eq model.typeOfConstructionProject 6010)}}
|
|
158
|
-
{{#each model.work}}
|
|
159
|
-
{{> BuildingWork model=this}}
|
|
160
|
-
{{/each}}
|
|
161
|
-
{{/if}}
|
|
152
|
+
{{#each model.work}}
|
|
153
|
+
{{> BuildingWork model=this}}
|
|
154
|
+
{{/each}}
|
|
162
155
|
{{/if}}
|
|
163
156
|
</ns2:constructionProject>
|
|
164
157
|
`;
|
|
@@ -172,6 +165,10 @@ export default class ConstructionProject extends XMLModel {
|
|
|
172
165
|
static STATUS_NOT_REALIZED = 6708;
|
|
173
166
|
static STATUS_WITHDRAWN = 6709;
|
|
174
167
|
|
|
168
|
+
static INFRASTRUCTURE = 6010;
|
|
169
|
+
static SUPERSTRUCTURE = 6011;
|
|
170
|
+
static SPECIALSTRUCTURE = 6012;
|
|
171
|
+
|
|
175
172
|
// valid state transitions
|
|
176
173
|
static projectStatesMapping = {
|
|
177
174
|
[this.STATUS_PROJECTED]: [
|
package/addon/models/options.js
CHANGED
|
@@ -8,7 +8,7 @@ export const typeOfConstructionOptions = [
|
|
|
8
8
|
6258, 6259, 6261, 6262, 6269, 6271, 6272, 6273, 6274, 6276, 6278, 6279, 6281,
|
|
9
9
|
6282, 6283, 6291, 6292, 6293, 6294, 6295, 6296, 6299,
|
|
10
10
|
];
|
|
11
|
-
export const typeOfConstructionProjectOptions = [6010, 6011];
|
|
11
|
+
export const typeOfConstructionProjectOptions = [6010, 6011, 6012];
|
|
12
12
|
export const typeOfPermitOptions = [
|
|
13
13
|
5000, 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008, 5009, 5011, 5012, 5015,
|
|
14
14
|
5021, 5022, 5023, 5031, 5041, 5043, 5044, 5051, 5061, 5062, 5064, 5063, 5071,
|
|
@@ -68,13 +68,17 @@ export default class BuildingEntranceService extends GwrService {
|
|
|
68
68
|
const xmlErrors = await response.text();
|
|
69
69
|
// Throw specific error message for
|
|
70
70
|
// mismatched locality - zip code errors
|
|
71
|
-
const errors = this.extractErrorsFromXML(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
const errors = this.extractErrorsFromXML(xmlErrors, [
|
|
72
|
+
{
|
|
73
|
+
errorKey: this.BuildingEntrance.LOCALITY_ERROR,
|
|
74
|
+
errorMessage: this.intl.t(
|
|
75
|
+
"ember-gwr.buildingEntrance.localityError",
|
|
76
|
+
{
|
|
77
|
+
htmlSafe: true,
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
},
|
|
81
|
+
]);
|
|
78
82
|
|
|
79
83
|
console.error("GWR API: addBuildingEntrance failed");
|
|
80
84
|
throw errors;
|
|
@@ -103,7 +107,7 @@ export default class BuildingEntranceService extends GwrService {
|
|
|
103
107
|
);
|
|
104
108
|
if (!response.ok) {
|
|
105
109
|
const xmlErrors = await response.text();
|
|
106
|
-
const errors = this.extractErrorsFromXML(xmlErrors
|
|
110
|
+
const errors = this.extractErrorsFromXML(xmlErrors);
|
|
107
111
|
|
|
108
112
|
console.error("GWR API: deactivateBuildingEntrance failed");
|
|
109
113
|
throw errors;
|
|
@@ -72,7 +72,14 @@ export default class BuildingService extends GwrService {
|
|
|
72
72
|
|
|
73
73
|
if (!response.ok) {
|
|
74
74
|
const xmlErrors = await response.text();
|
|
75
|
-
const errors = this.extractErrorsFromXML(xmlErrors
|
|
75
|
+
const errors = this.extractErrorsFromXML(xmlErrors, [
|
|
76
|
+
{
|
|
77
|
+
errorKey: Building.FORBIDDEN_BUILDING_CLASS_ERROR,
|
|
78
|
+
errorMessage: this.intl.t(
|
|
79
|
+
"ember-gwr.building.forbiddenBuildingClassError"
|
|
80
|
+
),
|
|
81
|
+
},
|
|
82
|
+
]);
|
|
76
83
|
|
|
77
84
|
console.error("GWR API: modifyBuilding failed");
|
|
78
85
|
throw errors;
|
|
@@ -101,15 +108,25 @@ export default class BuildingService extends GwrService {
|
|
|
101
108
|
|
|
102
109
|
if (!response.ok) {
|
|
103
110
|
const xmlErrors = await response.text();
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
111
|
+
const errors = this.extractErrorsFromXML(xmlErrors, [
|
|
112
|
+
{
|
|
113
|
+
errorKey: Building.FORBIDDEN_BUILDING_CLASS_ERROR,
|
|
114
|
+
|
|
115
|
+
errorMessage: this.intl.t(
|
|
116
|
+
"ember-gwr.building.forbiddenBuildingClassError"
|
|
117
|
+
),
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
errorKey: this.BuildingEntrance.LOCALITY_ERROR,
|
|
122
|
+
errorMessage: this.intl.t(
|
|
123
|
+
"ember-gwr.building.buildingEntrance.localityError",
|
|
124
|
+
{
|
|
125
|
+
htmlSafe: true,
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
},
|
|
129
|
+
]);
|
|
113
130
|
|
|
114
131
|
await this.constructionProject.removeWorkFromProject(EPROID, work.ARBID);
|
|
115
132
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { inject as service } from "@ember/service";
|
|
2
2
|
import { task, lastValue } from "ember-concurrency";
|
|
3
3
|
import Building from "ember-ebau-gwr/models/building";
|
|
4
|
-
import BuildingWork from "ember-ebau-gwr/models/building-work";
|
|
5
4
|
import ConstructionProject from "ember-ebau-gwr/models/construction-project";
|
|
6
5
|
import ConstructionProjectsList from "ember-ebau-gwr/models/construction-projects-list";
|
|
7
6
|
import Dwelling from "ember-ebau-gwr/models/dwelling";
|
|
@@ -72,12 +71,6 @@ export default class ConstructionProjectService extends GwrService {
|
|
|
72
71
|
return this.createAndCache(xml);
|
|
73
72
|
}
|
|
74
73
|
|
|
75
|
-
async addDefaultWork(projectId) {
|
|
76
|
-
const buildingWork = new BuildingWork();
|
|
77
|
-
buildingWork.kindOfWork = 6001;
|
|
78
|
-
return await this.addWorkToProject(projectId, buildingWork);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
74
|
async addWorkToProject(projectId, buildingWork) {
|
|
82
75
|
const body = this.xml.buildXMLRequest("addWorkToProject", buildingWork);
|
|
83
76
|
const response = await this.authFetch.fetch(
|
|
@@ -737,11 +730,14 @@ export default class ConstructionProjectService extends GwrService {
|
|
|
737
730
|
|
|
738
731
|
if (!response.ok) {
|
|
739
732
|
const xmlErrors = await response.text();
|
|
740
|
-
const errors = this.extractErrorsFromXML(
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
733
|
+
const errors = this.extractErrorsFromXML(xmlErrors, [
|
|
734
|
+
{
|
|
735
|
+
errorKey: this.ConstructionProject.MISSING_BUILDING_ERROR,
|
|
736
|
+
errorMessage: this.intl.t(
|
|
737
|
+
"ember-gwr.constructionProject.missingBuildingError"
|
|
738
|
+
),
|
|
739
|
+
},
|
|
740
|
+
]);
|
|
745
741
|
|
|
746
742
|
console.error(`GWR API: ${transition} failed`);
|
|
747
743
|
throw errors;
|
package/addon/services/gwr.js
CHANGED
|
@@ -113,7 +113,8 @@ export default class GwrService extends Service {
|
|
|
113
113
|
})[searchKey];
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
// (xml: String, errorsToMatch: [{errorKey: String,errorMsg: String}]) => [String]
|
|
117
|
+
extractErrorsFromXML(xml, errorsToMatch = []) {
|
|
117
118
|
const model = new XMLModel(xml);
|
|
118
119
|
model.setFieldsFromXML({
|
|
119
120
|
fields: {
|
|
@@ -122,18 +123,16 @@ export default class GwrService extends Service {
|
|
|
122
123
|
},
|
|
123
124
|
});
|
|
124
125
|
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return errors;
|
|
126
|
+
const customErrors =
|
|
127
|
+
model.error?.map(
|
|
128
|
+
(error) =>
|
|
129
|
+
errorsToMatch.find(({ errorKey }) => error === errorKey)
|
|
130
|
+
?.errorMessage ??
|
|
131
|
+
this.intl.t("ember-gwr.generalErrors.genericFormError")
|
|
132
|
+
) ?? [];
|
|
133
|
+
return customErrors.concat(
|
|
134
|
+
model.errorList?.map((error) => error.messageOfError) ?? []
|
|
135
|
+
);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
138
|
concatStates(states) {
|
|
@@ -7,46 +7,48 @@
|
|
|
7
7
|
@modelName="dwelling"
|
|
8
8
|
@newRoute="building.edit.dwelling.new"
|
|
9
9
|
@removeLink={{this.removeDwelling}}
|
|
10
|
-
as |model|
|
|
11
10
|
>
|
|
12
|
-
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
11
|
+
<:list as |model|>
|
|
12
|
+
<td class="uk-table-shrink">
|
|
13
|
+
<LinkTo
|
|
14
|
+
@route="building.edit.dwelling.edit"
|
|
15
|
+
@model={{model.EWID}}
|
|
16
|
+
class="uk-link"
|
|
17
|
+
>
|
|
18
|
+
{{model.EWID}}
|
|
19
|
+
</LinkTo>
|
|
20
|
+
</td>
|
|
21
|
+
<td>
|
|
22
|
+
{{concat
|
|
23
|
+
(t
|
|
24
|
+
"ember-gwr.buildingEntrance.title"
|
|
25
|
+
address=model.buildingEntrance.EDID
|
|
26
|
+
)
|
|
27
|
+
" - "
|
|
28
|
+
model.buildingEntrance.fullAddressText
|
|
29
|
+
}}
|
|
30
|
+
</td>
|
|
31
|
+
<td>
|
|
32
|
+
{{if
|
|
33
|
+
model.noOfHabitableRooms
|
|
34
|
+
(t
|
|
35
|
+
"ember-gwr.building.dwellings.rooms"
|
|
36
|
+
number=model.noOfHabitableRooms
|
|
37
|
+
)
|
|
38
|
+
"-"
|
|
39
|
+
}}
|
|
40
|
+
</td>
|
|
41
|
+
<td>
|
|
42
|
+
{{if
|
|
43
|
+
model.floor
|
|
44
|
+
(t model.floorLabel.label number=model.floorLabel.number)
|
|
45
|
+
"-"
|
|
46
|
+
}}
|
|
47
|
+
</td>
|
|
48
|
+
<td>
|
|
49
|
+
{{or model.locationOfDwellingOnFloor "-"}}
|
|
50
|
+
</td>
|
|
51
|
+
</:list>
|
|
50
52
|
</LinkedModels>
|
|
51
53
|
{{/if}}
|
|
52
|
-
</div>
|
|
54
|
+
</div>
|
|
@@ -14,20 +14,21 @@
|
|
|
14
14
|
building entrances and dwellings, to ensure that the requirements hold.
|
|
15
15
|
}}
|
|
16
16
|
@removeLink={{if (gt this.entrances.length 1) this.removeEntranceLink}}
|
|
17
|
-
as |model|
|
|
18
17
|
>
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
<:list as |model|>
|
|
19
|
+
<td class="uk-table-shrink">
|
|
20
|
+
<LinkTo
|
|
21
|
+
@route="building.edit.entrance.edit"
|
|
22
|
+
@model={{model.EDID}}
|
|
23
|
+
class="uk-link"
|
|
24
|
+
>
|
|
25
|
+
{{model.EDID}}
|
|
26
|
+
</LinkTo>
|
|
27
|
+
</td>
|
|
28
|
+
<td>
|
|
29
|
+
{{model.fullAddressText}}
|
|
30
|
+
</td>
|
|
31
|
+
</:list>
|
|
31
32
|
</LinkedModels>
|
|
32
33
|
{{/if}}
|
|
33
|
-
</div>
|
|
34
|
+
</div>
|
|
@@ -70,41 +70,16 @@
|
|
|
70
70
|
@attr="typeOfConstructionProject"
|
|
71
71
|
@gwrEnumOptions={{this.choiceOptions.typeOfConstructionProjectOptions}}
|
|
72
72
|
@on-update={{fn (mut this.typeOfConstructionProject)}}
|
|
73
|
-
@hint={{
|
|
74
|
-
(eq this.typeOfConstructionProject 6010)
|
|
75
|
-
(t "ember-gwr.linkedBuildings.buildingDisabledForInfrastructure")
|
|
76
|
-
(if
|
|
77
|
-
(eq this.typeOfConstructionProject 6011)
|
|
78
|
-
(t "ember-gwr.linkedBuildings.superstructureInfo")
|
|
79
|
-
)
|
|
80
|
-
}}
|
|
73
|
+
@hint={{this.typeOfConstructionProjectHint}}
|
|
81
74
|
/>
|
|
82
75
|
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<a
|
|
91
|
-
href={{housing-stat-link}}
|
|
92
|
-
target="_blank"
|
|
93
|
-
rel="noopener noreferrer"
|
|
94
|
-
>{{t "ember-gwr.specialConstructionWarning.link"}}</a>
|
|
95
|
-
{{t "ember-gwr.specialConstructionWarning.part2"}}
|
|
96
|
-
</div>
|
|
97
|
-
</span>
|
|
98
|
-
</div>
|
|
99
|
-
|
|
100
|
-
{{#if (eq this.typeOfConstructionProject 6010)}}
|
|
101
|
-
<LinkedModels
|
|
102
|
-
@models={{this.workWithoutBuildings}}
|
|
103
|
-
@modelName="building-work-infrastructure"
|
|
104
|
-
@removeLink={{if (gt this.project.work.length 1) this.removeWorkLink}}
|
|
105
|
-
@addLink={{this.addWorkLink}}
|
|
106
|
-
as |model|
|
|
107
|
-
>
|
|
76
|
+
<LinkedModels
|
|
77
|
+
@models={{this.project.work}}
|
|
78
|
+
@modelName="building-work"
|
|
79
|
+
@removeLink={{if this.hasRemoveWorkLink this.removeWorkLink}}
|
|
80
|
+
@addLink={{this.addWorkLink}}
|
|
81
|
+
>
|
|
82
|
+
<:list as |model|>
|
|
108
83
|
<td class="uk-table-expand">
|
|
109
84
|
<div class="uk-flex-inline uk-flex-middle">
|
|
110
85
|
{{#if model.isNew}}
|
|
@@ -152,8 +127,21 @@
|
|
|
152
127
|
{{/if}}
|
|
153
128
|
</div>
|
|
154
129
|
</td>
|
|
155
|
-
|
|
156
|
-
|
|
130
|
+
</:list>
|
|
131
|
+
<:buildingLink as |model|>
|
|
132
|
+
<td class="uk-text-nowrap">
|
|
133
|
+
{{t "ember-gwr.constructionProject.linkedWithBuilding"}}
|
|
134
|
+
<LinkTo
|
|
135
|
+
@route="building.edit.form"
|
|
136
|
+
@query={{hash projectId=this.project.EPROID}}
|
|
137
|
+
@model={{model.building.EGID}}
|
|
138
|
+
class="uk-link"
|
|
139
|
+
>
|
|
140
|
+
{{model.building.EGID}}
|
|
141
|
+
</LinkTo>
|
|
142
|
+
</td>
|
|
143
|
+
</:buildingLink>
|
|
144
|
+
</LinkedModels>
|
|
157
145
|
|
|
158
146
|
<Field
|
|
159
147
|
@inputType="textarea"
|
|
@@ -389,10 +377,12 @@
|
|
|
389
377
|
/>
|
|
390
378
|
</div>
|
|
391
379
|
</div>
|
|
392
|
-
{{else if
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
380
|
+
{{else if
|
|
381
|
+
(or
|
|
382
|
+
changeset.client.address.country.countryNameShort
|
|
383
|
+
(and import import.data.client.address.foreignZipCode)
|
|
384
|
+
)
|
|
385
|
+
}}
|
|
396
386
|
<Field @type="number" @attr="client.address.foreignZipCode" />
|
|
397
387
|
{{/if}}
|
|
398
388
|
<Field
|
|
@@ -411,37 +401,3 @@
|
|
|
411
401
|
</ModelForm>
|
|
412
402
|
{{/if}}
|
|
413
403
|
</div>
|
|
414
|
-
|
|
415
|
-
<UkModal
|
|
416
|
-
@visible={{this.showConfirmationDialog}}
|
|
417
|
-
@btnClose={{false}}
|
|
418
|
-
@bgClose={{false}}
|
|
419
|
-
@escClose={{false}}
|
|
420
|
-
@container={{this.config.modalContainer}}
|
|
421
|
-
as |modal|
|
|
422
|
-
>
|
|
423
|
-
<modal.header>
|
|
424
|
-
<h2 class="uk-modal-title">
|
|
425
|
-
{{t "ember-gwr.components.modelForm.project.confirmationTitle"}}
|
|
426
|
-
</h2>
|
|
427
|
-
</modal.header>
|
|
428
|
-
<modal.body>
|
|
429
|
-
{{#if (eq this.typeOfConstructionProject 6011)}}
|
|
430
|
-
{{t "ember-gwr.components.modelForm.project.confirmationSuperstructure"}}
|
|
431
|
-
{{else if (eq this.typeOfConstructionProject 6010)}}
|
|
432
|
-
{{t "ember-gwr.components.modelForm.project.confirmationInfrastructure"}}
|
|
433
|
-
{{/if}}
|
|
434
|
-
</modal.body>
|
|
435
|
-
<modal.footer @class="uk-text-right">
|
|
436
|
-
<UkButton
|
|
437
|
-
@color="default"
|
|
438
|
-
@label={{t "ember-gwr.components.modelForm.project.confirmationContinue"}}
|
|
439
|
-
@onClick={{perform this.processTypeOfConstructionProjectChange}}
|
|
440
|
-
/>
|
|
441
|
-
<UkButton
|
|
442
|
-
@color="primary"
|
|
443
|
-
@label={{t "ember-gwr.components.modelForm.project.confirmationCancel"}}
|
|
444
|
-
@onClick={{this.cancelTypeOfConstructionProjectChange}}
|
|
445
|
-
/>
|
|
446
|
-
</modal.footer>
|
|
447
|
-
</UkModal>
|
|
@@ -13,35 +13,38 @@
|
|
|
13
13
|
@searchQuery={{hash projectId=@model}}
|
|
14
14
|
@newRoute="building.new"
|
|
15
15
|
@newQuery={{hash projectId=@model}}
|
|
16
|
-
as |model|
|
|
17
16
|
>
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
17
|
+
<:list as |model|>
|
|
18
|
+
<td class="uk-table-shrink">
|
|
19
|
+
<LinkTo
|
|
20
|
+
@route="building.edit.form"
|
|
21
|
+
@query={{hash projectId=@model}}
|
|
22
|
+
@model={{model.building.EGID}}
|
|
23
|
+
class="uk-link"
|
|
24
|
+
>
|
|
25
|
+
{{model.building.EGID}}
|
|
26
|
+
</LinkTo>
|
|
27
|
+
</td>
|
|
28
|
+
<td>
|
|
29
|
+
<ul class="uk-list">
|
|
30
|
+
{{#each model.building.fullAddressTexts as |entrance|}}
|
|
31
|
+
<li>
|
|
32
|
+
{{entrance}}
|
|
33
|
+
</li>
|
|
34
|
+
{{/each}}
|
|
35
|
+
</ul>
|
|
36
|
+
</td>
|
|
37
|
+
<td>
|
|
38
|
+
{{model.building.nameOfBuilding}}
|
|
39
|
+
</td>
|
|
40
|
+
<td>
|
|
41
|
+
{{t
|
|
42
|
+
(concat
|
|
43
|
+
"ember-gwr.buildingWork.kindOfWorkOptions." model.kindOfWork
|
|
44
|
+
)
|
|
45
|
+
}}
|
|
46
|
+
</td>
|
|
47
|
+
</:list>
|
|
45
48
|
</LinkedModels>
|
|
46
49
|
<div class="uk-flex uk-flex-middle uk-flex-center">
|
|
47
50
|
<div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-ebau-gwr",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Ember engine to integrate ebau-gwr into an ember app.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"ember-flatpickr": "^4.0.0",
|
|
54
54
|
"ember-intl": "^5.7.2",
|
|
55
55
|
"ember-power-select": "^7.0.0",
|
|
56
|
-
"ember-resources": "^
|
|
56
|
+
"ember-resources": "^6.2.1",
|
|
57
57
|
"ember-truth-helpers": "^3.1.1",
|
|
58
58
|
"ember-uikit": "^8.0.0",
|
|
59
59
|
"ember-validated-form": "^6.2.0",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"ember-try": "2.0.0",
|
|
91
91
|
"eslint": "8.43.0",
|
|
92
92
|
"eslint-config-prettier": "8.8.0",
|
|
93
|
-
"eslint-plugin-ember": "11.
|
|
93
|
+
"eslint-plugin-ember": "11.10.0",
|
|
94
94
|
"eslint-plugin-import": "2.27.5",
|
|
95
|
-
"eslint-plugin-n": "16.0.
|
|
95
|
+
"eslint-plugin-n": "16.0.1",
|
|
96
96
|
"eslint-plugin-prettier": "4.2.1",
|
|
97
97
|
"eslint-plugin-qunit": "7.3.4",
|
|
98
98
|
"loader.js": "4.7.0",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"qunit-dom": "2.0.0",
|
|
104
104
|
"sass": "1.63.6",
|
|
105
105
|
"stylelint": "15.8.0",
|
|
106
|
-
"stylelint-config-standard-scss": "
|
|
106
|
+
"stylelint-config-standard-scss": "10.0.0",
|
|
107
107
|
"stylelint-prettier": "3.0.0",
|
|
108
108
|
"stylelint-scss": "5.0.1",
|
|
109
|
-
"webpack": "5.88.
|
|
109
|
+
"webpack": "5.88.1"
|
|
110
110
|
},
|
|
111
111
|
"engines": {
|
|
112
112
|
"node": "14.* || 16.* || >= 18"
|
|
@@ -26,6 +26,7 @@ ember-gwr:
|
|
|
26
26
|
backToProject: Zurück zum Bauprojekt
|
|
27
27
|
|
|
28
28
|
saveError: Beim Speichern des Gebäudes ist ein Fehler aufgetreten.
|
|
29
|
+
forbiddenBuildingClassError: 'Die Gebäudeklasse "Landwirtschaftliche Betriebsgebäude" darf bei der Erfassung von Gebäuden (Neubau) nicht mehr vergeben werden. Wählen Sie anstelle aus den folgenden Gebäudeklassen: "Gebäude für die Tierhaltung", "Gebäude für den Pflanzenbau" und "Andere landwirtschaftliche Gebäude".'
|
|
29
30
|
saveSuccess: Gebäude erfolgreich gespeichert.
|
|
30
31
|
entrances:
|
|
31
32
|
error: Beim Laden der Eingänge ist ein Fehler aufgetreten.
|
|
@@ -279,7 +280,7 @@ ember-gwr:
|
|
|
279
280
|
mainEntrance: Haupteingang
|
|
280
281
|
info: Nach der Erstellung des Gebäudes können weitere Eingänge hinzugefügt werden und die Strassen der Eingänge bearbeitet werden.
|
|
281
282
|
localityError: |-
|
|
282
|
-
Beim Speichern der Ortschaft des Haupteingangs ist ein Fehler aufgetreten.
|
|
283
|
+
Beim Speichern der Ortschaft des Haupteingangs ist ein Fehler aufgetreten.
|
|
283
284
|
Bitte überprüfen Sie die <b>Kombination aus PLZ und Ortsname</b>, diese sollten exakt
|
|
284
285
|
mit den hinterlegten Daten auf der <a target="_blank" href="https://map.geo.admin.ch/?lang=de">eidgenössischen Kartenplattform</a>
|
|
285
286
|
übereinstimmen.
|
|
@@ -26,6 +26,8 @@ ember-gwr:
|
|
|
26
26
|
backToProject: Retour au projet de construction
|
|
27
27
|
|
|
28
28
|
saveError: Une erreur s'est produite lors de la sauvegarde du bâtiment.
|
|
29
|
+
forbiddenBuildingClassError: |-
|
|
30
|
+
La classe de bâtiment "Bâtiments d'exploitation agricole" ne doit plus être attribuée lors de la saisie des bâtiments (nouvelles constructions). Choisissez à la place parmi les classes de bâtiments suivantes: "Bâtiments pour l'élevage", "Bâtiments pour la production végétale" et "Autres bâtiments agricoles".
|
|
29
31
|
saveSuccess: Bâtiment sauvegardé avec succès.
|
|
30
32
|
entrances:
|
|
31
33
|
error: Une erreur s'est produite lors du chargement des entrées.
|
|
@@ -279,7 +281,7 @@ ember-gwr:
|
|
|
279
281
|
mainEntrance: Entrée principale
|
|
280
282
|
info: Une fois le bâtiment créé, il est possible d'ajouter d'autres entrées et d'éditer les rues des entrées.
|
|
281
283
|
localityError: |-
|
|
282
|
-
Une erreur est survenue lors de l'enregistrement de la localité de
|
|
283
|
-
l'entrée principale. Veuillez vérifier la <b>combinaison du NPA et
|
|
284
|
-
de la désignation de la localité</b>, ceux-ci doivent correspondre exactement aux données
|
|
284
|
+
Une erreur est survenue lors de l'enregistrement de la localité de
|
|
285
|
+
l'entrée principale. Veuillez vérifier la <b>combinaison du NPA et
|
|
286
|
+
de la désignation de la localité</b>, ceux-ci doivent correspondre exactement aux données
|
|
285
287
|
enregistrées sur la <a target="_blank" href="https://map.geo.admin.ch/?lang=fr">plateforme cartographique fédérale</a>.
|
|
@@ -3,6 +3,7 @@ ember-gwr:
|
|
|
3
3
|
saveError: Beim Speichern des Bauprojektes ist ein Fehler aufgetreten.
|
|
4
4
|
saveSuccess: Bauprojekt erfolgreich gespeichert.
|
|
5
5
|
missingBuildingError: Bitte verknüpfen Sie zuerst ein Gebäude.
|
|
6
|
+
linkedWithBuilding: Verknüpft mit Gebäude
|
|
6
7
|
|
|
7
8
|
sections:
|
|
8
9
|
freeTextFields: Freitext Felder
|
|
@@ -309,11 +310,12 @@ ember-gwr:
|
|
|
309
310
|
zw: Simbabwe
|
|
310
311
|
countryNameShortPlaceholder: Wählen Sie ein Land...
|
|
311
312
|
|
|
312
|
-
typeOfConstructionProject:
|
|
313
|
-
typeOfConstructionProjectPlaceholder: Wählen Sie
|
|
313
|
+
typeOfConstructionProject: Art der Bauwerke
|
|
314
|
+
typeOfConstructionProjectPlaceholder: Wählen Sie eine Art der Bauwerke...
|
|
314
315
|
typeOfConstructionProjectOptions:
|
|
315
316
|
6010: Tiefbau
|
|
316
317
|
6011: Hochbau
|
|
318
|
+
6012: Sonderbau
|
|
317
319
|
|
|
318
320
|
typeOfConstruction: Bauwerkstyp
|
|
319
321
|
typeOfConstructionPlaceholder: Wählen Sie einen Bauwerkstyp...
|
|
@@ -3,6 +3,7 @@ ember-gwr:
|
|
|
3
3
|
saveError: Une erreur s'est produite lors de la sauvegarde du projet.
|
|
4
4
|
saveSuccess: Projet de construction sauvegardé avec succès.
|
|
5
5
|
missingBuildingError: Veuillez d'abord associer un bâtiment.
|
|
6
|
+
linkedWithBuilding: Lié à Bâtiment
|
|
6
7
|
|
|
7
8
|
sections:
|
|
8
9
|
freeTextFields: Champs libres
|
|
@@ -309,11 +310,12 @@ ember-gwr:
|
|
|
309
310
|
zw: Zimbabwe
|
|
310
311
|
countryNameShortPlaceholder: Sélectionnez un pays...
|
|
311
312
|
|
|
312
|
-
typeOfConstructionProject:
|
|
313
|
-
typeOfConstructionProjectPlaceholder: Sélectionnez un
|
|
313
|
+
typeOfConstructionProject: Genre de construction
|
|
314
|
+
typeOfConstructionProjectPlaceholder: Sélectionnez un genre de construction...
|
|
314
315
|
typeOfConstructionProjectOptions:
|
|
315
316
|
6010: Génie civil
|
|
316
317
|
6011: Bâtiment
|
|
318
|
+
6012: Constructions particulières
|
|
317
319
|
|
|
318
320
|
typeOfConstruction: Type d’ouvrage
|
|
319
321
|
typeOfConstructionPlaceholder: Sélectionnez un type d’ouvrage...
|
package/translations/de.yaml
CHANGED
|
@@ -14,11 +14,6 @@ ember-gwr:
|
|
|
14
14
|
one {Arbeit}
|
|
15
15
|
other {Arbeiten}
|
|
16
16
|
}
|
|
17
|
-
building-work-infrastructure: |-
|
|
18
|
-
{count, plural,
|
|
19
|
-
one {Tiefbauarbeit}
|
|
20
|
-
other {Tiefbauarbeiten}
|
|
21
|
-
}
|
|
22
17
|
project: |-
|
|
23
18
|
{count, plural,
|
|
24
19
|
one {Projekt}
|
|
@@ -53,9 +48,9 @@ ember-gwr:
|
|
|
53
48
|
globalLandingPage:
|
|
54
49
|
heading: GWR
|
|
55
50
|
infoText: |-
|
|
56
|
-
Im GWR-Modul können Sie existierende Projekte und Gebäude im GWR suchen
|
|
57
|
-
und Anpassungen vornehmen. Zudem kann der Quartalsabschluss vollzogen werden.
|
|
58
|
-
GWR-Bauprojekte, die bereits mit einem eBau-Dossier verknüpft sind, können auch
|
|
51
|
+
Im GWR-Modul können Sie existierende Projekte und Gebäude im GWR suchen
|
|
52
|
+
und Anpassungen vornehmen. Zudem kann der Quartalsabschluss vollzogen werden.
|
|
53
|
+
GWR-Bauprojekte, die bereits mit einem eBau-Dossier verknüpft sind, können auch
|
|
59
54
|
unter dem entsprechenden eBau-Dossier eingesehen werden.
|
|
60
55
|
searchProject: Bauprojekte suchen und bearbeiten
|
|
61
56
|
searchBuilding: Gebäude suchen und bearbeiten
|
|
@@ -78,6 +73,8 @@ ember-gwr:
|
|
|
78
73
|
Die Art der Arbeiten werden direkt auf dem Projekt erfasst.
|
|
79
74
|
superstructureInfo: |-
|
|
80
75
|
Für Hochbauprojekte werden die Art der Arbeiten ausschliesslich gebäudebezogen gemeldet.
|
|
76
|
+
specialstructureInfo: |-
|
|
77
|
+
Für Sonderbauprojekte sind ausschliesslich Gebäude der Gebäudekategorie Sonderbau zugelassen.
|
|
81
78
|
buildingDisabledForNewProject: Während des Erstellens eines Projektes können noch keine Gebäude erfasst werden.
|
|
82
79
|
|
|
83
80
|
search:
|
|
@@ -268,15 +265,6 @@ ember-gwr:
|
|
|
268
265
|
project:
|
|
269
266
|
title: Bauprojekt {id}
|
|
270
267
|
titleNew: Neues Projekt erfassen
|
|
271
|
-
confirmationTitle: Achtung
|
|
272
|
-
confirmationContinue: Fortfahren
|
|
273
|
-
confirmationCancel: Abbrechen
|
|
274
|
-
confirmationSuperstructure: |-
|
|
275
|
-
Wenn Sie von einem Tiefbauprojekt in ein Hochbauprojekt wechseln,
|
|
276
|
-
werden alle verknüpfte Arbeiten gelöscht. Wollen Sie fortfahren?
|
|
277
|
-
confirmationInfrastructure: |-
|
|
278
|
-
Wenn Sie von einem Hochbauprojekt in ein Tiefbauprojekt wechseln,
|
|
279
|
-
werden alle verknüpften Gebäude gelöscht. Wollen Sie fortfahren?
|
|
280
268
|
|
|
281
269
|
building:
|
|
282
270
|
title: Gebäude {id}
|
|
@@ -298,8 +286,10 @@ ember-gwr:
|
|
|
298
286
|
createEntry: |-
|
|
299
287
|
{modelName} erfassen
|
|
300
288
|
{model, select,
|
|
301
|
-
|
|
302
|
-
|
|
289
|
+
building {(Neubau)}
|
|
290
|
+
dwelling {(Neubau)}
|
|
291
|
+
entrance {(Neubau)}
|
|
292
|
+
other {}
|
|
303
293
|
}
|
|
304
294
|
or: oder
|
|
305
295
|
removeLink: Verknüpfung aufheben
|
|
@@ -349,9 +339,3 @@ ember-gwr:
|
|
|
349
339
|
|
|
350
340
|
modelErrors:
|
|
351
341
|
empty: Keine offenen Pendenzen
|
|
352
|
-
|
|
353
|
-
specialConstructionWarning:
|
|
354
|
-
header: Information zum Bauprojekttyp
|
|
355
|
-
part1: Bauprojekte vom Typ Sonderbau können aktuell noch nicht im eBau erfasst werden. Verwenden Sie dafür bitte das
|
|
356
|
-
link: Housing-Stat
|
|
357
|
-
part2: des BFS.
|
package/translations/fr.yaml
CHANGED
|
@@ -14,11 +14,6 @@ ember-gwr:
|
|
|
14
14
|
one {Travail}
|
|
15
15
|
other {Travaux}
|
|
16
16
|
}
|
|
17
|
-
building-work-infrastructure: |-
|
|
18
|
-
{count, plural,
|
|
19
|
-
one {Travail de génie civil}
|
|
20
|
-
other {Travaux de génie civil}
|
|
21
|
-
}
|
|
22
17
|
project: |-
|
|
23
18
|
{count, plural,
|
|
24
19
|
one {Projet}
|
|
@@ -78,6 +73,8 @@ ember-gwr:
|
|
|
78
73
|
Le genre de construction est saisi directement sur le projet.
|
|
79
74
|
superstructureInfo: |-
|
|
80
75
|
Pour les projets de construction de bâtiments, le genre de construction est déclaré exclusivement par bâtiment.
|
|
76
|
+
specialstructureInfo: |-
|
|
77
|
+
Seuls les bâtiments de la catégorie "construction spéciale" sont autorisés pour les projets de construction spéciale.
|
|
81
78
|
buildingDisabledForNewProject: Pendant la création d'un projet, il n'est pas encore possible de saisir des bâtiments.
|
|
82
79
|
|
|
83
80
|
search:
|
|
@@ -268,15 +265,6 @@ ember-gwr:
|
|
|
268
265
|
project:
|
|
269
266
|
title: Projet de construction {id}
|
|
270
267
|
titleNew: Saisir un nouveau projet
|
|
271
|
-
confirmationTitle: Attention
|
|
272
|
-
confirmationContinue: Continuer
|
|
273
|
-
confirmationCancel: Interrompre
|
|
274
|
-
confirmationSuperstructure: |-
|
|
275
|
-
Si vous changez un projet de génie civil en projet
|
|
276
|
-
de bâtiment, tous les travaux liés seront effacés. Voulez-vous continuer?
|
|
277
|
-
confirmationInfrastructure: |-
|
|
278
|
-
Si vous changez un projet de bâtiment en projet
|
|
279
|
-
de génie civil, tous les bâtiments liés seront effacés. Voulez-vous continuer?
|
|
280
268
|
|
|
281
269
|
building:
|
|
282
270
|
title: Bâtiments {id}
|
|
@@ -298,8 +286,10 @@ ember-gwr:
|
|
|
298
286
|
createEntry: |-
|
|
299
287
|
Saisir le/l' {modelName}
|
|
300
288
|
{model, select,
|
|
301
|
-
|
|
302
|
-
|
|
289
|
+
building {(Nouvelle construction)}
|
|
290
|
+
dwelling {(Nouvelle construction)}
|
|
291
|
+
entrance {(Nouvelle construction)}
|
|
292
|
+
other {}
|
|
303
293
|
}
|
|
304
294
|
or: ou
|
|
305
295
|
removeLink: Supprimer la liaison
|
|
@@ -349,9 +339,3 @@ ember-gwr:
|
|
|
349
339
|
|
|
350
340
|
modelErrors:
|
|
351
341
|
empty: Pas de dossiers/ cas en suspens
|
|
352
|
-
|
|
353
|
-
specialConstructionWarning:
|
|
354
|
-
header: Information relative au type de projet de construction
|
|
355
|
-
part1: Les projets de construction de type construction spéciale ne peuvent actuellement pas encore être saisis dans eBau. Veuillez utiliser pour cela le
|
|
356
|
-
link: Housing-Stat
|
|
357
|
-
part2: de l'OFS.
|