| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 内箱核对 : 扫描后盖码获取信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("getHgBarInfo")] |
| | | public ResponseResult getHgBarInfo([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | // 先初始化tbBillList属性 |
| | | resultInfos.tbBillList = new ExpandoObject(); |
| | | resultInfos.tbBillList.ZsBarInfo = m.getHgBarInfo(query); |
| | | resultInfos.tbBillList.Traceability = m.getTraceabilityByLsBar(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 内箱核对,追溯码和流水码绑定 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("ScanNxhd")] |
| | | public ResponseResult ScanNxhd([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | // 先初始化tbBillList属性 |
| | | resultInfos.tbBillList = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.ScanNxhd(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 返工绑定 |
| | | /// </summary> |
| | | [HttpPost("ScanFgbd")] |
| | | public ResponseResult ScanFgbd([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.ScanFgbd(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// AGV呼叫线体列表 |
| | | /// </summary> |
| | | /// <param name="query"></param> |
| | | /// <returns></returns> |
| | | [HttpPost("GetAgvXt")] |
| | | public ResponseResult GetAgvXt([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetAgvXt(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region pda调用AGV相关 |
| | | /// <summary> |
| | | /// AGV送检 |
| | | /// </summary> |
| | | [HttpPost("handleAGVInspection")] |
| | | public ResponseResult HandleAGVInspection([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.HandleAGVInspection(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGV呼叫 |
| | | /// </summary> |
| | | [HttpPost("handleAGVCall")] |
| | | public ResponseResult HandleAGVCall([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.HandleAGVCall(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGV检验处理 |
| | | /// </summary> |
| | | [HttpPost("handleAgvJy")] |
| | | public ResponseResult HandleAgvJy([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.HandleAgvJy(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AGV入立库 |
| | | /// </summary> |
| | | [HttpPost("handleAgvRk")] |
| | | public ResponseResult HandleAgvRk([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.HandleAgvRk(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | } |