using Disco.Models.Services.Job; using Disco.Models.Services.Jobs.JobLists; using Disco.Models.UI.Job; using Disco.Web.Extensions; using System; using System.Collections.Generic; using System.Web.Mvc; namespace Disco.Web.Models.Job { public class ShowModel : JobShowModel { public Disco.Models.Repository.Job Job { get; set; } public TimeSpan? LongRunning { get; set; } public List AvailableDocumentTemplates { get; set; } public List UpdatableJobSubTypes { get; set; } public List AvailableQueues { get; set; } public List DocumentTemplatesSelectListItems { get { var list = new List(); list.Add(new SelectListItem() { Selected = true, Value = string.Empty, Text = "Generate Document" }); list.AddRange(this.AvailableDocumentTemplates.ToSelectListItems()); return list; } } public LocationModes LocationMode { get; set; } public List LocationOptions { get; set; } } }