371 lines
17 KiB
TypeScript
371 lines
17 KiB
TypeScript
import { footerInt } from "@/components/util/grid/footerSummary";
|
|
import { ValueType } from "realgrid";
|
|
|
|
// 하수도 통계 관리 > 08.개인하수처리시설 > tab 2. 정화조 현황
|
|
export const SepticTankStatusInpColumn = {
|
|
columns: [
|
|
// 행정구역
|
|
{ name: 'ctpvNm', fieldName: 'ctpvNm', header: { text: '시도' }, footer: { text: '합계' }, editable: false, styleName: 'rg-cell-readonly' },
|
|
{ name: 'sggNm', fieldName: 'sggNm', header: { text: '시군구' }, editable: false, styleName: 'rg-cell-readonly' },
|
|
|
|
// 총 시설 수 — (B+C)/2 + (E+F)/2 = A + D
|
|
{
|
|
name: 'grssFcltCnt',
|
|
fieldName: 'grssFcltCnt',
|
|
header: { text: '총 시설 수 (A+D)' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
firstHalfSum: {
|
|
firstSumFields: [
|
|
'staaInsdSttkNprsflCnt',
|
|
'step1StaaInsdSttkFrcCnt',
|
|
'staaInsdSprktpFltrtbCnt',
|
|
'staaInsdAertMthdCnt',
|
|
'staaInsdCntcAertCnt',
|
|
'staaInsdEtcCnt',
|
|
],
|
|
secondSumFields: [
|
|
'step1StaaInsdNope',
|
|
'step2StaaInsdNope',
|
|
'step3StaaInsdNope',
|
|
'step4StaaInsdNope',
|
|
'step5StaaInsdNope',
|
|
'step6StaaInsdNope',
|
|
'step7StaaInsdNope',
|
|
'step8StaaInsdNope',
|
|
],
|
|
},
|
|
secondHalfSum: {
|
|
firstSumFields: [
|
|
'staaExcpSttkNprsflCnt',
|
|
'step1StaaExcpSttkFrcCnt',
|
|
'staaExcpSprktpFltrtbCnt',
|
|
'staaExcpAertMthdCnt',
|
|
'staaExcpCntcAertCnt',
|
|
'staaExcpEtcCnt',
|
|
],
|
|
secondSumFields: [
|
|
'step1StaaExcpNope',
|
|
'step2StaaExcpNope',
|
|
'step3StaaExcpNope',
|
|
'step4StaaExcpNope',
|
|
'step5StaaExcpNope',
|
|
'step6StaaExcpNope',
|
|
'step7StaaExcpNope',
|
|
'step8StaaExcpNope',
|
|
],
|
|
},
|
|
type: 'sumOfTwoHalfSumOfSums' as const,
|
|
},
|
|
},
|
|
|
|
// 하수처리구역 내 > 총계
|
|
{
|
|
name: 'staaInsdWhol',
|
|
fieldName: 'staaInsdWhol',
|
|
header: { text: '총계 A=(B+C)/2' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
firstSumFields: [
|
|
'staaInsdSttkNprsflCnt',
|
|
'step1StaaInsdSttkFrcCnt',
|
|
'staaInsdSprktpFltrtbCnt',
|
|
'staaInsdAertMthdCnt',
|
|
'staaInsdCntcAertCnt',
|
|
'staaInsdEtcCnt',
|
|
],
|
|
secondSumFields: [
|
|
'step1StaaInsdNope',
|
|
'step2StaaInsdNope',
|
|
'step3StaaInsdNope',
|
|
'step4StaaInsdNope',
|
|
'step5StaaInsdNope',
|
|
'step6StaaInsdNope',
|
|
'step7StaaInsdNope',
|
|
'step8StaaInsdNope',
|
|
],
|
|
type: 'halfSumOfSums' as const,
|
|
},
|
|
},
|
|
|
|
// 하수처리구역 내 > 처리방식별
|
|
{
|
|
name: 'staaInsdPrcsMthByWhol',
|
|
fieldName: 'staaInsdPrcsMthByWhol',
|
|
header: { text: '계(B)' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
fields: [
|
|
'staaInsdSttkNprsflCnt',
|
|
'step1StaaInsdSttkFrcCnt',
|
|
'staaInsdSprktpFltrtbCnt',
|
|
'staaInsdAertMthdCnt',
|
|
'staaInsdCntcAertCnt',
|
|
'staaInsdEtcCnt',
|
|
],
|
|
type: 'sum' as const,
|
|
},
|
|
},
|
|
|
|
// 하수처리구역 내 > 처리방식별 > 부패탱크
|
|
{ name: 'staaInsdSttkNprsflCnt', fieldName: 'staaInsdSttkNprsflCnt', header: { text: '자연유하' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step1StaaInsdSttkFrcCnt', fieldName: 'step1StaaInsdSttkFrcCnt', header: { text: '강제펌핑식' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 하수처리구역 내 > 처리방식별
|
|
{ name: 'staaInsdSprktpFltrtbCnt', fieldName: 'staaInsdSprktpFltrtbCnt', header: { text: '살수여상' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaInsdAertMthdCnt', fieldName: 'staaInsdAertMthdCnt', header: { text: '폭기방법' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaInsdCntcAertCnt', fieldName: 'staaInsdCntcAertCnt', header: { text: '접촉폭기' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaInsdEtcCnt', fieldName: 'staaInsdEtcCnt', header: { text: '기타' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 하수처리구역 내 > 처리용량별
|
|
{
|
|
name: 'staaInsdPrcsCpctByWhol',
|
|
fieldName: 'staaInsdPrcsCpctByWhol',
|
|
header: { text: '계(C)' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
fields: [
|
|
'step1StaaInsdNope',
|
|
'step2StaaInsdNope',
|
|
'step3StaaInsdNope',
|
|
'step4StaaInsdNope',
|
|
'step5StaaInsdNope',
|
|
'step6StaaInsdNope',
|
|
'step7StaaInsdNope',
|
|
'step8StaaInsdNope',
|
|
],
|
|
type: 'sum' as const,
|
|
},
|
|
},
|
|
{ name: 'step1StaaInsdNope', fieldName: 'step1StaaInsdNope', header: { text: '10인조이하' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step2StaaInsdNope', fieldName: 'step2StaaInsdNope', header: { text: '11~20' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step3StaaInsdNope', fieldName: 'step3StaaInsdNope', header: { text: '21~30' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step4StaaInsdNope', fieldName: 'step4StaaInsdNope', header: { text: '31~50' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step5StaaInsdNope', fieldName: 'step5StaaInsdNope', header: { text: '51~199' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step6StaaInsdNope', fieldName: 'step6StaaInsdNope', header: { text: '200~499' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step7StaaInsdNope', fieldName: 'step7StaaInsdNope', header: { text: '500~999' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step8StaaInsdNope', fieldName: 'step8StaaInsdNope', header: { text: '1,000 이상' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 하수처리구역 외 > 총계
|
|
{
|
|
name: 'staaExcpWhol',
|
|
fieldName: 'staaExcpWhol',
|
|
header: { text: '총계 D=(E+F)/2' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
firstSumFields: [
|
|
'staaExcpSttkNprsflCnt',
|
|
'step1StaaExcpSttkFrcCnt',
|
|
'staaExcpSprktpFltrtbCnt',
|
|
'staaExcpAertMthdCnt',
|
|
'staaExcpCntcAertCnt',
|
|
'staaExcpEtcCnt',
|
|
],
|
|
secondSumFields: [
|
|
'step1StaaExcpNope',
|
|
'step2StaaExcpNope',
|
|
'step3StaaExcpNope',
|
|
'step4StaaExcpNope',
|
|
'step5StaaExcpNope',
|
|
'step6StaaExcpNope',
|
|
'step7StaaExcpNope',
|
|
'step8StaaExcpNope',
|
|
],
|
|
type: 'halfSumOfSums' as const,
|
|
},
|
|
},
|
|
|
|
// 하수처리구역 외 > 처리방식별
|
|
{
|
|
name: 'staaExcpPrcsMthByWhol',
|
|
fieldName: 'staaExcpPrcsMthByWhol',
|
|
header: { text: '계(E)' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
fields: [
|
|
'staaExcpSttkNprsflCnt',
|
|
'step1StaaExcpSttkFrcCnt',
|
|
'staaExcpSprktpFltrtbCnt',
|
|
'staaExcpAertMthdCnt',
|
|
'staaExcpCntcAertCnt',
|
|
'staaExcpEtcCnt',
|
|
],
|
|
type: 'sum' as const,
|
|
},
|
|
},
|
|
|
|
// 하수처리구역 외 > 처리방식별 > 부패탱크
|
|
{ name: 'staaExcpSttkNprsflCnt', fieldName: 'staaExcpSttkNprsflCnt', header: { text: '자연유하' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step1StaaExcpSttkFrcCnt', fieldName: 'step1StaaExcpSttkFrcCnt', header: { text: '강제펌핑식' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 하수처리구역 외 > 처리방식별
|
|
{ name: 'staaExcpSprktpFltrtbCnt', fieldName: 'staaExcpSprktpFltrtbCnt', header: { text: '살수여상' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaExcpAertMthdCnt', fieldName: 'staaExcpAertMthdCnt', header: { text: '폭기방법' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaExcpCntcAertCnt', fieldName: 'staaExcpCntcAertCnt', header: { text: '접촉폭기' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'staaExcpEtcCnt', fieldName: 'staaExcpEtcCnt', header: { text: '기타' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 하수처리구역 외 > 처리용량별
|
|
{
|
|
name: 'staaExcpPrcsCpctByWhol',
|
|
fieldName: 'staaExcpPrcsCpctByWhol',
|
|
header: { text: '계(F)' },
|
|
editable: false,
|
|
footer: footerInt,
|
|
valueType: ValueType.NUMBER,
|
|
dataFormat: '#,##0',
|
|
styleName: 'rg-cell-total',
|
|
computed: {
|
|
fields: [
|
|
'step1StaaExcpNope',
|
|
'step2StaaExcpNope',
|
|
'step3StaaExcpNope',
|
|
'step4StaaExcpNope',
|
|
'step5StaaExcpNope',
|
|
'step6StaaExcpNope',
|
|
'step7StaaExcpNope',
|
|
'step8StaaExcpNope',
|
|
],
|
|
type: 'sum' as const,
|
|
},
|
|
},
|
|
{ name: 'step1StaaExcpNope', fieldName: 'step1StaaExcpNope', header: { text: '10인조이하' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step2StaaExcpNope', fieldName: 'step2StaaExcpNope', header: { text: '11~20' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step3StaaExcpNope', fieldName: 'step3StaaExcpNope', header: { text: '21~30' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step4StaaExcpNope', fieldName: 'step4StaaExcpNope', header: { text: '31~50' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step5StaaExcpNope', fieldName: 'step5StaaExcpNope', header: { text: '51~199' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step6StaaExcpNope', fieldName: 'step6StaaExcpNope', header: { text: '200~499' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step7StaaExcpNope', fieldName: 'step7StaaExcpNope', header: { text: '500~999' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
{ name: 'step8StaaExcpNope', fieldName: 'step8StaaExcpNope', header: { text: '1,000 이상' }, footer: footerInt, valueType: ValueType.NUMBER, dataFormat: '#,##0' },
|
|
|
|
// 비고
|
|
{ name: 'rmrk', fieldName: 'rmrk', header: { text: '비고' } },
|
|
|
|
// hidden
|
|
{ name: 'admdstCd', fieldName: 'admdstCd', header: { text: '행정구역코드' }, visible: false, },
|
|
{ name: 'admdstNm', fieldName: 'admdstNm', header: { text: '행정구역명' }, visible: false },
|
|
],
|
|
columnLayout: [
|
|
{
|
|
name: 'group_admin',
|
|
header: { text: '행정구역' },
|
|
items: [
|
|
{ column: 'ctpvNm', footerUserSpans: [{ colspan: 2 }] },
|
|
'sggNm',
|
|
],
|
|
},
|
|
'grssFcltCnt',
|
|
{
|
|
name: 'group_spzi',
|
|
header: { text: '하수처리구역 내' },
|
|
items: [
|
|
'staaInsdWhol',
|
|
{
|
|
name: 'group_spzi_mthd',
|
|
header: { text: '처리방식별' },
|
|
items: [
|
|
'staaInsdPrcsMthByWhol',
|
|
{
|
|
name: 'group_spzi_rot',
|
|
header: { text: '부패탱크' },
|
|
items: [
|
|
'staaInsdSttkNprsflCnt',
|
|
'step1StaaInsdSttkFrcCnt'
|
|
]
|
|
},
|
|
'staaInsdSprktpFltrtbCnt',
|
|
'staaInsdAertMthdCnt',
|
|
'staaInsdCntcAertCnt',
|
|
'staaInsdEtcCnt'
|
|
]
|
|
},
|
|
{
|
|
name: 'group_spzi_proc',
|
|
header: { text: '처리용량별' },
|
|
items: [
|
|
'staaInsdPrcsCpctByWhol',
|
|
'step1StaaInsdNope',
|
|
'step2StaaInsdNope',
|
|
'step3StaaInsdNope',
|
|
'step4StaaInsdNope',
|
|
'step5StaaInsdNope',
|
|
'step6StaaInsdNope',
|
|
'step7StaaInsdNope',
|
|
'step8StaaInsdNope'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'group_spzo',
|
|
header: { text: '하수처리구역 외' },
|
|
items: [
|
|
'staaExcpWhol',
|
|
{
|
|
name: 'group_spzo_mthd',
|
|
header: { text: '처리방식별' },
|
|
items: [
|
|
'staaExcpPrcsMthByWhol',
|
|
{
|
|
name: 'group_spzo_rot',
|
|
header: { text: '부패탱크' },
|
|
items: [
|
|
'staaExcpSttkNprsflCnt',
|
|
'step1StaaExcpSttkFrcCnt'
|
|
]
|
|
},
|
|
'staaExcpSprktpFltrtbCnt',
|
|
'staaExcpAertMthdCnt',
|
|
'staaExcpCntcAertCnt',
|
|
'staaExcpEtcCnt'
|
|
]
|
|
},
|
|
{
|
|
name: 'group_spzo_proc',
|
|
header: { text: '처리용량별' },
|
|
items: [
|
|
'staaExcpPrcsCpctByWhol',
|
|
'step1StaaExcpNope',
|
|
'step2StaaExcpNope',
|
|
'step3StaaExcpNope',
|
|
'step4StaaExcpNope',
|
|
'step5StaaExcpNope',
|
|
'step6StaaExcpNope',
|
|
'step7StaaExcpNope',
|
|
'step8StaaExcpNope'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
'rmrk',
|
|
'admdstCd',
|
|
'admdstNm'
|
|
],
|
|
rowStartNum: 4,
|
|
fixedColumns: 1,
|
|
tabKey: 'ST00080002',
|
|
tabLabel: '정화조 현황'
|
|
}; |