| 1234567891011121314151617181920212223 |
- using System;
- using System.Drawing;
- using Comal.Classes;
- using InABox.Core;
- namespace comal.timesheets
- {
- public class AssignmentJobDataModel : AssignmentLookupDataModel<Job, AssignmentJobItem>
- {
- public override Columns<Job> Columns => new Columns<Job>(x => x.ID)
- .Add(x => x.JobNumber)
- .Add(x => x.Name)
- .Add(x => x.Notes);
- }
-
- public class AssignmentJobItem : AssignmentLookupItem
- {
- public override Guid Id => Row.Get<Job, Guid>(c => c.ID);
- public override String Number => Row.Get<Job, String>(c => c.JobNumber);
- public override String Name => Row.Get<Job, String>(c => c.Name);
- public override String Description => String.Join("\n",Row.Get<Job, String[]>(c => c.Notes));
- }
- }
|