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/IoTCenter/Application/Models/EditOrganModel.cs

23 lines
689 B

using Infrastructure.Application;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IoTCenter.Application.Models
{
[Display(Name = "机构")]
public class EditOrganModel : EditModel
{
[Display(Name = "机构名称")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "机构编号")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Number { get; set; }
[Display(Name = "节点")]
[DataType("MultiSelectList")]
public List<Guid> Nodes { get; set; } = new List<Guid>();
}
}