| 12345678910111213141516171819202122232425 |
- using System;
- using System.Linq;
- using System.Linq.Expressions;
- using InABox.Mobile;
- using Comal.Classes;
- using InABox.Core;
- namespace PRS.Mobile
- {
- public class EmployeeQualificationModel : CoreRepository<EmployeeQualificationModel, EmployeeQualificationShell,
- EmployeeQualification>
- {
- public EmployeeQualificationModel(IModelHost host, Func<Filter<EmployeeQualification>> filter): base(host, filter)
- {
- }
- protected override Expression<Func<EmployeeQualification, object>> ImageColumn => x => x.FrontPhoto.ID;
- public int NeedsAttention => Items.Count(x =>
- x.Qualified.IsEmpty()
- || x.Expiry < DateTime.Today
- || x.FrontPhotoID == Guid.Empty
- );
- }
- }
|