80 lines
3.1 KiB
TypeScript
80 lines
3.1 KiB
TypeScript
import { ValueType } from "realgrid";
|
|
|
|
import type { GridTopButtonConfig } from "@/components/type/DataGrid.type";
|
|
|
|
// 하수도 통계 관리 > 02.하수관로 > tab 6. 시설별 현황관리
|
|
// Tab 6-1: 행정구역별 연결 현황 (오른쪽 그리드)
|
|
export const AdminAreaConnectionInpColumn = {
|
|
columns: [
|
|
// 행정구역
|
|
{ name: 'ctpvNm', fieldName: 'ctpvNm', header: { text: '시도' }, editable: false },
|
|
{ name: 'sggNm', fieldName: 'sggNm', header: { text: '시군구' }, editable: false },
|
|
{ name: 'admdstNm', fieldName: 'admdstNm', header: { text: '행정구역명' }, editable: false },
|
|
// 연결여부
|
|
{ name: 'isAreaConnection', fieldName: 'isAreaConnection', header: { text: '연결여부' }, editable: false },
|
|
// 연결하수처리장
|
|
{ name: 'connectionBscFctNmList', fieldName: 'connectionBscFctNmList', header: { text: '연결하수처리장' }, editable: false },
|
|
{
|
|
name: 'admdstCd',
|
|
fieldName: 'admdstCd',
|
|
header: { text: '행정구역코드' },
|
|
visible: false,
|
|
editable: false,
|
|
},
|
|
],
|
|
columnLayout: [
|
|
{
|
|
name: 'adminArea',
|
|
hideChildHeaders: false,
|
|
header: { text: '행정구역' },
|
|
items: ['ctpvNm', 'sggNm', 'admdstNm'],
|
|
},
|
|
'isAreaConnection',
|
|
'connectionBscFctNmList',
|
|
'admdstCd'
|
|
],
|
|
rowStartNum: 2,
|
|
fixedColumns: 1,
|
|
tabKey: 'adminAreaConnectionInp',
|
|
tabLabel: '행정구역별 연결 현황',
|
|
topButton: {
|
|
visible: true,
|
|
text: '시설별 설치 현황 관리',
|
|
onClick: ({ openDialog }: Parameters<NonNullable<GridTopButtonConfig["onClick"]>>[0]) => {
|
|
openDialog('시설별 설치 현황 관리');
|
|
},
|
|
},
|
|
};
|
|
|
|
// Tab 6-2: 하수처리장별 연결 현황 (왼쪽 그리드)
|
|
export const TreatPlantConnectionInpColumn = {
|
|
columns: [
|
|
// 하수처리장 정보
|
|
{ name: 'fcltNm', fieldName: 'fcltNm', header: { text: '하수처리장명' }, editable: false },
|
|
{ name: 'fcltCpct', fieldName: 'fcltCpct', header: { text: '용량' }, valueType: ValueType.NUMBER, dataFormat: '#,##0', editable: false },
|
|
{ name: 'fcltSn', fieldName: 'fcltSn', header: { text: '하수처리장코드' }, editable: false },
|
|
// 연결여부
|
|
{ name: 'isConnection', fieldName: 'isConnection', header: { text: '연결여부' }, editable: false },
|
|
// 연결지역
|
|
{ name: 'connectionAreaList', fieldName: 'connectionAreaList', header: { text: '연결지역' }, editable: false },
|
|
],
|
|
columnLayout: [
|
|
'fcltNm',
|
|
'fcltCpct',
|
|
'fcltSn',
|
|
'isConnection',
|
|
'connectionAreaList',
|
|
],
|
|
rowStartNum: 1,
|
|
fixedColumns: 1,
|
|
tabKey: 'treatmentPlantConnectionInp',
|
|
tabLabel: '하수처리장별 연결 현황'
|
|
};
|
|
|
|
export const ConnectionStatusInpColumn = {
|
|
tabKey: 'ST00020006',
|
|
tabLabel: '시설별 현황 관리',
|
|
isSplitGrid: true,
|
|
left: TreatPlantConnectionInpColumn,
|
|
right: AdminAreaConnectionInpColumn,
|
|
}; |