SchoolyearServices.cs 1008 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using Bowin.Common.Linq.Entity;
  7. using EMISOnline.ViewModel.SystemView;
  8. using EMISOnline.DataLogic.SystemDAL;
  9. using EMISOnline.Entities;
  10. using EMISOnline.DataLogic.Student;
  11. using EMISOnline.CommonLogic.StudentServices;
  12. namespace EMISOnline.CommonLogic.SchoolyearServices
  13. {
  14. public class SchoolyearServices : BaseServices, ISchoolyearServices
  15. {
  16. public SchoolyearDAL SchoolyearDAL { get; set; }
  17. public CF_Schoolyear GetStudentSchollyear(Guid UserID)
  18. {
  19. //Expression<Func<CF_Student, bool>> exp = (x => x.UserID==UserID);
  20. //List<CF_Schoolyear> list = SchoolyearDAL.GetSutdentSchoolyear(exp).OrderByDescending(x => x.FirstWeek)
  21. // .ThenByDescending(x => x.RecordStatus)
  22. // .ToList();
  23. //if (list.Count > 0) return list[0];
  24. return SchoolyearDAL.GetCurSchoolyear();
  25. }
  26. }
  27. }