Feature #37: Stale Jobs

Stale Jobs replaces Long-Running Jobs on the homepage. Last Activity is
added to the job table.
This commit is contained in:
Gary Sharp
2014-02-13 22:17:49 +11:00
parent 2ac3a9bdd3
commit 68256d7abd
30 changed files with 881 additions and 330 deletions
@@ -35,5 +35,6 @@ namespace Disco.Models.Services.Jobs.JobLists
public string StatusId { get; set; }
public string DeviceHeldLocation { get; set; }
public Disco.Models.Repository.Job.UserManagementFlags? Flags { get; set; }
public DateTime LastActivityDate { get; set; }
}
}
@@ -13,7 +13,8 @@ namespace Disco.Models.Services.Jobs.JobLists
public bool ShowTechnician { get; set; }
public bool ShowLocation { get; set; }
public bool ShowStatus { get; set; }
public bool ShowLastActivityDate { get; set; }
public bool IsSmallTable { get; set; }
public bool HideClosedJobs { get; set; }
public bool EnablePaging { get; set; }
@@ -14,6 +14,9 @@ namespace Disco.Models.Services.Jobs.JobLists
public DateTime? JobMetaNonWarranty_AccountingChargeAddedDate { get; set; }
public DateTime? JobMetaNonWarranty_AccountingChargePaidDate { get; set; }
public DateTime? JobMetaNonWarranty_AccountingChargeRequiredDate { get; set; }
public DateTime? JobMetaNonWarranty_PurchaseOrderRaisedDate { get; set; }
public DateTime? JobMetaNonWarranty_PurchaseOrderSentDate { get; set; }
public DateTime? JobMetaNonWarranty_InvoiceReceivedDate { get; set; }
public bool? JobMetaNonWarranty_IsInsuranceClaim { get; set; }
public DateTime? JobMetaInsurance_ClaimFormSentDate { get; set; }
@@ -25,5 +28,8 @@ namespace Disco.Models.Services.Jobs.JobLists
public string JobMetaNonWarranty_RepairerName { get; set; }
public IEnumerable<JobTableStatusQueueItemModel> ActiveJobQueues { get; set; }
public DateTime? RecentLogDate { get; set; }
public DateTime? RecentAttachmentDate { get; set; }
}
}
@@ -9,7 +9,9 @@ namespace Disco.Models.UI.Config.JobPreferences
public interface ConfigJobPreferencesIndexModel : BaseUIModel
{
int LongRunningJobDaysThreshold { get; set; }
int StaleJobMinutesThreshold { get; set; }
List<KeyValuePair<int, string>> LongRunningJobDaysThresholdOptions();
List<KeyValuePair<int, string>> StaleJobMinutesThresholdOptions();
}
}
+1 -1
View File
@@ -5,6 +5,6 @@ namespace Disco.Models.UI.Job
public interface JobIndexModel : BaseUIModel
{
JobTableModel MyJobs { get; set; }
JobTableModel LongRunningJobs { get; set; }
JobTableModel StaleJobs { get; set; }
}
}