123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.Entities;
- namespace EMIS.ViewModel.DQPSystem
- {
- public class SOCDetailView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid SOCDetailID { get; set; }
- public Guid? EducationMissionID { get; set; }
- public string EducationMissionName { get; set; }
- /// <summary>
- /// 课程SOCID
- /// </summary>
- [DisplayName("课程SOCID")]
- public Guid? SOCID { get; set; }
- /// <summary>
- /// 教研室
- /// </summary>
- [DisplayName("教研室")]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期ID")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 课程资料
- /// </summary>
- [Required]
- [DisplayName("课程资料")]
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程资料代码
- /// </summary>
- [DisplayName("课程资料代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 成果名称
- /// </summary>
- [DisplayName("成果名称")]
- public string Name { get; set; }
- /// <summary>
- /// 成果学分
- /// </summary>
- [DisplayName("成果学分")]
- //[DisplayFormat(DataFormatString = "{0:#.0}")]
- public decimal? Credit { get; set; }
- /// <summary>
- /// 成果权重
- /// </summary>
- [DisplayName("成果权重")]
- //[RegularExpression(@"^([01](\.0+)?|0\.[0-9]+)$", ErrorMessage = "请输入小于1大于0的数字")]
- public decimal? Weight { get; set; }
- /// <summary>
- /// 成果描述
- /// </summary>
- [DisplayName("成果描述")]
- public string Description { get; set; }
- /// <summary>
- /// 开始上传时间
- /// </summary>
- [DisplayName("开始上传时间")]
- public DateTime? StartTime { get; set; }
- public string StartTimeStr {
- get {
- return StartTime == null ? "" : StartTime.Value.ToShortDateString();
- }
- }
- /// <summary>
- /// 截止上传时间
- /// </summary>
- [DisplayName("截止上传时间")]
- public DateTime? EndTime { get; set; }
- public string EndTimeStr
- {
- get
- {
- return EndTime == null ? "" : EndTime.Value.ToShortDateString();
- }
- }
- /// <summary>
- /// 是否分组
- /// </summary>
- [DisplayName("是否分组")]
- public bool? IsGroup { get; set; }
- public bool IsGroupin { get; set; }
- /// <summary>
- /// 是否分组
- /// </summary>
- [DisplayName("是否分组")]
- public string IsGroupStr {
- get {
- return IsGroup == null ? "" : (IsGroup.Value ? "是" : "否");
- }
- }
- /// <summary>
- /// 成果附件说明
- /// </summary>
- [DisplayName("成果附件说明")]
- public string SOCDetailAttachment
- {
- get {
- string AttachmentName = string.Empty;
- if (Attachment != null)
- AttachmentName = string.Join("、", Attachment.Select(s => s.Name));
- if (string.IsNullOrEmpty(AttachmentName))
- {
- return "";
- }
- else
- {
- return AttachmentName;
- }
- }
- }
- public int? IsChangeAttachment { get; set; }
- /// <summary>
- /// 分组数
- /// </summary>
- [DisplayName("分组数")]
- public int? GroupCount { get; set; }
- /// <summary>
- /// 学生人数
- /// </summary>
- [DisplayName("学生人数")]
- public int? StudentCount { get; set; }
- public IEnumerable<SOCDetailAttachmentView> AttachmentList { get; set; }
- public IEnumerable<DQP_SOCDetailAttachment> Attachment { get; set; }
- public string EducationMissionNameStr
- {
- get
- {
- if (string.IsNullOrEmpty(EducationMissionName))
- {
- return "";
- }
- else
- {
- return EducationMissionName.Replace(CourseName, "").Replace("-", "");
- }
- }
- }
- }
- }
|