feat: add Title, EquipmentNo, DrawingNo to ExportRecord
Add separate EquipmentNo and DrawingNo fields alongside the combined DrawingNumber, plus a Title field for labeling exports. Updated across Core model, DbContext, API DTOs, and ExportDXF models. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,11 @@ namespace ExportDXF.Services
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string DrawingNo { get; set; }
|
public string DrawingNo { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Optional title/label for the export.
|
||||||
|
/// </summary>
|
||||||
|
public string Title { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Selected Equipment ID for API operations (optional).
|
/// Selected Equipment ID for API operations (optional).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ namespace ExportDXF.Models
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string DrawingNumber { get; set; }
|
public string DrawingNumber { get; set; }
|
||||||
|
public string EquipmentNo { get; set; }
|
||||||
|
public string DrawingNo { get; set; }
|
||||||
public string SourceFilePath { get; set; }
|
public string SourceFilePath { get; set; }
|
||||||
public string OutputFolder { get; set; }
|
public string OutputFolder { get; set; }
|
||||||
public DateTime ExportedAt { get; set; }
|
public DateTime ExportedAt { get; set; }
|
||||||
|
|||||||
@@ -3,7 +3,15 @@ namespace FabWorks.Api.DTOs
|
|||||||
public class CreateExportRequest
|
public class CreateExportRequest
|
||||||
{
|
{
|
||||||
public string DrawingNumber { get; set; }
|
public string DrawingNumber { get; set; }
|
||||||
|
public string Title { get; set; }
|
||||||
|
public string EquipmentNo { get; set; }
|
||||||
|
public string DrawingNo { get; set; }
|
||||||
public string SourceFilePath { get; set; }
|
public string SourceFilePath { get; set; }
|
||||||
public string OutputFolder { get; set; }
|
public string OutputFolder { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class UpdatePdfHashRequest
|
||||||
|
{
|
||||||
|
public string PdfContentHash { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ namespace FabWorks.Api.DTOs
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string DrawingNumber { get; set; }
|
public string DrawingNumber { get; set; }
|
||||||
|
public string Title { get; set; }
|
||||||
|
public string EquipmentNo { get; set; }
|
||||||
|
public string DrawingNo { get; set; }
|
||||||
public string SourceFilePath { get; set; }
|
public string SourceFilePath { get; set; }
|
||||||
public string OutputFolder { get; set; }
|
public string OutputFolder { get; set; }
|
||||||
public DateTime ExportedAt { get; set; }
|
public DateTime ExportedAt { get; set; }
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ namespace FabWorks.Core.Data
|
|||||||
{
|
{
|
||||||
entity.HasKey(e => e.Id);
|
entity.HasKey(e => e.Id);
|
||||||
entity.Property(e => e.DrawingNumber).HasMaxLength(100);
|
entity.Property(e => e.DrawingNumber).HasMaxLength(100);
|
||||||
|
entity.Property(e => e.Title).HasMaxLength(200);
|
||||||
|
entity.Property(e => e.EquipmentNo).HasMaxLength(50);
|
||||||
|
entity.Property(e => e.DrawingNo).HasMaxLength(50);
|
||||||
entity.Property(e => e.SourceFilePath).HasMaxLength(500);
|
entity.Property(e => e.SourceFilePath).HasMaxLength(500);
|
||||||
entity.Property(e => e.OutputFolder).HasMaxLength(500);
|
entity.Property(e => e.OutputFolder).HasMaxLength(500);
|
||||||
entity.Property(e => e.ExportedBy).HasMaxLength(100);
|
entity.Property(e => e.ExportedBy).HasMaxLength(100);
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ namespace FabWorks.Core.Models
|
|||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string DrawingNumber { get; set; }
|
public string DrawingNumber { get; set; }
|
||||||
|
public string Title { get; set; }
|
||||||
|
public string EquipmentNo { get; set; }
|
||||||
|
public string DrawingNo { get; set; }
|
||||||
public string SourceFilePath { get; set; }
|
public string SourceFilePath { get; set; }
|
||||||
public string OutputFolder { get; set; }
|
public string OutputFolder { get; set; }
|
||||||
public DateTime ExportedAt { get; set; }
|
public DateTime ExportedAt { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user