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/Platform/Application/Models/EditPermissionCategoryModel.cs

31 lines
871 B

using Infrastructure.Application;
using System;
using System.ComponentModel.DataAnnotations;
namespace IoT.Shared.Application.Models
{
[Display(Name = "权限分类")]
public class EditPermissionCategoryModel : EditModel
{
[SelectList]
[Display(Name = "机构")]
public Guid? OrganId { get; set; }
[Display(Name = "上级")]
[SelectList]
public Guid? ParentId { get; set; }
[Display(Name = "名称")]
[MaxLength(24, ErrorMessage = "{0}最大长度为{1}")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "编号")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Number { get; set; }
[Display(Name = "序号")]
public int DisplayOrder { get; set; }
}
}