12345678910111213141516171819202122232425262728293031323334353637383940 |
- using EMIS.ViewModel.CacheManage;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Text;
- namespace EMIS.ViewModel.SystemView
- {
- public class StandardView
- {
- /// <summary>
- /// 专业ID(Value)
- /// </summary>
- [DisplayName("专业ID(Value)")]
- 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; set; }
- }
- }
|