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.

44 lines
1.3 KiB

4 days ago
  1. using NFine.Application.SRM;
  2. using NFine.Code;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Mvc;
  9. namespace NFine.Web.Areas.SRM.Controllers
  10. {
  11. public class RCVListController : Controller
  12. {
  13. RCVListApp App = new RCVListApp();
  14. // GET: SRM/RCVList
  15. public ActionResult Index()
  16. {
  17. return View();
  18. }
  19. [HttpGet]
  20. [HandlerAjaxOnly]
  21. public ActionResult GetRcvLineSubGridJson(Pagination pagination, string queryJson)
  22. {
  23. DataTable ListData = App.GetRcvLineSubGridJson(queryJson, ref pagination);
  24. var JsonData = new
  25. {
  26. total = pagination.total,
  27. page = pagination.page,
  28. records = pagination.records,
  29. rows = ListData,
  30. };
  31. return Content(JsonData.ToJson());
  32. }
  33. [HttpPost]
  34. public void ExportRcvLineAll(string cPOID, string cCode, string PurOper, string Code, string BeginDate, string EndDate, string IsReceive, string VenName)
  35. {
  36. DataTable dt = App.ExportRcvLineAll(cPOID, cCode, PurOper, Code, BeginDate, EndDate, IsReceive, VenName);
  37. AsposeCell.Export(dt);
  38. }
  39. }
  40. }