123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using Microsoft.AspNetCore.Mvc;
- using Newtonsoft.Json;
- using WMS.BZModels.Dto.SX.BillPboxruleDtos;
- using WMS.BZModels.Dto.SX.PalletizingDtos;
- using WMS.BZServices.SX;
- using WMS.Info;
- using WMS.Util;
- namespace WMS.BZWeb.Areas.SXManager.Controllers
- {
- [Area("SXManager")]
- public class PalletLayerMathController : MvcControllerBase
- {
- private readonly PalletlayermathService _PalletlayermathService;
- public PalletLayerMathController(PalletlayermathService palletlayermathService)
- {
- _PalletlayermathService = palletlayermathService;
- }
- #region 视图功能
- public IActionResult Index()
- {
- ViewBag.SXWMSWebAPIUrl = ConfigHelper.GetConfig().SXWMSWebAPIUrl;
- return View();
- }
- #endregion
- public ActionResult GetPageList(string pagination, string queryJson)
- {
- Pagination paginationobj = InitPagination(pagination);
- var query = new PalletlayermathQueryDto();
- if (!string.IsNullOrEmpty(queryJson))
- {
- query = JsonConvert.DeserializeObject<PalletlayermathQueryDto>(queryJson);
- }
- var lists = _PalletlayermathService.GetPageList(paginationobj, query ?? new PalletlayermathQueryDto());
- var jsonData = new
- {
- rows = lists.Result,
- total = lists.TotalPage,
- page = lists.PageIndex,
- records = lists.TotalNum
- };
- return Success(jsonData);
- }
- }
- }
|