ProductGroup.cs 617 B

123456789101112131415161718192021
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Product))]
  5. public class ProductGroup : Entity, IRemotable, IPersistent, ILicense<ProductManagementLicense>, IExportable, IImportable, 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 override string ToString()
  14. {
  15. return string.Format("{0}: {1}", Code, Description);
  16. }
  17. }
  18. }