You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

297 lines
8.2 KiB

  1. using Learun.Application.TwoDevelopment.EducationalAdministration;
  2. using Learun.Util;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Web.Mvc;
  7. namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
  8. {
  9. /// <summary>
  10. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  11. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  12. /// 创 建:超级管理员
  13. /// 日 期:2023-01-04 15:03
  14. /// 描 述:学籍异动列表
  15. /// </summary>
  16. public class StuTransferInfoController : MvcControllerBase
  17. {
  18. private StuTransferInfoIBLL stuTransferInfoIBLL = new StuTransferInfoBLL();
  19. #region 视图功能
  20. /// <summary>
  21. /// 主页面
  22. /// </summary>
  23. /// <returns></returns>
  24. [HttpGet]
  25. public ActionResult Index()
  26. {
  27. return View();
  28. }
  29. [HttpGet]
  30. public ActionResult Form()
  31. {
  32. return View();
  33. }
  34. [HttpGet]
  35. public ActionResult FormView()
  36. {
  37. return View();
  38. }
  39. /// <summary>
  40. /// 表单页
  41. /// </summary>
  42. /// <returns></returns>
  43. [HttpGet]
  44. public ActionResult MajorIndex()
  45. {
  46. return View();
  47. }
  48. /// <summary>
  49. /// 休学
  50. /// </summary>
  51. /// <returns></returns>
  52. [HttpGet]
  53. public ActionResult RestAgainIndex()
  54. {
  55. return View();
  56. }
  57. /// <summary>
  58. /// 复学
  59. /// </summary>
  60. /// <returns></returns>
  61. public ActionResult ReturnIndex()
  62. {
  63. return View();
  64. }
  65. /// <summary>
  66. /// 退学页
  67. /// </summary>
  68. /// <returns></returns>
  69. [HttpGet]
  70. public ActionResult DropOutIndex()
  71. {
  72. return View();
  73. }
  74. /// <summary>
  75. /// 转入转出页
  76. /// </summary>
  77. /// <returns></returns>
  78. [HttpGet]
  79. public ActionResult IntoIndex()
  80. {
  81. return View();
  82. }
  83. /// <summary>
  84. /// 转入转出页
  85. /// </summary>
  86. /// <returns></returns>
  87. [HttpGet]
  88. public ActionResult RolloffIndex()
  89. {
  90. return View();
  91. }
  92. /// <summary>
  93. /// 审核页
  94. /// </summary>
  95. /// <returns></returns>
  96. [HttpGet]
  97. public ActionResult CheckIndex()
  98. {
  99. return View();
  100. }
  101. /// <summary>
  102. /// 综合查询-基本信息
  103. /// </summary>
  104. /// <returns></returns>
  105. [HttpGet]
  106. public ActionResult QueryBasicInfo()
  107. {
  108. return View();
  109. }
  110. /// <summary>
  111. /// 综合查询-成绩查看
  112. /// </summary>
  113. /// <returns></returns>
  114. [HttpGet]
  115. public ActionResult QueryScoreIndex()
  116. {
  117. return View();
  118. }
  119. /// <summary>
  120. /// 综合查询-奖助学金查看
  121. /// </summary>
  122. /// <returns></returns>
  123. [HttpGet]
  124. public ActionResult QueryScholarshipIndex()
  125. {
  126. return View();
  127. }
  128. /// <summary>
  129. /// 综合查询-心理健康档案
  130. /// </summary>
  131. /// <returns></returns>
  132. [HttpGet]
  133. public ActionResult QueryAPStuHealthIndex()
  134. {
  135. return View();
  136. }
  137. /// <summary>
  138. /// 综合查询-兵役信息
  139. /// </summary>
  140. /// <returns></returns>
  141. [HttpGet]
  142. public ActionResult QueryMSRMilitaryIndex()
  143. {
  144. return View();
  145. }
  146. /// <summary>
  147. /// 综合查询-奖惩信息
  148. /// </summary>
  149. /// <returns></returns>
  150. [HttpGet]
  151. public ActionResult QueryStuEncourgementIndex()
  152. {
  153. return View();
  154. }
  155. #endregion
  156. #region 获取数据
  157. /// <summary>
  158. /// 获取列表数据
  159. /// </summary>
  160. /// <param name="queryJson">查询参数</param>
  161. /// <returns></returns>
  162. [HttpGet]
  163. [AjaxOnly]
  164. public ActionResult GetList(string queryJson)
  165. {
  166. var data = stuTransferInfoIBLL.GetList(queryJson);
  167. return Success(data);
  168. }
  169. /// <summary>
  170. /// 获取列表分页数据
  171. /// </summary>
  172. /// <param name="pagination">分页参数</param>
  173. /// <param name="queryJson">查询参数</param>
  174. /// <returns></returns>
  175. [HttpGet]
  176. [AjaxOnly]
  177. public ActionResult GetPageList(string pagination, string queryJson)
  178. {
  179. Pagination paginationobj = pagination.ToObject<Pagination>();
  180. var data = stuTransferInfoIBLL.GetPageList(paginationobj, queryJson);
  181. var jsonData = new
  182. {
  183. rows = data,
  184. total = paginationobj.total,
  185. page = paginationobj.page,
  186. records = paginationobj.records
  187. };
  188. return Success(jsonData);
  189. }
  190. /// <summary>
  191. /// 获取表单数据
  192. /// </summary>
  193. /// <param name="keyValue">主键</param>
  194. /// <returns></returns>
  195. [HttpGet]
  196. [AjaxOnly]
  197. public ActionResult GetFormData(string keyValue)
  198. {
  199. var data = stuTransferInfoIBLL.GetEntity(keyValue);
  200. var jsonData = new
  201. {
  202. StuTransferInfo = data
  203. };
  204. return Success(jsonData);
  205. }
  206. #endregion
  207. #region 提交数据
  208. /// <summary>
  209. /// 删除实体数据
  210. /// </summary>
  211. /// <param name="keyValue">主键</param>
  212. /// <returns></returns>
  213. [HttpPost]
  214. [AjaxOnly]
  215. public ActionResult DeleteForm(string keyValue)
  216. {
  217. stuTransferInfoIBLL.DeleteEntity(keyValue);
  218. return Success("删除成功!");
  219. }
  220. /// <summary>
  221. /// 转入
  222. /// </summary>
  223. /// <param name="keyValue">主键</param>
  224. /// <param name="entity">实体</param>
  225. /// <returns></returns>
  226. [HttpPost]
  227. [ValidateAntiForgeryToken]
  228. [AjaxOnly]
  229. public ActionResult SaveFormOfIn(string keyValue, string strEntity)
  230. {
  231. StuTransferInfoEntity entity = strEntity.ToObject<StuTransferInfoEntity>();
  232. entity.AnomalousType = "04";
  233. entity.ChangeReason = "转入";
  234. entity.StuId= Guid.NewGuid().ToString();
  235. stuTransferInfoIBLL.SaveEntity(keyValue, entity);
  236. return Success("保存成功!");
  237. }
  238. /// <summary>
  239. /// 转专业,转班,留级/休学/退学/转出
  240. /// </summary>
  241. /// <param name="keyValue">主键</param>
  242. /// <param name="entity">实体</param>
  243. /// <returns></returns>
  244. [HttpPost]
  245. [ValidateAntiForgeryToken]
  246. [AjaxOnly]
  247. public ActionResult SaveForm(StuTransferInfoEntity entity, string strStuEntity)
  248. {
  249. List<StuInfoBasicEntity> strStuList = strStuEntity.ToObject<List<StuInfoBasicEntity>>();
  250. stuTransferInfoIBLL.SaveEntity(entity, strStuList);
  251. return Success("操作成功!");
  252. }
  253. /// <summary>
  254. /// 复学
  255. /// </summary>
  256. /// <param name="keyValue"></param>
  257. /// <param name="entity"></param>
  258. /// <param name="strStuEntity"></param>
  259. /// <returns></returns>
  260. [HttpPost]
  261. [ValidateAntiForgeryToken]
  262. [AjaxOnly]
  263. public ActionResult SaveAgainEntity(StuTransferInfoEntity entity, string strStuTranEntity)
  264. {
  265. List<StuTransferInfoEntity> strStuTranList = strStuTranEntity.ToObject<List<StuTransferInfoEntity>>();
  266. stuTransferInfoIBLL.SaveAgainEntity(entity, strStuTranList);
  267. return Success("操作成功!");
  268. }
  269. /// <summary>
  270. /// 审核
  271. /// </summary>
  272. /// <param name="keyValue"></param>
  273. /// <returns></returns>
  274. [HttpPost]
  275. [AjaxOnly]
  276. public ActionResult CheckForm(string keyValue)
  277. {
  278. stuTransferInfoIBLL.CheckEntity(keyValue);
  279. return Success("审核成功!");
  280. }
  281. #endregion
  282. }
  283. }