1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using EMIS.DataLogic.Repositories;
- using EMIS.ViewModel.TeacherManagement;
- using System.Linq.Expressions;
- using EMIS.Entities;
- namespace EMIS.DataLogic.SystemDAL
- {
- public class UserInfoChangeDAL
- {
- public StaffRepository staffRepository { get; set; }
- public IQueryable<StaffView> GetStaffViewQueryable(Expression<Func<CF_Staff, bool>> exp)
- {
- var query = from a in staffRepository.GetList(exp)
- select new StaffView
- {
- UserID = a.UserID,
- Name = a.Sys_User.Name,
- DepartmentID = a.DepartmentID,
- DepartmentName = a.CF_Department.Name,
- CampusID = a.CF_College.CampusID,
- CampusName = a.CF_College.CF_Campus.Name,
- CollegeID = a.CF_College.CollegeID,
- CollegeName = a.CF_College.Name,
- StaffCode = a.Sys_User.LoginID,
- BirthDate = a.BirthDate,
- Sex = a.Sex,
- TeacherType = a.TeacherType,
- IncumbencyState = a.IncumbencyState,
- CertificatesType = a.CertificatesType,
- CertificatesNum = a.CertificatesNum,
- Situation = a.Situation,
- LiteracyLevels = a.LiteracyLevels,
- DegreeState = a.DegreeState,
- LearnPosition = a.LearnPosition,
- Title = a.Title,
- WorkDate = a.WorkDate,
- ComeSchoolDate = a.ComeSchoolDate,
- TeachingDate = a.TeachingDate,
- PhotoUrl = a.PhotoUrl,
- Profile = a.Profile,
- UsedName = a.CF_StaffProfile.UsedName,
- Nation = a.CF_StaffProfile.Nation,
- Place = a.CF_StaffProfile.Place,
- EducationCode = a.CF_StaffProfile.EducationCode,
- Telephone = a.CF_StaffProfile.Telephone,
- OfficeTelephone = a.CF_StaffProfile.OfficeTelephone,
- Mobile = a.CF_StaffProfile.Mobile,
- Email = a.CF_StaffProfile.Email,
- QQ = a.CF_StaffProfile.QQ,
- Nationality = a.CF_StaffProfile.Nationality,
- HealthState = a.CF_StaffProfile.HealthState,
- HousePhone = a.CF_StaffProfile.HousePhone,
- Address = a.CF_StaffProfile.Address,
- Postcode = a.CF_StaffProfile.Postcode,
- HomeAddress = a.CF_StaffProfile.HomeAddress,
- NowAddress = a.CF_StaffProfile.NowAddress,
- Residence = a.CF_StaffProfile.Residence,
- Speciality = a.CF_StaffProfile.Speciality,
- WeChatNum = a.CF_StaffProfile.WeChatNum,
- Religion = a.CF_StaffProfile.Religion,
- CreateUserID = a.CreateUserID,
- CreateTime = a.CreateTime,
- Remarks = a.Remarks,
- CollegeNo = a.CF_College.No
- };
- return query;
- }
- }
- }
|