using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.MinorGraduation.MinorGraduationSetting { public class MinorGraduationConditionPackageView { /// /// 辅修毕业公式ID /// [DisplayName("辅修毕业公式ID")] public Guid MinorGraduationConditionPackageID { get; set; } /// /// 公式名称 /// [Required] [DisplayName("公式名称")] public string Title { get; set; } /// /// 学生类别 /// [Required] [DisplayName("学生类别")] public int? StudentTypeID { get; set; } /// /// 学生类别 /// [DisplayName("学生类别")] public string StudentTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_STUDENTTYPE.ToString()) .Where(x => x.Value == StudentTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 是否默认 /// [DisplayName("是否默认")] public bool IsDefault { get; set; } /// /// 是否默认 /// [DisplayName("是否默认公式")] public string IsDefaultName { get { return IsDefault ? "是" : "否"; } } /// /// 启用状态 /// [DisplayName("启用状态")] public bool IsEnable { get; set; } /// /// 启用状态 /// [DisplayName("启用状态")] public string IsEnableName { get { return IsEnable ? "启用" : "禁用"; } } /// /// 辅修毕业条件 /// [DisplayName("辅修毕业条件")] public string MinorGraduationCondition { get; set; } /// /// 状态 /// [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; } } }