using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.DataLogic.SupervisionManage; using EMIS.ViewModel.SupervisionManage; using EMIS.ViewModel; namespace EMIS.CommonLogic.SupervisionManage { public class SupervisionCollegeServices : BaseServices, ISupervisionCollegeServices { public SupervisionCollegeDAL SupervisionCollegeDAL { get; set; } public List GetSupervisionCollegeViewList() { return SupervisionCollegeDAL.GetSupervisionCollegeViewQuery(x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE) .OrderBy(x => x.CollegeNo.Length).ThenBy(x => x.CollegeNo) .ToList(); } public SupervisionCollegeView GetSupervisionCollegeViewByCollegeID(Guid collegeID) { return SupervisionCollegeDAL.GetSupervisionCollegeViewQuery(x => x.CollegeID == collegeID).FirstOrDefault(); } } }