Add "show only completed" to query

This commit is contained in:
2020-07-11 21:07:43 -04:00
parent 1760870219
commit f1691f3d53
4 changed files with 48 additions and 27 deletions
+5 -3
View File
@@ -1,6 +1,4 @@
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Runtime.CompilerServices;
using System.ComponentModel.DataAnnotations;
namespace LeafWeb.WebCms.Models
{
@@ -58,6 +56,9 @@ namespace LeafWeb.WebCms.Models
[RegularExpression(FloatingPointRegex, ErrorMessage = "Must be numeric")]
public string phips2 { get; set; }
[Display(Name = "Show Only Successfully Completed")]
public bool completed { get; set; }
public bool HasExtendedParameters =>
!(
string.IsNullOrEmpty(siteid)
@@ -70,6 +71,7 @@ namespace LeafWeb.WebCms.Models
&& string.IsNullOrEmpty(pari)
&& string.IsNullOrEmpty(tleaf)
&& string.IsNullOrEmpty(phips2)
&& !completed
);
}
}