using LeaRun.Application.Busines.FlowManage;
using LeaRun.Application.Code;
using LeaRun.Util;
using LeaRun.Util.WebControl;
using System.Web.Mvc;
namespace LeaRun.Application.Web.Areas.FlowManage.Controllers
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:陈彬彬
/// 日 期:2016.03.19 13:57
/// 描 述:已办流程
///
public class FlowAferProcessingController : MvcControllerBase
{
private WFRuntimeBLL wfProcessBll = new WFRuntimeBLL();
#region 视图功能
//
// GET: /FlowManage/FlowAferProcessing/
[HttpGet]
[HandlerAuthorize(PermissionMode.Enforce)]
public ActionResult Index()
{
return View();
}
///
/// 查看状态
///
///
[HttpGet]
public ActionResult ProcessLookForm()
{
return View();
}
#endregion
#region 提取数据
///
/// 获取已办的工作流程(分页)
///
/// 分页参数
/// 查询参数
/// 返回分页列表Json
[HttpGet]
public ActionResult GetPageListJson(Pagination pagination, string queryJson)
{
pagination.page++;
var data = wfProcessBll.GetToMeAfterPageList(pagination, queryJson);
var JsonData = new
{
rows = data,
total = pagination.total,
page = pagination.page,
records = pagination.records,
};
return Content(JsonData.ToJson());
}
#endregion
}
}