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.

72 lines
1.6 KiB

3 weeks ago
  1. using NFine.Application.WMS;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Mvc;
  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 InspectionDeciliterController : ControllerBase
  18. {
  19. InspectionDeciliterApp App = new InspectionDeciliterApp();
  20. // GET: WMS/Deciliter
  21. public ActionResult ICSDeciliter()
  22. {
  23. return View();
  24. }
  25. public ActionResult LotNoSplit()
  26. {
  27. return View();
  28. }
  29. [HttpGet]
  30. [HandlerAjaxOnly]
  31. public ActionResult GetNewLotNo(string LotNO)
  32. {
  33. string ListData = App.GetNewLotNo(LotNO);
  34. var data = new
  35. {
  36. rows = ListData,
  37. };
  38. return Content(data.ToJson());
  39. }
  40. [HttpPost]
  41. [HandlerAjaxOnly]
  42. public ActionResult Split(string Parameter)
  43. {
  44. string msg = App.Split(Parameter);
  45. if (!string.IsNullOrEmpty(msg))
  46. {
  47. return Error(msg);
  48. }
  49. else
  50. {
  51. return Success("添加成功!");
  52. }
  53. }
  54. //根据ID获取条码
  55. //public ActionResult GetLotNoByID(string ID)
  56. //{
  57. // DataTable dt = App.GetLotNoByID(ID);
  58. // return Content(dt.ToJson());
  59. //}
  60. }
  61. }