1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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
- {
- /// <summary>
- /// 序号
- /// </summary>
- [Required]
- [DisplayName("序号")]
- [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
- public int? OrderNo { get; set; }
- /// <summary>
- /// 类型代码
- /// </summary>
- [Required]
- [DisplayName("类型代码")]
- public string DictionaryCode { get; set; }
- /// <summary>
- /// 类型名称
- /// </summary>
- [Required]
- [DisplayName("类型名称")]
- public string DictionaryName { get; set; }
- /// <summary>
- /// 可否编辑
- /// </summary>
- [DisplayName("可否编辑")]
- public bool IsEditable { get; set; }
- /// <summary>
- /// 可否编辑
- /// </summary>
- [DisplayName("可否编辑")]
- public string IsEditableName
- {
- get
- {
- return IsEditable == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- }
- }
|