CostSheetSection.cs 676 B

12345678910111213141516171819202122232425
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Quote))]
  5. public class CostSheetSection : Entity, IRemotable, IPersistent, ISequenceable, ILicense<QuotesManagementLicense>
  6. {
  7. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  8. public string Code { get; set; }
  9. [TextBoxEditor]
  10. public string Description { get; set; }
  11. [IntegerEditor]
  12. public int Quantity { get; set; } = 1;
  13. [NullEditor]
  14. public long Sequence { get; set; }
  15. public override string ToString()
  16. {
  17. return string.Format("{0}: {1}", Code, Description);
  18. }
  19. }
  20. }