using NFine.Application.WMS; using System.Data; using System.Web.Mvc; using NFine.Code; using NFine.Data.Extensions; namespace NFine.Web.Areas.WMS.Controllers { public class ZHYSalesDeliveryController : Controller { // GET: WMS/HYSalesDelivery ZHYSalesDeliveryApp App = new ZHYSalesDeliveryApp(); public ActionResult HYSalesDelivery() { return View(); } public ActionResult GetGridJson(Pagination pagination, string queryJson) { DataTable ListData = new DataTable(); ListData = App.GetGridJson(queryJson, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } public ActionResult GetSalesDeliveryTemp(Pagination pagination, string queryJson, string ID) { DataTable ListData = new DataTable(); ListData = App.GetSalesDeliveryTemp(queryJson, ref pagination, ID); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } } }