using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; namespace EMIS.ViewModel.SystemSetting { public class DictionaryView { /// /// 序号 /// [Required] [DisplayName("序号")] [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")] public int? OrderNo { get; set; } /// /// 类型代码 /// [Required] [DisplayName("类型代码")] public string DictionaryCode { get; set; } /// /// 类型名称 /// [Required] [DisplayName("类型名称")] public string DictionaryName { get; set; } /// /// 可否编辑 /// [DisplayName("可否编辑")] public bool IsEditable { get; set; } /// /// 可否编辑 /// [DisplayName("可否编辑")] public string IsEditableName { get { return IsEditable == true ? "是" : "否"; } } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { get; set; } } }