Update: Additional UI Extension Hooks

This commit is contained in:
Gary Sharp
2013-04-30 12:35:27 +10:00
parent 849736d42e
commit b17ed91fb0
84 changed files with 810 additions and 137 deletions
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceBatch
{
public interface ConfigDeviceBatchCreateModel : BaseUIModel
{
Models.Repository.DeviceBatch DeviceBatch { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceBatch
{
public interface ConfigDeviceBatchIndexModel : BaseUIModel
{
List<ConfigDeviceBatchIndexModelItem> DeviceBatches { get; set; }
}
}
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceBatch
{
public interface ConfigDeviceBatchIndexModelItem
{
int Id { get; set; }
string Name { get; set; }
[Required(), DisplayFormat(ApplyFormatInEditMode = true, ConvertEmptyStringToNull = true, DataFormatString = "{0:yyyy/MM/dd}", HtmlEncode = false)]
DateTime PurchaseDate { get; set; }
int DeviceCount { get; set; }
int DeviceDecommissionedCount { get; set; }
int? PurchaseUnitQuantity { get; set; }
string DefaultDeviceModel { get; set; }
DateTime? WarrantyExpires { get; set; }
DateTime? InsuredUntil { get; set; }
string InsuranceSupplier { get; set; }
}
}
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceBatch
{
public interface ConfigDeviceBatchShowModel : BaseUIModel
{
Disco.Models.Repository.DeviceBatch DeviceBatch { get; set; }
List<Disco.Models.Repository.DeviceModel> DeviceModels { get; set; }
int DeviceCount { get; set; }
int DeviceDecommissionedCount { get; set; }
bool CanDelete { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceBatch
{
public interface ConfigDeviceBatchTimelineModel : BaseUIModel
{
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceModel
{
public interface ConfigDeviceModelIndexModel : BaseUIModel
{
List<ConfigDeviceModelIndexModelItem> DeviceModels { get; set; }
}
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceModel
{
public interface ConfigDeviceModelIndexModelItem
{
int Id { get; set; }
string Name { get; set; }
string Manufacturer { get; set; }
string Model { get; set; }
string ModelType { get; set; }
int DeviceCount { get; set; }
}
}
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceModel
{
public interface ConfigDeviceModelShowModel : BaseUIModel
{
Disco.Models.Repository.DeviceModel DeviceModel { get; set; }
ConfigDeviceModelComponentsModel DeviceComponentsModel { get; set; }
bool CanDelete { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceModel
{
public interface ConfigDeviceModelComponentsModel : BaseUIModel
{
int? DeviceModelId { get; set; }
List<Disco.Models.Repository.DeviceComponent> DeviceComponents { get; set; }
List<Disco.Models.Repository.JobSubType> JobSubTypes { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileCreateModel : BaseUIModel
{
Models.Repository.DeviceProfile DeviceProfile { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileDefaultsModel : BaseUIModel
{
List<Disco.Models.Repository.DeviceProfile> DeviceProfiles { get; set; }
List<Disco.Models.Repository.DeviceProfile> DeviceProfilesAndNone { get; set; }
int Default { get; set; }
int DefaultAddDeviceOffline { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileIndexModel : BaseUIModel
{
List<ConfigDeviceProfileIndexModelItem> DeviceProfiles { get; set; }
}
}
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileIndexModelItem
{
int Id { get; set; }
string Name { get; set; }
string ShortName { get; set; }
int? Address { get; set; }
string AddressName { get; set; }
string Description { get; set; }
int DistributionTypeId { get; set; }
string DistributionType { get; }
int DeviceCount { get; set; }
int DeviceDecommissionedCount { get; set; }
}
}
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DeviceProfile
{
public interface ConfigDeviceProfileShowModel : BaseUIModel
{
Disco.Models.Repository.DeviceProfile DeviceProfile { get; set; }
List<Disco.Models.BI.Config.OrganisationAddress> OrganisationAddresses { get; set; }
bool CanDelete { get; set; }
}
}
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateCreateModel : BaseUIModel
{
Disco.Models.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<string> Scopes { get; }
List<Disco.Models.Repository.JobType> GetJobTypes { get; }
List<Disco.Models.Repository.JobSubType> GetJobSubTypes { get; }
}
}
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateExpressionBrowserModel : BaseUIModel
{
string DeviceType { get; set; }
string UserType { get; set; }
string JobType { get; set; }
Dictionary<string, string> Variables { get; set; }
Dictionary<string, string> ExtensionLibraries { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateImportStatusModel : BaseUIModel
{
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateIndexModel : BaseUIModel
{
List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateShowModel : BaseUIModel
{
Disco.Models.Repository.DocumentTemplate DocumentTemplate { get; set; }
int StoredInstanceCount { 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<string> Scopes { get; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.DocumentTemplate
{
public interface ConfigDocumentTemplateUndetectedPagesModel : BaseUIModel
{
List<Disco.Models.Repository.DocumentTemplate> DocumentTemplates { get; set; }
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Enrolment
{
public interface ConfigEnrolmentIndexModel : BaseUIModel
{
string MacSshUsername { get; set; }
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Enrolment
{
public interface ConfigEnrolmentStatusModel : BaseUIModel
{
}
}
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Logging
{
public interface ConfigLoggingIndexModel : BaseUIModel
{
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Logging
{
public interface ConfigLoggingTaskStatusModel : BaseUIModel
{
string SessionId { get; set; }
}
}
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Disco.Models.UI.Config.Organisation
{
public interface ConfigOrganisationIndexModel : BaseUIModel
{
string OrganisationName { get; set; }
bool MultiSiteMode { get; set; }
List<Models.BI.Config.OrganisationAddress> OrganisationAddresses { get; set; }
}
}