using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using EMIS.ViewModel.CacheManage;
namespace EMIS.ViewModel.CultureplanManage.CourseMaterial
{
public class TeachTypeSettingView
{
///
/// 主键ID
///
[DisplayName("主键ID")]
public Guid ClassGroupingSettingsID { get; set; }
///
/// 上课类型ID
///
[Required]
[DisplayName("上课类型ID")]
public Guid? ClassGroupingID { get; set; }
///
/// 上课类型
///
[DisplayName("上课类型")]
public string ClassName { get; set; }
///
/// 授课方式
///
[DisplayName("授课方式")]
public int? TeachingModeID { get; set; }
///
/// 授课方式
///
[DisplayName("授课方式")]
public string TeachingModeName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
.Where(x => x.Value == TeachingModeID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 是否分班
///
[DisplayName("是否分班")]
public bool IsDivide { get; set; }
///
/// 是否分班
///
[DisplayName("是否分班")]
public string IsDivideName
{
get
{
return IsDivide == true ? "是" : "否";
}
}
///
/// 是否显示
///
[DisplayName("是否显示")]
public bool IsDisplay { get; set; }
///
/// 是否显示
///
[DisplayName("是否显示")]
public string IsDisplayName
{
get
{
return IsDisplay == 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; }
}
}