using HslCommunication.WebSocket;
|
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using System.Collections.Generic;
|
using WIDESEA_Common.CommonEnum;
|
using WIDESEA_Common.LocationEnum;
|
using WIDESEA_Core;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_Core.Enums;
|
using WIDESEA_DTO.Basic;
|
using WIDESEA_IBasicService;
|
using WIDESEA_Model.Models;
|
|
namespace WIDESEA_WMSServer.Controllers.Basic
|
{
|
/// <summary>
|
/// 货位
|
/// </summary>
|
[Route("api/LocationInfo")]
|
[ApiController]
|
public class LocationInfoController : ApiBaseController<ILocationInfoService, Dt_LocationInfo>
|
{
|
public LocationInfoController(ILocationInfoService service) : base(service)
|
{
|
}
|
|
/// <summary>
|
/// 启用货位
|
/// </summary>
|
/// <param name="keys"></param>
|
/// <returns></returns>
|
[HttpPost, Route("LocationEnableStatus")]
|
public WebResponseContent LocationEnableStatus([FromBody] int[] keys)
|
{
|
return Service.LocationEnableStatus(keys); ;
|
}
|
|
/// <summary>
|
/// 禁用货位
|
/// </summary>
|
/// <param name="keys"></param>
|
/// <returns></returns>
|
[HttpPost, Route("LocationDisableStatus")]
|
public WebResponseContent LocationDisableStatus([FromBody] int[] keys)
|
{
|
return Service.LocationDisableStatus(keys); ;
|
}
|
/// <summary>
|
/// 一键启动巷道货位
|
/// </summary>
|
/// <param name="roadwayNo">巷道号</param>
|
/// <returns></returns>
|
[HttpPost, Route("EnableAllLocationsInRoadway")]
|
public WebResponseContent EnableAllLocationsInRoadway(string roadwayNo)
|
{
|
return Service.EnableAllLocationsInRoadway(roadwayNo);
|
}
|
|
/// <summary>
|
/// 一键禁用巷道货位
|
/// </summary>
|
/// <param name="roadwayNo">巷道号</param>
|
/// <returns></returns>
|
[HttpPost, Route("DisableAllLocationsInRoadway")]
|
public WebResponseContent DisableAllLocationsInRoadway(string roadwayNo)
|
{
|
return Service.DisableAllLocationsInRoadway(roadwayNo);
|
}
|
|
/// <summary>
|
/// 获取巷道
|
/// </summary>
|
[HttpGet, Route("GetArea"), AllowAnonymous]
|
public WebResponseContent GetArea()
|
{
|
return Service.GetArea();
|
}
|
/// <summary>
|
/// 获取货位信息
|
/// </summary>
|
[HttpGet, Route("GetLocationStatus"), AllowAnonymous]
|
public WebResponseContent GetLocationStatus(int WarehouseId, string RoadwayNo)
|
{
|
return Service.GetLocationStatus(WarehouseId, RoadwayNo);
|
}
|
}
|
}
|