From 23db698279eb8ea5f73f678ce6deb93267c4705e Mon Sep 17 00:00:00 2001
From: rlaks5757 <rlaks5757@gmail.com>
Date: Thu, 27 Mar 2025 11:53:12 +0900
Subject: report batch download 개발 중
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/form-data/form-data-table.tsx | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

(limited to 'components/form-data/form-data-table.tsx')

diff --git a/components/form-data/form-data-table.tsx b/components/form-data/form-data-table.tsx
index e3c5af8f..9feaf3b2 100644
--- a/components/form-data/form-data-table.tsx
+++ b/components/form-data/form-data-table.tsx
@@ -23,6 +23,7 @@ import ExcelJS from "exceljs";
 import { saveAs } from "file-saver";
 import { FormDataReportTempUploadDialog } from "./form-data-report-temp-upload-dialog";
 import { FormDataReportDialog } from "./form-data-report-dialog";
+import { FormDataReportBatchDialog } from "./form-data-report-batch-dialog";
 
 interface GenericData {
   [key: string]: any;
@@ -57,6 +58,7 @@ export default function DynamicTable({
   const [isSaving, setIsSaving] = React.useState(false);
   const [tempUpDialog, setTempUpDialog] = React.useState(false);
   const [reportData, setReportData] = React.useState<GenericData[]>([]);
+  const [batchDownDialog, setBatchDownDialog] = React.useState(false);
 
   // Reference to the table instance
   const tableRef = React.useRef(null);
@@ -524,6 +526,13 @@ export default function DynamicTable({
         {/* 버튼 그룹 */}
         <div className="flex items-center gap-2">
           {/* 태그 불러오기 버튼 */}
+          <Button
+            variant="default"
+            size="sm"
+            onClick={() => setBatchDownDialog(true)}
+          >
+            Report Batch
+          </Button>
           <Button
             variant="default"
             size="sm"
@@ -621,6 +630,20 @@ export default function DynamicTable({
           formId={formId}
         />
       )}
+
+      {batchDownDialog && (
+        <FormDataReportBatchDialog
+          open={batchDownDialog}
+          setOpen={setBatchDownDialog}
+          columnsJSON={columnsJSON}
+          reportData={tableData}
+          packageId={contractItemId}
+          formCode={formCode}
+          formId={formId}
+        />
+      )}
     </>
   );
 }
+
+
-- 
cgit v1.2.3

