Update: Additional UI Extension Hooks
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user