123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.EvaluationManage.EvaluationTable
- {
- public class EvaluationNormDetailView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid EvaluationNormDetailID { get; set; }
- /// <summary>
- /// 评价标准ID
- /// </summary>
- [Required]
- [DisplayName("评价标准ID")]
- public Guid? EvaluationNormID { get; set; }
- /// <summary>
- /// 评分标准
- /// </summary>
- [DisplayName("评分标准")]
- public string EvaluationNormName { get; set; }
- /// <summary>
- /// 次序
- /// </summary>
- [Required]
- [DisplayName("次序")]
- [RegularExpression(@"^[1-9]\d*|0$", ErrorMessage = "请输入自然数")]
- public int? OrderNo { get; set; }
- /// <summary>
- /// 名称
- /// </summary>
- [Required]
- [DisplayName("名称")]
- public string Name { get; set; }
- /// <summary>
- /// 权重
- /// </summary>
- [Required]
- [DisplayName("权重")]
- [RegularExpression(@"^\d+(\.\d{1})?$", ErrorMessage = "请输入整数或保留1位小数")]
- public decimal? Weight { get; set; }
- /// <summary>
- /// 评分类型
- /// </summary>
- [DisplayName("评分类型")]
- public int? NormTypeID { get; set; }
- /// <summary>
- /// 评分类型
- /// </summary>
- [DisplayName("评分类型")]
- public string NormTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EvaluationNormType.ToString()).Where(x => x.Value == NormTypeID).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|