12345678910111213141516171819202122232425262728293031 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using Bowin.Common.Linq.Entity;
- using EMISOnline.ViewModel.SystemView;
- using EMISOnline.DataLogic.SystemDAL;
- using EMISOnline.Entities;
- using EMISOnline.DataLogic.Student;
- using EMISOnline.CommonLogic.StudentServices;
- namespace EMISOnline.CommonLogic.SchoolyearServices
- {
- public class SchoolyearServices : BaseServices, ISchoolyearServices
- {
- public SchoolyearDAL SchoolyearDAL { get; set; }
- public CF_Schoolyear GetStudentSchollyear(Guid UserID)
- {
- //Expression<Func<CF_Student, bool>> exp = (x => x.UserID==UserID);
- //List<CF_Schoolyear> list = SchoolyearDAL.GetSutdentSchoolyear(exp).OrderByDescending(x => x.FirstWeek)
- // .ThenByDescending(x => x.RecordStatus)
- // .ToList();
- //if (list.Count > 0) return list[0];
- return SchoolyearDAL.GetCurSchoolyear();
- }
- }
- }
|