123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- namespace EMIS.ViewModel.SystemView
- {
- public class DictionaryItemView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid DictionaryItemID { get; set; }
- /// <summary>
- /// 类型代码
- /// </summary>
- [Required]
- [DisplayName("类型代码")]
- public string DictionaryCode { get; set; }
- /// <summary>
- /// 类型名称
- /// </summary>
- [DisplayName("类型名称")]
- public string DictionaryName { get; set; }
- /// <summary>
- /// 序号
- /// </summary>
- [Required]
- [DisplayName("序号")]
- [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
- public int? OrderNo { get; set; }
- /// <summary>
- /// 元素代码
- /// </summary>
- [Required]
- [DisplayName("元素代码")]
- [RegularExpression(@"^\w+$", ErrorMessage = "请输入数字或字符")]
- public string Code { get; set; }
- /// <summary>
- /// 元素名称
- /// </summary>
- [Required]
- [DisplayName("元素名称")]
- public string Name { get; set; }
- /// <summary>
- /// 元素值
- /// </summary>
- [Required]
- [DisplayName("元素值")]
- [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
- public int? Value { get; set; }
- /// <summary>
- /// 可否编辑
- /// </summary>
- [DisplayName("可否编辑")]
- public bool IsEditable { get; set; }
- /// <summary>
- /// 可否编辑
- /// </summary>
- [DisplayName("可否编辑")]
- public string IsEditableName
- {
- get
- {
- return IsEditable == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 可否显示
- /// </summary>
- [DisplayName("可否显示")]
- public bool IsVisible { get; set; }
- /// <summary>
- /// 可否显示
- /// </summary>
- [DisplayName("可否显示")]
- public string IsVisibleName
- {
- get
- {
- return IsVisible == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- }
- }
|