You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoT.Shared/Application/Models/EditDataModel.cs

45 lines
1.2 KiB

using Application.Domain.Entities;
using Infrastructure.Application;
using Microsoft.AspNetCore.Mvc;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "数据")]
public class EditDataModel : EditModel
{
[Display(Name = "键")]
[ReadOnly(true)]
public string Key { get; set; }
[Display(Name = "值")]
public string Value { get; set; }
[Display(Name = "名称")]
public string Name { get; set; }
[Display(Name = "类型")]
public DeviceDataType Type { get; set; }
[Display(Name = "单位")]
public string Unit { get; set; }
[Display(Name = "描述")]
public string Description { get; set; }
[Display(Name = "时间戳")]
public long Timestamp { get; set; }
[Display(Name = "隐藏")]
public bool Hidden { get; set; }
[HiddenInput(DisplayValue = false)]
[ScaffoldColumn(true)]
public string DeviceNumber { get; set; }
[HiddenInput(DisplayValue = false)]
[ScaffoldColumn(true)]
public string NodeNumber { get; set; }
}
}