using NFine.Application.WMS; using System.Web.Mvc; namespace NFine.Web.Areas.WMS.Controllers { public class RevokeBusinessController : ControllerBase { // GET: WMS/RevokeBusiness RevokeBusinessApp App = new RevokeBusinessApp(); public ActionResult Revocation() { return View(); } [HttpPost] [HandlerAjaxOnly] [ValidateAntiForgeryToken] public ActionResult Revocations(string keyValue,string BusinessCode) { string msg = ""; //var Parameter = keyValue.ToJObject(); //采购入库-采购订单 if (BusinessCode == "1" ) { msg = App.RevocationPurchase(keyValue); } //采购入库-采购到货单 else if (BusinessCode == "2") { msg = App.RevocationDeliveryNotice(keyValue); } //生产发料-生产订单备料表 else if (BusinessCode == "13") { msg = App.RevocationPicking(keyValue); } //生产发料-领料申请单 else if (BusinessCode == "14") { msg = App.RevocationMOApply(keyValue); } //生产发料-材料出库单 else if (BusinessCode == "15") { msg = App.RevocationMOIssue(keyValue); } //产成品入库-生产订单 else if (BusinessCode == "17") { msg = App.RevocationFinished(keyValue); } //产成品入库-产成品入库单 else if (BusinessCode == "18") { msg = App.RevocationManufactureReceive(keyValue); } //一步调拨 else if (BusinessCode == "21") { msg = App.RevocationICSTransfer(keyValue); } //销售发货-销售发货单 else if(BusinessCode == "19") { msg = App.RevocationMarket(keyValue); } //生产退料-生产退料单 else if (BusinessCode == "16-1") { msg = App.RevocationProduceStripping(keyValue); } //生产退料-生产退料单-领料申请单 else if (BusinessCode == "16-2") { msg = App.RevocationProduceStrippingLL(keyValue); } //生产退料-生产退料单-材料出库单 else if (BusinessCode == "16-3") { msg = App.RevocationProduceStrippingCLCK(keyValue); } //其他出库(杂发) else if (BusinessCode == "24") { msg = App.RevocationOtheOutboundr(keyValue); } //其他入库(杂收) else if (BusinessCode == "25") { msg = App.RevocationOtheWarehousing(keyValue); } else { msg = "该类型单据暂不支持撤销,请联系管理员"; } if (string.IsNullOrEmpty(msg)) { return Success("撤销成功!"); } else { return Error("" + msg + ""); } } } }