using InABox.Integration.Logikal; using System.Collections.Generic; namespace PRSDesktop.Integrations.Logikal { public class LogikalBOM : ILogikalBOM { public IEnumerable Finishes { get; set; } public IEnumerable Profiles { get; set; } public IEnumerable Gaskets { get; set; } public IEnumerable Components { get; set; } public IEnumerable Glass { get; set; } public IEnumerable Labour { get; set; } public byte[] ExcelData { get; set; } public byte[] SQLiteData { get; set; } } public abstract class LogikalBOMItem : LogikalItem, ILogikalBOMItem { public string? Code { get; set; } public string? Description { get; set; } public double Quantity { get; set; } public double Cost { get; set; } public override void ValidateQuery(string sql, List errors) { ValidateField(sql, nameof(Code), errors); ValidateField(sql, nameof(Description), errors); ValidateField(sql, nameof(Quantity), errors); ValidateField(sql, nameof(Cost), errors); } } }