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.

55 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. using NFine.Application.DHAY;
  16. namespace NFine.Web.Areas.DHAY.Controllers
  17. {
  18. public class ICSWareHouseLotInfoLogController : ControllerBase
  19. {
  20. // GET: WMS/PickMaterial
  21. ICSWareHouseLotInfoLogApp App = new ICSWareHouseLotInfoLogApp();
  22. public ActionResult Index()
  23. {
  24. return View();
  25. }
  26. /// <summary>
  27. /// 查询库存信息
  28. /// </summary>
  29. /// <param name="pagination"></param>
  30. /// <param name="queryJson"></param>
  31. /// <returns></returns>
  32. public ActionResult GetList(Pagination pagination, string queryJson)
  33. {
  34. DataTable ListData = App.GetList(queryJson,ref pagination);
  35. var JsonData = new
  36. {
  37. total = pagination.total,
  38. page = pagination.page,
  39. records = pagination.records,
  40. rows = ListData,
  41. };
  42. return Content(JsonData.ToJson());
  43. }
  44. [HttpPost]
  45. public void StatementExportAll(string StartDate,string EndDate,string InvCode,string WHCode,string InvName,string InvStd)
  46. {
  47. //ID = ID.Substring(0, ID.Length - 2);
  48. DataTable dt = App.StatementExportAll( StartDate, EndDate, InvCode, WHCode, InvName, InvStd);
  49. AsposeCell.Export(dt);
  50. }
  51. }
  52. }