BomItems are now created for every BOM item regardless of whether they produce a DXF. Sheet metal cut data (thickness, k-factor, bend radius, DXF path, content hash) moved to a new CutTemplate entity with a 1:1 optional relationship. Non-sheet-metal items are counted as "skipped" instead of "failed" in the export summary. Added Cut Templates tab to the UI with a DataGridView for viewing cut template records. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
966 B
C#
30 lines
966 B
C#
namespace ExportDXF.Models
|
|
{
|
|
public class BomItem
|
|
{
|
|
public int ID { get; set; }
|
|
public string ItemNo { get; set; } = "";
|
|
public string PartNo { get; set; } = "";
|
|
public int SortOrder { get; set; }
|
|
public int? Qty { get; set; }
|
|
public int? TotalQty { get; set; }
|
|
public string Description { get; set; } = "";
|
|
public string PartName { get; set; } = "";
|
|
public string ConfigurationName { get; set; } = "";
|
|
public string Material { get; set; } = "";
|
|
|
|
// EF Core relationship to ExportRecord
|
|
public int ExportRecordId { get; set; }
|
|
public virtual ExportRecord ExportRecord { get; set; }
|
|
|
|
// Optional 1:1 relationship to CutTemplate (only for sheet metal parts)
|
|
public virtual CutTemplate CutTemplate { get; set; }
|
|
}
|
|
|
|
public struct Size
|
|
{
|
|
public double Width { get; set; }
|
|
public double Height { get; set; }
|
|
}
|
|
}
|