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.7 KiB

1 year 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. using System.Data;
  8. using System.IO;
  9. using NFine.Code;
  10. using System.Data.SqlClient;
  11. using NFine.Data.Extensions;
  12. using System.Data.OleDb;
  13. using System.Configuration;
  14. using ICS.Application.Entity;
  15. namespace NFine.Web.Areas.WMS.Controllers
  16. {
  17. public class PrintLotNoOverallController : ControllerBase
  18. {
  19. PrintLotNoOverall App = new PrintLotNoOverall();
  20. // GET: WMS/PrintLotNoOverall
  21. public ActionResult CreateQtyinput()
  22. {
  23. return View();
  24. }
  25. public ActionResult ICSPrintLotNoOverall()
  26. {
  27. return View();
  28. }
  29. [HttpGet]
  30. [HandlerAjaxOnly]
  31. public ActionResult GetGridJson(Pagination pagination, string queryJson)
  32. {
  33. DataTable ListData = App.GetGridJson(queryJson, ref pagination);
  34. var JsonData = new
  35. {
  36. total = pagination.total,
  37. page = pagination.page,
  38. records = pagination.records,
  39. rows = ListData,
  40. };
  41. return Content(JsonData.ToJson());
  42. }
  43. /// <summary>
  44. /// 删除条码
  45. /// </summary>
  46. /// <returns></returns>
  47. [HttpPost]
  48. [HandlerAjaxOnly]
  49. [ValidateAntiForgeryToken]
  50. public ActionResult DeleteICSLotNo(string keyValue)
  51. {
  52. string msg = App.DeleteICSLotNo(keyValue);
  53. if (string.IsNullOrEmpty(msg))
  54. {
  55. return Success("删除成功!");
  56. }
  57. else
  58. {
  59. return Error(msg);
  60. }
  61. }
  62. }
  63. }