document template on import user flag rules
This commit is contained in:
@@ -69,6 +69,7 @@
|
||||
<Compile Include="Services\Devices\Importing\IDeviceImportColumn.cs" />
|
||||
<Compile Include="Services\Devices\Importing\IDeviceImportDataReader.cs" />
|
||||
<Compile Include="Services\Documents\DocumentTemplatePackage.cs" />
|
||||
<Compile Include="Services\Documents\OnImportUserFlagRule.cs" />
|
||||
<Compile Include="Services\Jobs\LocationModes.cs" />
|
||||
<Compile Include="ClientServices\EnrolmentInformation\Certificate.cs" />
|
||||
<Compile Include="ClientServices\Register.cs" />
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace Disco.Models.Repository
|
||||
public string OnGenerateExpression { get; set; }
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string OnImportAttachmentExpression { get; set; }
|
||||
public string OnImportUserFlagRules { get; set; }
|
||||
|
||||
// Feature Request 2012-05-10 by G#: https://disco.uservoice.com/forums/159707-feedback/suggestions/2811092-document-template-option-flatten-form-on-generate
|
||||
public bool FlattenForm { get; set; }
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using Disco.Models.Repository;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Disco.Models.Services.Documents
|
||||
{
|
||||
public class OnImportUserFlagRule
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public int FlagId { get; set; }
|
||||
[StringLength(50)]
|
||||
public string UserId { get; set; }
|
||||
public bool AddFlag { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
public User User { get; set; }
|
||||
[JsonIgnore]
|
||||
public UserFlag UserFlag { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Disco.Models.Services.Documents;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
{
|
||||
@@ -11,6 +12,9 @@ namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
string BulkGenerateDownloadId { get; }
|
||||
string BulkGenerateDownloadFilename { get; }
|
||||
|
||||
List<Repository.UserFlag> UserFlags { get; set; }
|
||||
List<OnImportUserFlagRule> OnImportUserFlagRules { get; }
|
||||
|
||||
List<Repository.JobType> JobTypes { get; set; }
|
||||
|
||||
List<string> Scopes { get; }
|
||||
|
||||
Reference in New Issue
Block a user