using Learun.Util;
using System.Data;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Web.Mvc;
using Learun.Application.TwoDevelopment.LR_CodeDemo;
using System.Collections.Generic;
using Learun.Application.Base.SystemModule;
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
///
/// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
/// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
/// 创 建:超级管理员
/// 日 期:2023-02-23 10:34
/// 描 述:一卡通流水
///
public class YKTStateMentController : MvcControllerBase
{
private YKTStateMentIBLL yktStateMentIbll = new YKTStateMentBLL();
#region 视图功能
///
/// 主页面
///
///
[HttpGet]
public ActionResult Index()
{
return View();
}
[HttpGet]
public ActionResult GenerateNearByYear()
{
return Success(Learun.Util.WebHelper.GenerateNearByYear());
}
[HttpGet]
public ActionResult ManageIndexTeacher()
{
return View();
}
[HttpGet]
public ActionResult IndexForStudent()
{
var userinfo = LoginUserInfo.Get();
ViewBag.StuNo = userinfo.account;
return View();
}
[HttpGet]
public ActionResult IndexForTeacher()
{
var userinfo = LoginUserInfo.Get();
ViewBag.EmpNo = userinfo.account;
return View();
}
[HttpGet]
public ActionResult AnalysisByMonthForStudent()
{
return View();
}
#endregion
#region 获取数据
///
/// 获取页面显示列表数据
///
/// 分页参数
/// 查询参数
///
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject();
var data = yktStateMentIbll.GetPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
[HttpGet]
[AjaxOnly]
public ActionResult GetAnalysisByMonthForStudentPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject();
var data = yktStateMentIbll.GetAnalysisByMonthForStudentPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
[HttpGet]
[AjaxOnly]
public ActionResult GetTeacherPageList(string pagination, string queryJson)
{
Pagination paginationobj = pagination.ToObject();
var data = yktStateMentIbll.GetTeacherPageList(paginationobj, queryJson);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records
};
return Success(jsonData);
}
#endregion
}
}