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 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 GetDictionaryValue(string dictionaryCode) { return IdNameExt.GetDictionaryItem(dictionaryCode); } } }