| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.service.@base; |
| | | using NewPdaSqlServer.service.Warehouse; |
| | | using NewPdaSqlServer.util; |
| | | |
| | |
| | | public class InventoryController : ControllerBase |
| | | { |
| | | private readonly InventoryManager m = new(); |
| | | |
| | | private readonly MesPrintMangeer _mCf = new(); |
| | | |
| | | /// <summary> |
| | | /// 扫描库位条码的控制器方法 |
| | |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | [HttpPost("printBeginBar")] |
| | | public ResponseResult PrintBeginBar([FromBody] dynamic query) |
| | | { |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = new ExpandoObject(); |
| | | resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(query); |
| | | //var scanResult = m.BarCF(unity); |
| | | resultInfos.tbBillList.cfBarInfo = m.ExecuteBeginBar(query); |
| | | //resultInfos.tbBillList = m.ExecuteBeginBar(query); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | } |