SupDocumentView.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.SupervisionManage
  9. {
  10. public class SupDocumentView
  11. {
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. public Guid DocumentID { get; set; }
  16. /// <summary>
  17. ///
  18. /// </summary>
  19. [Required]
  20. [DisplayName("文件类型")]
  21. public Nullable<int> DocumentTypeID { get; set; }
  22. /// <summary>
  23. ///
  24. /// </summary>
  25. public string DocumentTypeDesc
  26. {
  27. get
  28. {
  29. return IdNameExt.GetDictionaryItem(DictionaryItem.SUP_DocumentType.ToString())
  30. .Where(x => x.Value == DocumentTypeID)
  31. .Select(x => x.Name).FirstOrDefault();
  32. }
  33. }
  34. /// <summary>
  35. ///
  36. /// </summary>
  37. [Required]
  38. [DisplayName("标题")]
  39. public string Title { get; set; }
  40. /// <summary>
  41. ///
  42. /// </summary>
  43. public string Url { get; set; }
  44. /// <summary>
  45. ///
  46. /// </summary>
  47. public string Download
  48. {
  49. get
  50. {
  51. return "下载";
  52. }
  53. }
  54. /// <summary>
  55. ///
  56. /// </summary>
  57. public Nullable<Guid> CreateCollegeID { get; set; }
  58. /// <summary>
  59. ///
  60. /// </summary>
  61. public string CreateCollegeName { get; set; }
  62. /// <summary>
  63. ///
  64. /// </summary>
  65. public Nullable<Guid> CreateUserID { get; set; }
  66. /// <summary>
  67. ///
  68. /// </summary>
  69. public string CreateUserName { get; set; }
  70. /// <summary>
  71. ///
  72. /// </summary>
  73. public Nullable<DateTime> CreateTime { get; set; }
  74. }
  75. }