From 95bbe9c583ff841220da1267630e7b2025fc36dc Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 19 Jun 2025 09:44:28 +0000 Subject: (대표님) 20250619 1844 KST 작업사항 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/form-data/spreadJS-dialog.tsx | 69 ++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 components/form-data/spreadJS-dialog.tsx (limited to 'components/form-data/spreadJS-dialog.tsx') diff --git a/components/form-data/spreadJS-dialog.tsx b/components/form-data/spreadJS-dialog.tsx new file mode 100644 index 00000000..69232508 --- /dev/null +++ b/components/form-data/spreadJS-dialog.tsx @@ -0,0 +1,69 @@ +import * as React from "react"; +import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DialogDescription } from "@/components/ui/dialog"; +import { Button } from "@/components/ui/button"; +import { GenericData } from "./export-excel-form"; +import { SpreadSheets, Worksheet, Column } from "@mescius/spread-sheets-react"; +import * as GC from "@mescius/spread-sheets"; + + +interface TemplateViewDialogProps { + isOpen: boolean; + onClose: () => void; + templateData: any; + selectedRow: GenericData; + formCode: string; + } + +export function TemplateViewDialog({ + isOpen, + onClose, + templateData, + selectedRow, + formCode + }: TemplateViewDialogProps) { + return ( + + + + SEDP Template - {formCode} + + {selectedRow && `Selected TAG_NO: ${selectedRow.TAG_NO || 'N/A'}`} + + + + {/* 스크롤 가능한 콘텐츠 영역 */} +
+ {/* 여기에 템플릿 데이터나 다른 콘텐츠가 들어갈 예정 */} +
+

+ Template content will be displayed here... +

+ + {/* 임시로 templateData 표시 */} + {templateData && ( +
+                  {JSON.stringify(templateData, null, 2)}
+                
+ )} +
+
+ + + + + +
+
+ ); + } \ No newline at end of file -- cgit v1.2.3