SupervisionCollegeServices.cs 966 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.DataLogic.SupervisionManage;
  6. using EMIS.ViewModel.SupervisionManage;
  7. using EMIS.ViewModel;
  8. namespace EMIS.CommonLogic.SupervisionManage
  9. {
  10. public class SupervisionCollegeServices : BaseServices, ISupervisionCollegeServices
  11. {
  12. public SupervisionCollegeDAL SupervisionCollegeDAL { get; set; }
  13. public List<SupervisionCollegeView> GetSupervisionCollegeViewList()
  14. {
  15. return SupervisionCollegeDAL.GetSupervisionCollegeViewQuery(x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE)
  16. .OrderBy(x => x.CollegeNo.Length).ThenBy(x => x.CollegeNo)
  17. .ToList();
  18. }
  19. public SupervisionCollegeView GetSupervisionCollegeViewByCollegeID(Guid collegeID)
  20. {
  21. return SupervisionCollegeDAL.GetSupervisionCollegeViewQuery(x => x.CollegeID == collegeID).FirstOrDefault();
  22. }
  23. }
  24. }