ChangeReportDAL.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Linq.Expressions;
  6. using EMIS.Entities;
  7. using EMIS.ViewModel;
  8. using EMIS.ViewModel.StudentManage.StudentChange;
  9. using EMIS.DataLogic.Repositories;
  10. namespace EMIS.DataLogic.StudentManage.StudentChange
  11. {
  12. public class ChangeReportDAL
  13. {
  14. public DifferentDynamicReportRepository ChangeReportRepository { get; set; }
  15. /// <summary>
  16. /// 查询对应的异动报表信息View
  17. /// </summary>
  18. /// <param name="exp"></param>
  19. /// <returns></returns>
  20. public IQueryable<ChangeReportView> GetChangeReportViewQueryable(Expression<Func<CF_DifferentDynamicReport, bool>> exp)
  21. {
  22. var query = from chrp in ChangeReportRepository.GetList(exp)
  23. select new ChangeReportView
  24. {
  25. ChangeReportID = chrp.ChangeReportID,
  26. Code = chrp.Code,
  27. Name = chrp.Name,
  28. Url = chrp.Url
  29. };
  30. return query;
  31. }
  32. }
  33. }