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.

78 lines
2.3 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 ICSOtherInOutController : ControllerBase
  19. {
  20. // GET: WMS/PickMaterial
  21. ICSOtherInOutApp App = new ICSOtherInOutApp();
  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. /// <summary>
  45. /// 查询其他入库出库子表信息
  46. /// </summary>
  47. /// <param name="pagination"></param>
  48. /// <param name="queryJson"></param>
  49. /// <returns></returns>
  50. public ActionResult GetDetails(Pagination pagination, string queryJson,string ID)
  51. {
  52. DataTable ListData = App.GetDetails(queryJson, ref pagination,ID);
  53. var JsonData = new
  54. {
  55. total = pagination.total,
  56. page = pagination.page,
  57. records = pagination.records,
  58. rows = ListData,
  59. };
  60. return Content(JsonData.ToJson());
  61. }
  62. [HttpPost]
  63. public void StatementExportAll(string StartDate,string EndDate,string InvCode,string WHCode,string LocationCode,string BatchCode)
  64. {
  65. //ID = ID.Substring(0, ID.Length - 2);
  66. DataTable dt = App.StatementExportAll( StartDate, EndDate, InvCode, WHCode,LocationCode,BatchCode);
  67. AsposeCell.Export(dt);
  68. }
  69. }
  70. }