Merge branch 'iipbs/st/dev' of https://onasys.co.kr:3000/ONAANDALL/frontend into yangsein

This commit is contained in:
yangsein
2025-12-23 14:13:50 +09:00
19 changed files with 798 additions and 4 deletions
@@ -1,9 +1,30 @@
import SearchForm from "@/components/module/SearchForm";
import TabDataGrid from "@/components/module/TabDataGrid";
import ApproveButton from "@/components/button/ApproveButton";
import RejectButton from "@/components/button/RejectButton"
import { SewagePipeColumnInfoList } from "@/components/util/column/SewagePipeColumn";
const SewagePipeMng = () => {
const approveFunc = () => {
console.log('appoved');
// 승인 요청 로직
};
const rejectFunc = () => {
console.log('reject');
// 보완 요청 로직
};
return (
<>
<SearchForm userMenual={true} />
<div className="flex justify-end items-center gap-[0.6rem] m-[0.6rem]">
<RejectButton rejectFunc={rejectFunc} />
<ApproveButton approveFunc={approveFunc} />
</div>
<TabDataGrid columnInfo={SewagePipeColumnInfoList}/>
</>
);
};
@@ -5,7 +5,7 @@ import SaveButton from "@/components/button/SaveButton";
import LastYearDataButton from "@/components/button/LastYearDataButton";
import SubmitExceptionButton from "@/components/button/SubmitExceptionButton";
const SeweragePenetrationRate = () => {
const SeweragePenetrationRateMng = () => {
const columns = [
{ name: 'sido', fieldName: '시도', header: { text: '시도' } },
{ name: 'sgg', fieldName: '구군', header: { text: '구군' } },
@@ -136,4 +136,4 @@ const SeweragePenetrationRate = () => {
);
};
export default SeweragePenetrationRate;
export default SeweragePenetrationRateMng;
@@ -65,7 +65,7 @@ const StatsInputSatusMng = () => {
<RejectButton rejectFunc={rejectFunc} />
<ApproveButton approveFunc={approveFunc} />
</div>
<DataGrid columnInfo={{ columns, columnLayout }} rowStartNum={2} isExcelImport={true} fixedColumns={3} />
<DataGrid columnInfo={{ columns, columnLayout }} rowStartNum={2} fixedColumns={3} />
</>
);
};
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const ExcretaTreatmentFacilityTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default ExcretaTreatmentFacilityTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const PrivateSewageFacilityTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default PrivateSewageFacilityTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const PublicSewageFacilityTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default PublicSewageFacilityTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const PumpingStationTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default PumpingStationTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewageExcretaRelatedTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewageExcretaRelatedTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewageExcretaSlurgeTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewageExcretaSlurgeTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewagePipeMaintainTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewagePipeMaintainTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewagePipeTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewagePipeTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewageReservoirPumpTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewageReservoirPumpTot;
@@ -0,0 +1,11 @@
import SearchForm from "@/components/module/SearchForm";
const SewerageFinanceTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewerageFinanceTot;
@@ -0,0 +1,139 @@
import SearchForm from "@/components/module/SearchForm";
import DataGrid from "@/components/module/DataGrid";
import SubmitButton from "@/components/button/SumitButton";
import SaveButton from "@/components/button/SaveButton";
import LastYearDataButton from "@/components/button/LastYearDataButton";
import SubmitExceptionButton from "@/components/button/SubmitExceptionButton";
const SeweragePenetrationRateTot = () => {
const columns = [
{ name: 'sido', fieldName: '시도', header: { text: '시도' } },
{ name: 'sgg', fieldName: '구군', header: { text: '구군' } },
{ name: 'rvbsn', fieldName: '수계', header: { text: '수계' } },
{ name: 'bstrm', fieldName: '지류', header: { text: '지류' } },
{ name: 'mdbsn', fieldName: '세부단위유역', header: { text: '세부단위유역' } },
{ name: 'lgbsn', fieldName: '중권역', header: { text: '중권역' } },
{ name: 'mdmbsn', fieldName: '소권역', header: { text: '소권역' } },
{ name: 'specl_cntrpln_ar', fieldName: '특별대책지역', header: { text: '특별대책지역' } },
{ name: 'total_popl', fieldName: '총인구', header: { text: '총인구' } },
{ name: 'popl_sm', fieldName: '내국인', header: { text: '내국인' } },
{ name: 'frgnr_popl_sm', fieldName: '외국인', header: { text: '외국인' } },
{ name: 'area', fieldName: '행정참고자료면적(㎢)', header: { text: '행정참고자료면적(㎢)' } },
{ name: 'popltn_sm', fieldName: '총인구(명)', header: { text: '총인구(명)' } },
{ name: 'ar_sm', fieldName: '총면적(㎢)', header: { text: '총면적(㎢)' } },
{ name: 'swge_proc_zone_inner_sm', fieldName: '합계', header: { text: '합계' } },
{ name: 'pblswrg_popltn_sm', fieldName: '소계', header: { text: '소계' } },
{ name: 'pblswrg_prm_trt', fieldName: '물리적처리', header: { text: '물리적처리' } },
{ name: 'pblswrg_scd_trt', fieldName: '생물학적처리', header: { text: '생물학적처리' } },
{ name: 'pblswrg_tert_trt', fieldName: '고도처리', header: { text: '고도처리' } },
{ name: 'wstr_popltn_sm', fieldName: '소계', header: { text: '소계' } },
{ name: 'wstr_prm_trt', fieldName: '물리적처리', header: { text: '물리적처리' } },
{ name: 'wstr_scd_trt', fieldName: '생물학적처리', header: { text: '생물학적처리' } },
{ name: 'wstr_tert_trt', fieldName: '고도처리', header: { text: '고도처리' } },
{ name: 'not_conect_popltn', fieldName: '미접속인구', header: { text: '미접속인구' } },
{ name: 'swge_proc_zone_inner_ar', fieldName: '면적(㎢)', header: { text: '면적(㎢)' } },
{ name: 'swge_proc_zone_outer_sm', fieldName: '합계', header: { text: '합계' } },
{ name: 'town_unproc_popltn', fieldName: '미처리인구', header: { text: '미처리인구' } },
{ name: 'town_swtt_popltn', fieldName: '오수처리인구', header: { text: '오수처리인구' } },
{ name: 'town_wrrtn_popltn', fieldName: '정화조인구', header: { text: '정화조인구' } },
{ name: 'swge_proc_zone_outer_ar', fieldName: '면적(㎢)', header: { text: '면적(㎢)' } },
{ name: 'pblswrg_popltn_suprt', fieldName: '공공하수처리구역인구보급율(%)', header: { text: '공공하수처리구역인구보급율(%)' } },
{ name: 'adtrt_popltn_suprt', fieldName: '고도처리인구보급율(%)', header: { text: `고도처리인구보급율(%)` } },
{ name: 'swrg_instlrt', fieldName: '하수도설치율(%)', header: { text: '하수도설치율(%)' } },
{ name: 'rmk', fieldName: '비고', header: { text: '비고' } },
];
const columnLayout = [
{
name: 'groupA',
hideChildHeaders: false,
header: { text: '행정구역' },
items: ['sido', 'sgg'],
},
'rvbsn',
'bstrm',
{
name: 'groupB',
hideChildHeaders: false,
header: { text: '수계영향권별분류류' },
items: ['mdbsn', 'lgbsn', 'mdmbsn'],
},
'specl_cntrpln_ar',
{
name: 'groupC',
hideChildHeaders: false,
header: { text: '행정참고자료인구' },
items: ['total_popl', 'popl_sm', 'frgnr_popl_sm'],
},
'area',
'popltn_sm',
'ar_sm',
{
name: 'groupD',
hideChildHeaders: false,
header: { text: '하수처리구역내' },
items: [
'swge_proc_zone_inner_sm',
{
name: 'pblswrgGroup',
hideChildHeaders: false,
header: { text: '공공하수처리인구(명)' },
items: ['pblswrg_popltn_sm', 'pblswrg_prm_trt', 'pblswrg_scd_trt', 'pblswrg_tert_trt'],
},
{
name: 'wstrGroup',
hideChildHeaders: false,
header: { text: '폐수처리인구(명)' },
items: ['wstr_popltn_sm', 'wstr_prm_trt', 'wstr_scd_trt', 'wstr_tert_trt'],
},
'not_conect_popltn',
'swge_proc_zone_inner_ar'
],
},
{
name: 'groupE',
hideChildHeaders: false,
header: { text: '하수처리구역외' },
items: ['swge_proc_zone_outer_sm', 'town_swtt_popltn', 'town_unproc_popltn', 'town_wrrtn_popltn', 'swge_proc_zone_outer_ar'],
},
'pblswrg_popltn_suprt',
'adtrt_popltn_suprt',
'swrg_instlrt',
'rmk',
];
const submitFunc = () => {
console.log('submit');
// 제출 로직
};
const saveFunc = () => {
console.log('submit');
// 저장 로직
};
const getLastYearDataFunc = () => {
console.log('get last year data');
// 지난연도 데이터 가져오기 로직
};
const SubmitExceptionFunc = () => {
console.log('submit exception');
// 예외 제출 로직
};
return (
<>
<SearchForm userMenual={true} />
<div className="flex justify-end items-center gap-[0.6rem] m-[0.6rem]">
<SubmitButton submitFunc={submitFunc} />
<SaveButton saveFunc={saveFunc} />
<LastYearDataButton getLastYearDataFunc={getLastYearDataFunc} />
<SubmitExceptionButton SubmitExceptionFunc={SubmitExceptionFunc} />
</div>
<DataGrid columnInfo={{columns, columnLayout}} rowStartNum={2} isExcelImport={true} fixedColumns={1} />
</>
);
};
export default SeweragePenetrationRateTot;
@@ -0,0 +1,11 @@
import SearchForm from "../../module/SearchForm";
const SewerageServiceLevelTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default SewerageServiceLevelTot;
@@ -0,0 +1,11 @@
import SearchForm from "../../module/SearchForm";
const WaterReuseTot = () => {
return (
<>
<SearchForm userMenual={true} />
</>
);
};
export default WaterReuseTot;