Files
frontend/apps/st/src/components/util/column/input/sewagePipe/ConnectionStatusInpColumn.ts
T
rsone001 1b64bccc55 refactor: 하수도 통계 관리 > 00 ~ 04 컬럼 속성에 valueType, dataFormat 추가
- 숫자면 valueType 전부 추가
- 입력값과 합계값의 소수점 불일치는 입력값 기준으로 수정
- 00. 통계 입력 현황 - 작성율만 숫자
- 01. 하수도 보급율, 02. 하수관로, 03. 하수관로 유지관리, 04. 하수저류시설 및 빗물펌프 추가 완료
2026-01-12 13:26:43 +09:00

55 lines
2.1 KiB
TypeScript

import { ValueType } from "realgrid";
// 하수도 통계 관리 > 02.하수관로 > tab 6. 시설별 현황관리
// Tab 6-1: 행정구역별 연결 현황 (오른쪽 그리드)
export const AdminAreaConnectionInpColumn = {
columns: [
// 행정구역
{ name: 'sido', fieldName: '시도', header: { text: '시도' } },
{ name: 'sgg', fieldName: '시군구', header: { text: '시군구' } },
{ name: 'adstDong', fieldName: '행정구역명', header: { text: '행정구역명' } },
// 연결여부
{ name: 'iscan', fieldName: '연결여부', header: { text: '연결여부' } },
// 연결하수처리장
{ name: 'bscFctNm', fieldName: '연결하수처리장', header: { text: '연결하수처리장' } },
],
columnLayout: [
{
name: 'adminArea',
hideChildHeaders: false,
header: { text: '행정구역' },
items: ['sido', 'sgg', 'adstDong'],
},
'iscan',
'bscFctNm',
],
rowStartNum: 2,
fixedColumns: 1,
tabKey: 'adminAreaConnectionInp',
tabLabel: '행정구역별 연결 현황'
};
// Tab 6-2: 하수처리장별 연결 현황 (왼쪽 그리드)
export const TreatmentPlantConnectionInpColumn = {
columns: [
// 하수처리장 정보
{ name: 'bscFctNm', fieldName: '하수처리장명', header: { text: '하수처리장명' } },
{ name: 'fctCpc', fieldName: '용량', header: { text: '용량' }, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
{ name: 'bscFctCd', fieldName: '하수처리장코드', header: { text: '하수처리장코드' } },
// 연결여부
{ name: 'iscan', fieldName: '연결여부', header: { text: '연결여부' } },
// 연결지역
{ name: 'nmlist', fieldName: '연결지역', header: { text: '연결지역' } },
],
columnLayout: [
'bscFctNm',
'fctCpc',
'bscFctCd',
'iscan',
'nmlist',
],
rowStartNum: 1,
fixedColumns: 1,
tabKey: 'treatmentPlantConnectionInp',
tabLabel: '하수처리장별 연결 현황'
};