251123:0200 T6.1 to DO

This commit is contained in:
2025-11-23 02:23:38 +07:00
parent 17d9f172d4
commit 23006898d9
58 changed files with 3221 additions and 502 deletions

View File

@@ -0,0 +1,43 @@
import {
IsInt,
IsString,
IsOptional,
IsDateString,
IsArray,
IsNotEmpty,
} from 'class-validator';
export class CreateRfaDto {
@IsInt()
@IsNotEmpty()
projectId!: number;
@IsInt()
@IsNotEmpty()
rfaTypeId!: number;
@IsString()
@IsNotEmpty()
title!: string;
@IsInt()
@IsNotEmpty()
toOrganizationId!: number; // ส่งถึงใคร (สำหรับ Routing Step 1)
@IsString()
@IsOptional()
description?: string;
@IsDateString()
@IsOptional()
documentDate?: string;
@IsDateString()
@IsOptional()
dueDate?: string; // กำหนดวันตอบกลับ
@IsArray()
@IsInt({ each: true })
@IsOptional()
shopDrawingRevisionIds?: number[]; // Shop Drawings ที่แนบมา
}