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 ICSOtherInController : ControllerBase { ICSOtherInApp App = new ICSOtherInApp(); public ActionResult ICSOtherInQuery() { return View(); } public ActionResult ICSOtherInEdit() { return View(); } public ActionResult SeachICSOtherIn() { return View(); } public ActionResult SeachMO() { return View(); } [HttpPost] [HandlerAjaxOnly] [ValidateAntiForgeryToken] public ActionResult DeleteOtherInApplyNeg(string keyValue) { string msg = App.DeleteOtherInApplyNeg(keyValue); if (string.IsNullOrEmpty(msg)) { return Success("删除成功!"); } else { return Error(msg); } } /// /// 详情 /// /// /// /// [HttpGet] [HandlerAjaxOnly] public ActionResult GetOtherInApplyNegDetail(string InCode, Pagination pagination) { DataTable ListData = App.GetOtherInApplyNegDetail(InCode, ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } public void ClearTemp() { App.ClearTemp(); } public ActionResult GetOOCode(string WorkPoint) { try { string Code = App.GetOOCode(WorkPoint); var JsonData = new { Code = Code, }; return Content(JsonData.ToJson()); } catch (Exception ex) { return Error(ex.Message); } } /// /// 汇总 /// /// /// [HttpGet] public ActionResult GetOtherInApplyNeg(Pagination pagination) { DataTable ListData = App.GetOtherInApplyNeg(ref pagination); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = ListData, }; return Content(JsonData.ToJson()); } /// /// 修改弹出框的数据来源 /// /// /// /// public ActionResult GetICSOtherInReturnTemporary(string InCode, Pagination pagination) { DataTable table = App.GetICSOtherInReturnTemporary(InCode); var JsonData = new { total = pagination.total, page = pagination.page, records = pagination.records, rows = table }; return Content(JsonData.ToJson()); } /// /// 新增和修改 /// /// /// [HttpPost] [HandlerAjaxOnly] public ActionResult SaveICSOtherInApplyNeg(string keyValue, string deleteIDs) { string msg = App.SaveICSOtherInApplyNeg(keyValue, deleteIDs); if (!string.IsNullOrEmpty(msg)) { return Error(msg); } else { return Success("保存成功!"); } } } }