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.

64 lines
1.4 KiB

  1. using NFine.Application.WMS;
  2. using System.Data;
  3. using System.Web.Mvc;
  4. using NFine.Code;
  5. using NFine.Data.Extensions;
  6. namespace NFine.Web.Areas.WMS.Controllers
  7. {
  8. public class ZHYSalesDeliveryController : Controller
  9. {
  10. // GET: WMS/HYSalesDelivery
  11. ZHYSalesDeliveryApp App = new ZHYSalesDeliveryApp();
  12. public ActionResult HYSalesDelivery()
  13. {
  14. return View();
  15. }
  16. public ActionResult GetGridJson(Pagination pagination, string queryJson)
  17. {
  18. DataTable ListData = new DataTable();
  19. ListData = App.GetGridJson(queryJson, ref pagination);
  20. var JsonData = new
  21. {
  22. total = pagination.total,
  23. page = pagination.page,
  24. records = pagination.records,
  25. rows = ListData,
  26. };
  27. return Content(JsonData.ToJson());
  28. }
  29. public ActionResult GetSalesDeliveryTemp(Pagination pagination, string queryJson, string ID)
  30. {
  31. DataTable ListData = new DataTable();
  32. ListData = App.GetSalesDeliveryTemp(queryJson, ref pagination, ID);
  33. var JsonData = new
  34. {
  35. total = pagination.total,
  36. page = pagination.page,
  37. records = pagination.records,
  38. rows = ListData,
  39. };
  40. return Content(JsonData.ToJson());
  41. }
  42. }
  43. }