| | |
| | | using System.Dynamic; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.AspNetCore.Mvc.Filters; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.service.@base; |
| | |
| | | |
| | | [ApiController] |
| | | [Route("api/[controller]")] |
| | | public class WomdaaController : ControllerBase |
| | | public class WomdaaController : BaseController |
| | | { |
| | | private readonly WomdaaManager m = new(); |
| | | private readonly MesPrintMangeer _mCf = new(); |
| | |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetProductionPickDaa001(query); |
| | | resultInfos.tbBillList = m.GetProductionPickDaa001(query, RequestInfo); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | [HttpPost("GetItemsByDaa001")] |
| | | public ResponseResult GetItemsByDaa001(WarehouseQuery query) |
| | | { |
| | | // 从 HttpContext.Items 获取 orgId |
| | | var orgId = HttpContext.Request.Headers["OrgId"].ToString(); |
| | | |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetItemsByDaa001(query); |
| | | resultInfos.tbBillList = m.GetItemsByDaa001(query, RequestInfo); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(query); |
| | | var scanResult = m.ScanCodeCF(query); |
| | | resultInfos.tbBillList.cfBarInfo = _mCf.getCfInfo(scanResult); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | | message = "OK", |
| | | data = resultInfos |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ResponseResult.ResponseError(ex); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 生产领料点击物料明细获取相关条码信息 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost("GetBarKwByItem")] |
| | | public ResponseResult GetBarKwByItem(dynamic unity) |
| | | { |
| | | try |
| | | { |
| | | 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, |
| | |
| | | try |
| | | { |
| | | dynamic resultInfos = new ExpandoObject(); |
| | | resultInfos.tbBillList = m.GetXcslDaa(query); |
| | | resultInfos.tbBillList = m.GetXcslDaa(query, RequestInfo); |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |