summaryrefslogtreecommitdiff
path: root/lib/items-tech/table/hull/item-excel-template.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/items-tech/table/hull/item-excel-template.tsx')
-rw-r--r--lib/items-tech/table/hull/item-excel-template.tsx32
1 files changed, 11 insertions, 21 deletions
diff --git a/lib/items-tech/table/hull/item-excel-template.tsx b/lib/items-tech/table/hull/item-excel-template.tsx
index f38bb9dc..61fddecc 100644
--- a/lib/items-tech/table/hull/item-excel-template.tsx
+++ b/lib/items-tech/table/hull/item-excel-template.tsx
@@ -19,13 +19,9 @@ export async function exportHullItemTemplate() {
// 컬럼 헤더 정의 및 스타일 적용
worksheet.columns = [
{ header: '아이템 코드', key: 'itemCode', width: 15 },
- { header: '아이템 명', key: 'itemName', width: 30 },
{ header: '기능(공종)', key: 'workType', width: 15 },
- { header: '설명', key: 'description', width: 50 },
- { header: '항목1', key: 'itemList1', width: 20 },
- { header: '항목2', key: 'itemList2', width: 20 },
- { header: '항목3', key: 'itemList3', width: 20 },
- { header: '항목4', key: 'itemList4', width: 20 },
+ { header: '아이템 리스트', key: 'itemList', width: 20 },
+ { header: '서브 아이템 리스트', key: 'subItemList', width: 20 },
];
// 헤더 스타일 적용
@@ -51,24 +47,16 @@ export async function exportHullItemTemplate() {
// 샘플 데이터 추가
const sampleData = [
{
- itemCode: 'HULL001',
- itemName: 'HULL 샘플 아이템 1',
+ itemCode: 'HULL001',
workType: 'HA',
- description: '이것은 해양 HULL 샘플 아이템 1의 설명입니다.',
- itemList1: '항목1 샘플 데이터',
- itemList2: '항목2 샘플 데이터',
- itemList3: '항목3 샘플 데이터',
- itemList4: '항목4 샘플 데이터'
+ itemList: '항목1 샘플 데이터',
+ subItemList: '항목2 샘플 데이터',
},
{
- itemCode: 'HULL002',
- itemName: 'HULL 샘플 아이템 2',
+ itemCode: 'HULL002',
workType: 'HE',
- description: '이것은 해양 HULL 샘플 아이템 2의 설명입니다.',
- itemList1: '항목1 샘플 데이터',
- itemList2: '항목2 샘플 데이터',
- itemList3: '',
- itemList4: ''
+ itemList: '항목1 샘플 데이터',
+ subItemList: '항목2 샘플 데이터',
}
];
@@ -94,7 +82,9 @@ export async function exportHullItemTemplate() {
// 워크시트에 공종 유형 관련 메모 추가
const infoRow = worksheet.addRow(['공종 유형 안내: ' + HULL_WORK_TYPES.join(', ')]);
infoRow.font = { bold: true, color: { argb: 'FF0000FF' } };
- worksheet.mergeCells(`A${infoRow.number}:H${infoRow.number}`);
+ worksheet.mergeCells(`A${infoRow.number}:F${infoRow.number}`);
+
+
// 워크시트 보호 (선택적)
worksheet.protect('', {