From 67bb1ad7d7e001e19c8d1dd9153a5f663e2afa03 Mon Sep 17 00:00:00 2001
From: 0-Zz-ang <s1998319@gmail.com>
Date: Thu, 7 Aug 2025 18:02:54 +0900
Subject: (박서영)docu-list-rule Project_code적용
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/combo-box-options-table-columns.tsx      | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

(limited to 'lib/docu-list-rule/combo-box-settings/table/combo-box-options-table-columns.tsx')

diff --git a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-table-columns.tsx b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-table-columns.tsx
index 0e46c0ed..17754331 100644
--- a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-table-columns.tsx
+++ b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-table-columns.tsx
@@ -28,6 +28,9 @@ interface ComboBoxOption {
   isActive?: boolean
   createdAt: Date
   updatedAt: Date
+  projectId: number
+  projectCode: string | null
+  projectName: string | null
 }
 
 interface GetColumnsProps {
@@ -110,6 +113,19 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<ComboBo
   // 3) 데이터 컬럼들
   // ----------------------------------------------------------------
   const dataColumns: ColumnDef<ComboBoxOption>[] = [
+    {
+      accessorKey: "projectCode",
+      enableResizing: true,
+      header: ({ column }) => (
+        <DataTableColumnHeaderSimple column={column} title="프로젝트 코드" />
+      ),
+      meta: {
+        excelHeader: "프로젝트 코드",
+        type: "text",
+      },
+      cell: ({ row }) => row.getValue("projectCode") ?? "",
+      minSize: 120
+    },
     {
       accessorKey: "code",
       enableResizing: true,
@@ -123,6 +139,19 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<ComboBo
       cell: ({ row }) => row.getValue("code") ?? "",
       minSize: 80
     },
+    {
+      accessorKey: "description",
+      enableResizing: true,
+      header: ({ column }) => (
+        <DataTableColumnHeaderSimple column={column} title="description" />
+      ),
+      meta: {
+        excelHeader: "description",
+        type: "text",
+      },
+      cell: ({ row }) => row.getValue("description") ?? "",
+      minSize: 80
+    },
     {
       accessorKey: "remark",
       enableResizing: true,
-- 
cgit v1.2.3

