using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using EMIS.ViewModel.Cache;
using System.ComponentModel.DataAnnotations;
namespace EMIS.ViewModel.UniversityInformationManage.Specialtyclass
{
public class StandardView
{
///
/// 专业名称
///
[DisplayName("专业名称")]
public int? StandardID { get; set; }
///
/// 专业代码
///
[DisplayName("专业代码")]
public string StandardCode
{
get
{
var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
.Where(x => x.Value == StandardID)
.Select(x => x.Code).FirstOrDefault();
return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
}
}
///
/// 专业名称
///
[DisplayName("专业名称")]
public string StandardName
{
//get
//{
// return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
// .Where(x => x.Value == StandardID)
// .Select(x => x.Name).FirstOrDefault();
//}
get;set;
}
}
}