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