| | |
| | | using WIDESEA_TaskInfoService; |
| | | using WIDESEA_DTO.ERP; |
| | | using WIDESEA_DTO.MES; |
| | | using WIDESEA_Core.Helper; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers.MES |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | //[HttpPost, Route("TestToolOut"), AllowAnonymous, MethodParamsValidate] |
| | | //public MesResponseContent TestToolOut([FromBody] Root<TestToolOutModel> model) |
| | | //{ |
| | | // return _taskService.TestToolOut(model.Content); |
| | | //} |
| | | [HttpPost, Route("TestToolOut"), AllowAnonymous, MethodParamsValidate] |
| | | public MesResponseContent TestToolOut([FromBody] Root<TestToolOutModel> model) |
| | | { |
| | | return _taskService.TestToolOut(model.Content); |
| | | } |
| | | /// <summary> |
| | | /// æ¥æ¶MESæµè¯æ¶éåº |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("TestToolBack"), AllowAnonymous, MethodParamsValidate] |
| | | public MesResponseContent TestToolBack([FromBody] Root<TestToolBackModel> model) |
| | | { |
| | | return _taskService.TestToolBack(model.Content); |
| | | } |
| | | /// <summary> |
| | | /// æµè¯æ¶æ¥åº |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("TestToolScrap"), AllowAnonymous, MethodParamsValidate] |
| | | public MesResponseContent TestScrap([FromBody] Root<TestToolScrap> model) |
| | | { |
| | | return _taskService.TestScrap(model.Content); |
| | | } |
| | | [HttpPost, Route("TestSynStock"), AllowAnonymous] |
| | | public WebResponseContent TestSynStock([FromBody]TestToolSynInfo toolSynInfo) |
| | | { |
| | | return _taskService.TestSynStock(toolSynInfo); |
| | | } |
| | | [HttpPost, Route("testHttp"), AllowAnonymous, MethodParamsValidate] |
| | | public string TestScrap(string str) |
| | | { |
| | | return HttpMesHelper.GetStr(str); |
| | | } |
| | | } |
| | | } |