123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using EMIS.Entities;
- using EMIS.ViewModel.Students;
- namespace EMIS.ViewModel.DQPSystem
- {
- public class SOCDetailGroupView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid? SOCDetailGroupID { get; set; }
- public Guid? EducationMissionID { get; set; }
- public string EducationMissionName { get; set; }
- /// <summary>
- /// 学年学期ID
- /// </summary>
- [DisplayName("学年学期ID")]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 课程成果ID
- /// </summary>
- [DisplayName("课程成果ID")]
- public Guid? SOCDetailID { 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 Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程资料代码
- /// </summary>
- [DisplayName("课程资料代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 分组序号
- /// </summary>
- [DisplayName("分组序号")]
- public int? No { get; set; }
- /// <summary>
- /// 组名
- /// </summary>
- [DisplayName("组名")]
- public string GroupName
- {
- get
- {
- return "第" + No.ToString() + "组";
- }
- }
- /// <summary>
- /// 分组成绩
- /// </summary>
- [DisplayName("分组成绩")]
- public decimal? Score { get; set; }
- //public IEnumerable<CF_Student> StudentList { get; set; }
- public int? StudentCount { get; set; }
- public IEnumerable<Sys_User> StudentList { get; set; }
- public string StudentName {
- get {
- string studentNames = string.Empty;
- if (StudentList != null)
- studentNames = string.Join(",", StudentList.Select(s => s.Name));
- if (string.IsNullOrEmpty(studentNames))
- {
- return "";
- }
- else
- {
- return studentNames;
- }
- }
- }
- public string EducationMissionNameStr
- {
- get
- {
- if (string.IsNullOrEmpty(EducationMissionName))
- {
- return "";
- }
- else
- {
- return EducationMissionName.Replace(CourseName, "").Replace("-", "");
- }
- }
- }
- }
- }
|