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.
46 lines
1.4 KiB
46 lines
1.4 KiB
using Infrastructure.Application;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Application.Models
|
|
{
|
|
[Display(Name = "节点")]
|
|
public class EditNodeModel : EditModel
|
|
{
|
|
[Display(Name = "机构名称")]
|
|
[MaxLength(64, ErrorMessage = "{0}最大长度为{1}")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string OrganName { get; set; }
|
|
|
|
[Display(Name = "机构编码")]
|
|
[MaxLength(64, ErrorMessage = "{0}最大长度为{1}")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string OrganNumber { get; set; }
|
|
|
|
[Display(Name = "节点名称")]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Name { get; set; }
|
|
|
|
[Display(Name = "节点编号")]
|
|
[ReadOnly(true)]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Number { get; set; }
|
|
|
|
[Display(Name = "在线")]
|
|
[ReadOnly(true)]
|
|
public bool IsOnline { get; set; }
|
|
|
|
[Display(Name = "图片")]
|
|
[DataType(DataType.ImageUrl)]
|
|
public string Image { get; set; }
|
|
|
|
[Display(Name = "版本")]
|
|
public string Version { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int DisplayOrder { get; set; }
|
|
|
|
[Display(Name = "隐藏")]
|
|
public bool Hidden { get; set; }
|
|
}
|
|
} |