diff --git a/apps/sn/app/ii/BaseLayout.tsx b/apps/sn/app/ii/BaseLayout.tsx index fa40d274f..6c0dd52bc 100644 --- a/apps/sn/app/ii/BaseLayout.tsx +++ b/apps/sn/app/ii/BaseLayout.tsx @@ -68,7 +68,7 @@ const BaseLayout = ({ children, titleName, form, onSubmitEvent, graphBtn, tableI

{titleName.secondCardTitle}

- + {/* 그래프 있을 시 */} {graphBtn ? : null}
diff --git a/apps/sn/app/ii/ir/irsetting/page.tsx b/apps/sn/app/ii/ir/irsetting/page.tsx new file mode 100644 index 000000000..8eec2a4fa --- /dev/null +++ b/apps/sn/app/ii/ir/irsetting/page.tsx @@ -0,0 +1,109 @@ +'use client' +import React, { useState } from 'react' +import BaseLayout from '../../BaseLayout' +import { FormField, SelectBox } from '@common/business_components/ui' +import { DatePicker, Input } from '@common/components/ui' +import { z } from 'zod' +import { zodResolver } from '@hookform/resolvers/zod' +import { useForm } from 'react-hook-form' +const formSchema = z.object({ + region: z.string(), + suyeonga:z.number(), + inputdate: z.coerce.date(), + rtkSource: z.string(), +}) +const region: { text: string, val: number }[] = [{ text: '양평', val: 1 }, { text: '강남', val: 2 }, { text: 'test', val: 3 }] +const IrSetting = () => { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + region: "", + suyeonga:0, + inputdate: new Date(), + rtkSource: "", + } + }) + // TODO: 임시 데이터 + const rtxNmHeadlist = [ + { id: 'fileNm', title: '파일명' }, + { id: 'status', title: '상태' }, + { id: 'code', title: '지정코드' }, + { id: 'cjfl', title: '처리' }, + { id: 'add', title: '추가' }, + { id: 'update', title: '변경' }, + { id: 'error', title: '오류' }, + { id: 'skip', title: 'Skip' } + ] + const rtxNmDataList = [ + { "status": '상태', 'code': '123824', 'cjfl': '처리', 'fileNm': '파일', 'add': '', 'update': '', 'error': '', 'skip': '' } + ] + const [selectedDate, setSelectedDate] = useState(new Date()) + return ( + { }} graphBtn={true} tableInfoData={{ headList: rtxNmHeadlist, tableData: rtxNmDataList, cellClickFunc: () => { }, onPageChangeFunc: () => { } }}> +
+
+
○ 처리구역
+ ( + { }} selectClass={undefined} className='w-[150px]' /> + )} + /> +
+
+
○ 수용가 수
+ ( + { }} selectClass={undefined} className='w-[150px]' /> + )} + /> +
+
+
○ 상수사용량 정보
+ ( + { if (date) setSelectedDate(date) }} + mode={"single"} className='w-[150px]' + /> + )} + /> +
+
+
○ 오수 전환율
+ ( + + )} + /> +
+
+
○ 파일위치
+ ( +
+ +
+ )} + /> +
+
+
+ ) +} + +export default IrSetting \ No newline at end of file diff --git a/apps/sn/app/ii/ir/measureDataUpload/page.tsx b/apps/sn/app/ii/ir/measureDataUpload/page.tsx new file mode 100644 index 000000000..a7a461437 --- /dev/null +++ b/apps/sn/app/ii/ir/measureDataUpload/page.tsx @@ -0,0 +1,98 @@ +'use client' +import React, { useState } from 'react' +import BaseLayout from '../../BaseLayout' +import { FormField, SelectBox } from '@common/business_components/ui' +import { DatePicker, Input } from '@common/components/ui' +import { z } from 'zod' +import { zodResolver } from '@hookform/resolvers/zod' +import { useForm } from 'react-hook-form' +const formSchema = z.object({ + region: z.string(), + inputdate: z.coerce.date(), + rtkSource: z.string(), +}) +const region: { text: string, val: number }[] = [{ text: '양평', val: 1 }, { text: '강남', val: 2 }, { text: 'test', val: 3 }] +const MeasureDataUpload = () => { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + region: "", + inputdate: new Date(), + rtkSource: "", + } + }) + // TODO: 임시 데이터 + const rtxNmHeadlist = [ + { id: 'fileNm', title: '파일명' }, + { id: 'status', title: '상태' }, + { id: 'code', title: '지정코드' }, + { id: 'cjfl', title: '처리' }, + { id: 'add', title: '추가' }, + { id: 'update', title: '변경' }, + { id: 'error', title: '오류' }, + { id: 'skip', title: 'Skip' } + ] + const rtxNmDataList = [ + { "status": '상태', 'code': '123824', 'cjfl': '처리', 'fileNm': '파일', 'add': '', 'update': '', 'error': '', 'skip': '' } + ] + const [selectedDate, setSelectedDate] = useState(new Date()) + return ( + { }} graphBtn={true} tableInfoData={{ headList: rtxNmHeadlist, tableData: rtxNmDataList, cellClickFunc: () => { }, onPageChangeFunc: () => { } }}> +
+
+
○ 처리구역
+ ( + { }} selectClass={undefined} className='w-[150px]' /> + )} + /> +
+ +
+
○ 입력일
+ ( + { if (date) setSelectedDate(date) }} + mode={"single"} className='w-[150px]' + /> + )} + /> +
+
+
○ 관로 관리번호
+ ( + + )} + /> +
+
+
○ 파일위치
+ ( +
+ +
+ )} + /> +
+
+
+ ) +} + +export default MeasureDataUpload \ No newline at end of file diff --git a/apps/sn/app/ii/mock/page.tsx b/apps/sn/app/ii/mock/page.tsx deleted file mode 100644 index 119def875..000000000 --- a/apps/sn/app/ii/mock/page.tsx +++ /dev/null @@ -1,225 +0,0 @@ -"use client" - -import { z } from "zod" -import { useForm, useFieldArray } from "react-hook-form" -import { zodResolver } from "@hookform/resolvers/zod" -import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage, FormUi, SearchDiv, SearchFormLeft, SearchFormRight, SelectBox } from "@common/business_components/ui" -import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Button } from "@common/components/ui" -import { UiTable } from "@common/business_components/ui" -import React from "react" -import ContentLayout from "@/components/ui/contentLayout" -import ListDiv from "@common/business_components/ui/list_div" - -// zod 스키마 정의 -const formSchema = z.object({ - region: z.string(), - rdiiArea: z.string(), - rtkSource: z.string(), - unitFactors: z.array(z.object({ - response: z.string(), - R: z.string(), - T: z.string(), - K: z.string(), - })), - initialDepths: z.array(z.object({ - response: z.string(), - Dmax: z.string(), - Drec: z.string(), - Do: z.string(), - })) -}) - -export default function RTKForm() { - const form = useForm>({ - resolver: zodResolver(formSchema), - defaultValues: { - region: "", - rdiiArea: "", - rtkSource: "", - unitFactors: [ - { response: "Short-Term", R: "", T: "", K: "" }, - { response: "Medium-Term", R: "", T: "", K: "" }, - { response: "Long-Term", R: "", T: "", K: "" }, - ], - initialDepths: [ - { response: "Short-Term", Dmax: "", Drec: "", Do: "" }, - { response: "Medium-Term", Dmax: "", Drec: "", Do: "" }, - { response: "Long-Term", Dmax: "", Drec: "", Do: "" }, - ], - } - }) - - const { fields: unitFactorFields } = useFieldArray({ - control: form.control, - name: "unitFactors" - }) - - const { fields: initialDepthFields } = useFieldArray({ - control: form.control, - name: "initialDepths" - }) - - const onSubmit = (data: z.infer) => { - console.log("✅ 제출 데이터:", data) - } - - // 단위도 계수 테이블 설정 - const unitFactorHeadlist = [ - { id: 'response', title: 'Response' }, - { id: 'R', title: 'R' }, - { id: 'T', title: 'T' }, - { id: 'K', title: 'K' } - ] - - // 초기 차단 깊이 테이블 설정 - const initialDepthHeadlist = [ - { id: 'response', title: 'Response' }, - { id: 'Dmax', title: 'Dmax' }, - { id: 'Drec', title: 'Drec' }, - { id: 'Do', title: 'Do' } - ] - const rtxNmHeadlist = [ - { id: 'no', title: '번호' }, - { id: 'hasu', title: '하수처리장' }, - { id: 'guyeok', title: '처리구역' }, - { id: 'cnfcj', title: '출처' }, - { id: 'time', title: '입력시간' } - ] - // 테이블 페이지 변경 핸들러 - const handlePageChange = (page: number) => { - console.log('Page changed:', page) - } - - return ( - - - - {}} selectClass={undefined}/> - { }} selectClass='' /> - { }} selectClass='' /> - { }} selectClass='' /> - - - - - - -
-

