Files
WMS/HHWMS.Web/Areas/Configs/Controllers/LocationMonitorController.cs
zhougf e90e0db019 添加库位监控
库存 库位 添加zone权限管控
2025-05-13 17:26:39 +08:00

40 lines
1.1 KiB
C#

using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Mvc;
namespace HHWMS.Web.Controllers
{
[Area("configs")]
[ActionDescription("库位监控")]
public partial class LocationMonitorController : BaseController
{
[ActionDescription("二维监控")]
public IActionResult Index()
{
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
return PartialView(vm);
}
[HttpGet]
public IActionResult GetAreas()
{
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
return Json(vm.GetAreas());
}
[HttpGet]
public IActionResult GetRows([FromQuery]int area)
{
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
return Json(vm.GetRows(area));
}
[HttpGet]
public IActionResult GetLocationsByAreaAndRow([FromQuery]int area, short row)
{
var vm = Wtm.CreateVM<LocationMonitor2DVM>();
return Json(vm.GetLocationsByAreaAndRow(area, row));
}
}
}