AssignmentKanbanDataModel.cs 863 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Drawing;
  3. using Comal.Classes;
  4. using InABox.Core;
  5. namespace comal.timesheets
  6. {
  7. public class AssignmentKanbanDataModel : AssignmentLookupDataModel<Kanban, AssignmentKanbanItem>
  8. {
  9. public override Columns<Kanban> Columns => new Columns<Kanban>(x => x.ID)
  10. .Add(x => x.Number)
  11. .Add(x => x.Title)
  12. .Add(x=>x.Description);
  13. }
  14. public class AssignmentKanbanItem : AssignmentLookupItem
  15. {
  16. public override Guid Id => Row.Get<Kanban, Guid>(c => c.ID);
  17. public override String Number => Row.Get<Kanban, int>(c => c.Number).ToString();
  18. public override String Name => Row.Get<Kanban, String>(c => c.Title);
  19. public override String Description => CoreUtils.StripHTML(Row.Get<Kanban, String>(c => c.Description));
  20. }
  21. }