1
啊鑫
2024-08-15 4c126014baae3c09fb05243b6d560e160c41209c
MESApplication/Controllers/Warehouse/MesInvItemMovesController.cs
@@ -13,6 +13,69 @@
{
    private readonly MesInvItemMovesManager m = new();
    //GetPage
    [HttpPost("GetPage")]
    public ResponseResult GetPage(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetPage(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    //GetItems
    [HttpPost("GetItems")]
    public ResponseResult GetItems(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetItems(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    //ScanMoveBarcode
    [HttpPost("ScanMoveBarcode")]
    public ResponseResult ScanMoveBarcode(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.ScanMoveBarcode(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    // GetBillNo
    [HttpPost("GetBillNo")]
    public ResponseResult GetBillNo(WarehouseQuery query)
@@ -34,28 +97,6 @@
        }
    }
    
    //ScanOutShowDb
    [HttpPost("ScanOutShowDb")]
    public ResponseResult ScanOutShowDb(WarehouseQuery query)
    {
        try
        {
            dynamic resultInfos = new ExpandoObject();
            resultInfos.tbBillList = m.GetBillNo(query);
            return new ResponseResult
            {
                status = 0,
                message = "OK",
                data = resultInfos
            };
        }
        catch (Exception ex)
        {
            return ResponseResult.ResponseError(ex);
        }
    }
    /// <summary>
    ///     获取所有
    /// </summary>