src/KopSoftWms/Controllers/InventoryController.cs
(完整代码) 1KBusing IServices;
using Microsoft.AspNetCore.Mvc;
using YL.Core.Dto;
using YL.NetCore.Attributes;
using YL.NetCore.NetCoreApp;
using YL.Utils.Pub;
namespace KopSoftWms.Controllers
{
public class InventoryController : BaseController
{
private readonly IWms_inventoryServices _inventoryServices;
private readonly IWms_storagerackServices _storagerackServices;
public InventoryController(
IWms_storagerackServices storagerackServices,
IWms_inventoryServices inventoryServices
)
{
_storagerackServices = storagerackServices;
_inventoryServices = inventoryServices;
}
[HttpGet]
[CheckMenu]
public IActionResult Index()
{
ViewBag.StorageRack = _storagerackServices.QueryableToList(c => c.IsDel == 1);
return View();
}
[HttpPost]
[OperationLog(LogType.select)]
public ContentResult List([FromForm] PubParams.InventoryBootstrapParams bootstrap)
{
var sd = _inventoryServices.PageList(bootstrap);
return Content(sd);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。