纽威
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.

61 lines
1.6 KiB

3 years ago
  1. using NFine.Application.WMS;
  2. using NFine.Code;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.Mvc;
  8. namespace NFine.Web.Areas.WMS.Controllers
  9. {
  10. public class RevokeBusinessController : ControllerBase
  11. {
  12. // GET: WMS/RevokeBusiness
  13. RevokeBusinessApp App = new RevokeBusinessApp();
  14. public ActionResult Revocation()
  15. {
  16. return View();
  17. }
  18. [HttpPost]
  19. [HandlerAjaxOnly]
  20. [ValidateAntiForgeryToken]
  21. public ActionResult Revocations(string keyValue)
  22. {
  23. string msg = "";
  24. var Parameter = keyValue.ToJObject();
  25. if (Parameter["BusinessCode"].ToString() =="1"|| Parameter["BusinessCode"].ToString() == "2")
  26. {
  27. msg = App.RevocationPurchase(keyValue);
  28. }
  29. else if (Parameter["BusinessCode"].ToString() == "13"|| Parameter["BusinessCode"].ToString() == "14"|| Parameter["BusinessCode"].ToString() == "15")
  30. {
  31. msg = App.RevocationPicking(keyValue);
  32. }
  33. else if (Parameter["BusinessCode"].ToString() == "17"|| Parameter["BusinessCode"].ToString() == "18")
  34. {
  35. msg = App.RevocationFinished(keyValue);
  36. }
  37. else
  38. {
  39. msg = App.RevocationMarket(keyValue);
  40. }
  41. if (string.IsNullOrEmpty(msg))
  42. {
  43. return Success("撤销成功!");
  44. }
  45. else
  46. {
  47. return Error("" + msg + "");
  48. }
  49. }
  50. }
  51. }