南骏 池
2025-05-16 a04ee7ab3b4cb4e4bb73cda632233f043e7422f9
Controllers/Warehouse/MesBarCFController.cs
@@ -1,9 +1,12 @@
using System.Dynamic;
using Masuit.Tools.Win32.AntiVirus;
using Microsoft.AspNetCore.Mvc;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.entity;
using NewPdaSqlServer.service.@base;
using NewPdaSqlServer.service.Warehouse;
using NewPdaSqlServer.util;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
namespace NewPdaSqlServer.Controllers.Warehouse;
@@ -12,6 +15,8 @@
public class MesBarCFController : ControllerBase
{
    private readonly MesBarCFManager m = new();
    private readonly MesPrintMangeer _mCf = new();
    /// <summary>
    ///     获取条码信息和物料信息
@@ -48,11 +53,14 @@
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.BarCF(unity);
            resultInfos.tbBillList = new ExpandoObject();
            resultInfos.tbBillList.printInfo = _mCf.getPrintInfo(unity);
            var scanResult = m.BarCF(unity);
            resultInfos.tbBillList.cfBarInfo = _mCf.getCfInfo(scanResult);
            return new ResponseResult
            {
                status = 0,
                message = resultInfos.tbBillList,
                message = "OK",
                data = resultInfos
            };
        }