using Learun.Application.TwoDevelopment.SystemDemo;
using Learun.Util;
using System.Web.Mvc;
namespace Learun.Application.Web.Areas.LR_WorkFlowModule.Controllers
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.04.17
/// 描 述:系统表单-请假单
///
public class WfSystemDemoController : MvcControllerBase
{
#region 请假表单
// 请假表单后台方法
DemoleaveIBLL demoleaveIBLL = new DemoleaveBLL();
///
/// 系统请假单(视图)
///
///
public ActionResult DemoLeaveForm()
{
return View();
}
///
/// 系统请假单(列表视图)
///
///
public ActionResult DemoLeaveIndex()
{
return View();
}
///
/// 获取分页数据
///
/// 分页参数
///
[HttpGet]
[AjaxOnly]
public ActionResult GetPageList(string pagination)
{
Pagination paginationobj = pagination.ToObject();
var data = demoleaveIBLL.GetPageList(paginationobj);
var jsonData = new
{
rows = data,
total = paginationobj.total,
page = paginationobj.page,
records = paginationobj.records,
};
return JsonResult(jsonData);
}
///
/// 系统请假单(保存数据)
///
///
///
///
public ActionResult DemoLeaveSaveForm(string keyValue, DemoleaveEntity entity)
{
demoleaveIBLL.SaveEntity(keyValue, entity);
return Success("保存成功");
}
///
/// 系统请假单(获取数据)
///
/// 流程实例主键
///
public ActionResult DemoLeaveGetFormData(string processId)
{
var data = demoleaveIBLL.GetEntity(processId);
return JsonResult(data);
}
#endregion
}
}