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; }
///
/// 查询对应的字典类型信息View
///
///
///
public IQueryable GetDictionaryViewQueryable(Expression> 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;
}
}
}