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.

54 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.DHAY.Controllers
  16. {
  17. public class ICSCheckListController : ControllerBase
  18. {
  19. // GET: WMS/PickMaterial
  20. ICSCheckListApp App = new ICSCheckListApp();
  21. public ActionResult Index()
  22. {
  23. return View();
  24. }
  25. /// <summary>
  26. /// 查询异动库存信息
  27. /// </summary>
  28. /// <param name="pagination"></param>
  29. /// <param name="queryJson"></param>
  30. /// <returns></returns>
  31. public ActionResult GetList(Pagination pagination, string queryJson)
  32. {
  33. DataTable ListData = App.GetList(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. [HttpPost]
  44. public void StatementExportAll(string StartDate,string EndDate,string InvCode,string WHCode,string LocationCode)
  45. {
  46. //ID = ID.Substring(0, ID.Length - 2);
  47. DataTable dt = App.StatementExportAll( StartDate, EndDate, InvCode, WHCode,LocationCode);
  48. AsposeCell.Export(dt);
  49. }
  50. }
  51. }