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 YLICSMoPickController : ControllerBase { // GET: WMS/PickMaterial YLICSMoPickApp App = new YLICSMoPickApp(); public ActionResult YLIcsMoPick() { return View(); } //[HttpGet] //[HandlerAjaxOnly] public ActionResult GetGridJson(Pagination pagination, string queryJson, string Type) { DataTable ListData = new DataTable(); if (Type == "1")//工单1 { ListData = App.GetGridJson(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 GetICSMOPickMergeTemp(Pagination pagination, string ID, string Type, string flag) { DataTable ListData = new DataTable(); if (flag == "1") { ListData = App.GetICSMOPickMergeTemp(ID, Type); } var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } [HttpPost] public ActionResult CheckQty(string objArr) { string i = App.CheckQty(objArr); var JsonData = new { count = i }; return Content(JsonData.ToJson()); } public ActionResult GetPickingListType() { string sql = @"select b.F_ItemCode as Code ,b.F_ItemName as Name from Sys_SRM_Items a left join Sys_SRM_ItemsDetail b on a.F_Id=b.F_ItemId where a.F_EnCode='PL00001' order by cast(b.F_SortCode as int) asc"; DataTable ListData = SqlHelper.GetDataTableBySql(sql); return Content(ListData.ToJson()); } [HttpPost] public ActionResult SeachPickingListType(string Type) { object Falg = App.SeachPickingListType(Type); var JsonData = new { count = Falg }; return Content(JsonData.ToJson()); } } }