"use client"; import { useState } from "react"; import { DataGrid } from "@rsone/components"; import SearchForm from "@/components/module/SearchForm"; import { Button, Input, Label, Select, SelectTrigger, SelectContent, SelectItem, SelectValue, Checkbox, } from "@common/components"; import { verificationHistoryColumnInfo } from "@/entities/statistics/model/verification-history-column"; import { verificationHistoryMockData } from "@/entities/statistics/model/verification-history-mock"; interface VerificationFormValues { mu: string; percentile: string; a: string; c: string; verificationYear: string; checkboxOptions: { sidoDistribution: boolean; countyDistribution: boolean; countyDistributionUserManagement: boolean; lowerDistribution: boolean; sidoServiceAvailability: boolean; individualService: boolean; legalServiceUsage: boolean; excessUse: boolean; lowerOrgStatistics: boolean; studentStatistics: boolean; developmentStatistics: boolean; lowerManagementEnterprise: boolean; }; } const HbStatisticsVerification = () => { const [verificationHistoryRowData, setVerificationHistoryRowData] = useState[]>( verificationHistoryMockData, ); const [formValues, setFormValues] = useState({ mu: "0", percentile: "0", a: "0", c: "0", verificationYear: "2025", checkboxOptions: { sidoDistribution: false, countyDistribution: false, countyDistributionUserManagement: false, lowerDistribution: false, sidoServiceAvailability: false, individualService: false, legalServiceUsage: false, excessUse: false, lowerOrgStatistics: false, studentStatistics: false, developmentStatistics: false, lowerManagementEnterprise: false, }, }); const handleCheckboxChange = ( key: keyof VerificationFormValues["checkboxOptions"], ) => { setFormValues((prev) => ({ ...prev, checkboxOptions: { ...prev.checkboxOptions, [key]: !prev.checkboxOptions[key], }, })); }; const handleInputChange = ( key: keyof Omit, value: string, ) => { setFormValues((prev) => ({ ...prev, [key]: value, })); }; const handleSubmit = () => { console.log("검증 실행:", formValues); }; const handleReset = () => { console.log("초기화"); }; return (
{/* 통계 검증 섹션 */}

통계 검증

{/* 왼쪽: 검증 변수 */}

검증 변수

handleInputChange( "mu", e.target.value, ) } className="flex-1" />
handleInputChange( "percentile", e.target.value, ) } className="flex-1" />
handleInputChange( "a", e.target.value, ) } className="flex-1" />
handleInputChange( "c", e.target.value, ) } className="flex-1" />
{/* 오른쪽: 검증 대상 */}

검증 대상

handleCheckboxChange( "sidoDistribution", ) } />
handleCheckboxChange( "countyDistribution", ) } />
handleCheckboxChange( "countyDistributionUserManagement", ) } />
handleCheckboxChange( "lowerDistribution", ) } />
handleCheckboxChange( "sidoServiceAvailability", ) } />
handleCheckboxChange( "individualService", ) } />
handleCheckboxChange( "sidoServiceAvailability", ) } />
handleCheckboxChange( "individualService", ) } />
handleCheckboxChange( "lowerOrgStatistics", ) } />
handleCheckboxChange( "studentStatistics", ) } />
handleCheckboxChange( "lowerOrgStatistics", ) } />
handleCheckboxChange( "studentStatistics", ) } />
handleCheckboxChange( "lowerManagementEnterprise", ) } />
{/* 버튼 */}
{/* 검증 이력 섹션 */}

검증 이력

); }; export default HbStatisticsVerification;