You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using NFine.Application.WMS; using NFine.Code; using System.Data; using System.Web.Mvc;
namespace NFine.Web.Areas.WMS.Controllers { public class UerListController : ControllerBase { UserListApp App = new UserListApp(); //
// GET: /SRM/UerList/
public ActionResult UserList() { return View(); } public ActionResult GetUserList(string queryJson, Pagination pagination) { DataTable ListData = App.GetUserList(queryJson, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } public ActionResult GetUserListDetails(string queryJson, Pagination pagination) { DataTable ListData = App.GetUserListDetails(queryJson, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } [HttpPost] public void ExportAll(string UserCode, string UserName) { DataTable dt = App.GetASNListExport(UserCode, UserName); AsposeCell.Export(dt); } } }
|