using System;
|
using System.Collections;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.Mvc;
|
using System.Web.Script.Serialization;
|
using BLL.DAL;
|
using Common;
|
using Json;
|
using Lib;
|
using Model;
|
|
namespace wms.Areas.Wcs.Controllers
|
{
|
public class OperationRecordController : MasterPage
|
{
|
// GET: Wcs/OperationRecord
|
public ActionResult Index()
|
{
|
ViewBag.UserList = LocalHelper.GetUserHtml();
|
ViewBag.Title = "操作记录";
|
return View();
|
}
|
}
|
|
public class OperationRecordAjaxController : AjaxPage
|
{
|
public ActionResult GetOperationRecordList()
|
{
|
var dd = Request["ajaxdata"];
|
var models = new JavaScriptSerializer().Deserialize<AjaxLogOperationList>(dd);
|
|
if (models != null)
|
{
|
DAL_OperationRecord provider = new DAL_OperationRecord();
|
PageInfo pageInfo = new PageInfo() { PageIndex = models.pageIndex, PageSize = models.pageSize };
|
List<WCSLogOperationList> entity = provider.GetList(models, ref pageInfo).ToList();
|
|
string json = JsonHelper.IListToJson(entity, "List");
|
string pjson = ConvertJson.Serializer(pageInfo);
|
|
ReturnJson.AddProperty("Result", new JsonObject(json));
|
ReturnJson.AddProperty("PageInfo", new JsonObject(pjson));
|
ReturnJson.AddProperty("Code", 1);
|
ReturnJson.AddProperty("Message", "响应成功");
|
|
return Content(this.ReturnJson.ToString());
|
}
|
return Content(null);
|
}
|
}
|
}
|