From b43b1d92ef3d7e57b5df5cd72f75dc3a1c3f1c7a Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 27 Nov 2025 13:48:44 +0900
Subject: (김준회) swp 파일 개수 컬럼 삭제 (API에서 주지 않는 데이터), dolce
 rebuild 에서 상태값 수정, bulk upload MatchBatchFileDwg API 사용해 Edit 으로
 보내도록 수정 (Category, status 하드코딩 값 넣어주도록 처리), 상세도면, 파일
 추가시 확인 다이얼로그 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

(limited to 'lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx')

diff --git a/lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx b/lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx
index ea955420..8bb5dd42 100644
--- a/lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx
+++ b/lib/dolce/dialogs/b4-bulk-upload-dialog-v3.tsx
@@ -301,7 +301,7 @@ export function B4BulkUploadDialogV3({
           // Reuse UploadId from the first item's mapping data if available, else generate new
           const firstItemMapping = groupItems[0].mappingData;
           // Reuse existing UploadId if present in API response, otherwise generate new one
-          // The prompt says: "UploadId는 있으면 재활용하고, 없으면 UUID로 만들어줌"
+          // UploadId는 있으면 재활용하고, 없으면 UUID로 만들어서 사용
           const uploadId = firstItemMapping.UploadId || uuidv4();
           
           console.log(`[V3 Dialog] Processing group ${groupKey}, UploadId: ${uploadId}`);
@@ -371,30 +371,31 @@ export function B4BulkUploadDialogV3({
                  const m = item.mappingData;
                  return {
                     CGbn: m.CGbn,
-                    Category: "TS", // Hardcoded as per prompt
-                    CheckBox: "0",
+                    Category: "TS", // Hardcoded fixed value is required!
+                    CheckBox: m.CheckBox,
                     DGbn: m.DGbn,
                     DegreeGbn: m.DegreeGbn,
                     DeptGbn: m.DeptGbn,
                     Discipline: m.Discipline,
-                    DrawingKind: "B4",
-                    DrawingMoveGbn: "도면입수",
+                    DrawingKind: m.DrawingKind,
+                    DrawingMoveGbn: m.DrawingMoveGbn,
                     DrawingName: m.DrawingName,
                     DrawingNo: m.DrawingNo,
-                    DrawingUsage: "입수용",
+                    DrawingUsage: m.DrawingUsage,
                     FileNm: item.file.name,
                     JGbn: m.JGbn,
-                    Manager: m.Manager || "970043", // Fallback/Default
-                    MappingYN: "Y",
-                    NewOrNot: "N",
+                    Manager: m.Manager,
+                    MappingYN: m.MappingYN,
+                    NewOrNot: m.NewOrNot,
                     ProjectNo: projectNo,
-                    RegisterGroup: 0,
+                    RegisterGroup: m.RegisterGroup,
                     RegisterGroupId: m.RegisterGroupId,
                     RegisterKindCode: m.RegisterKindCode,
                     RegisterSerialNo: m.RegisterSerialNo,
                     RevNo: m.RevNo,
                     SGbn: m.SGbn,
-                    UploadId: uploadId // Used for all files in this group
+                    UploadId: uploadId, // Used for all files in this group
+                    status: "Standby", // Hardcoded fixed value is required!
                  };
              });
 
@@ -473,7 +474,7 @@ export function B4BulkUploadDialogV3({
   return (
     <>
       <Dialog open={open} onOpenChange={onOpenChange}>
-        <DialogContent className="max-w-2xl">
+        <DialogContent className="max-w-2xl max-h-[85vh] overflow-y-auto">
           <DialogHeader>
             <DialogTitle>{t("bulkUpload.title")} (V3)</DialogTitle>
             <DialogDescription>
-- 
cgit v1.2.3

