251223:1649 On going update to 1.7.0: Refoctory drawing Module & document number Module
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
// Entity Interfaces
|
||||
export interface DrawingRevision {
|
||||
revisionId: number;
|
||||
revisionNumber: string;
|
||||
title?: string; // Added
|
||||
legacyDrawingNumber?: string; // Added
|
||||
revisionDate: string;
|
||||
revisionDescription?: string;
|
||||
revisedByName: string;
|
||||
@@ -8,19 +11,55 @@ export interface DrawingRevision {
|
||||
isCurrent: boolean;
|
||||
}
|
||||
|
||||
export interface ContractDrawing {
|
||||
id: number;
|
||||
contractDrawingNo: string;
|
||||
title: string;
|
||||
projectId: number;
|
||||
mapCatId?: number;
|
||||
volumeId?: number;
|
||||
volumePage?: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ShopDrawing {
|
||||
id: number;
|
||||
drawingNumber: string;
|
||||
projectId: number;
|
||||
mainCategoryId: number;
|
||||
subCategoryId: number;
|
||||
currentRevision?: DrawingRevision;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
// title removed
|
||||
}
|
||||
|
||||
export interface AsBuiltDrawing {
|
||||
id: number;
|
||||
drawingNumber: string;
|
||||
projectId: number;
|
||||
currentRevision?: DrawingRevision;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
// Unified Type for List
|
||||
export interface Drawing {
|
||||
drawingId: number;
|
||||
drawingNumber: string;
|
||||
title: string;
|
||||
title: string; // Display title (from current revision for Shop/AsBuilt)
|
||||
discipline?: string | { disciplineCode: string; disciplineName: string };
|
||||
type?: string;
|
||||
status?: string;
|
||||
revision?: string;
|
||||
sheetNumber?: string;
|
||||
legacyDrawingNumber?: string; // Added for display
|
||||
scale?: string;
|
||||
issueDate?: string;
|
||||
revisionCount?: number;
|
||||
revisions?: DrawingRevision[];
|
||||
volumePage?: number; // Contract only
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user