123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- 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
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid ClassGroupingSettingsID { get; set; }
- /// <summary>
- /// 上课类型ID
- /// </summary>
- [Required]
- [DisplayName("上课类型ID")]
- public Guid? ClassGroupingID { get; set; }
- /// <summary>
- /// 上课类型
- /// </summary>
- [DisplayName("上课类型")]
- public string ClassName { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public int? TeachingModeID { get; set; }
- /// <summary>
- /// 授课方式
- /// </summary>
- [DisplayName("授课方式")]
- public string TeachingModeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
- .Where(x => x.Value == TeachingModeID)
- .Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 是否分班
- /// </summary>
- [DisplayName("是否分班")]
- public bool IsDivide { get; set; }
- /// <summary>
- /// 是否分班
- /// </summary>
- [DisplayName("是否分班")]
- public string IsDivideName
- {
- get
- {
- return IsDivide == true ? "是" : "否";
- }
- }
- /// <summary>
- /// 是否显示
- /// </summary>
- [DisplayName("是否显示")]
- public bool IsDisplay { get; set; }
- /// <summary>
- /// 是否显示
- /// </summary>
- [DisplayName("是否显示")]
- public string IsDisplayName
- {
- get
- {
- return IsDisplay == 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; }
- }
- }
|