123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.Entities;
- using EMIS.ViewModel.CacheManage;
- namespace EMIS.ViewModel.EvaluationManage
- {
- public class EvaluationSettingView
- {
- /// <summary>
- /// 评价设定ID
- /// </summary>
- [DisplayName("评价设定ID")]
- public Guid EvaluationSettingID { get; set; }
- /// <summary>
- /// 评价编号
- /// </summary>
- [DisplayName("评价编号")]
- public string EvaluationSettingCode { get; set; }
- /// <summary>
- /// 教学任务班ID
- /// </summary>
- [DisplayName("教学任务班ID")]
- [Required]
- public Guid? EducationMissionClassID { get; set; }
- /// <summary>
- /// 任务班名称
- /// </summary>
- [DisplayName("任务班名称")]
- public string EducationMissionClassName { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- [Required]
- public Guid? SchoolyearID { get; set; }
- /// <summary>
- /// 学年学期
- /// </summary>
- [DisplayName("学年学期")]
- public string SchoolyearCode { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 教研室
- /// </summary>
- [DisplayName("教研室")]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 参评类型ID
- /// </summary>
- [DisplayName("参评类型ID")]
- public Guid? EvaluationTypeID { get; set; }
- /// <summary>
- /// 参评类型
- /// </summary>
- [DisplayName("参评类型")]
- public string EvaluationTypeName { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- [Required]
- public int? EvaluationTableTypeID { get; set; }
- /// <summary>
- /// 评价类型ID
- /// </summary>
- [DisplayName("评价类型ID")]
- [Required]
- public Guid? EvaluationIntTypeID { get; set; }
- /// <summary>
- /// 评价类型
- /// </summary>
- [DisplayName("评价类型")]
- [Required]
- public string EvaluationTableTypeName { get; set; }
- /// <summary>
- /// 评价表名ID
- /// </summary>
- [DisplayName("评价表ID")]
- [Required]
- public Guid? EvaluationTableID { get; set; }
- /// <summary>
- /// 评价表编号
- /// </summary>
- [DisplayName("评价表编号")]
- public string EvaluationTableNo { get; set; }
- /// <summary>
- /// 评价表名
- /// </summary>
- [DisplayName("评价表名")]
- public string EvaluationTableName { get; set; }
- /// <summary>
- /// 课程信息ID
- /// </summary>
- [Required]
- [DisplayName("课程信息ID")]
- public Guid? CoursematerialID { get; set; }
- /// <summary>
- /// 课程代码
- /// </summary>
- [DisplayName("课程代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 课程类型
- /// </summary>
- [Required]
- [DisplayName("课程类型")]
- public int? CourseTypeID { get; set; }
- /// <summary>
- /// 课程类型
- /// </summary>
- [DisplayName("课程类型")]
- public string CourseTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString())
- .Where(x => x.Value == CourseTypeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 开放状态
- /// </summary>
- [DisplayName("开放状态")]
- public int OpenStatus { get; set; }
- /// <summary>
- /// 开放状态
- /// </summary>
- [DisplayName("开放状态")]
- public string OpenStatusName { get; set; }
- /// <summary>
- /// 学生人数
- /// </summary>
- [DisplayName("学生人数")]
- public int StudentCount { get; set; }
- /// <summary>
- /// 同行人数
- /// </summary>
- [DisplayName("同行人数")]
- public int StaffCount { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? EntityCreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("是否适用学生")]
- public int? IsStudent { get; set; }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("教师编号")]
- public string UserCodes
- {
- get
- {
- string name = string.Empty;
- if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
- {
- name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
- x.LoginID));
- }
- if (string.IsNullOrEmpty(name))
- {
- return "";
- }
- else
- {
- return name;
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("教师名称")]
- public string UserNames
- {
- get
- {
- string name = string.Empty;
- if (EvaluationSettingMissionClassTeacherViewList != null && EvaluationSettingMissionClassTeacherViewList.Count() > 0)
- {
- name = string.Join(",", EvaluationSettingMissionClassTeacherViewList.Select(x =>
- x.Name));
- }
- if (string.IsNullOrEmpty(name))
- {
- return "";
- }
- else
- {
- return name;
- }
- }
- }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("用户ID")]
- public Guid? UserID { get; set; }
- /// <summary>
- ///
- /// </summary>
- public CF_Student CF_Student_User { get; set; }
- /// <summary>
- ///
- /// </summary>
- public IEnumerable<Sys_User> Sys_User { get; set; }
- /// <summary>
- /// 授课老师
- /// </summary>
- [DisplayName("授课老师")]
- public IEnumerable<EvaluationSettingMissionClassTeacherView> EvaluationSettingMissionClassTeacherViewList { get; set; }
-
- /// <summary>
- ///
- /// </summary>
- public CF_Staff CF_Staff_User { get; set; }
- }
- public class EvaluationSettingMissionClassTeacherView
- {
- /// <summary>
- ///
- /// </summary>
- [DisplayName("用户ID")]
- public Guid? UserID { get; set; }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("用户名")]
- public string LoginID { get; set; }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- ///
- /// </summary>
- [DisplayName("任务班ID")]
- public Guid? EducationMissionClassID { get; set; }
- }
- }
|