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/IoT.Shared/Application/Models/EditDeviceModel.cs

36 lines
998 B

using Infrastructure.Application;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "设备")]
public class EditDeviceModel : EditModel
{
[ReadOnly(true)]
[Display(Name = "名称")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "显示名称")]
public string DisplayName { get; set; }
[Display(Name = "用户名")]
public string UserName { get; set; }
[Display(Name = "密码")]
public string Password { get; set; }
[Display(Name = "启用")]
public bool Enable { get; set; }
[ReadOnly(true)]
[Display(Name = "编号")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Number { get; set; }
[ReadOnly(true)]
[Display(Name = "在线状态")]
public bool IsOnline { get; set; }
}
}