12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using EMIS.ViewModel.SystemSetting;
- using EMIS.Entities;
- namespace EMIS.DataLogic.SystemSetting
- {
- public class DictionaryDAL
- {
- public DictionaryRepository DictionaryRepository { get; set; }
- /// <summary>
- /// 查询对应的字典类型信息View
- /// </summary>
- /// <param name="exp"></param>
- /// <returns></returns>
- public IQueryable<DictionaryView> GetDictionaryViewQueryable(Expression<Func<Sys_Dictionary, bool>> exp)
- {
- var query = from dic in DictionaryRepository.GetList(exp)
- select new DictionaryView
- {
- OrderNo = dic.OrderNo,
- DictionaryCode = dic.DictionaryCode,
- DictionaryName = dic.Name,
- IsEditable = dic.IsEditable == true ? true : false,
- RecordStatus = dic.RecordStatus
- };
- return query;
- }
- }
- }
|