GLCode.cs 744 B

12345678910111213141516171819202122232425262728
  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. {
  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. public override string ToString()
  18. {
  19. return string.Format("{0}: {1}", Code, Description);
  20. }
  21. }
  22. }