GLCode.cs 913 B

1234567891011121314151617181920212223242526272829303132
  1. using InABox.Core;
  2. namespace Comal.Classes
  3. {
  4. [UserTracking(typeof(Product))]
  5. public class GLCode : Entity, IRemotable, IPersistent, ILicense<CoreLicense>, IExportable, IImportable, IMergeable,
  6. IPostableFragment<Invoice>, IPostableFragment<Bill>, IPostableFragment<PurchaseOrder>
  7. {
  8. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  9. public string Code { get; set; }
  10. [TextBoxEditor]
  11. public string Description { get; set; }
  12. [CheckBoxEditor]
  13. public bool Income { get; set; }
  14. [CheckBoxEditor]
  15. public bool Expense { get; set; }
  16. [CheckBoxEditor]
  17. public bool Hidden { get; set; }
  18. [NullEditor]
  19. public string PostedReference { get; set; }
  20. public override string ToString()
  21. {
  22. return string.Format("{0}: {1}", Code, Description);
  23. }
  24. }
  25. }