using NFine.Application.OMAY; 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.OMAY.Controllers { public class OMAYMoOutboundController : ControllerBase { OMAYMoOutboundApp App = new OMAYMoOutboundApp(); // GET: OMAY/OMAYMoOutbound public ActionResult OMAYMoOutbound() { return View(); } public ActionResult SeachMoInfo() { return View(); } [HttpGet] public ActionResult GetMoInfo(string Code, Pagination pagination) { DataTable ListData = App.GetMoInfo( Code, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } [HttpGet] [HandlerAjaxOnly] public ActionResult GetMosByCode(Pagination pagination, string queryJson) { DataTable ListData = App.GetMosByCode(queryJson, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } [HttpGet] [HandlerAjaxOnly] public ActionResult GetMoPicksByCode(Pagination pagination, string queryJson) { DataTable ListData = App.GetMoPicksByCode(queryJson, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } public ActionResult GetLotNotInfo(string keyValue) { var ListData = App.GetLotNotInfo(keyValue); return Content(ListData.ToJson()); } [HttpPost] [HandlerAjaxOnly] public ActionResult OutboundShipments(string ICSASN) { string msg = App.OutboundShipments(ICSASN); if (!string.IsNullOrEmpty(msg)) { return Error(msg); } else { return Success("添加成功!"); } } } }