GLCode.cs 846 B

12345678910111213141516171819202122232425262728293031
  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, IPostableFragment<Invoice>
  6. {
  7. [UniqueCodeEditor(Visible = Visible.Default, Editable = Editable.Enabled)]
  8. public string Code { get; set; }
  9. [TextBoxEditor]
  10. public string Description { get; set; }
  11. [CheckBoxEditor]
  12. public bool Income { get; set; }
  13. [CheckBoxEditor]
  14. public bool Expense { get; set; }
  15. [CheckBoxEditor]
  16. public bool Hidden { get; set; }
  17. [NullEditor]
  18. public string PostedReference { get; set; }
  19. public override string ToString()
  20. {
  21. return string.Format("{0}: {1}", Code, Description);
  22. }
  23. }
  24. }