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.
 
 
 
 
 
 

302 lines
8.3 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. [HttpGet]
  102. public ActionResult ReinstateIndex()
  103. {
  104. return View();
  105. }
  106. /// <summary>
  107. /// 综合查询-基本信息
  108. /// </summary>
  109. /// <returns></returns>
  110. [HttpGet]
  111. public ActionResult QueryBasicInfo()
  112. {
  113. return View();
  114. }
  115. /// <summary>
  116. /// 综合查询-成绩查看
  117. /// </summary>
  118. /// <returns></returns>
  119. [HttpGet]
  120. public ActionResult QueryScoreIndex()
  121. {
  122. return View();
  123. }
  124. /// <summary>
  125. /// 综合查询-奖助学金查看
  126. /// </summary>
  127. /// <returns></returns>
  128. [HttpGet]
  129. public ActionResult QueryScholarshipIndex()
  130. {
  131. return View();
  132. }
  133. /// <summary>
  134. /// 综合查询-心理健康档案
  135. /// </summary>
  136. /// <returns></returns>
  137. [HttpGet]
  138. public ActionResult QueryAPStuHealthIndex()
  139. {
  140. return View();
  141. }
  142. /// <summary>
  143. /// 综合查询-兵役信息
  144. /// </summary>
  145. /// <returns></returns>
  146. [HttpGet]
  147. public ActionResult QueryMSRMilitaryIndex()
  148. {
  149. return View();
  150. }
  151. /// <summary>
  152. /// 综合查询-奖惩信息
  153. /// </summary>
  154. /// <returns></returns>
  155. [HttpGet]
  156. public ActionResult QueryStuEncourgementIndex()
  157. {
  158. return View();
  159. }
  160. #endregion
  161. #region 获取数据
  162. /// <summary>
  163. /// 获取列表数据
  164. /// </summary>
  165. /// <param name="queryJson">查询参数</param>
  166. /// <returns></returns>
  167. [HttpGet]
  168. [AjaxOnly]
  169. public ActionResult GetList(string queryJson)
  170. {
  171. var data = stuTransferInfoIBLL.GetList(queryJson);
  172. return Success(data);
  173. }
  174. /// <summary>
  175. /// 获取列表分页数据
  176. /// </summary>
  177. /// <param name="pagination">分页参数</param>
  178. /// <param name="queryJson">查询参数</param>
  179. /// <returns></returns>
  180. [HttpGet]
  181. [AjaxOnly]
  182. public ActionResult GetPageList(string pagination, string queryJson)
  183. {
  184. Pagination paginationobj = pagination.ToObject<Pagination>();
  185. var data = stuTransferInfoIBLL.GetPageList(paginationobj, queryJson);
  186. var jsonData = new
  187. {
  188. rows = data,
  189. total = paginationobj.total,
  190. page = paginationobj.page,
  191. records = paginationobj.records
  192. };
  193. return Success(jsonData);
  194. }
  195. /// <summary>
  196. /// 获取表单数据
  197. /// </summary>
  198. /// <param name="keyValue">主键</param>
  199. /// <returns></returns>
  200. [HttpGet]
  201. [AjaxOnly]
  202. public ActionResult GetFormData(string keyValue)
  203. {
  204. var data = stuTransferInfoIBLL.GetEntity(keyValue);
  205. var jsonData = new
  206. {
  207. StuTransferInfo = data
  208. };
  209. return Success(jsonData);
  210. }
  211. #endregion
  212. #region 提交数据
  213. /// <summary>
  214. /// 删除实体数据
  215. /// </summary>
  216. /// <param name="keyValue">主键</param>
  217. /// <returns></returns>
  218. [HttpPost]
  219. [AjaxOnly]
  220. public ActionResult DeleteForm(string keyValue)
  221. {
  222. stuTransferInfoIBLL.DeleteEntity(keyValue);
  223. return Success("删除成功!");
  224. }
  225. /// <summary>
  226. /// 转入
  227. /// </summary>
  228. /// <param name="keyValue">主键</param>
  229. /// <param name="entity">实体</param>
  230. /// <returns></returns>
  231. [HttpPost]
  232. [ValidateAntiForgeryToken]
  233. [AjaxOnly]
  234. public ActionResult SaveFormOfIn(string keyValue, string strEntity)
  235. {
  236. StuTransferInfoEntity entity = strEntity.ToObject<StuTransferInfoEntity>();
  237. entity.AnomalousType = "04";
  238. entity.ChangeReason = "转入";
  239. entity.StuId = Guid.NewGuid().ToString();
  240. stuTransferInfoIBLL.SaveEntity(keyValue, entity);
  241. return Success("保存成功!");
  242. }
  243. /// <summary>
  244. /// 转专业,转班,留级/休学/退学/转出
  245. /// </summary>
  246. /// <param name="keyValue">主键</param>
  247. /// <param name="entity">实体</param>
  248. /// <returns></returns>
  249. [HttpPost]
  250. [ValidateAntiForgeryToken]
  251. [AjaxOnly]
  252. public ActionResult SaveForm(StuTransferInfoEntity entity, string strStuEntity)
  253. {
  254. List<StuInfoBasicEntity> strStuList = strStuEntity.ToObject<List<StuInfoBasicEntity>>();
  255. stuTransferInfoIBLL.SaveEntity(entity, strStuList);
  256. return Success("操作成功!");
  257. }
  258. /// <summary>
  259. /// 复学
  260. /// </summary>
  261. /// <param name="keyValue"></param>
  262. /// <param name="entity"></param>
  263. /// <param name="strStuEntity"></param>
  264. /// <returns></returns>
  265. [HttpPost]
  266. [ValidateAntiForgeryToken]
  267. [AjaxOnly]
  268. public ActionResult SaveAgainEntity(StuTransferInfoEntity entity, string strStuTranEntity)
  269. {
  270. List<StuTransferInfoEntity> strStuTranList = strStuTranEntity.ToObject<List<StuTransferInfoEntity>>();
  271. stuTransferInfoIBLL.SaveAgainEntity(entity, strStuTranList);
  272. return Success("操作成功!");
  273. }
  274. /// <summary>
  275. /// 审核
  276. /// </summary>
  277. /// <param name="keyValue"></param>
  278. /// <returns></returns>
  279. [HttpPost]
  280. [AjaxOnly]
  281. public ActionResult CheckForm(string keyValue)
  282. {
  283. stuTransferInfoIBLL.CheckEntity(keyValue);
  284. return Success("审核成功!");
  285. }
  286. #endregion
  287. }
  288. }