From b807f0e8007d297ab282a4329bfbdeb3afcb63a7 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 26 Nov 2025 10:13:54 +0000
Subject: (대표님) EDP 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/form-data-plant/spreadJS-dialog.tsx | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

(limited to 'components/form-data-plant/spreadJS-dialog.tsx')

diff --git a/components/form-data-plant/spreadJS-dialog.tsx b/components/form-data-plant/spreadJS-dialog.tsx
index 2eb2c8ba..9f972676 100644
--- a/components/form-data-plant/spreadJS-dialog.tsx
+++ b/components/form-data-plant/spreadJS-dialog.tsx
@@ -92,7 +92,8 @@ interface TemplateViewDialogProps {
   tableData?: GenericData[];
   formCode: string;
   columnsJSON: DataTableColumnJSON[]
-  contractItemId: number;
+  projectCode: string;
+  packageCode: string;
   editableFieldsMap?: Map<string, string[]>;
   onUpdateSuccess?: (updatedValues: Record<string, any> | GenericData[]) => void;
 }
@@ -142,7 +143,8 @@ export function TemplateViewDialog({
   selectedRow,
   tableData = [],
   formCode,
-  contractItemId,
+  projectCode,
+  packageCode,
   columnsJSON,
   editableFieldsMap = new Map(),
   onUpdateSuccess
@@ -1435,7 +1437,8 @@ export function TemplateViewDialog({
 
         const { success, message } = await updateFormDataInDB(
           formCode,
-          contractItemId,
+          projectCode,
+          packageCode,
           dataToSave
         );
 
@@ -1500,7 +1503,8 @@ export function TemplateViewDialog({
             try {
               const { success, message } = await updateFormDataInDB(
                 formCode,
-                contractItemId,
+                projectCode,
+                packageCode,
                 dataToSave
               );
 
@@ -1551,7 +1555,8 @@ export function TemplateViewDialog({
     selectedRow,
     tableData,
     formCode,
-    contractItemId,
+    projectCode,
+    packageCode,
     onUpdateSuccess,
     cellMappings,
     columnsJSON,
-- 
cgit v1.2.3

