aca037ecf8
Document Templates can be grouped into a package and generated on-demand in the same was as individual document templates. Packages can be generated in bulk.
41 lines
1.7 KiB
C#
41 lines
1.7 KiB
C#
using Disco.Models.Services.Documents;
|
|
using Disco.Models.Services.Jobs.JobLists;
|
|
using Disco.Models.UI.Device;
|
|
using Disco.Services.Plugins;
|
|
using Disco.Web.Extensions;
|
|
using System.Collections.Generic;
|
|
using System.Web.Mvc;
|
|
|
|
namespace Disco.Web.Models.Device
|
|
{
|
|
public class ShowModel : DeviceShowModel
|
|
{
|
|
public Disco.Models.Repository.Device Device { get; set; }
|
|
|
|
public List<Disco.Models.Repository.DeviceProfile> DeviceProfiles { get; set; }
|
|
public Disco.Models.BI.Config.OrganisationAddress DeviceProfileDefaultOrganisationAddress { get; set; }
|
|
public List<PluginFeatureManifest> DeviceProfileCertificateProviders { get; set; }
|
|
public List<PluginFeatureManifest> DeviceProfileWirelessProfileProviders { get; set; }
|
|
|
|
public List<Disco.Models.Repository.DeviceBatch> DeviceBatches { get; set; }
|
|
public JobTableModel Jobs { get; set; }
|
|
public List<Disco.Models.Repository.DeviceCertificate> Certificates { get; set; }
|
|
|
|
public string OrganisationUnit { get; set; }
|
|
|
|
public List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
|
public List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
|
|
|
|
public List<SelectListItem> DocumentTemplatesSelectListItems
|
|
{
|
|
get
|
|
{
|
|
var list = new List<SelectListItem>();
|
|
list.Add(new SelectListItem() { Selected = true, Value = string.Empty, Text = "Generate Document" });
|
|
list.AddRange(DocumentTemplates.ToSelectListItems());
|
|
list.AddRange(DocumentTemplatePackages.ToSelectListItems());
|
|
return list;
|
|
}
|
|
}
|
|
}
|
|
} |