| | |
| | | using HslCommunication.WebSocket; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | 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; |
| | |
| | | { |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 初始化货位 |
| | | /// </summary> |
| | | /// <param name="locationInfoByTypeDto"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("InitializationLocation"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> InitializationLocation([FromBody] InitializationLocationDTO locationInfoByTypeDto) |
| | | { |
| | | return Service.InitializationLocation(locationInfoByTypeDto); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量禁用货位 |
| | | /// </summary> |
| | | /// <param name="keys"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("LocationDisableStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> LocationDisableStatus([FromBody] int[] keys) |
| | | { |
| | | return Service.LocationDisableStatus(keys); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 批量启用货位 |
| | | /// </summary> |
| | | /// <param name="keys"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("LocationEnableStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> LocationEnableStatus([FromBody] int[] keys) |
| | | { |
| | | return Service.LocationEnableStatus(keys); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 禁用单个货位 |
| | | /// </summary> |
| | | /// <param name="key"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("LocationOneDisableStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> LocationDisableStatus([FromBody] int key) |
| | | { |
| | | return Service.LocationDisableStatus(key); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 启用单个货位 |
| | | /// </summary> |
| | | /// <param name="key"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("LocationOneEnableStatus"), AllowAnonymous] |
| | | public async Task<WebResponseContent?> LocationEnableStatus([FromBody] int key) |
| | | { |
| | | return Service.LocationEnableStatus(key); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取货位信息 |
| | | /// </summary> |
| | | /// <param name="roadwayNo"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("GetLocationInfo"), AllowAnonymous] |
| | | public async Task<Dt_LocationInfo?> GetLocationInfo([FromBody] string roadwayNo) |
| | | { |
| | | return await Service.GetLocationInfo(roadwayNo); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 移库检查:检查指定任务号的移库任务是否满足移库条件 |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | [HttpGet, HttpPost, Route("TransferCheck"),AllowAnonymous] |
| | | public async Task<WebResponseContent?> TransferCheckAsync([FromBody] int taskNum) |
| | | { |
| | | return await Service.TransferCheckAsync(taskNum); |
| | | } |
| | | } |
| | | } |
| | | } |