| 123456789101112131415161718192021222324252627 |
- using System;
- using System.Linq.Expressions;
- using Comal.Classes;
- using InABox.Core;
- using System.Diagnostics.CodeAnalysis;
- namespace comal.timesheets
- {
- public class JobEmployeeModel : ListModel<JobEmployeeModel, JobEmployeeShell, JobEmployee>
- {
- public JobEmployeeModel(IModelHost host, Func<Filter<JobEmployee>> filter, bool transient = false) : base(host, filter, transient)
- {
- }
- public JobEmployeeModel(IModelHost host, Func<Filter<JobEmployee>> filter, [NotNull] String filename) : base(host, filter, filename)
- {
- }
- public static Filter<JobEmployee> AllJobs() =>
- new Filter<JobEmployee>(x => x.EmployeeLink.ID).IsEqualTo(App.Data.Me.ID);
- // public override Columns<(.+)> Columns => JobEmployeeShell.Columns.Columns;
- protected override Expression<Func<JobEmployee, object>> ImageColumn => x => x.EmployeeLink.Thumbnail.ID;
-
- }
- }
|