| | |
| | | using System.Dynamic; |
| | | using MES.Service.Dto.service; |
| | | using MES.Service.Modes; |
| | | using MES.Service.service; |
| | | using MES.Service.util; |
| | |
| | | { |
| | | private readonly WomdaaManager m = new(); |
| | | |
| | | //TestUpdate |
| | | [HttpPost("TestUpdate")] |
| | | public ResponseResult TestUpdate([FromBody] Womdaa data) |
| | | #region 生产领料 |
| | | |
| | | //GetProductionPickDaa001 |
| | | /// <summary> |
| | | /// 模糊查询工单号并返回 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetProductionPickDaa001")] |
| | | public ResponseResult GetProductionPickDaa001(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.TestUpdate(data); |
| | | resultInfos.tbBillList = m.GetProductionPickDaa001(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | //GetItemsByDaa001 |
| | | /// <summary> |
| | | /// 根据工单号获取代领物料明细 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetItemsByDaa001")] |
| | | public ResponseResult GetItemsByDaa001(WarehouseQuery query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetItemsByDaa001(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |