123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using EMIS.ViewModel.CacheManage;
- using EMIS.Entities;
- namespace EMIS.ViewModel.DQPSystem
- {
- public class SOCTemplateDetailView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid SOCTemplateItemID { get; set; }
- /// <summary>
- /// 课程SOC设置ID
- /// </summary>
- [DisplayName("课程SOC设置ID")]
- public Guid? SOCTemplateID { get; set; }
- /// <summary>
- /// 成果名称
- /// </summary>
- [DisplayName("成果名称")]
- public string Name { get; set; }
- /// <summary>
- /// 成果学分
- /// </summary>
- [DisplayName("成果学分")]
- public decimal? Credit { get; set; }
- /// <summary>
- /// 成果权重
- /// </summary>
- [DisplayName("成果权重(%)")]
- public decimal? Weight { get; set; }
- /// <summary>
- /// 成果描述
- /// </summary>
- [DisplayName("成果描述")]
- public string Description { get; set; }
- public IEnumerable<DQP_SOCTemplateDetailAttachment> AttachmentList { get; set; }
- /// <summary>
- /// 附件设置ID
- /// </summary>
- [DisplayName("附件设置ID")]
- public Guid? SOCTemplateDetailAttachmentID { get; set; }
- public int? IsChangeAttachment { get; set; }
- public string SOCTemplateDetailAttachmentIDString
- {
- get
- {
- if (AttachmentList.Count() > 0)
- {
- return string.Join(",", AttachmentList.Select(x => x.SOCTemplateDetailAttachmentID));
- }
- else
- {
- return "";
- }
- }
- }
- /// <summary>
- /// 附件名称
- /// </summary>
- [DisplayName("附件名称")]
- public string AttachmentName {
- get {
- if (AttachmentList.Count() > 0)
- {
- return string.Join(",", AttachmentList.Select(x => x.Name));
- }
- else
- {
- return "";
- }
- }
-
- }
- /// <summary>
- /// 附件Url
- /// </summary>
- [DisplayName("附件Url")]
- public string AttachmentUrl { get; set; }
- /// <summary>
- /// 是否分组
- /// </summary>
- [DisplayName("是否分组")]
- public bool? IsGroup { get; set; }
- public string IsGroupStr
- {
- get
- {
- return IsGroup.Value ? "是":"否";
- }
- }
- }
- }
|