251223:1649 On going update to 1.7.0: Refoctory drawing Module & document number Module
This commit is contained in:
38
frontend/types/dto/drawing/asbuilt-drawing.dto.ts
Normal file
38
frontend/types/dto/drawing/asbuilt-drawing.dto.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
// File: src/types/dto/drawing/asbuilt-drawing.dto.ts
|
||||
|
||||
// --- Create New As Built Drawing ---
|
||||
export interface CreateAsBuiltDrawingDto {
|
||||
projectId: number;
|
||||
drawingNumber: string;
|
||||
|
||||
// First Revision Data
|
||||
revisionLabel?: string;
|
||||
title?: string;
|
||||
legacyDrawingNumber?: string;
|
||||
revisionDate?: string; // ISO Date String
|
||||
description?: string;
|
||||
|
||||
shopDrawingRevisionIds?: number[]; // Reference to Shop Drawing Revisions
|
||||
attachmentIds?: number[];
|
||||
}
|
||||
|
||||
// --- Create New Revision ---
|
||||
export interface CreateAsBuiltDrawingRevisionDto {
|
||||
revisionLabel: string;
|
||||
title: string;
|
||||
legacyDrawingNumber?: string;
|
||||
revisionDate?: string;
|
||||
description?: string;
|
||||
|
||||
shopDrawingRevisionIds?: number[];
|
||||
attachmentIds?: number[];
|
||||
}
|
||||
|
||||
// --- Search ---
|
||||
export interface SearchAsBuiltDrawingDto {
|
||||
projectId: number;
|
||||
search?: string;
|
||||
|
||||
page?: number; // Default: 1
|
||||
pageSize?: number; // Default: 20
|
||||
}
|
||||
@@ -11,12 +11,15 @@ export interface CreateContractDrawingDto {
|
||||
/** ชื่อแบบ */
|
||||
title: string;
|
||||
|
||||
/** ID หมวดหมู่ย่อย */
|
||||
subCategoryId?: number;
|
||||
/** ID หมวดหมู่ย่อย (Mapping) */
|
||||
mapCatId?: number;
|
||||
|
||||
/** ID เล่มของแบบ */
|
||||
volumeId?: number;
|
||||
|
||||
/** เลขหน้าในเล่ม */
|
||||
volumePage?: number;
|
||||
|
||||
/** รายการ ID ของไฟล์แนบ (PDF/DWG) */
|
||||
attachmentIds?: number[];
|
||||
}
|
||||
@@ -30,9 +33,9 @@ export interface SearchContractDrawingDto {
|
||||
projectId: number;
|
||||
|
||||
volumeId?: number;
|
||||
subCategoryId?: number;
|
||||
mapCatId?: number;
|
||||
search?: string; // ค้นหาจาก Title หรือ Number
|
||||
|
||||
page?: number; // Default: 1
|
||||
pageSize?: number; // Default: 20
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export interface CreateShopDrawingDto {
|
||||
revisionLabel?: string;
|
||||
revisionDate?: string; // ISO Date String
|
||||
description?: string;
|
||||
legacyDrawingNumber?: string; // Legacy number for the first revision
|
||||
contractDrawingIds?: number[]; // อ้างอิงแบบสัญญา
|
||||
attachmentIds?: number[];
|
||||
}
|
||||
@@ -19,6 +20,8 @@ export interface CreateShopDrawingDto {
|
||||
// --- Create New Revision ---
|
||||
export interface CreateShopDrawingRevisionDto {
|
||||
revisionLabel: string;
|
||||
title: string; // Title per revision
|
||||
legacyDrawingNumber?: string;
|
||||
revisionDate?: string;
|
||||
description?: string;
|
||||
contractDrawingIds?: number[];
|
||||
@@ -34,4 +37,4 @@ export interface SearchShopDrawingDto {
|
||||
|
||||
page?: number; // Default: 1
|
||||
pageSize?: number; // Default: 20
|
||||
}
|
||||
}
|
||||
|
||||
35
frontend/types/dto/numbering.dto.ts
Normal file
35
frontend/types/dto/numbering.dto.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export interface NumberingMetrics {
|
||||
audit: any[]; // Replace with specific AuditLog type if available
|
||||
errors: any[]; // Replace with specific ErrorLog type
|
||||
}
|
||||
|
||||
export interface ManualOverrideDto {
|
||||
projectId: number;
|
||||
originatorOrganizationId: number;
|
||||
recipientOrganizationId: number;
|
||||
correspondenceTypeId: number;
|
||||
subTypeId?: number;
|
||||
rfaTypeId?: number;
|
||||
disciplineId?: number;
|
||||
resetScope: string;
|
||||
newLastNumber: number;
|
||||
reason: string;
|
||||
}
|
||||
|
||||
export interface VoidReplaceDto {
|
||||
documentNumber: string;
|
||||
reason: string;
|
||||
replace: boolean;
|
||||
projectId: number;
|
||||
}
|
||||
|
||||
export interface CancelNumberDto {
|
||||
documentNumber: string;
|
||||
reason: string;
|
||||
projectId?: number;
|
||||
}
|
||||
|
||||
export interface AuditQueryParams {
|
||||
projectId?: number;
|
||||
limit?: number;
|
||||
}
|
||||
@@ -20,4 +20,5 @@ export interface SearchOrganizationDto {
|
||||
projectId?: number;
|
||||
page?: number;
|
||||
limit?: number;
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user