12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- 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 TeachTypeView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid ClassGroupingID { get; set; }
- /// <summary>
- /// 上课类型
- /// </summary>
- [Required]
- [DisplayName("上课类型")]
- public string ClassName { get; set; }
- /// <summary>
- /// 分班明细List
- /// </summary>
- [DisplayName("分班明细")]
- public List<int?> TeachingModeIDList { get; set; }
- /// <summary>
- /// 分班明细(可存在多个分班明细--用顿号隔开)
- /// </summary>
- [DisplayName("分班明细")]
- public string TeachingModeIDListName
- {
- get
- {
- if (TeachingModeIDList != null && TeachingModeIDList.Count() > 0)
- {
- return string.Join("、", TeachingModeIDList.Select(x => IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
- }
- else
- {
- return "无";
- }
- }
- }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <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; }
- }
- }
|