ExamProjectControlView.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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.Cache;
  8. namespace EMIS.ViewModel
  9. {
  10. public class ExamProjectControlView
  11. {
  12. [DisplayName("批次报名控制")]
  13. public Guid ExaminationBatchProjectControlID { get; set; }
  14. //[Required]
  15. [DisplayName("标准专业")]
  16. public int? StandardID { get; set; }
  17. [Required]
  18. [DisplayName("年级")]
  19. public int? SchoolyearNumID { get; set; }
  20. [DisplayName("是否线上缴费")]
  21. public bool? IsOnlinePay { get; set; }
  22. [Required]
  23. [DisplayName("考试批次项目设置")]
  24. public string ExaminationBatchProject { get; set; }
  25. [DisplayName("项目收费标准")]
  26. public string ExaminationProjectFee { get; set; }
  27. [DisplayName("院系所")]
  28. public string CollegeName { get; set; }
  29. public string SchoolyearNumName { get; set; }
  30. /// <summary>
  31. /// 专业名称
  32. /// </summary>
  33. [DisplayName("专业名称")]
  34. public string StandardName
  35. {
  36. get
  37. {
  38. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  39. .Where(x => x.Value == StandardID)
  40. .Select(x => x.Name).FirstOrDefault();
  41. }
  42. }
  43. [DisplayName("院系所")]
  44. public Guid? CollegeID { get; set; }
  45. //[Required]
  46. [DisplayName("年级")]
  47. public int? SchoolyearID { get; set; }
  48. [Required]
  49. [DisplayName("项目收费标准")]
  50. public Guid? ExaminationProjectFeeID { get; set; }
  51. [Required]
  52. [DisplayName("学年学期")]
  53. public Guid SchoolYearCode { get; set; }
  54. [DisplayName("考试批次")]
  55. public Guid? ExaminationBatchID { get; set; }
  56. [Required]
  57. [DisplayName("考试批次项目设置")]
  58. public Guid? ExaminationBatchProjectID { get; set; }
  59. public Guid? ExaminationProjectID { get; set; }
  60. [DisplayName("项目类型")]
  61. public string ExaminationType { get; set; }
  62. [DisplayName("项目名称")]
  63. public string ProjectName { get; set; }
  64. public string Name { get; set; }
  65. public string Schoolyear { get; set; }
  66. public string IsOnlinePayName { get; set; }
  67. public string CollegeCode { get; set; }
  68. /// <summary>
  69. /// 专业代码
  70. /// </summary>
  71. [DisplayName("专业代码")]
  72. public string StandardCode
  73. {
  74. get
  75. {
  76. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  77. .Where(x => x.Value == StandardID)
  78. .Select(x => x.Code).FirstOrDefault();
  79. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  80. }
  81. }
  82. [DisplayName("项目类型")]
  83. public Guid? ExaminationTypeID { get; set; }
  84. }
  85. }