using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EMIS.ViewModel.CacheManage;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace EMIS.ViewModel.MinorManage.MinorSetting
{
public class MinorStandardSettingView
{
///
/// 辅修专业可报读设置ID
///
[Required]
[DisplayName("辅修专业可报读设置ID")]
public Guid MinorStandardSettingID { get; set; }
///
/// 辅修专业ID
///
[Required]
[DisplayName("辅修专业ID")]
public int? MinorStandardID { get; set; }
///
/// 专业代码
///
[Required]
[DisplayName("专业代码")]
public string MinorStandardCode { get; set; }
///
/// 辅修专业名称
///
[Required]
[DisplayName("辅修专业名称")]
public string MinorStandardName {
get {
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == MinorStandardID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 标准专业ID
///
[Required]
[DisplayName("标准专业ID")]
public int? StandardID { get; set; }
///
/// 专业代码
///
[Required]
[DisplayName("专业代码")]
public string StandardCode { get; set; }
///
/// 专业名称
///
[Required]
[DisplayName("专业名称")]
public string StandardName
{
get
{
return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Name).FirstOrDefault();
}
}
///
/// 状态
///
public int? RecordStatus { get; set; }
///
/// CreateTime
///
public Nullable CreateTime { get; set; }
///
/// CreateUserID
///
public Nullable CreateUserID { get; set; }
///
/// ModifyUserID
///
public Nullable ModifyUserID { get; set; }
///
/// ModifyTime
///
public Nullable ModifyTime { get; set; }
}
}