12345678910111213141516171819202122 |
- using System;
- using System.Diagnostics.CodeAnalysis;
- using System.Linq;
- using Comal.Classes;
- using InABox.Core;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class EmployeeFormModel : DigitalFormInstanceModel<EmployeeFormModel,EmployeeFormShell,EmployeeForm>
- {
- public EmployeeFormModel(IModelHost host, Func<Filter<EmployeeForm>>? filter = null, Func<string>? cachefilename = null) : base(host, filter, cachefilename)
- {
- }
-
- public IDigitalFormInstanceShell[] Forms => Items.OfType<IDigitalFormInstanceShell>().ToArray();
- public int NeedsAttention => Items.Count(x =>
- x.Completed.IsEmpty()
- );
- }
- }
|