251213:1509 Docunment Number Businee Rule not correct
Some checks failed
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-13 15:09:01 +07:00
parent d964546c8d
commit ec35521258
64 changed files with 11956 additions and 223 deletions

View File

@@ -5,20 +5,29 @@ export interface CreateCorrespondenceDto {
projectId: number;
/** ID ของประเภทเอกสาร (เช่น RFA, LETTER) */
typeId: number;
typeId: number;
/** [Req 6B] สาขางาน (เช่น GEN, STR) */
disciplineId?: number;
disciplineId?: number;
/** [Req 6B] ประเภทย่อย (เช่น MAT, SHP สำหรับ Transmittal/RFA) */
subTypeId?: number;
/** หัวข้อเอกสาร */
title: string;
subject: string;
/** รายละเอียดเพิ่มเติม (Optional) */
description?: string;
/** เนื้อหาเอกสาร (Rich Text) */
body?: string;
/** หมายเหตุ */
remarks?: string;
/** กำหนดวันตอบกลับ (ISO Date String) */
dueDate?: string;
/** ข้อมูล JSON เฉพาะประเภท (เช่น RFI question, RFA details) */
details?: Record<string, any>;
@@ -29,4 +38,7 @@ export interface CreateCorrespondenceDto {
* ใช้กรณี Admin สร้างเอกสารแทนผู้อื่น
*/
originatorId?: number;
}
/** รายชื่อผู้รับ */
recipients?: { organizationId: number; type: 'TO' | 'CC' }[];
}

View File

@@ -12,7 +12,13 @@ export interface CreateRfaDto {
disciplineId?: number;
/** หัวข้อเรื่อง */
title: string;
subject: string;
/** เนื้อหา (Rich Text) */
body?: string;
/** หมายเหตุ */
remarks?: string;
/** ส่งถึงใคร (สำหรับ Routing Step 1) */
toOrganizationId: number;