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.EvaluationManage.EvaluationSetting { public class EvaluationIntTypeView { /// /// 主键ID /// [DisplayName("主键ID")] public Guid EvaluationIntTypeID { get; set; } /// /// 编号 /// [Required] [DisplayName("编号")] [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")] public string Code { get; set; } /// /// 名称 /// [Required] [DisplayName("名称")] public string Name { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public List TeachingModeIDList { get; set; } /// /// 授课方式(可存在多个授课方式--用顿号隔开) /// [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 ""; } } } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public string CreateUserName { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 修改人 /// [DisplayName("修改人")] public Guid? ModifyUserID { get; set; } /// /// 修改人 /// [DisplayName("修改人")] public string ModifyUserName { get; set; } /// /// 修改时间 /// [DisplayName("修改时间")] public DateTime? ModifyTime { get; set; } } }