- 가독성 개선을 위해 파일명 단축 - Treatment -> Treat - Facility -> Fac - Construction -> Const - Approval -> Appr - Utilization -> Util - Designation -> Desig - Settlement -> Settle - StatsInputSatus 오타 변경 -> StatsInputStatus
79 lines
2.9 KiB
TypeScript
79 lines
2.9 KiB
TypeScript
import { useState } from "react";
|
|
import SearchForm from "@/components/module/SearchForm";
|
|
import { DataGrid } from "@rsone/components";
|
|
import SubmitButton from "@/components/button/SumitButton";
|
|
import SaveButton from "@/components/button/SaveButton";
|
|
import LastYearDataButton from "@/components/button/LastYearDataButton";
|
|
import SubmitExceptionButton from "@/components/button/SubmitExceptionButton";
|
|
import AddArticleButton from "@/components/button/AddArticleButton";
|
|
import DeleteArticleButton from "@/components/button/DeleteArticleButton";
|
|
import NotApplicableCheckButton from "@/components/button/NotApplicableCheckButton";
|
|
|
|
import { ExcretaTreatFactInpColumn } from "@/components/util/column/input/ExcretaTreatFactInpColumn"
|
|
|
|
// 하수도 통계 관리 > 07. 분뇨처리시설
|
|
const ExcretaTreatmentFacilityInp = () => {
|
|
|
|
const submitExceptionFunc = () => {
|
|
console.log('submit exception');
|
|
// 예외제출 로직
|
|
};
|
|
|
|
const getLastYearDataFunc = () => {
|
|
console.log('get last year data');
|
|
// 지난연도 데이터 가져오기 로직
|
|
};
|
|
|
|
const submitFunc = () => {
|
|
console.log('submit');
|
|
// 제출 로직
|
|
};
|
|
|
|
const saveFunc = () => {
|
|
console.log('save');
|
|
// 저장 로직
|
|
};
|
|
|
|
const addArticleFunc = () => {
|
|
console.log('save');
|
|
// 항목 추가 로직
|
|
};
|
|
|
|
const deleteArticleFunc = () => {
|
|
console.log('save');
|
|
// 항목 제외 로직
|
|
};
|
|
|
|
const [rowData, setRowData] = useState<Record<string, string | number>[]>([]);
|
|
const [isNotApplicable, setIsNotApplicable] = useState(false);
|
|
|
|
return (
|
|
<>
|
|
<SearchForm userMenual={true} fctName={true} />
|
|
<div className="card !py-0">
|
|
<div className="flex justify-end items-center gap-[0.6rem] m-[0.6rem]">
|
|
<SubmitExceptionButton SubmitExceptionFunc={submitExceptionFunc} />
|
|
<LastYearDataButton getLastYearDataFunc={getLastYearDataFunc} />
|
|
<SaveButton saveFunc={saveFunc} />
|
|
<SubmitButton submitFunc={submitFunc} />
|
|
</div>
|
|
</div>
|
|
<div className="card !py-0">
|
|
<div className="flex justify-end items-center gap-[0.6rem] m-[0.6rem]">
|
|
<NotApplicableCheckButton isCheck={isNotApplicable} setIsCheck={setIsNotApplicable} />
|
|
<AddArticleButton addArticleFunc={addArticleFunc} />
|
|
<DeleteArticleButton deleteArticleFunc={deleteArticleFunc} />
|
|
</div>
|
|
</div>
|
|
<DataGrid
|
|
columnInfo={ExcretaTreatFactInpColumn}
|
|
rowStartNum={2}
|
|
fixedColumns={2}
|
|
rowData={rowData}
|
|
setRowData={setRowData}
|
|
/>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ExcretaTreatmentFacilityInp; |