| | |
| | | using AutoMapper.Configuration.Annotations; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | | [Route("api/BDC")] |
| | | [Route("bdc")] |
| | | [ApiController] |
| | | public class MESController : Controller |
| | | { |
| | |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PassPoint"), AllowAnonymous] |
| | | public WebResponseContent PassPoint(string stationCode,string rfid) |
| | | public WebResponseContent PassPoint([FromBody] RequestTaskDto json) |
| | | { |
| | | return _MESService.PassPoint(stationCode, rfid); |
| | | return _MESService.PassPoint(json); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¶è£
å·¥å |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("painting/pushWorkOrderInfo"), AllowAnonymous] |
| | | public WebResponseContent pushWorkOrderInfo([FromBody] object json) |
| | | { |
| | | return _MESService.pushWorkOrderInfo(json); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ»è£
å·¥å |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("pushOrderInfo"), AllowAnonymous] |
| | | [HttpPost, Route("order/pushOrderInfo"), AllowAnonymous] |
| | | public WebResponseContent pushOrderInfo([FromBody] object json) |
| | | { |
| | | return _MESService.pushOrderInfo(json); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 工忿¤ |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("painting/removeWorkOrderInfo"), AllowAnonymous] |
| | | public WebResponseContent removeWorkOrderInfo([FromBody] object json) |
| | | { |
| | | return _MESService.removeWorkOrderInfo(json); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("issuedCharacter"), AllowAnonymous] |
| | | public WebResponseContent issuedCharacter([FromBody] string carCode, string vin, string station) |
| | | public WebResponseContent issuedCharacter(string rfidPrint, string station, string palletCode) |
| | | { |
| | | return _MESService.issuedCharacter(carCode, vin, station); |
| | | return _MESService.issuedCharacter(rfidPrint, station, palletCode); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 车身è¿ç¹ |
| | | /// BDC请æ±è½¦èº«ç¹å¾ |
| | | /// </summary> |
| | | /// <param name="json"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("getCharacteristic"), AllowAnonymous] |
| | | public WebResponseContent getCharacteristic([FromBody] RequestTaskDto json) |
| | | { |
| | | return _MESService.getCharacteristic(json); |
| | | } |
| | | |
| | | static object lockInfo = new object(); |
| | | /// <summary> |
| | | /// MESæå¨é车 |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("PassPoint"), AllowAnonymous] |
| | | public WebResponseContent PassPoint(string stationCode, string rfid) |
| | | [HttpPost, Route("order/pullLock"), AllowAnonymous] |
| | | public WebResponseContent pullLock([FromBody] object json) |
| | | { |
| | | return _MESService.(stationCode, rfid); |
| | | lock (lockInfo) |
| | | { |
| | | return _MESService.pullLock(json); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// MESåæ¥è®¢åç¹å¾ |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("order/syncOrderFeature"), AllowAnonymous] |
| | | public WebResponseContent syncOrderFeature([FromBody] object json) |
| | | { |
| | | return _MESService.syncOrderFeature(json); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 车身ç»å®å·¥å ç-æ¶ãæ¶-æ»å·¥åç»å® |
| | | /// </summary> |
| | | /// <param name="stationCode"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("bindWorkOrder"), AllowAnonymous] |
| | | public WebResponseContent bindWorkOrder(string station, string rfid) |
| | | { |
| | | return _MESService.bindWorkOrder(station, rfid); |
| | | } |
| | | } |