Details and queue management

This commit is contained in:
2017-01-06 08:43:22 -05:00
parent d14e40a36b
commit 42ac27e16f
24 changed files with 260 additions and 51 deletions
+9
View File
@@ -21,6 +21,15 @@ namespace LeafWeb.Core.Entities
public LeafInputStatusType CurrentStatus { get; set; }
public virtual ICollection<LeafInputStatus> StatusHistory { get; set; }
public bool IsInProgress => CurrentStatus == LeafInputStatusType.Starting
|| CurrentStatus == LeafInputStatusType.Running
|| CurrentStatus == LeafInputStatusType.Finishing;
public bool IsComplete => CurrentStatus == LeafInputStatusType.Complete;
public bool IsDeletable => !IsInProgress;
public bool IsPending => CurrentStatus == LeafInputStatusType.Pending;
public bool IsRunning => CurrentStatus == LeafInputStatusType.Running;
[Required(ErrorMessage = "Name required")]
public string Name { get; set; }