PracticeRateView.cs 955 B

12345678910111213141516171819202122232425262728293031323334
  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 PracticeRateView
  11. {
  12. public Guid PracticeRateID { get; set; }
  13. [Required]
  14. [DisplayName("课程类型")]
  15. public int? CourseTypeID { get; set; }
  16. public string CourseTypeDesc
  17. {
  18. get
  19. {
  20. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
  21. .Where(x => x.Value == CourseTypeID)
  22. .Select(x => x.Name).FirstOrDefault();
  23. }
  24. }
  25. [Required]
  26. [DisplayName("课酬系数")]
  27. [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入整数或保留2位小数")]
  28. public decimal? Rate { get; set; }
  29. }
  30. }