feature: device document template bulk generation
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
|
||||
namespace Disco.Models.Repository
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Disco.Models.Services.Authorization;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Disco.Models.Services.Authorization;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
@@ -7,13 +7,22 @@ namespace Disco.Models.UI.Config.DocumentTemplate
|
||||
Repository.DocumentTemplate DocumentTemplate { get; set; }
|
||||
int TemplatePageCount { get; set; }
|
||||
|
||||
List<ItemWithCount<Repository.UserFlag>> UserFlags { get; set; }
|
||||
List<ItemWithCount<Repository.DeviceProfile>> DeviceProfiles { get; set; }
|
||||
List<ItemWithCount<Repository.DeviceBatch>> DeviceBatches { get; set; }
|
||||
List<ItemWithCount<Repository.DocumentTemplate>> DocumentTemplates { get; set; }
|
||||
List<ItemWithCount<string>> UserDetails { get; set; }
|
||||
}
|
||||
|
||||
public interface ConfigDocumentTemplateBulkGenerateUser : ConfigDocumentTemplateBulkGenerate
|
||||
{
|
||||
List<ItemWithCount<Repository.UserFlag>> UserFlags { get; set; }
|
||||
}
|
||||
|
||||
public interface ConfigDocumentTemplateBulkGenerateDevice : ConfigDocumentTemplateBulkGenerate
|
||||
{
|
||||
List<ItemWithCount<Repository.DeviceFlag>> DeviceFlags { get; set; }
|
||||
}
|
||||
|
||||
public class ItemWithCount<T>
|
||||
{
|
||||
public T Item { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user