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.

67 lines
1.8 KiB

3 weeks ago
  1. using NFine.Application.KBSWMS;
  2. using NFine.Code;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Mvc;
  9. namespace NFine.Web.Areas.KBSWMS.Controllers
  10. {
  11. public class ICSUpdateMoPickController : ControllerBase
  12. {
  13. ICSUpdateMoPickApp App = new ICSUpdateMoPickApp();
  14. // GET: KBSWMS/ICSUpdateMoPick
  15. public ActionResult Index()
  16. {
  17. return View();
  18. }
  19. [HttpGet]
  20. public ActionResult GetICSMOPickInfo(Pagination pagination, string queryJson)
  21. {
  22. DataTable ListData = App.GetICSMOPickInfo(queryJson, ref pagination);
  23. var JsonData = new
  24. {
  25. total = pagination.total,
  26. page = pagination.page,
  27. records = pagination.records,
  28. rows = ListData,
  29. };
  30. return Content(JsonData.ToJson());
  31. }
  32. [HttpPost]
  33. [HandlerAjaxOnly]
  34. [ValidateAntiForgeryToken]
  35. public ActionResult UpdateMopickInfoByCode(string Code)
  36. {
  37. string Msg = App.UpdateMopickInfoByCode(Code);
  38. if (string.IsNullOrEmpty(Msg))
  39. {
  40. return Success("操作成功!");
  41. }
  42. else
  43. {
  44. return Error("" + Msg + "");
  45. }
  46. }
  47. [HttpPost]
  48. [HandlerAjaxOnly]
  49. [ValidateAntiForgeryToken]
  50. public ActionResult UpdateMoInfoByCode(string Code)
  51. {
  52. string Msg = App.UpdateMoInfoByCode(Code);
  53. if (string.IsNullOrEmpty(Msg))
  54. {
  55. return Success("操作成功!");
  56. }
  57. else
  58. {
  59. return Error("" + Msg + "");
  60. }
  61. }
  62. }
  63. }