123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- using EMIS.ViewModel.CacheManage;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Linq;
- using System.Text;
- namespace EMIS.ViewModel.CultureplanManage.CourseMaterial
- {
- public class ClubCourseView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid ClubCourseID { 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>
- [DisplayName("课程简称")]
- public string Abbreviation { get; set; }
- /// <summary>
- /// 课程级别
- /// </summary>
- [DisplayName("课程级别")]
- public int? CourseLevelID { get; set; }
- /// <summary>
- /// 课程级别
- /// </summary>
- [DisplayName("课程级别")]
- public string CourseLevelName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseLevel.ToString())
- .Where(x => x.Value == CourseLevelID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 课程科类
- /// </summary>
- [DisplayName("课程科类")]
- public int? CourseScienceID { get; set; }
- /// <summary>
- /// 课程科类
- /// </summary>
- [DisplayName("课程科类")]
- public string CourseScienceName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseScience.ToString())
- .Where(x => x.Value == CourseScienceID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 上课类型ID
- /// </summary>
- [DisplayName("上课类型ID")]
- public Guid? ClassGroupingID { get; set; }
- /// <summary>
- /// 上课类型
- /// </summary>
- [DisplayName("上课类型")]
- public string ClassName { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- [DisplayName("是否启用")]
- public bool IsEnable { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- [DisplayName("是否启用")]
- public string IsEnableName
- {
- get
- {
- return IsEnable == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|