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.

48 lines
1.1 KiB

3 weeks ago
  1. using NFine.Application.WMS;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Mvc;
  7. namespace NFine.Web.Areas.WMS.Controllers
  8. {
  9. public class DeleteArrivalDocController : ControllerBase
  10. {
  11. DeleteArrivalDocApp App = new DeleteArrivalDocApp();
  12. // GET: WMS/DeleteArrivalDoc
  13. public ActionResult DelArrivalDoc()
  14. {
  15. return View();
  16. }
  17. [HttpPost]
  18. [HandlerAjaxOnly]
  19. [ValidateAntiForgeryToken]
  20. public ActionResult DeArrivalDoc(string keyValue,string Type)
  21. {
  22. string msg = "";
  23. if (Type=="1")
  24. {
  25. msg = App.DeleteICSDeliveryNotice(keyValue);
  26. }
  27. else
  28. {
  29. msg = App.DeleteICSODeliveryNotice(keyValue);
  30. }
  31. if (string.IsNullOrEmpty(msg))
  32. {
  33. return Success("删除成功!");
  34. }
  35. else
  36. {
  37. return Error(msg);
  38. }
  39. }
  40. }
  41. }