123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using EMIS.ViewModel;
- using EMIS.ViewModel.ChargeManage.ChargeSituation;
- using EMIS.Entities;
- namespace EMIS.DataLogic.ChargeManage.ChargeSituation
- {
- public class ChargeProjectDAL
- {
- public ChargeProjectRepository chargeProjectRepository { get; set; }
- /// <summary>
- /// 查询对应的收费项目信息
- /// </summary>
- /// <param name="exp"></param>
- /// <returns></returns>
- public IQueryable<ChargeProjectView> GetChargeProjectViewQueryAble(Expression<Func<EC_ChargeProject, bool>> exp)
- {
- var query = from pr in chargeProjectRepository.GetList(exp)
- select new ChargeProjectView
- {
- ChargeProjectID = pr.ChargeProjectID,
- ChrageProjectName = pr.Name,
- Remark = pr.Remark
- };
- return query;
- }
- }
- }
|