纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

62 lines
1.6 KiB

using NFine.Application.WMS;
using NFine.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
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 msg = "";
var Parameter = keyValue.ToJObject();
if (Parameter["BusinessCode"].ToString() =="1"|| Parameter["BusinessCode"].ToString() == "2")
{
msg = App.RevocationPurchase(keyValue);
}
else if (Parameter["BusinessCode"].ToString() == "13"|| Parameter["BusinessCode"].ToString() == "14"|| Parameter["BusinessCode"].ToString() == "15")
{
msg = App.RevocationPicking(keyValue);
}
else if (Parameter["BusinessCode"].ToString() == "17"|| Parameter["BusinessCode"].ToString() == "18")
{
msg = App.RevocationFinished(keyValue);
}
else
{
msg = App.RevocationMarket(keyValue);
}
if (string.IsNullOrEmpty(msg))
{
return Success("撤销成功!");
}
else
{
return Error("" + msg + "");
}
}
}
}