Feature: Document Template Packages
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.
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
<Compile Include="ClientServices\EnrolmentInformation\WirelessProfile.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\WirelessProfileStore.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\WirelessProfileTransformation.cs" />
|
||||
<Compile Include="Services\Documents\DocumentTemplatePackage.cs" />
|
||||
<Compile Include="Services\Jobs\LocationModes.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\Certificate.cs" />
|
||||
<Compile Include="ClientServices\Register.cs" />
|
||||
@@ -157,10 +158,12 @@
|
||||
<Compile Include="UI\Config\DeviceProfile\ConfigDeviceProfileIndexModel.cs" />
|
||||
<Compile Include="UI\Config\DeviceProfile\ConfigDeviceProfileIndexModelItem.cs" />
|
||||
<Compile Include="UI\Config\DeviceProfile\ConfigDeviceProfileShowModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateCreatePackageModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateCreateModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateExpressionBrowserModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateImportStatusModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateIndexModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateShowPackageModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateShowModel.cs" />
|
||||
<Compile Include="UI\Config\DocumentTemplate\ConfigDocumentTemplateUndetectedPagesModel.cs" />
|
||||
<Compile Include="UI\Config\Enrolment\ConfigEnrolmentIndexModel.cs" />
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
using Disco.Models.Repository;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Disco.Models.Services.Documents
|
||||
{
|
||||
public class DocumentTemplatePackage
|
||||
{
|
||||
[Key, StringLength(30), Required]
|
||||
public string Id { get; set; }
|
||||
[StringLength(250), Required]
|
||||
public string Description { get; set; }
|
||||
[Required]
|
||||
public AttachmentTypes Scope { get; set; }
|
||||
public List<string> JobSubTypes { get; set; }
|
||||
|
||||
public List<string> DocumentTemplateIds { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string FilterExpression { get; set; }
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string OnGenerateExpression { get; set; }
|
||||
|
||||
public bool IsHidden { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Indicates blank pages should be added so that documents will be separated when duplex printed.
|
||||
/// </summary>
|
||||
public bool InsertBlankPages { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,24 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateCreateModel : BaseUIModel
|
||||
{
|
||||
Disco.Models.Repository.DocumentTemplate DocumentTemplate { get; set; }
|
||||
Repository.DocumentTemplate DocumentTemplate { get; set; }
|
||||
|
||||
List<string> Types { get; set; }
|
||||
List<string> SubTypes { get; set; }
|
||||
|
||||
List<Disco.Models.Repository.JobType> JobTypes { get; set; }
|
||||
List<Disco.Models.Repository.JobSubType> JobSubTypes { get; set; }
|
||||
List<Repository.JobType> JobTypes { get; set; }
|
||||
List<Repository.JobSubType> JobSubTypes { get; set; }
|
||||
|
||||
List<string> Scopes { get; }
|
||||
|
||||
List<Disco.Models.Repository.JobType> GetJobTypes { get; }
|
||||
List<Disco.Models.Repository.JobSubType> GetJobSubTypes { get; }
|
||||
List<Repository.JobType> GetJobTypes { get; }
|
||||
List<Repository.JobSubType> GetJobSubTypes { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using Disco.Models.Services.Documents;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateCreatePackageModel : BaseUIModel
|
||||
{
|
||||
DocumentTemplatePackage Package { get; set; }
|
||||
|
||||
List<string> Scopes { get; }
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using Disco.Models.Services.Documents;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateIndexModel : BaseUIModel
|
||||
{
|
||||
Dictionary<Repository.DocumentTemplate, int> DocumentTemplates { get; set; }
|
||||
|
||||
List<DocumentTemplatePackage> Packages { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateShowModel : BaseUIModel
|
||||
{
|
||||
Disco.Models.Repository.DocumentTemplate DocumentTemplate { get; set; }
|
||||
Repository.DocumentTemplate DocumentTemplate { get; set; }
|
||||
int StoredInstanceCount { get; set; }
|
||||
List<bool> TemplatePagesHaveAttachmentId { get; set; }
|
||||
int TemplatePageCount { get; }
|
||||
|
||||
List<Disco.Models.Repository.JobType> JobTypes { get; set; }
|
||||
List<Repository.JobType> JobTypes { get; set; }
|
||||
|
||||
List<string> Scopes { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Models.Services.Documents;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
public interface ConfigDocumentTemplateShowPackageModel : BaseUIModel
|
||||
{
|
||||
DocumentTemplatePackage Package { get; set; }
|
||||
List<JobSubType> JobSubTypesSelected { get; set; }
|
||||
List<Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<Repository.DocumentTemplate> DocumentTemplatesSelected { get; set; }
|
||||
|
||||
List<JobType> JobTypes { get; set; }
|
||||
|
||||
List<string> Scopes { get; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using Disco.Models.BI.Config;
|
||||
using Disco.Models.Services.Documents;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -18,5 +19,6 @@ namespace Disco.Models.UI.Device
|
||||
List<Repository.DeviceCertificate> Certificates { get; set; }
|
||||
|
||||
List<Repository.DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Disco.Models.Services.Job;
|
||||
using Disco.Models.Services.Documents;
|
||||
using Disco.Models.Services.Job;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -10,6 +11,7 @@ namespace Disco.Models.UI.Job
|
||||
Repository.Job Job { get; set; }
|
||||
TimeSpan? LongRunning { get; set; }
|
||||
List<Repository.DocumentTemplate> AvailableDocumentTemplates { get; set; }
|
||||
List<DocumentTemplatePackage> AvailableDocumentTemplatePackages { get; set; }
|
||||
List<Repository.JobSubType> UpdatableJobSubTypes { get; set; }
|
||||
List<Repository.JobQueue> AvailableQueues { get; set; }
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Models.Services.Authorization;
|
||||
using Disco.Models.Services.Documents;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -10,6 +11,7 @@ namespace Disco.Models.UI.User
|
||||
Disco.Models.Repository.User User { get; set; }
|
||||
JobTableModel Jobs { get; set; }
|
||||
List<DocumentTemplate> DocumentTemplates { get; set; }
|
||||
List<DocumentTemplatePackage> DocumentTemplatePackages { get; set; }
|
||||
|
||||
List<UserFlag> AvailableUserFlags { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user