using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WIDESEA.Common.CustomModels;
using WIDESEA.Core.Filters;
using WIDESEA.Core.Utilities;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.IServices;
using WIDESEA.Services.Services;
namespace WIDESEA_WMSServer.Controllers
{
public partial class ToWCSController : Controller
{
///
/// 生成货位 -- (已生成)
///
///
///
//[HttpPost, JWTAuthorize, Route("InsertLocationInfo"), AllowAnonymous]
//public WebResponseContent InsertLocationInfo([FromBody] SaveModel saveModel)
//{
// //return new WebResponseContent();
// return new ToWCSService().InsertLocationInfo(saveModel);
//}
///
/// 接收WMS上报的任务状态,修改对应的任务状态,以保持wms和wcs任务状态同步
///
///
///
[HttpPost, JWTAuthorize, Route("UpdateWmsTaskState"), AllowAnonymous]
public WebResponseContent UpdateWmsTaskState([FromBody] SaveModel saveModel)
{
return new ToWCSService().UpdateWmsTaskState(saveModel);
}
///
/// 接收WCS上报的任务完成
///
///
///
[HttpPost, JWTAuthorize, Route("TaskFinishedFromWCS"), AllowAnonymous]
public WebResponseContent TaskFinishedFromWCS([FromBody] SaveModel saveModel)
{
return new ToWCSService().TaskFinishedFromWCS(saveModel);
}
///
/// 接收WCS上报的称重结果
///
///
///
[HttpPost, JWTAuthorize, Route("ReceiveWeightResultFromWCS"), AllowAnonymous]
public WebResponseContent ReceiveWeightResultFromWCS([FromBody] SaveModel saveModel)
{
return new ToWCSService().ReceiveWeightResultFromWCS(saveModel);
}
///
/// 切换线体的模式,应急模式和正常模式
///
///
///
[HttpPost, JWTAuthorize, Route("ChangeInboundLineModel"), AllowAnonymous]
public WebResponseContent ChangeInboundLineModel([FromBody] SaveModel saveModel)
{
return new ToWCSService().ChangeInboundLineModel(saveModel);
}
///
/// 获取入库线体当前模式状态
///
///
///
[HttpPost, JWTAuthorize, Route("GetInboundLineCurrentModel"), AllowAnonymous]
public WebResponseContent GetInboundLineCurrentModel([FromBody] SaveModel saveModel)
{
return new ToWCSService().GetInboundLineCurrentModel(saveModel);
}
///
/// 给WCS上报托盘码校验不一致的场景,在前端提示,由人工来处理
///
///
///
[HttpPost, JWTAuthorize, Route("ReceiveRFIDNoMatchResult"), AllowAnonymous]
public WebResponseContent ReceiveRFIDNoMatchResult([FromBody] SaveModel saveModel)
{
return new ToWCSService().ReceiveRFIDNoMatchResult(saveModel);
}
///
/// 当托盘码校验不一致时,可由人工触发继续继续
///
///
///
[HttpPost, JWTAuthorize, Route("CheckBarcodeSameOk"), AllowAnonymous]
public WebResponseContent CheckBarcodeSameOk([FromBody] SaveModel saveModel)
{
return new ToWCSService().CheckBarcodeSameOk(saveModel);
}
///
/// 称重后,由人工继续任务
///
///
///
[HttpPost, JWTAuthorize, Route("WeightCheckOk"), AllowAnonymous]
public WebResponseContent WeightCheckOk([FromBody] SaveModel saveModel)
{
return new ToWCSService().WeightCheckOk(saveModel);
}
///
/// 当WCS执行入库任务时,检测到与测量出库任务冲突时,调用此接口更换目的货位,置位原来货位
/// Change Destination Location When Conflict
///
/// 托盘号
///
[HttpPost, JWTAuthorize, Route("ChangeDesLocWhenInboundConflict"), AllowAnonymous]
public WebResponseContent ChangeDesLocWhenInboundConflict([FromBody] SaveModel saveModel)
{
return new ToWCSService().ChangeDesLocWhenInboundConflict(saveModel);
}
///
/// 空托盘回库
///
///
///
[HttpPost, JWTAuthorize, Route("InboundRequstFromWCS"), AllowAnonymous]
public WebResponseContent InboundRequstFromWCS([FromBody] SaveModel saveModel)
{
return new ToWCSService().InboundRequstFromWCS(saveModel);
}
}
}