모의정보 설정

-
-
- -
- {/* 기본 정보 입력 폼 */} -
- ( - - - - )} - /> - - ( - - - - )} - /> - - ( - - - - )} - /> -
- - {/* 테이블 컨테이너 */} -
-
-
-
○ 단위도 계수
- - {null} - -
-
-
○ 초기 차단 깊이
- - {null} - -
-
-
- -
- -
-
-
- -
- -
-

RTX계수 입력현황

- -
- { }} - onPageChange={() => { }} - /> -
-
- ) -} diff --git a/apps/sn/app/ii/observe/page.tsx b/apps/sn/app/ii/observe/page.tsx deleted file mode 100644 index f35e4a4dc..000000000 --- a/apps/sn/app/ii/observe/page.tsx +++ /dev/null @@ -1,158 +0,0 @@ -"use client" - -import { z } from "zod" -import { useForm, useFieldArray } from "react-hook-form" -import { zodResolver } from "@hookform/resolvers/zod" -import { FileUpload, Form, FormControl, FormField, FormItem, FormLabel, FormMessage, FormUi, SearchDiv, SearchFormLeft, SearchFormRight, SearchInput, SelectBox } from "@common/business_components/ui" -import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem, Input, Button, DatePicker, Label } from "@common/components/ui" -import { UiTable } from "@common/business_components/ui" -import React, { useState } from "react" -import ContentLayout from "@/components/ui/contentLayout" -import ListDiv from "@common/business_components/ui/list_div" - -// zod 스키마 정의 -const formSchema = z.object({ - region: z.string(), - inputdate: z.coerce.date(), - rtkSource: z.string(), -}) - -export default function RTKForm() { - const form = useForm>({ - resolver: zodResolver(formSchema), - defaultValues: { - region: "", - inputdate: new Date(), - rtkSource: "", - } - }) - const [selectedDate, setSelectedDate] = useState(new Date()) - const onSubmit = (data: z.infer) => { - console.log("✅ 제출 데이터:", data) - } - // TODO: 임시 데이터 - const rtxNmHeadlist = [ - { id: 'no', title: '번호' }, - { id: 'hasu', title: '하수처리장' }, - { id: 'guyeok', title: '처리구역' }, - { id: 'fileNm', title: '파일명' }, - { id: 'time', title: '입력시간' } - ] - const rtxNmDataList = [ - { "no": '1', 'hasu': '하수처리장', 'guyeok': '처리구역', 'fileNm': '파일', 'time': '2025-04-18' } - ] - const handlePageChange = (page: number) => { - console.log('Page changed:', page) - } - - return ( - - - - {}} selectClass={undefined}/> - { }} selectClass='' /> - { }} selectClass='' /> - { }} selectClass='' /> - - - - - - -
-

