using System.Dynamic;
|
using MES.Service.Dto.service;
|
using MES.Service.service.Warehouse;
|
using MES.Service.util;
|
using Microsoft.AspNetCore.Mvc;
|
|
namespace MESApplication.Controllers.Warehouse;
|
|
[ApiController]
|
[Route("api/[controller]")]
|
public class OpeningReceiptController : ControllerBase
|
{
|
private readonly OpeningReceiptServer m = new();
|
|
[HttpPost("ScanInBarcodeQC")]
|
public ResponseResult ScanInBarcodeQC(WarehouseQuery query)
|
{
|
try
|
{
|
dynamic resultInfos = new ExpandoObject();
|
resultInfos.tbBillList = m.ScanInBarcodeQC(query);
|
return new ResponseResult
|
{
|
status = 0,
|
message = "OK",
|
data = resultInfos
|
};
|
}
|
catch (Exception ex)
|
{
|
return ResponseResult.ResponseError(ex);
|
}
|
}
|
|
[HttpPost("GetForm")]
|
public ResponseResult GetForm(WarehouseQuery query)
|
{
|
try
|
{
|
dynamic resultInfos = new ExpandoObject();
|
resultInfos.tbBillList = m.GetForm(query);
|
return new ResponseResult
|
{
|
status = 0,
|
message = "OK",
|
data = resultInfos
|
};
|
}
|
catch (Exception ex)
|
{
|
return ResponseResult.ResponseError(ex);
|
}
|
}
|
}
|