纽威
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.

90 lines
2.0 KiB

3 years 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 DeciliterController : ControllerBase
  18. {
  19. DeciliterApp App = new DeciliterApp();
  20. // GET: WMS/Deciliter
  21. public ActionResult ICSDeciliter()
  22. {
  23. return View();
  24. }
  25. public ActionResult LotNoSplit()
  26. {
  27. return View();
  28. }
  29. public ActionResult LotNoCombine()
  30. {
  31. return View();
  32. }
  33. [HttpGet]
  34. [HandlerAjaxOnly]
  35. public ActionResult GetNewLotNo(string LotNO)
  36. {
  37. string ListData = App.GetNewLotNo(LotNO);
  38. var data = new
  39. {
  40. rows = ListData,
  41. };
  42. return Content(data.ToJson());
  43. }
  44. [HttpPost]
  45. [HandlerAjaxOnly]
  46. public ActionResult Split(string Parameter)
  47. {
  48. string msg = App.Split(Parameter);
  49. if (!string.IsNullOrEmpty(msg))
  50. {
  51. return Error(msg);
  52. }
  53. else
  54. {
  55. return Success("添加成功!");
  56. }
  57. }
  58. //根据ID获取条码
  59. public ActionResult GetLotNoByID(string ID)
  60. {
  61. DataTable dt = App.GetLotNoByID(ID);
  62. return Content(dt.ToJson());
  63. }
  64. //合批
  65. public ActionResult Combine(string LotNo,string ID)
  66. {
  67. string msg = App.Combine(LotNo,ID);
  68. if (string.IsNullOrEmpty(msg))
  69. {
  70. return Success("操作成功!");
  71. }
  72. else
  73. {
  74. return Error("" + msg + "");
  75. }
  76. }
  77. }
  78. }