ProductStyle.cs 714 B

12345678910111213141516171819202122
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Product))]
  5. public class ProductStyle : Entity, IRemotable, IPersistent, IProductStyle, ILicense<ProductManagementLicense>, IMergeable
  6. {
  7. [EditorSequence(1)]
  8. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  9. public string Code { get; set; } = "";
  10. [EditorSequence(2)]
  11. [TextBoxEditor]
  12. public string Description { get; set; } = "";
  13. public ProductLink ManufacturingTreatmentProduct { get; set; }
  14. public ProductLink StockTreatmentProduct { get; set; }
  15. public override string ToString() => $"{Code}: {Description}";
  16. }
  17. }