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
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid SOCTemplateItemID { get; set; }
///
/// 课程SOC设置ID
///
[DisplayName("课程SOC设置ID")]
public Guid? SOCTemplateID { get; set; }
///
/// 成果名称
///
[DisplayName("成果名称")]
public string Name { get; set; }
///
/// 成果学分
///
[DisplayName("成果学分")]
public decimal? Credit { get; set; }
///
/// 成果权重
///
[DisplayName("成果权重(%)")]
public decimal? Weight { get; set; }
///
/// 成果描述
///
[DisplayName("成果描述")]
public string Description { get; set; }
public IEnumerable AttachmentList { get; set; }
///
/// 附件设置ID
///
[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 "";
}
}
}
///
/// 附件名称
///
[DisplayName("附件名称")]
public string AttachmentName {
get {
if (AttachmentList.Count() > 0)
{
return string.Join(",", AttachmentList.Select(x => x.Name));
}
else
{
return "";
}
}
}
///
/// 附件Url
///
[DisplayName("附件Url")]
public string AttachmentUrl { get; set; }
///
/// 是否分组
///
[DisplayName("是否分组")]
public bool? IsGroup { get; set; }
public string IsGroupStr
{
get
{
return IsGroup.Value ? "是":"否";
}
}
}
}