From fd4909bba7be8abc1eeab9ae1b4621c66a61604a Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Sun, 23 Nov 2025 16:40:37 +0900 Subject: (김준회) 돌체 재개발 - 1차 (다운로드 오류 수정 필요) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dolce/table/drawing-list-columns.tsx | 87 ++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 lib/dolce/table/drawing-list-columns.tsx (limited to 'lib/dolce/table/drawing-list-columns.tsx') diff --git a/lib/dolce/table/drawing-list-columns.tsx b/lib/dolce/table/drawing-list-columns.tsx new file mode 100644 index 00000000..0e18266d --- /dev/null +++ b/lib/dolce/table/drawing-list-columns.tsx @@ -0,0 +1,87 @@ +"use client"; + +import { ColumnDef } from "@tanstack/react-table"; +import { DwgReceiptItem } from "../actions"; + +export const drawingListColumns: ColumnDef[] = [ + { + accessorKey: "DrawingNo", + header: "도면번호", + minSize: 200, + cell: ({ row }) => { + return
{row.getValue("DrawingNo")}
; + }, + }, + { + accessorKey: "DrawingName", + header: "도면명", + minSize: 400, + cell: ({ row }) => { + return
{row.getValue("DrawingName")}
; + }, + }, + { + accessorKey: "Discipline", + header: "설계공종", + minSize: 80, + }, + { + accessorKey: "Manager", + header: "담당자명", + minSize: 200, + cell: ({ row }) => { + const managerENM = row.original.ManagerENM; + const manager = row.getValue("Manager"); + return
{managerENM || manager}
; + }, + }, + { + accessorKey: "AppDwg_PlanDate", + header: "승인도면 예정일", + minSize: 140, + cell: ({ row }) => { + const date = row.getValue("AppDwg_PlanDate") as string; + if (!date || date.length !== 8) return null; + return `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`; + }, + }, + { + accessorKey: "AppDwg_ResultDate", + header: "승인도면 결과일", + minSize: 140, + cell: ({ row }) => { + const date = row.getValue("AppDwg_ResultDate") as string; + if (!date || date.length !== 8) return null; + return `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`; + }, + }, + { + accessorKey: "WorDwg_PlanDate", + header: "작업도면 예정일", + minSize: 140, + cell: ({ row }) => { + const date = row.getValue("WorDwg_PlanDate") as string; + if (!date || date.length !== 8) return null; + return `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`; + }, + }, + { + accessorKey: "WorDwg_ResultDate", + header: "작업도면 결과일", + minSize: 140, + cell: ({ row }) => { + const date = row.getValue("WorDwg_ResultDate") as string; + if (!date || date.length !== 8) return null; + return `${date.substring(0, 4)}-${date.substring(4, 6)}-${date.substring(6, 8)}`; + }, + }, + { + accessorKey: "CreateDt", + header: "생성일시", + minSize: 200, + cell: ({ row }) => { + return
{row.getValue("CreateDt")}
; + }, + }, +]; + -- cgit v1.2.3