Commit adf1208b7b173c1cabd603823a548548fd83b0a3
1 parent
14db241c
add all filds in cross-section
Showing
1 changed file
with
79 additions
and
2 deletions
Show diff stats
src/app/data/cross-section/cross-section.component.ts
... | ... | @@ -13,7 +13,8 @@ import { RegionSelectList } from '../../../models/region-select-list'; |
13 | 13 | import { RoadSelectList } from '../../../models/road-select-list'; |
14 | 14 | import { StateCommonSelectList } from '../../../models/state-common-select-list'; |
15 | 15 | import { SurfaceTypeSelectList } from '../../../models/surface-type-select-list'; |
16 | - | |
16 | +import { BooleanSelectListService } from '../../../services/boolean-select-list.service'; | |
17 | +import { BooleanSelectList } from '../../../models/boolean-select-list'; | |
17 | 18 | import { routerTransition } from '../../../animations/router.animation'; |
18 | 19 | |
19 | 20 | @Component({ |
... | ... | @@ -28,9 +29,10 @@ export class CrossSectionComponent extends StatementBase { |
28 | 29 | public roads: RoadSelectList[]; |
29 | 30 | public surfaceTypes: SurfaceTypeSelectList[]; |
30 | 31 | public states: StateCommonSelectList[]; |
31 | - | |
32 | + public boolean: BooleanSelectList[]; | |
32 | 33 | constructor( |
33 | 34 | protected service: CrossSectionService, |
35 | + protected booleanService: BooleanSelectListService, | |
34 | 36 | protected dataService: CrossSectionCreateService, |
35 | 37 | protected loadingService: TdLoadingService, |
36 | 38 | ) { |
... | ... | @@ -87,10 +89,85 @@ export class CrossSectionComponent extends StatementBase { |
87 | 89 | labelCol: 'value', |
88 | 90 | }, |
89 | 91 | }, |
92 | + { | |
93 | + headerName: 'Наявність облаштування, труба', | |
94 | + field: 'tubeAvailability', | |
95 | + editable: true, | |
96 | + cellEditorFramework: EditorComponent, | |
97 | + cellRendererFramework: RendererComponent, | |
98 | + cellEditorParams: { | |
99 | + data: this.boolean, | |
100 | + valueCol: 'value', | |
101 | + labelCol: 'label', | |
102 | + }, | |
103 | + }, | |
104 | + { | |
105 | + headerName: 'Наявність облаштування, острівок безпеки', | |
106 | + field: 'safetyAvailability', | |
107 | + editable: true, | |
108 | + cellEditorFramework: EditorComponent, | |
109 | + cellRendererFramework: RendererComponent, | |
110 | + cellEditorParams: { | |
111 | + data: this.boolean, | |
112 | + valueCol: 'value', | |
113 | + labelCol: 'label', | |
114 | + }, | |
115 | + }, | |
116 | + { | |
117 | + headerName: 'Місцеположення, км+ зліва', | |
118 | + field: 'locationLeft', | |
119 | + editable: true, | |
120 | + }, | |
121 | + { | |
122 | + headerName: 'Місцеположення, км+ справа', | |
123 | + field: 'locationRight', | |
124 | + editable: true, | |
125 | + }, | |
126 | + { | |
127 | + headerName: 'Напрямок з\'їзду', | |
128 | + field: 'direction', | |
129 | + editable: true, | |
130 | + }, | |
131 | + { | |
132 | + headerName: 'Фактична довжина, м з\'їзду', | |
133 | + field: 'lengthSection', | |
134 | + editable: true, | |
135 | + }, | |
136 | + { | |
137 | + headerName: 'Фактична довжина, м покриття', | |
138 | + field: 'lengthSurface', | |
139 | + editable: true, | |
140 | + }, | |
141 | + { | |
142 | + headerName: 'Відстань від крайки проїзної частики, м', | |
143 | + field: 'distanceEdge', | |
144 | + editable: true, | |
145 | + }, | |
146 | + { | |
147 | + headerName: 'Ширина, м', | |
148 | + field: 'width', | |
149 | + editable: true, | |
150 | + }, | |
151 | + { | |
152 | + headerName: 'Кут примикання', | |
153 | + field: 'angle', | |
154 | + editable: true, | |
155 | + }, | |
156 | + { | |
157 | + headerName: 'Рік спорудження', | |
158 | + field: 'yearBuild', | |
159 | + editable: true, | |
160 | + }, | |
161 | + { | |
162 | + headerName: 'Рік ремонту', | |
163 | + field: 'yearRepair', | |
164 | + editable: true, | |
165 | + }, | |
90 | 166 | ]; |
91 | 167 | } |
92 | 168 | |
93 | 169 | protected initFunction(): void { |
170 | + this.booleanService.getModels().then((models: BooleanSelectList[]) => this.boolean = models); | |
94 | 171 | this.dataService.getModels().then((models: any) => { |
95 | 172 | this.regions = models.regionSelectListDsM as RegionSelectList[]; |
96 | 173 | this.roads = models.roadSelectListDsM as RoadSelectList[]; | ... | ... |