src/KopSoftWms/Controllers/ReservoirareaController.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using IServices;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using YL.Core.Entity;
using YL.Core.Entity.Fluent.Validation;
using YL.NetCore.Attributes;
using YL.NetCore.NetCoreApp;
using YL.Utils.Extensions;
using YL.Utils.Pub;
using YL.Utils.Table;
namespace KopSoftWms.Controllers
{
public class ReservoirareaController : BaseController
{
private readonly IWms_reservoirareaServices _reservoirareaServices;
private readonly IWms_storagerackServices _storagerackServices;
public ReservoirareaController(IWms_storagerackServices storagerackServices,
IWms_reservoirareaServices reservoirareaServices)
{
_storagerackServices = storagerackServices;
_reservoirareaServices = reservoirareaServices;
}
[HttpGet]
[CheckMenu]
public IActionResult Index()
{
return View();
}
[HttpPost]
[OperationLog(LogType.select)]
public ContentResult List([FromForm] Bootstrap.BootstrapParams bootstrap)
{
var sd = _reservoirareaServices.PageList(bootstrap);
return Content(sd);
}
[HttpGet]
public IActionResult Add(string id)
{
var model = new Wms_reservoirarea();
if (id.IsEmpty())
{
return View(model);
}
else
{
model = _reservoirareaServices.QueryableToEntity(c => c.ReservoirAreaId == SqlFunc.ToInt64(id));
return View(model);
}
}
[HttpPost]
[FilterXss]
[OperationLog(LogType.addOrUpdate)]
后面还有 48 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。