From 5b996be91ea1c860f8f2ebf68db9410a2451a689 Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 28 Oct 2025 17:24:27 -0400 Subject: [PATCH] refactor(model): rename JobNo to EquipmentNo in DrawingInfo - Update regex group and ToString to use EquipmentNo - Prepare for equipment-centric drawing identification --- ExportDXF/DrawingInfo.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ExportDXF/DrawingInfo.cs b/ExportDXF/DrawingInfo.cs index 1d461be..19a7863 100644 --- a/ExportDXF/DrawingInfo.cs +++ b/ExportDXF/DrawingInfo.cs @@ -4,9 +4,9 @@ namespace ExportDXF { public class DrawingInfo { - private static Regex drawingFormatRegex = new Regex(@"(?[345]\d{3}(-\d+\w{1,2})?)\s?(?[ABEP]\d+(-?(\d+[A-Z]?))?)", RegexOptions.IgnoreCase); + private static Regex drawingFormatRegex = new Regex(@"(?[345]\d{3}(-\d+\w{1,2})?)\s?(?[ABEP]\d+(-?(\d+[A-Z]?))?)", RegexOptions.IgnoreCase); - public string JobNo { get; set; } + public string EquipmentNo { get; set; } public string DrawingNo { get; set; } @@ -14,7 +14,7 @@ namespace ExportDXF public override string ToString() { - return $"{JobNo} {DrawingNo}"; + return $"{EquipmentNo} {DrawingNo}"; } public override bool Equals(object obj) @@ -39,7 +39,7 @@ namespace ExportDXF var dwg = new DrawingInfo(); - dwg.JobNo = match.Groups["jobNo"].Value; + dwg.EquipmentNo = match.Groups["equipmentNo"].Value; dwg.DrawingNo = match.Groups["dwgNo"].Value; dwg.Source = input;