12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMISOnline.Entities;
- using EMISOnline.ViewModel;
- using EMISOnline.ViewModel.Cache;
- namespace EMISOnline.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);
- }
- }
- }
|