251128:1700 Backend to T3.1.1
This commit is contained in:
@@ -1,37 +1,26 @@
|
||||
// File: src/modules/rfa/dto/create-rfa.dto.ts
|
||||
// File: src/modules/rfa/dto/create-rfa-revision.dto.ts
|
||||
import {
|
||||
IsInt,
|
||||
IsString,
|
||||
IsNotEmpty,
|
||||
IsInt,
|
||||
IsOptional,
|
||||
IsDateString,
|
||||
IsObject,
|
||||
IsArray,
|
||||
IsNotEmpty,
|
||||
} from 'class-validator';
|
||||
|
||||
export class CreateRfaDto {
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
projectId!: number;
|
||||
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
rfaTypeId!: number;
|
||||
|
||||
@IsInt()
|
||||
@IsOptional()
|
||||
disciplineId?: number; // [Req 6B] สาขางาน (จำเป็นสำหรับการรันเลข RFA)
|
||||
|
||||
export class CreateRfaRevisionDto {
|
||||
@IsString()
|
||||
@IsNotEmpty()
|
||||
title!: string;
|
||||
|
||||
@IsInt()
|
||||
@IsNotEmpty()
|
||||
toOrganizationId!: number; // ส่งถึงใคร (สำหรับ Routing Step 1)
|
||||
rfaStatusCodeId!: number;
|
||||
|
||||
@IsString()
|
||||
@IsInt()
|
||||
@IsOptional()
|
||||
description?: string;
|
||||
rfaApproveCodeId?: number;
|
||||
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
@@ -39,10 +28,25 @@ export class CreateRfaDto {
|
||||
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
dueDate?: string; // กำหนดวันตอบกลับ
|
||||
issuedDate?: string;
|
||||
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
receivedDate?: string;
|
||||
|
||||
@IsDateString()
|
||||
@IsOptional()
|
||||
approvedDate?: string;
|
||||
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
description?: string;
|
||||
|
||||
@IsObject()
|
||||
@IsOptional()
|
||||
details?: Record<string, any>;
|
||||
|
||||
@IsArray()
|
||||
@IsInt({ each: true })
|
||||
@IsOptional()
|
||||
shopDrawingRevisionIds?: number[]; // Shop Drawings ที่แนบมา
|
||||
}
|
||||
shopDrawingRevisionIds?: number[]; // IDs of linked Shop Drawings
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user