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
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid ClubCourseID { get; set; }
///
/// 课程信息ID
///
[Required]
[DisplayName("课程信息ID")]
public Guid? CoursematerialID { get; set; }
///
/// 课程代码
///
[DisplayName("课程代码")]
public string CourseCode { get; set; }
///
/// 课程名称
///
[DisplayName("课程名称")]
public string CourseName { get; set; }
///
/// 简称
///
[DisplayName("课程简称")]
public string Abbreviation { get; set; }
///
/// 课程级别
///
[DisplayName("课程级别")]
public int? CourseLevelID { get; set; }
///
/// 课程级别
///
[DisplayName("课程级别")]
public string CourseLevelName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseLevel.ToString())
.Where(x => x.Value == CourseLevelID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 课程科类
///
[DisplayName("课程科类")]
public int? CourseScienceID { get; set; }
///
/// 课程科类
///
[DisplayName("课程科类")]
public string CourseScienceName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseScience.ToString())
.Where(x => x.Value == CourseScienceID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 上课类型ID
///
[DisplayName("上课类型ID")]
public Guid? ClassGroupingID { get; set; }
///
/// 上课类型
///
[DisplayName("上课类型")]
public string ClassName { get; set; }
///
/// 是否启用
///
[DisplayName("是否启用")]
public bool IsEnable { get; set; }
///
/// 是否启用
///
[DisplayName("是否启用")]
public string IsEnableName
{
get
{
return IsEnable == true ? "是" : "否";
}
}
///
/// 状态
///
[DisplayName("状态")]
public int? RecordStatus { get; set; }
///
/// 创建人
///
[DisplayName("创建人")]
public Guid? CreateUserID { get; set; }
///
/// 创建时间
///
[DisplayName("创建时间")]
public DateTime? CreateTime { get; set; }
///
/// 修改人
///
[DisplayName("修改人")]
public Guid? ModifyUserID { get; set; }
///
/// 修改时间
///
[DisplayName("修改时间")]
public DateTime? ModifyTime { get; set; }
}
}