Add a new web-based frontend for cut list optimization using: - Blazor Server with .NET 8 - Entity Framework Core with MSSQL LocalDB - Full CRUD for Materials, Suppliers, Projects, and Cutting Tools - Supplier stock length management for quick project setup - Integration with CutList.Core for bin packing optimization - Print-friendly HTML reports with efficiency statistics Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
633 B
C#
18 lines
633 B
C#
namespace CutList.Web.Data.Entities;
|
|
|
|
public class Material
|
|
{
|
|
public int Id { get; set; }
|
|
public string Shape { get; set; } = string.Empty;
|
|
public string Size { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
public DateTime? UpdatedAt { get; set; }
|
|
|
|
public ICollection<SupplierStock> SupplierStocks { get; set; } = new List<SupplierStock>();
|
|
public ICollection<Project> Projects { get; set; } = new List<Project>();
|
|
|
|
public string DisplayName => $"{Shape} - {Size}";
|
|
}
|