From 8440ac29c7dcbef992039678ecc0fabff2fd04ec Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Dec 2025 00:58:23 +0000
Subject: (대표님) S-EDP 관련 대표님 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data-plant/form-data-report-dialog.tsx     | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

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

diff --git a/components/form-data-plant/form-data-report-dialog.tsx b/components/form-data-plant/form-data-report-dialog.tsx
index 9177ab36..2413fc28 100644
--- a/components/form-data-plant/form-data-report-dialog.tsx
+++ b/components/form-data-plant/form-data-report-dialog.tsx
@@ -49,7 +49,8 @@ interface FormDataReportDialogProps {
   columnsJSON: DataTableColumnJSON[];
   reportData: ReportData[];
   setReportData: Dispatch<SetStateAction<ReportData[]>>;
-  packageId: number;
+  projectCode: string;
+  packageCode: string;
   formId: number;
   formCode: string;
 }
@@ -58,7 +59,8 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
   columnsJSON,
   reportData,
   setReportData,
-  packageId,
+  projectCode,
+  packageCode,
   formId,
   formCode,
 }) => {
@@ -76,8 +78,8 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
   const [generatedFileBlob, setGeneratedFileBlob] = useState<Blob | null>(null);
 
   useEffect(() => {
-    updateReportTempList(packageId, formId, setTempList);
-  }, [packageId, formId]);
+    updateReportTempList(projectCode, packageCode, formId, setTempList);
+  }, [projectCode,packageCode, formId]);
 
   const onClose = async (value: boolean) => {
     if (fileLoading) {
@@ -197,7 +199,8 @@ export const FormDataReportDialog: FC<FormDataReportDialogProps> = ({
       <PublishDialog
         open={publishDialogOpen}
         onOpenChange={setPublishDialogOpen}
-        packageId={packageId}
+        projectCode={projectCode}
+        packageCode={packageCode}
         formCode={formCode}
         fileBlob={generatedFileBlob || undefined}
       />
@@ -394,17 +397,19 @@ const importReportData: ImportReportData = async (
 };
 
 type UpdateReportTempList = (
-  packageId: number,
+  projectCode: string,
+  packageCode: string,
   formId: number,
   setPrevReportTemp: Dispatch<SetStateAction<tempFile[]>>
 ) => void;
 
 const updateReportTempList: UpdateReportTempList = async (
-  packageId,
+  projectCode,
+  packageCode,
   formId,
   setTempList
 ) => {
-  const tempList = await getReportTempList(packageId, formId);
+  const tempList = await getReportTempList(projectCode,packageCode, formId);
 
   setTempList(
     tempList.map((c) => {
-- 
cgit v1.2.3

