啊鑫
4 天以前 00a72fff219241eb5b0405a066cc859d07cf7735
Controllers/Wom/WomdaaController.cs
@@ -1,5 +1,6 @@
using System.Dynamic;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.entity;
using NewPdaSqlServer.service.@base;
@@ -12,8 +13,8 @@
[Route("api/[controller]")]
public class WomdaaController : BaseController
{
    private readonly MesPrintMangeer _mCf = new();
    private readonly WomdaaManager m = new();
    private readonly MesPrintMangeer _mCf = new();
    #region 生产领料
@@ -28,8 +29,7 @@
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList =
                m.GetProductionPickDaa001(query, RequestInfo);
            resultInfos.tbBillList = m.GetProductionPickDaa001(query, RequestInfo);
            return new ResponseResult
            {
                status = 0,
@@ -80,12 +80,14 @@
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.ScanCode(query);
            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,
@@ -135,6 +137,30 @@
        {
            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,
@@ -293,10 +319,10 @@
            return ResponseResult.ResponseError(ex);
        }
    }
    #endregion
    #region 现场管理
    /// <summary>
    ///     扫描注塑码,获取工单和条码信息
@@ -623,8 +649,7 @@
            // 先初始化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,
@@ -716,8 +741,8 @@
    #endregion
    #region pda调用AGV相关
    #region  pda调用AGV相关
    /// <summary>
    ///     AGV送检
    /// </summary>