StockArea.cs 828 B

123456789101112131415161718192021222324252627282930
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(StockMovement))]
  5. public class StockArea : Entity, IStockArea, IRemotable, IPersistent, ILicense<WarehouseLicense>, IExportable, IImportable
  6. {
  7. [EditorSequence(4)]
  8. [CheckBoxEditor]
  9. public bool Active { get; set; }
  10. [EditorSequence(1)]
  11. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  12. public string Code { get; set; }
  13. [EditorSequence(2)]
  14. [TextBoxEditor]
  15. public string Description { get; set; }
  16. [EditorSequence(3)]
  17. public StockWarehouseLink Warehouse { get; set; }
  18. protected override void Init()
  19. {
  20. base.Init();
  21. Warehouse = new StockWarehouseLink();
  22. Active = true;
  23. }
  24. }
  25. }