12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.Entities;
- using EMIS.ViewModel;
- using EMIS.ViewModel.Cache;
- namespace EMIS.Utility
- {
- public class DictionaryHelper
- {
- public static IEnumerable<Sys_DictionaryItem> GetDictionaryValue(DictionaryItem dictionaryItem)
- {
- return GetDictionaryValue(dictionaryItem.ToString());
- }
- public static Sys_DictionaryItem GetSingleDictionary(int dictionaryValue, string dictionaryCode)
- {
- return GetDictionaryValue(dictionaryCode).FirstOrDefault(x => x.Value == dictionaryValue);
- }
- public static IEnumerable<Sys_DictionaryItem> GetDictionaryValue(string dictionaryCode)
- {
- return IdNameExt.GetDictionaryItem(dictionaryCode);
- }
- }
- }
|