using NFine.Application.WMS; using NFine.Code; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.Mvc; namespace NFine.Web.Areas.WMS.Controllers { public class ExpressageController : ControllerBase { ExpressageApp App = new ExpressageApp(); public ActionResult ExpressageForm() { return View(); } public ActionResult ExpressageList() { return View(); } public ActionResult InsertExpressage(string Code, string Expressage, string ExpressageCode) { string msg = App.InsertExpressage(Code, Expressage, ExpressageCode); if (!string.IsNullOrEmpty(msg)) { return Error(msg); } else { return Success("添加成功!"); } } //获取快递公司列表 public ActionResult GetExpressageList() { DataTable dt = App.GetExpressageList(); return Content(dt.ToJson()); } [HttpGet] public ActionResult GetExpressage(Pagination pagination, string queryJson) { DataTable ListData = App.GetExpressage(ref pagination, queryJson); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } } }