|
- using Learun.Application.TwoDevelopment.EducationalAdministration;
- using Learun.Util;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Web.Mvc;
-
- namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
- {
- /// <summary>
- /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
- /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
- /// 创 建:超级管理员
- /// 日 期:2023-01-04 15:03
- /// 描 述:学籍异动列表
- /// </summary>
- public class StuTransferInfoController : MvcControllerBase
- {
- private StuTransferInfoIBLL stuTransferInfoIBLL = new StuTransferInfoBLL();
-
- #region 视图功能
-
- /// <summary>
- /// 主页面
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult Index()
- {
- return View();
- }
- [HttpGet]
- public ActionResult Form()
- {
- return View();
- }
- [HttpGet]
- public ActionResult FormView()
- {
- return View();
- }
- /// <summary>
- /// 表单页
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult MajorIndex()
- {
- return View();
- }
- /// <summary>
- /// 休学
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult RestAgainIndex()
- {
- return View();
- }
-
- /// <summary>
- /// 复学
- /// </summary>
- /// <returns></returns>
- public ActionResult ReturnIndex()
- {
- return View();
- }
-
- /// <summary>
- /// 退学页
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult DropOutIndex()
- {
- return View();
- }
- /// <summary>
- /// 转入转出页
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult IntoIndex()
- {
- return View();
- }
- /// <summary>
- /// 转入转出页
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult RolloffIndex()
- {
- return View();
- }
- /// <summary>
- /// 审核页
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult CheckIndex()
- {
- return View();
- }
- [HttpGet]
- public ActionResult ReinstateIndex()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-基本信息
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryBasicInfo()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-成绩查看
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryScoreIndex()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-奖助学金查看
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryScholarshipIndex()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-心理健康档案
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryAPStuHealthIndex()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-兵役信息
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryMSRMilitaryIndex()
- {
- return View();
- }
- /// <summary>
- /// 综合查询-奖惩信息
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult QueryStuEncourgementIndex()
- {
- return View();
- }
-
- #endregion
-
- #region 获取数据
-
- /// <summary>
- /// 获取列表数据
- /// </summary>
- /// <param name="queryJson">查询参数</param>
- /// <returns></returns>
- [HttpGet]
- [AjaxOnly]
- public ActionResult GetList(string queryJson)
- {
- var data = stuTransferInfoIBLL.GetList(queryJson);
- return Success(data);
- }
- /// <summary>
- /// 获取列表分页数据
- /// </summary>
- /// <param name="pagination">分页参数</param>
- /// <param name="queryJson">查询参数</param>
- /// <returns></returns>
- [HttpGet]
- [AjaxOnly]
- public ActionResult GetPageList(string pagination, string queryJson)
- {
- Pagination paginationobj = pagination.ToObject<Pagination>();
- var data = stuTransferInfoIBLL.GetPageList(paginationobj, queryJson);
- var jsonData = new
- {
- rows = data,
- total = paginationobj.total,
- page = paginationobj.page,
- records = paginationobj.records
- };
- return Success(jsonData);
- }
- /// <summary>
- /// 获取表单数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- [HttpGet]
- [AjaxOnly]
- public ActionResult GetFormData(string keyValue)
- {
- var data = stuTransferInfoIBLL.GetEntity(keyValue);
- var jsonData = new
- {
- StuTransferInfo = data
- };
- return Success(jsonData);
- }
- #endregion
-
- #region 提交数据
-
- /// <summary>
- /// 删除实体数据
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <returns></returns>
- [HttpPost]
- [AjaxOnly]
- public ActionResult DeleteForm(string keyValue)
- {
- stuTransferInfoIBLL.DeleteEntity(keyValue);
- return Success("删除成功!");
- }
- /// <summary>
- /// 转入
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体</param>
- /// <returns></returns>
- [HttpPost]
- [ValidateAntiForgeryToken]
- [AjaxOnly]
- public ActionResult SaveFormOfIn(string keyValue, string strEntity)
- {
- StuTransferInfoEntity entity = strEntity.ToObject<StuTransferInfoEntity>();
- entity.AnomalousType = "04";
- entity.ChangeReason = "转入";
- entity.StuId = Guid.NewGuid().ToString();
- stuTransferInfoIBLL.SaveEntity(keyValue, entity);
- return Success("保存成功!");
- }
- /// <summary>
- /// 转专业,转班,留级/休学/退学/转出
- /// </summary>
- /// <param name="keyValue">主键</param>
- /// <param name="entity">实体</param>
- /// <returns></returns>
- [HttpPost]
- [ValidateAntiForgeryToken]
- [AjaxOnly]
- public ActionResult SaveForm(StuTransferInfoEntity entity, string strStuEntity)
- {
- List<StuInfoBasicEntity> strStuList = strStuEntity.ToObject<List<StuInfoBasicEntity>>();
- stuTransferInfoIBLL.SaveEntity(entity, strStuList);
- return Success("操作成功!");
- }
- /// <summary>
- /// 复学
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="entity"></param>
- /// <param name="strStuEntity"></param>
- /// <returns></returns>
- [HttpPost]
- [ValidateAntiForgeryToken]
- [AjaxOnly]
- public ActionResult SaveAgainEntity(StuTransferInfoEntity entity, string strStuTranEntity)
- {
- List<StuTransferInfoEntity> strStuTranList = strStuTranEntity.ToObject<List<StuTransferInfoEntity>>();
- stuTransferInfoIBLL.SaveAgainEntity(entity, strStuTranList);
- return Success("操作成功!");
- }
-
- /// <summary>
- /// 审核
- /// </summary>
- /// <param name="keyValue"></param>
- /// <returns></returns>
- [HttpPost]
- [AjaxOnly]
- public ActionResult CheckForm(string keyValue)
- {
- stuTransferInfoIBLL.CheckEntity(keyValue);
- return Success("审核成功!");
- }
-
- #endregion
-
- }
- }
|