StudentCountRateView.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.PaymentManage
  9. {
  10. public class StudentCountRateView
  11. {
  12. public Guid StudentCountRateID { get; set; }
  13. [Required]
  14. [DisplayName("职称")]
  15. public int? TitleID { get; set; }
  16. public string TitleDesc
  17. {
  18. get
  19. {
  20. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString())
  21. .Where(x => x.Value == TitleID)
  22. .Select(x => x.Name).FirstOrDefault();
  23. }
  24. }
  25. [Required]
  26. [DisplayName("基准人数")]
  27. [RegularExpression(@"^\d+$", ErrorMessage = "请输入整数")]
  28. public int? BaseStudentCount { get; set; }
  29. [Required]
  30. [DisplayName("系数上限")]
  31. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入整数或保留2位小数")]
  32. public decimal? Limit { get; set; }
  33. }
  34. }