SOCTemplateDetailView.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. using EMIS.Entities;
  8. namespace EMIS.ViewModel.DQPSystem
  9. {
  10. public class SOCTemplateDetailView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid SOCTemplateItemID { get; set; }
  17. /// <summary>
  18. /// 课程SOC设置ID
  19. /// </summary>
  20. [DisplayName("课程SOC设置ID")]
  21. public Guid? SOCTemplateID { get; set; }
  22. /// <summary>
  23. /// 成果名称
  24. /// </summary>
  25. [DisplayName("成果名称")]
  26. public string Name { get; set; }
  27. /// <summary>
  28. /// 成果学分
  29. /// </summary>
  30. [DisplayName("成果学分")]
  31. public decimal? Credit { get; set; }
  32. /// <summary>
  33. /// 成果权重
  34. /// </summary>
  35. [DisplayName("成果权重(%)")]
  36. public decimal? Weight { get; set; }
  37. /// <summary>
  38. /// 成果描述
  39. /// </summary>
  40. [DisplayName("成果描述")]
  41. public string Description { get; set; }
  42. public IEnumerable<DQP_SOCTemplateDetailAttachment> AttachmentList { get; set; }
  43. /// <summary>
  44. /// 附件设置ID
  45. /// </summary>
  46. [DisplayName("附件设置ID")]
  47. public Guid? SOCTemplateDetailAttachmentID { get; set; }
  48. public int? IsChangeAttachment { get; set; }
  49. public string SOCTemplateDetailAttachmentIDString
  50. {
  51. get
  52. {
  53. if (AttachmentList.Count() > 0)
  54. {
  55. return string.Join(",", AttachmentList.Select(x => x.SOCTemplateDetailAttachmentID));
  56. }
  57. else
  58. {
  59. return "";
  60. }
  61. }
  62. }
  63. /// <summary>
  64. /// 附件名称
  65. /// </summary>
  66. [DisplayName("附件名称")]
  67. public string AttachmentName {
  68. get {
  69. if (AttachmentList.Count() > 0)
  70. {
  71. return string.Join(",", AttachmentList.Select(x => x.Name));
  72. }
  73. else
  74. {
  75. return "";
  76. }
  77. }
  78. }
  79. /// <summary>
  80. /// 附件Url
  81. /// </summary>
  82. [DisplayName("附件Url")]
  83. public string AttachmentUrl { get; set; }
  84. /// <summary>
  85. /// 是否分组
  86. /// </summary>
  87. [DisplayName("是否分组")]
  88. public bool? IsGroup { get; set; }
  89. public string IsGroupStr
  90. {
  91. get
  92. {
  93. return IsGroup.Value ? "是":"否";
  94. }
  95. }
  96. }
  97. }