1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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
- {
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public int? StandardID { get; set; }
- /// <summary>
- /// 专业代码
- /// </summary>
- [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') : "");
- }
- }
- /// <summary>
- /// 专业名称
- /// </summary>
- [DisplayName("专业名称")]
- public string StandardName
- {
- //get
- //{
- // return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
- // .Where(x => x.Value == StandardID)
- // .Select(x => x.Name).FirstOrDefault();
- //}
- get;set;
- }
-
- }
- }
|