Commit c29d372ddd552dc3b94362e262c9bb2aaf113e7b
Merge
Showing
3 changed files
with
69 additions
and
7 deletions
Show diff stats
src/app/data/service-object/service-object.component.ts
| ... | ... | @@ -10,9 +10,9 @@ import { RendererComponent } from '../../../helpers/renderer.component'; |
| 10 | 10 | import { ServiceObjectCreateService } from '../../../services/service-object-create.service'; |
| 11 | 11 | import { BooleanSelectListService } from '../../../services/boolean-select-list.service'; |
| 12 | 12 | import { RegionSelectList } from '../../../models/region-select-list'; |
| 13 | -import { StateCommonSelectList } from '../../../models/state-common-select-list'; | |
| 13 | +import { ServiceObjectTypeSelectList } from '../../../models/service-object-type-select-list'; | |
| 14 | 14 | import { RoadSelectList } from '../../../models/road-select-list'; |
| 15 | -import { DepartmentAffiliationList } from '../../../models/department-affiliation-list'; | |
| 15 | +import { DepartmentAffiliationSelectList } from '../../../models/department-affiliation-select-list'; | |
| 16 | 16 | import { BooleanSelectList } from '../../../models/boolean-select-list'; |
| 17 | 17 | import { SettlementSelectList } from '../../../models/settlement-select-list'; |
| 18 | 18 | |
| ... | ... | @@ -27,8 +27,8 @@ import { routerTransition } from '../../../animations/router.animation'; |
| 27 | 27 | export class ServiceObjectComponent extends StatementBase { |
| 28 | 28 | |
| 29 | 29 | public regions: RegionSelectList[]; |
| 30 | - public states: StateCommonSelectList[]; | |
| 31 | - public departmentAffiliation: DepartmentAffiliationList[]; | |
| 30 | + public serviceObjectType: ServiceObjectTypeSelectList[]; | |
| 31 | + public departmentAffiliation: DepartmentAffiliationSelectList[]; | |
| 32 | 32 | public settlements: SettlementSelectList[]; |
| 33 | 33 | public roads: RoadSelectList[]; |
| 34 | 34 | public boolean: BooleanSelectList[]; |
| ... | ... | @@ -80,6 +80,42 @@ export class ServiceObjectComponent extends StatementBase { |
| 80 | 80 | }, |
| 81 | 81 | }, |
| 82 | 82 | { |
| 83 | + headerName: 'Вид споруди чи об\'єкту', | |
| 84 | + field: 'serviceObjectTypeId', | |
| 85 | + editable: true, | |
| 86 | + cellEditorFramework: EditorComponent, | |
| 87 | + cellRendererFramework: RendererComponent, | |
| 88 | + cellEditorParams: { | |
| 89 | + data: this.serviceObjectType, | |
| 90 | + valueCol: 'serviceObjectTypeId', | |
| 91 | + labelCol: 'name', | |
| 92 | + }, | |
| 93 | + }, | |
| 94 | + { | |
| 95 | + headerName: 'Назва підприємства та населеного пункту', | |
| 96 | + field: 'settlementId', | |
| 97 | + editable: true, | |
| 98 | + cellEditorFramework: EditorComponent, | |
| 99 | + cellRendererFramework: RendererComponent, | |
| 100 | + cellEditorParams: { | |
| 101 | + data: this.settlements, | |
| 102 | + valueCol: 'settlementId', | |
| 103 | + labelCol: 'name', | |
| 104 | + }, | |
| 105 | + }, | |
| 106 | + { | |
| 107 | + headerName: 'Відоча приналежність', | |
| 108 | + field: 'departmentAffiliationId', | |
| 109 | + editable: true, | |
| 110 | + cellEditorFramework: EditorComponent, | |
| 111 | + cellRendererFramework: RendererComponent, | |
| 112 | + cellEditorParams: { | |
| 113 | + data: this.departmentAffiliation, | |
| 114 | + valueCol: 'departmentAffiliationId', | |
| 115 | + labelCol: 'name', | |
| 116 | + }, | |
| 117 | + }, | |
| 118 | + { | |
| 83 | 119 | headerName: 'Місцезнаходження, км+ справа', |
| 84 | 120 | field: 'locationRight', |
| 85 | 121 | editable: true, |
| ... | ... | @@ -89,6 +125,27 @@ export class ServiceObjectComponent extends StatementBase { |
| 89 | 125 | field: 'locationLeft', |
| 90 | 126 | editable: true, |
| 91 | 127 | }, |
| 128 | + { | |
| 129 | + headerName: 'Місцезнаходження, км+ по осі', | |
| 130 | + field: 'locationAxis', | |
| 131 | + editable: true, | |
| 132 | + }, | |
| 133 | + { | |
| 134 | + headerName: 'Відстань до об\'єкту від вісі дор., м', | |
| 135 | + field: 'distance', | |
| 136 | + editable: true, | |
| 137 | + }, | |
| 138 | + { | |
| 139 | + headerName: 'Потужність', | |
| 140 | + field: 'capacity', | |
| 141 | + editable: true, | |
| 142 | + }, | |
| 143 | + { | |
| 144 | + headerName: 'Елементи облаштування', | |
| 145 | + field: 'arrangementElements', | |
| 146 | + editable: true, | |
| 147 | + cellEditor: 'largeText', | |
| 148 | + }, | |
| 92 | 149 | ]; |
| 93 | 150 | } |
| 94 | 151 | |
| ... | ... | @@ -96,10 +153,11 @@ export class ServiceObjectComponent extends StatementBase { |
| 96 | 153 | this.booleanService.getModels().then((models: BooleanSelectList[]) => this.boolean = models); |
| 97 | 154 | this.dataService.getModels().then((models: any) => { |
| 98 | 155 | this.regions = models.regionSelectListDsM as RegionSelectList[]; |
| 99 | - this.states = models.stateCommonSelectListDsM as StateCommonSelectList[]; | |
| 100 | - this.departmentAffiliation = models.departmentAffiliationListDsM as DepartmentAffiliationList[]; | |
| 156 | + this.serviceObjectType = models.serviceObjectTypeSelectListDsM as ServiceObjectTypeSelectList[]; | |
| 157 | + this.departmentAffiliation = models.departmentAffiliationSelectListDsM as DepartmentAffiliationSelectList[]; | |
| 101 | 158 | this.settlements = models.settlementSelectListDsM as SettlementSelectList[]; |
| 102 | 159 | this.roads = models.roadSelectListDsM as RoadSelectList[]; |
| 160 | + | |
| 103 | 161 | }).then(() => { |
| 104 | 162 | this.bootstrapGrid(); |
| 105 | 163 | }); | ... | ... |
src/models/department-affiliation-list.ts renamed to src/models/department-affiliation-select-list.ts