123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using EMIS.ViewModel.Cache;
- namespace EMIS.ViewModel.Cultureplan
- {
- public class CoursematerialView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid CoursematerialID { get; set; }
- /// <summary>
- /// 课程代码
- /// </summary>
- [Required]
- [DisplayName("课程代码")]
- public string CourseCode { get; set; }
- /// <summary>
- /// 课程名称
- /// </summary>
- [Required]
- [DisplayName("课程名称")]
- public string CourseName { get; set; }
- /// <summary>
- /// 简称
- /// </summary>
- [DisplayName("课程简称")]
- public string Abbreviation { get; set; }
- /// <summary>
- /// 英文名称
- /// </summary>
- [DisplayName("课程英文名")]
- public string EnglishName { get; set; }
- /// <summary>
- /// 课程规范名
- /// </summary>
- [DisplayName("课程规范名")]
- public string StandardName { get; set; }
- /// <summary>
- /// 课程版本
- /// </summary>
- [DisplayName("课程版本")]
- public string CourseEdition { get; set; }
- /// <summary>
- /// 课程简介
- /// </summary>
- [DisplayName("课程简介")]
- public string CourseSynopsis { get; set; }
- /// <summary>
- /// 预修课程集
- /// </summary>
- [DisplayName("预修课程集")]
- public string CourseReserve { 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>
- [Required]
- [DisplayName("上课类型ID")]
- public Guid? ClassGroupingID { get; set; }
- /// <summary>
- /// 上课类型
- /// </summary>
- [DisplayName("上课类型")]
- public string ClassGrouping { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- [DisplayName("是否启用")]
- public bool IsEnable { get; set; }
- /// <summary>
- /// 是否启用
- /// </summary>
- [DisplayName("是否启用")]
- public string IsEnableName { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remarks { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("错误信息")]
- public string ErrorMessage { get; set; }
- private bool _isExcelVaildateOK = true;
- /// <summary>
- /// Excel验证是否通过,默认为true
- /// <para>true:通过;false:不通过</para>
- /// </summary>
- public bool IsExcelVaildateOK
- {
- get { return _isExcelVaildateOK; }
- set { _isExcelVaildateOK = value; }
- }
- /// <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; }
- }
- }
|