| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Mvc.Filters; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.service.@base; |
| | |
| | | [Route("api/[controller]")] |
| | | public class WomdaaController : BaseController |
| | | { |
| | | private readonly MesPrintMangeer _mCf = new(); |
| | | private readonly WomdaaManager m = new(); |
| | | private readonly MesPrintMangeer _mCf = new(); |
| | | |
| | | #region 生产领料 |
| | | |
| | |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = |
| | | m.GetProductionPickDaa001(query, RequestInfo); |
| | | resultInfos.tbBillList = m.GetProductionPickDaa001(query, RequestInfo); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.ScanCode(query); |
| | | if (resultInfos.tbBillList.result == "2") |
| | | if(resultInfos.tbBillList.result == "2") |
| | | { |
| | | return new ResponseResult |
| | | { |
| | | status = Convert.ToInt32(resultInfos.tbBillList.result), |
| | | message = resultInfos.tbBillList.strMsg, |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetBarKwByItem(unity); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 生产领料点击物料明细获取相关条码信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetBarKwByItemCK")] |
| | | public ResponseResult GetBarKwByItemCK(dynamic unity) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetBarKwByItemCK(unity); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 修改 |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region 现场管理 |
| | | |
| | | |
| | | /// <summary> |
| | | /// 扫描注塑码,获取工单和条码信息 |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 现场收料获取可选工单信息 |
| | | /// 现场收料获取可选工单信息 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | |
| | | // 先初始化tbBillList属性 |
| | | resultInfos.tbBillList = new ExpandoObject(); |
| | | resultInfos.tbBillList.ZsBarInfo = m.getHgBarInfo(query); |
| | | resultInfos.tbBillList.Traceability = |
| | | m.getTraceabilityByLsBar(query); |
| | | resultInfos.tbBillList.Traceability = m.getTraceabilityByLsBar(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | |
| | | |
| | | /// <summary> |
| | | /// AGV呼叫线体列表 |
| | | /// AGV呼叫线体列表 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | |
| | | #endregion |
| | | |
| | | |
| | | #region pda调用AGV相关 |
| | | |
| | | #region pda调用AGV相关 |
| | | /// <summary> |
| | | /// AGV送检 |
| | | /// </summary> |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// <summary> |
| | | /// AGV呼叫 |
| | | /// </summary> |
| | | [HttpPost("handleAGVCall")] |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGV检验处理 |
| | | /// AGV检验处理 |
| | | /// </summary> |
| | | [HttpPost("handleAgvJy")] |
| | | public ResponseResult HandleAgvJy([FromBody] dynamic query) |