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.
33 lines
993 B
33 lines
993 B
using Infrastructure.Application;
|
|
using Application.Domain.Entities;
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using UoN.ExpressiveAnnotations.NetCore.Attributes;
|
|
|
|
namespace Platform.Application.Models
|
|
{
|
|
[Display(Name = "区域")]
|
|
public class EditAreaModel : EditModel
|
|
{
|
|
[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 = "类型")]
|
|
[SelectList(true)]
|
|
[Required(ErrorMessage = nameof(RequiredAttribute))]
|
|
public string Type { get; set; }
|
|
|
|
[Display(Name = "序号")]
|
|
public int Order { get; set; }
|
|
}
|
|
} |