EvaluationStudentSettingScoreDAL.cs 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. using EMIS.Entities;
  7. using EMIS.ViewModel.EvaluationManage.StudentEvaluation;
  8. using EMIS.DataLogic.Repositories;
  9. namespace EMIS.DataLogic.EvaluationManage.StudentEvaluation
  10. {
  11. public class EvaluationStudentSettingScoreDAL
  12. {
  13. public EvaluationStudentSettingScoreRepository EvaluationStudentSettingScoreRepository { get; set; }
  14. public EvaluationStudentSettingRepository EvaluationStudentSettingRepository { get; set; }
  15. public EducationMissionRepository EducationMissionRepository { get; set; }
  16. public EducationMissionClassRepository EducationMissionClassRepository { get; set; }
  17. public SchoolyearRepository SchoolyearRepository { get; set; }
  18. public DepartmentRepository DepartmentRepository { get; set; }
  19. public CollegeRepository CollegeRepository { get; set; }
  20. public CampusRepository CampusRepository { get; set; }
  21. public CoursematerialRepository CoursematerialRepository { get; set; }
  22. public EvaluationTableRepository EvaluationTableRepository { get; set; }
  23. public EvaluationParticipateTypeRepository EvaluationParticipateTypeRepository { get; set; }
  24. public EvaluationIntTypeRepository EvaluationIntTypeRepository { get; set; }
  25. public StaffRepository StaffRepository { get; set; }
  26. public UserRepository UserRepository { get; set; }
  27. public EvaluationStudentRepository EvaluationStudentRepository { get; set; }
  28. public EvaluationStudentScoreRepository EvaluationStudentScoreRepository { get; set; }
  29. /// <summary>
  30. /// 查询对应的学评评分信息EvaluationStudentSettingScoreView
  31. /// </summary>
  32. /// <param name="exp"></param>
  33. /// <returns></returns>
  34. public IQueryable<EvaluationStudentSettingScoreView> GetEvaluationStudentSettingScoreViewQueryable(Expression<Func<EM_EvaluationStudentSettingScore, bool>> exp)
  35. {
  36. var query = from evstustsco in EvaluationStudentSettingScoreRepository.GetList(exp)
  37. join evstust in EvaluationStudentSettingRepository.Entities
  38. on evstustsco.EvaluationStudentSettingID equals evstust.EvaluationStudentSettingID
  39. join educl in EducationMissionClassRepository.Entities
  40. on evstust.EducationMissionClassID equals educl.EducationMissionClassID
  41. join edu in EducationMissionRepository.Entities
  42. on educl.EducationMissionID equals edu.EducationMissionID
  43. join sy in SchoolyearRepository.Entities
  44. on edu.SchoolyearID equals sy.SchoolyearID
  45. join dep in DepartmentRepository.Entities
  46. on edu.DepartmentID equals dep.DepartmentID
  47. join col in CollegeRepository.Entities
  48. on edu.CollegeID equals col.CollegeID
  49. join cam in CampusRepository.Entities
  50. on col.CampusID equals cam.CampusID
  51. join cou in CoursematerialRepository.Entities
  52. on educl.CoursematerialID equals cou.CoursematerialID
  53. join evtb in EvaluationTableRepository.Entities
  54. on evstust.EvaluationTableID equals evtb.EvaluationTableID
  55. join evpt in EvaluationParticipateTypeRepository.Entities
  56. on evtb.EvaluationParticipateTypeID equals evpt.EvaluationParticipateTypeID
  57. join evtp in EvaluationIntTypeRepository.Entities
  58. on evtb.EvaluationIntTypeID equals evtp.EvaluationIntTypeID
  59. join sf in StaffRepository.Entities
  60. on evstust.UserID equals sf.UserID
  61. join us in UserRepository.Entities
  62. on sf.UserID equals us.UserID
  63. select new EvaluationStudentSettingScoreView
  64. {
  65. EvaluationStudentSettingScoreID = evstustsco.EvaluationStudentSettingScoreID,
  66. EvaluationStudentSettingID = evstustsco.EvaluationStudentSettingID,
  67. EducationMissionClassID = evstust.EducationMissionClassID,
  68. EducationMissionID = educl.EducationMissionID,
  69. SchoolyearID = edu.SchoolyearID,
  70. SchoolyearValue = sy.Value,
  71. SchoolyearCode = sy.Code,
  72. MissionName = edu.ClassName,
  73. MissionClassName = educl.Name,
  74. CollegeID = edu.CollegeID,
  75. CollegeNo = col.No,
  76. CollegeName = col.Name,
  77. CampusID = col.CampusID,
  78. CampusNo = cam.No,
  79. CampusName = cam.Name,
  80. CoursematerialID = educl.CoursematerialID,
  81. CourseCode = cou.CourseCode,
  82. CourseName = cou.CourseName,
  83. CourseStructureID = educl.CourseStructureID,
  84. CourseCategoryID = educl.CourseCategoryID,
  85. CourseTypeID = educl.CourseTypeID,
  86. CourseQualityID = educl.CourseQualityID,
  87. Credit = educl.EM_EducationMissionClassTeachingSetting.Credit ?? 0,
  88. DepartmentID = edu.DepartmentID,
  89. DepartmentNo = dep.No,
  90. DepartmentName = dep.Name,
  91. HandleModeID = educl.HandleModeID,
  92. TeachingModeID = educl.TeachingModeID,
  93. MissionClassStatus = educl.RecordStatus,
  94. EvaluationTableID = evstust.EvaluationTableID,
  95. EvaluationTableCode = evtb.Code,
  96. EvaluationTableName = evtb.Name,
  97. EvaluationParticipateTypeID = evtb.EvaluationParticipateTypeID,
  98. ParticipateTypeID = evpt.ParticipateTypeID,
  99. EvaluationTypeID = evtb.EvaluationIntTypeID,
  100. EvaluationTypeCode = evtp.Code,
  101. EvaluationTypeName = evtp.Name,
  102. UserID = evstust.UserID,
  103. StaffCode = us.LoginID,
  104. StaffName = us.Name,
  105. TitleID = sf.TitleID,
  106. TeachingMethodID = evstust.TeachingMethodID,
  107. ParticipateCount = evstust.CF_Student.Count(),
  108. NoParticipateCount = evstust.CF_Student.Count() - evstust.EM_EvaluationStudent.Count(),
  109. ValidityParticipateCount = evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count(),
  110. ValidityParticipateRate = evstust.CF_Student.Count() == 0 ? 0 : Math.Round((decimal)((decimal?)evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count() * (decimal?)1.00 / (decimal?)evstust.CF_Student.Count() * (decimal?)100.0), 1),
  111. OpenState = evstust.OpenState.Value,
  112. TotalScore = evstustsco.TotalScore,
  113. Remark = evstustsco.Remark,
  114. RecordStatus = evstustsco.RecordStatus,
  115. CreateUserID = evstustsco.CreateUserID,
  116. CreateTime = evstustsco.CreateTime,
  117. ModifyUserID = evstustsco.ModifyUserID,
  118. ModifyTime = evstustsco.ModifyTime
  119. };
  120. return query;
  121. }
  122. /// <summary>
  123. /// 查询对应的学评评分信息EvaluationStudentSettingScoreView
  124. /// </summary>
  125. /// <param name="expEvaluationStudentSettingScore"></param>
  126. /// <param name="expEvaluationStudentSetting"></param>
  127. /// <returns></returns>
  128. public IQueryable<EvaluationStudentSettingScoreView> GetEvaluationStudentSettingScoreViewQueryable(Expression<Func<EM_EvaluationStudentSettingScore, bool>> expEvaluationStudentSettingScore, Expression<Func<EM_EvaluationStudentSetting, bool>> expEvaluationStudentSetting)
  129. {
  130. var query = from evstustsco in EvaluationStudentSettingScoreRepository.GetList(expEvaluationStudentSettingScore)
  131. join evstust in EvaluationStudentSettingRepository.GetList(expEvaluationStudentSetting)
  132. on evstustsco.EvaluationStudentSettingID equals evstust.EvaluationStudentSettingID
  133. join educl in EducationMissionClassRepository.Entities
  134. on evstust.EducationMissionClassID equals educl.EducationMissionClassID
  135. join edu in EducationMissionRepository.Entities
  136. on educl.EducationMissionID equals edu.EducationMissionID
  137. join sy in SchoolyearRepository.Entities
  138. on edu.SchoolyearID equals sy.SchoolyearID
  139. join dep in DepartmentRepository.Entities
  140. on edu.DepartmentID equals dep.DepartmentID
  141. join col in CollegeRepository.Entities
  142. on edu.CollegeID equals col.CollegeID
  143. join cam in CampusRepository.Entities
  144. on col.CampusID equals cam.CampusID
  145. join cou in CoursematerialRepository.Entities
  146. on educl.CoursematerialID equals cou.CoursematerialID
  147. join evtb in EvaluationTableRepository.Entities
  148. on evstust.EvaluationTableID equals evtb.EvaluationTableID
  149. join evpt in EvaluationParticipateTypeRepository.Entities
  150. on evtb.EvaluationParticipateTypeID equals evpt.EvaluationParticipateTypeID
  151. join evtp in EvaluationIntTypeRepository.Entities
  152. on evtb.EvaluationIntTypeID equals evtp.EvaluationIntTypeID
  153. join sf in StaffRepository.Entities
  154. on evstust.UserID equals sf.UserID
  155. join us in UserRepository.Entities
  156. on sf.UserID equals us.UserID
  157. select new EvaluationStudentSettingScoreView
  158. {
  159. EvaluationStudentSettingScoreID = evstustsco.EvaluationStudentSettingScoreID,
  160. EvaluationStudentSettingID = evstustsco.EvaluationStudentSettingID,
  161. EducationMissionClassID = evstust.EducationMissionClassID,
  162. EducationMissionID = educl.EducationMissionID,
  163. SchoolyearID = edu.SchoolyearID,
  164. SchoolyearValue = sy.Value,
  165. SchoolyearCode = sy.Code,
  166. MissionName = edu.ClassName,
  167. MissionClassName = educl.Name,
  168. CollegeID = edu.CollegeID,
  169. CollegeNo = col.No,
  170. CollegeName = col.Name,
  171. CampusID = col.CampusID,
  172. CampusNo = cam.No,
  173. CampusName = cam.Name,
  174. CoursematerialID = educl.CoursematerialID,
  175. CourseCode = cou.CourseCode,
  176. CourseName = cou.CourseName,
  177. CourseStructureID = educl.CourseStructureID,
  178. CourseCategoryID = educl.CourseCategoryID,
  179. CourseTypeID = educl.CourseTypeID,
  180. CourseQualityID = educl.CourseQualityID,
  181. Credit = educl.EM_EducationMissionClassTeachingSetting.Credit ?? 0,
  182. DepartmentID = edu.DepartmentID,
  183. DepartmentNo = dep.No,
  184. DepartmentName = dep.Name,
  185. HandleModeID = educl.HandleModeID,
  186. TeachingModeID = educl.TeachingModeID,
  187. MissionClassStatus = educl.RecordStatus,
  188. EvaluationTableID = evstust.EvaluationTableID,
  189. EvaluationTableCode = evtb.Code,
  190. EvaluationTableName = evtb.Name,
  191. EvaluationParticipateTypeID = evtb.EvaluationParticipateTypeID,
  192. ParticipateTypeID = evpt.ParticipateTypeID,
  193. EvaluationTypeID = evtb.EvaluationIntTypeID,
  194. EvaluationTypeCode = evtp.Code,
  195. EvaluationTypeName = evtp.Name,
  196. UserID = evstust.UserID,
  197. StaffCode = us.LoginID,
  198. StaffName = us.Name,
  199. TitleID = sf.TitleID,
  200. TeachingMethodID = evstust.TeachingMethodID,
  201. ParticipateCount = evstust.CF_Student.Count(),
  202. NoParticipateCount = evstust.CF_Student.Count() - evstust.EM_EvaluationStudent.Count(),
  203. ValidityParticipateCount = evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count(),
  204. ValidityParticipateRate = evstust.CF_Student.Count() == 0 ? 0 : Math.Round((decimal)((decimal?)evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count() * (decimal?)1.00 / (decimal?)evstust.CF_Student.Count() * (decimal?)100.0), 1),
  205. OpenState = evstust.OpenState.Value,
  206. TotalScore = evstustsco.TotalScore,
  207. Remark = evstustsco.Remark,
  208. RecordStatus = evstustsco.RecordStatus,
  209. CreateUserID = evstustsco.CreateUserID,
  210. CreateTime = evstustsco.CreateTime,
  211. ModifyUserID = evstustsco.ModifyUserID,
  212. ModifyTime = evstustsco.ModifyTime
  213. };
  214. return query;
  215. }
  216. /// <summary>
  217. /// 查询对应的学评评分信息EvaluationStudentSettingScoreView
  218. /// </summary>
  219. /// <param name="expEvaluationStudentSettingScore"></param>
  220. /// <param name="expEducationMission"></param>
  221. /// <returns></returns>
  222. public IQueryable<EvaluationStudentSettingScoreView> GetEvaluationStudentSettingScoreViewQueryable(Expression<Func<EM_EvaluationStudentSettingScore, bool>> expEvaluationStudentSettingScore, Expression<Func<EM_EducationMission, bool>> expEducationMission)
  223. {
  224. var query = from evstustsco in EvaluationStudentSettingScoreRepository.GetList(expEvaluationStudentSettingScore)
  225. join evstust in EvaluationStudentSettingRepository.Entities
  226. on evstustsco.EvaluationStudentSettingID equals evstust.EvaluationStudentSettingID
  227. join educl in EducationMissionClassRepository.Entities
  228. on evstust.EducationMissionClassID equals educl.EducationMissionClassID
  229. join edu in EducationMissionRepository.GetList(expEducationMission)
  230. on educl.EducationMissionID equals edu.EducationMissionID
  231. join sy in SchoolyearRepository.Entities
  232. on edu.SchoolyearID equals sy.SchoolyearID
  233. join dep in DepartmentRepository.Entities
  234. on edu.DepartmentID equals dep.DepartmentID
  235. join col in CollegeRepository.Entities
  236. on edu.CollegeID equals col.CollegeID
  237. join cam in CampusRepository.Entities
  238. on col.CampusID equals cam.CampusID
  239. join cou in CoursematerialRepository.Entities
  240. on educl.CoursematerialID equals cou.CoursematerialID
  241. join evtb in EvaluationTableRepository.Entities
  242. on evstust.EvaluationTableID equals evtb.EvaluationTableID
  243. join evpt in EvaluationParticipateTypeRepository.Entities
  244. on evtb.EvaluationParticipateTypeID equals evpt.EvaluationParticipateTypeID
  245. join evtp in EvaluationIntTypeRepository.Entities
  246. on evtb.EvaluationIntTypeID equals evtp.EvaluationIntTypeID
  247. join sf in StaffRepository.Entities
  248. on evstust.UserID equals sf.UserID
  249. join us in UserRepository.Entities
  250. on sf.UserID equals us.UserID
  251. select new EvaluationStudentSettingScoreView
  252. {
  253. EvaluationStudentSettingScoreID = evstustsco.EvaluationStudentSettingScoreID,
  254. EvaluationStudentSettingID = evstustsco.EvaluationStudentSettingID,
  255. EducationMissionClassID = evstust.EducationMissionClassID,
  256. EducationMissionID = educl.EducationMissionID,
  257. SchoolyearID = edu.SchoolyearID,
  258. SchoolyearValue = sy.Value,
  259. SchoolyearCode = sy.Code,
  260. MissionName = edu.ClassName,
  261. MissionClassName = educl.Name,
  262. CollegeID = edu.CollegeID,
  263. CollegeNo = col.No,
  264. CollegeName = col.Name,
  265. CampusID = col.CampusID,
  266. CampusNo = cam.No,
  267. CampusName = cam.Name,
  268. CoursematerialID = educl.CoursematerialID,
  269. CourseCode = cou.CourseCode,
  270. CourseName = cou.CourseName,
  271. CourseStructureID = educl.CourseStructureID,
  272. CourseCategoryID = educl.CourseCategoryID,
  273. CourseTypeID = educl.CourseTypeID,
  274. CourseQualityID = educl.CourseQualityID,
  275. Credit = educl.EM_EducationMissionClassTeachingSetting.Credit ?? 0,
  276. DepartmentID = edu.DepartmentID,
  277. DepartmentNo = dep.No,
  278. DepartmentName = dep.Name,
  279. HandleModeID = educl.HandleModeID,
  280. TeachingModeID = educl.TeachingModeID,
  281. MissionClassStatus = educl.RecordStatus,
  282. EvaluationTableID = evstust.EvaluationTableID,
  283. EvaluationTableCode = evtb.Code,
  284. EvaluationTableName = evtb.Name,
  285. EvaluationParticipateTypeID = evtb.EvaluationParticipateTypeID,
  286. ParticipateTypeID = evpt.ParticipateTypeID,
  287. EvaluationTypeID = evtb.EvaluationIntTypeID,
  288. EvaluationTypeCode = evtp.Code,
  289. EvaluationTypeName = evtp.Name,
  290. UserID = evstust.UserID,
  291. StaffCode = us.LoginID,
  292. StaffName = us.Name,
  293. TitleID = sf.TitleID,
  294. TeachingMethodID = evstust.TeachingMethodID,
  295. ParticipateCount = evstust.CF_Student.Count(),
  296. NoParticipateCount = evstust.CF_Student.Count() - evstust.EM_EvaluationStudent.Count(),
  297. ValidityParticipateCount = evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count(),
  298. ValidityParticipateRate = evstust.CF_Student.Count() == 0 ? 0 : Math.Round((decimal)((decimal?)evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count() * (decimal?)1.00 / (decimal?)evstust.CF_Student.Count() * (decimal?)100.0), 1),
  299. OpenState = evstust.OpenState.Value,
  300. TotalScore = evstustsco.TotalScore,
  301. Remark = evstustsco.Remark,
  302. RecordStatus = evstustsco.RecordStatus,
  303. CreateUserID = evstustsco.CreateUserID,
  304. CreateTime = evstustsco.CreateTime,
  305. ModifyUserID = evstustsco.ModifyUserID,
  306. ModifyTime = evstustsco.ModifyTime
  307. };
  308. return query;
  309. }
  310. /// <summary>
  311. /// 查询对应的学评评分信息EvaluationStudentSettingScoreView
  312. /// </summary>
  313. /// <param name="expEvaluationStudentSetting"></param>
  314. /// <param name="expEducationMission"></param>
  315. /// <param name="expEducationMissionClass"></param>
  316. /// <returns></returns>
  317. public IQueryable<EvaluationStudentSettingScoreView> GetEvaluationStudentSettingScoreViewQueryable(Expression<Func<EM_EvaluationStudentSetting, bool>> expEvaluationStudentSetting, Expression<Func<EM_EducationMission, bool>> expEducationMission, Expression<Func<EM_EducationMissionClass, bool>> expEducationMissionClass)
  318. {
  319. var query = from evstustsco in EvaluationStudentSettingScoreRepository.Entities
  320. join evstust in EvaluationStudentSettingRepository.GetList(expEvaluationStudentSetting)
  321. on evstustsco.EvaluationStudentSettingID equals evstust.EvaluationStudentSettingID
  322. join educl in EducationMissionClassRepository.GetList(expEducationMissionClass)
  323. on evstust.EducationMissionClassID equals educl.EducationMissionClassID
  324. join edu in EducationMissionRepository.GetList(expEducationMission)
  325. on educl.EducationMissionID equals edu.EducationMissionID
  326. join sy in SchoolyearRepository.Entities
  327. on edu.SchoolyearID equals sy.SchoolyearID
  328. join dep in DepartmentRepository.Entities
  329. on edu.DepartmentID equals dep.DepartmentID
  330. join col in CollegeRepository.Entities
  331. on edu.CollegeID equals col.CollegeID
  332. join cam in CampusRepository.Entities
  333. on col.CampusID equals cam.CampusID
  334. join cou in CoursematerialRepository.Entities
  335. on educl.CoursematerialID equals cou.CoursematerialID
  336. join evtb in EvaluationTableRepository.Entities
  337. on evstust.EvaluationTableID equals evtb.EvaluationTableID
  338. join evpt in EvaluationParticipateTypeRepository.Entities
  339. on evtb.EvaluationParticipateTypeID equals evpt.EvaluationParticipateTypeID
  340. join evtp in EvaluationIntTypeRepository.Entities
  341. on evtb.EvaluationIntTypeID equals evtp.EvaluationIntTypeID
  342. join sf in StaffRepository.Entities
  343. on evstust.UserID equals sf.UserID
  344. join us in UserRepository.Entities
  345. on sf.UserID equals us.UserID
  346. select new EvaluationStudentSettingScoreView
  347. {
  348. EvaluationStudentSettingScoreID = evstustsco.EvaluationStudentSettingScoreID,
  349. EvaluationStudentSettingID = evstustsco.EvaluationStudentSettingID,
  350. EducationMissionClassID = evstust.EducationMissionClassID,
  351. EducationMissionID = educl.EducationMissionID,
  352. SchoolyearID = edu.SchoolyearID,
  353. SchoolyearValue = sy.Value,
  354. SchoolyearCode = sy.Code,
  355. MissionName = edu.ClassName,
  356. MissionClassName = educl.Name,
  357. CollegeID = edu.CollegeID,
  358. CollegeNo = col.No,
  359. CollegeName = col.Name,
  360. CampusID = col.CampusID,
  361. CampusNo = cam.No,
  362. CampusName = cam.Name,
  363. CoursematerialID = educl.CoursematerialID,
  364. CourseCode = cou.CourseCode,
  365. CourseName = cou.CourseName,
  366. CourseStructureID = educl.CourseStructureID,
  367. CourseCategoryID = educl.CourseCategoryID,
  368. CourseTypeID = educl.CourseTypeID,
  369. CourseQualityID = educl.CourseQualityID,
  370. Credit = educl.EM_EducationMissionClassTeachingSetting.Credit ?? 0,
  371. DepartmentID = edu.DepartmentID,
  372. DepartmentNo = dep.No,
  373. DepartmentName = dep.Name,
  374. HandleModeID = educl.HandleModeID,
  375. TeachingModeID = educl.TeachingModeID,
  376. MissionClassStatus = educl.RecordStatus,
  377. EvaluationTableID = evstust.EvaluationTableID,
  378. EvaluationTableCode = evtb.Code,
  379. EvaluationTableName = evtb.Name,
  380. EvaluationParticipateTypeID = evtb.EvaluationParticipateTypeID,
  381. ParticipateTypeID = evpt.ParticipateTypeID,
  382. EvaluationTypeID = evtb.EvaluationIntTypeID,
  383. EvaluationTypeCode = evtp.Code,
  384. EvaluationTypeName = evtp.Name,
  385. UserID = evstust.UserID,
  386. StaffCode = us.LoginID,
  387. StaffName = us.Name,
  388. TitleID = sf.TitleID,
  389. TeachingMethodID = evstust.TeachingMethodID,
  390. ParticipateCount = evstust.CF_Student.Count(),
  391. NoParticipateCount = evstust.CF_Student.Count() - evstust.EM_EvaluationStudent.Count(),
  392. ValidityParticipateCount = evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count(),
  393. ValidityParticipateRate = evstust.CF_Student.Count() == 0 ? 0 : Math.Round((decimal)((decimal?)evstust.EM_EvaluationStudent.Where(x => x.IsValidity == true).Count() * (decimal?)1.00 / (decimal?)evstust.CF_Student.Count() * (decimal?)100.0), 1),
  394. OpenState = evstust.OpenState.Value,
  395. TotalScore = evstustsco.TotalScore,
  396. Remark = evstustsco.Remark,
  397. RecordStatus = evstustsco.RecordStatus,
  398. CreateUserID = evstustsco.CreateUserID,
  399. CreateTime = evstustsco.CreateTime,
  400. ModifyUserID = evstustsco.ModifyUserID,
  401. ModifyTime = evstustsco.ModifyTime
  402. };
  403. return query;
  404. }
  405. }
  406. }