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.
68 lines
1.9 KiB
68 lines
1.9 KiB
using Infrastructure.Application;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "设备")]
|
|
public class EditDeviceModel : EditModel
|
|
{
|
|
[ReadOnly(true)]
|
|
[DataType("SelectList")]
|
|
[Display(Name = "产品")]
|
|
public Guid ProductId { get; set; }
|
|
|
|
[ReadOnly(true)]
|
|
[DataType("SelectList")]
|
|
[Display(Name = "节点")]
|
|
public Guid NodeId { get; set; }
|
|
|
|
[ReadOnly(true)]
|
|
[Display(Name = "名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "显示名称")]
|
|
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string DisplayName { get; set; }
|
|
|
|
[Display(Name = "网关编号")]
|
|
public string Gateway { get; set; }
|
|
|
|
[Display(Name = "标记")]
|
|
public string Tag { get; set; }
|
|
|
|
[Display(Name = "IP")]
|
|
public string Ip { get; set; }
|
|
|
|
[Display(Name = "用户名")]
|
|
public string UserName { get; set; }
|
|
|
|
[Display(Name = "密码")]
|
|
public string Password { get; set; }
|
|
|
|
[ReadOnly(true)]
|
|
[Display(Name = "编号")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "图标")]
|
|
public string Icon { get; set; }
|
|
|
|
[ReadOnly(true)]
|
|
[Display(Name = "在线状态")]
|
|
public bool IsOnline { get; set; }
|
|
|
|
[Display(Name = "连接Id")]
|
|
[ReadOnly(true)]
|
|
public string ConnectId { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Display(Name = "隐藏")]
|
|
public bool Disabled { get; set; }
|
|
}
|
|
} |