|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
using Infrastructure.Application;
|
|
|
|
|
using Application.Domain.Entities;
|
|
|
|
|
using Infrastructure.Application;
|
|
|
|
|
using IoT.Shared.Areas.IoTCenter.Controlls;
|
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace IoT.Shared.Application.Models
|
|
|
|
|
{
|
|
|
|
@ -38,11 +38,14 @@ namespace IoT.Shared.Application.Models
|
|
|
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
[Display(Name = "数据类型")]
|
|
|
|
|
|
|
|
|
|
[SelectList]
|
|
|
|
|
[Display(Name = "数据分类")]
|
|
|
|
|
[ReadOnlyForEdit]
|
|
|
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
|
|
|
public IoTDataType? DataType { get; set; }
|
|
|
|
|
|
|
|
|
|
[SelectList]
|
|
|
|
|
[Display(Name = "数值类型")]
|
|
|
|
|
[ReadOnlyForEdit]
|
|
|
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
|
|
@ -54,7 +57,6 @@ namespace IoT.Shared.Application.Models
|
|
|
|
|
[Description("描述枚举、对象和数组的类型定义")]
|
|
|
|
|
public string ValueSchema { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Display(Name = "单位")]
|
|
|
|
|
[ReadOnlyForEdit]
|
|
|
|
|
public string Unit { get; set; }
|
|
|
|
@ -63,6 +65,7 @@ namespace IoT.Shared.Application.Models
|
|
|
|
|
[ReadOnlyForEdit]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
|
|
|
|
[SkipSearch]
|
|
|
|
|
[Display(Name = "时间戳")]
|
|
|
|
|
[ReadOnlyForEdit]
|
|
|
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
|
|
|