using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using System.ComponentModel; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.PaymentManage { public class StudentCountRateView { public Guid StudentCountRateID { get; set; } [Required] [DisplayName("职称")] public int? TitleID { get; set; } public string TitleDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()) .Where(x => x.Value == TitleID) .Select(x => x.Name).FirstOrDefault(); } } [Required] [DisplayName("基准人数")] [RegularExpression(@"^\d+$", ErrorMessage = "请输入整数")] public int? BaseStudentCount { get; set; } [Required] [DisplayName("系数上限")] [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入整数或保留2位小数")] public decimal? Limit { get; set; } } }