SWMM5 파일 업로드

-
-
- -
- {/* 기본 정보 입력 폼 */} -
-
-
○ 처리구역
- ( - - )} - /> -
- -
-
○ RDII 기여면적(ha)
- ( - { if (date) setSelectedDate(date) }} - mode={"single"} - /> - )} - /> -
-
-
○ 파일위치
- ( -
- -
- )} - /> -
-
-
○ 비고
- ( - - )} - /> -
-
- - -
- -
-
-
- -
- -
-

SWMM 파일 업로드현황

- -
- { }} - onPageChange={() => { }} - /> -
-
- ) -} diff --git a/apps/sn/app/ii/rdii/rain/page.tsx b/apps/sn/app/ii/rdii/rain/page.tsx new file mode 100644 index 000000000..e74560b66 --- /dev/null +++ b/apps/sn/app/ii/rdii/rain/page.tsx @@ -0,0 +1,54 @@ +'use client' +import React, { useState } from 'react' +import BaseLayout from '../../BaseLayout' +import { FormField, SelectBox } from '@common/business_components/ui' +import { DatePicker, Input } from '@common/components/ui' +import { z } from 'zod' +import { zodResolver } from '@hookform/resolvers/zod' +import { useForm } from 'react-hook-form' +const formSchema = z.object({ + region: z.string(), +}) +const region: { text: string, val: number }[] = [{ text: '양평', val: 1 }, { text: '강남', val: 2 }, { text: 'test', val: 3 }] +const RainDataUpload = () => { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + region: "", + } + }) + // TODO: 임시 데이터 + const rtxNmHeadlist = [ + { id: 'fileNm', title: '파일명' }, + { id: 'status', title: '상태' }, + { id: 'code', title: '지정코드' }, + { id: 'cjfl', title: '처리' }, + { id: 'add', title: '추가' }, + { id: 'update', title: '변경' }, + { id: 'error', title: '오류' }, + { id: 'skip', title: 'Skip' } + ] + const rtxNmDataList = [ + { "status": '상태', 'code': '123824', 'cjfl': '처리', 'fileNm': '파일', 'add': '', 'update': '', 'error': '', 'skip': '' } + ] + return ( + { }} graphBtn={true} tableInfoData={{ headList: rtxNmHeadlist, tableData: rtxNmDataList, cellClickFunc: () => { }, onPageChangeFunc: () => { } }}> +
+
+
○ 파일위치
+ ( +
+ +
+ )} + /> +
+
+
+ ) +} + +export default RainDataUpload \ No newline at end of file diff --git a/apps/sn/app/ii/rdii/rdiisetting/page.tsx b/apps/sn/app/ii/rdii/rdiisetting/page.tsx new file mode 100644 index 000000000..16f080c56 --- /dev/null +++ b/apps/sn/app/ii/rdii/rdiisetting/page.tsx @@ -0,0 +1,149 @@ +'use client' +import BaseLayout from '@/ii/BaseLayout' +import { FormField, SelectBox } from '@common/business_components/ui' +import { DatePicker, Input } from '@common/components/ui' +import { zodResolver } from '@hookform/resolvers/zod' +import React, { useState } from 'react' +import { useForm } from 'react-hook-form' +import { z } from 'zod' +const formSchema = z.object({ + region: z.string(), + suyeonga:z.number(), + meter:z.string(), + inputdate: z.coerce.date(), + inpSource:z.string(), + rtkSource: z.string(), +}) +const region: { text: string, val: number }[] = [{ text: '양평', val: 1 }, { text: '강남', val: 2 }, { text: 'test', val: 3 }] +const RdiiSetting = () => { + const form = useForm>({ + resolver: zodResolver(formSchema), + defaultValues: { + region: "", + meter:"", + suyeonga:0, + inputdate: new Date(), + inpSource:"", + rtkSource: "", + } + }) + // TODO: 임시 데이터 + const rtxNmHeadlist = [ + { id: 'fileNm', title: '파일명' }, + { id: 'status', title: '상태' }, + { id: 'code', title: '지정코드' }, + { id: 'cjfl', title: '처리' }, + { id: 'add', title: '추가' }, + { id: 'update', title: '변경' }, + { id: 'error', title: '오류' }, + { id: 'skip', title: 'Skip' } + ] + const rtxNmDataList = [ + { "status": '상태', 'code': '123824', 'cjfl': '처리', 'fileNm': '파일', 'add': '', 'update': '', 'error': '', 'skip': '' } + ] + const [selectedDate, setSelectedDate] = useState(new Date()) + return ( + { }} graphBtn={true} tableInfoData={{ headList: rtxNmHeadlist, tableData: rtxNmDataList, cellClickFunc: () => { }, onPageChangeFunc: () => { } }}> +
+
+
○ 처리구역
+ ( + { }} selectClass={undefined} className='w-[150px]' /> + )} + /> +
+
+
○ RDII 기여면적(ha)
+ ( + + )} + /> +
+
+
○ 수용가 수
+ ( + { }} selectClass={undefined} className='w-[150px] h-[3.2rem]' /> + )} + /> +
+
+
○ 상수사용량 정보
+ ( + { if (date) setSelectedDate(date) }} + mode={"single"} className='w-[150px]' + /> + )} + /> +
+
+
○ 오수 전환율
+ ( + + )} + /> +
+
+
○ 오수 전환율
+ ( + { }} selectClass={undefined} className='h-[3.2rem] w-[150px]' /> + )} + /> +
+
+
○ 관망도자료
+ ( +
+ +
+ )} + /> +
+
+
○ 강우자료
+ ( +
+ +
+ )} + /> +
+
+
+ ) +} + +export default RdiiSetting \ No newline at end of file