EditFeildView.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.StudentManage.InfoCenter
  9. {
  10. public class EditFeildView
  11. {
  12. /// <summary>
  13. /// 序号
  14. /// </summary>
  15. [DisplayName("序号")]
  16. public int OrderNo { get; set; }
  17. /// <summary>
  18. /// 校对代码
  19. /// </summary>
  20. [DisplayName("校对代码")]
  21. public string ColumnFeild { get; set; }
  22. /// <summary>
  23. /// 校对列名
  24. /// </summary>
  25. [DisplayName("校对列名")]
  26. public string ColumnName { get; set; }
  27. /// <summary>
  28. /// 校对名称
  29. /// </summary>
  30. [DisplayName("校对名称")]
  31. public string Description { get; set; }
  32. /// <summary>
  33. /// 是否编辑
  34. /// </summary>
  35. [DisplayName("是否编辑")]
  36. public bool IsEdit { get; set; }
  37. /// <summary>
  38. /// TypeName
  39. /// </summary>
  40. [DisplayName("TypeName")]
  41. public string TypeName { get; set; }
  42. /// <summary>
  43. /// Value
  44. /// </summary>
  45. [DisplayName("Value")]
  46. public string Value { get; set; }
  47. /// <summary>
  48. /// 校对类型
  49. /// </summary>
  50. [DisplayName("校对类型")]
  51. public int? CheckingTypeID { get; set; }
  52. /// <summary>
  53. /// 校对类型
  54. /// </summary>
  55. [DisplayName("校对类型")]
  56. public string CheckingTypeName
  57. {
  58. get
  59. {
  60. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CheckingType.ToString())
  61. .Where(x => x.Value == CheckingTypeID).Select(x => x.Name).FirstOrDefault();
  62. }
  63. }
  64. }
  65. }