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.

115 lines
2.8 KiB

3 weeks ago
  1. using NFine.Application.WMS;
  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.WMS.Controllers
  10. {
  11. public class ICSVendorController : ControllerBase
  12. {
  13. // GET: WMS/ICSVendor
  14. ICSVendorApp App = new ICSVendorApp();
  15. // GET: WMS/ProductionIssue
  16. public ActionResult ICSVendorApplyNeg()
  17. {
  18. return View();
  19. }
  20. public ActionResult ICSVendorNegAdd()
  21. {
  22. return View();
  23. }
  24. public ActionResult SeachICSVendor()
  25. {
  26. return View();
  27. }
  28. public ActionResult SeachInventory()
  29. {
  30. return View();
  31. }
  32. public ActionResult ICSVendorNegUpdate()
  33. {
  34. return View();
  35. }
  36. public ActionResult GetICSVendorReturnTemporary(string VenCode, Pagination pagination)
  37. {
  38. DataTable table = App.GetICSVendorReturnTemporary(VenCode);
  39. var JsonData = new
  40. {
  41. total = pagination.total,
  42. page = pagination.page,
  43. records = pagination.records,
  44. rows = table
  45. };
  46. return Content(JsonData.ToJson());
  47. }
  48. [HttpPost]
  49. [HandlerAjaxOnly]
  50. [ValidateAntiForgeryToken]
  51. public ActionResult DeleteICSVendorApplyNeg(string keyValue)
  52. {
  53. string msg = App.DeleteVendorApplyNeg(keyValue);
  54. if (string.IsNullOrEmpty(msg))
  55. {
  56. return Success("删除成功!");
  57. }
  58. else
  59. {
  60. return Error(msg);
  61. }
  62. }
  63. public void ClearTemp()
  64. {
  65. App.ClearTemp();
  66. }
  67. /// <summary>
  68. /// 新增
  69. /// </summary>
  70. /// <param name="ICSASN"></param>
  71. /// <returns></returns>
  72. [HttpPost]
  73. [HandlerAjaxOnly]
  74. public ActionResult SaveICSVendorApplyNeg(string ICSASN)
  75. {
  76. string msg = App.SaveICSVendorApplyNeg(ICSASN);
  77. if (!string.IsNullOrEmpty(msg))
  78. {
  79. return Error(msg);
  80. }
  81. else
  82. {
  83. return Success("添加成功!");
  84. }
  85. }
  86. /// <summary>
  87. /// 修改
  88. /// </summary>
  89. /// <param name="ICSASN"></param>
  90. /// <returns></returns>
  91. [HttpPost]
  92. [HandlerAjaxOnly]
  93. public ActionResult UpdateICSVendorApplyNeg(string ICSASN)
  94. {
  95. string msg = App.UpdateICSVendorApplyNeg(ICSASN);
  96. if (!string.IsNullOrEmpty(msg))
  97. {
  98. return Error(msg);
  99. }
  100. else
  101. {
  102. return Success("修改成功!");
  103. }
  104. }
  105. }
  106. }