using System.Dynamic;
using MES.Service.Dto.webApi;
using MES.Service.Modes;
using MES.Service.service;
using MES.Service.service.BasicData;
using MES.Service.util;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace MESApplication.Controllers.BasicData;
[ApiController]
[Route("api/[controller]")]
public class SentLaboratoryTestingItemsControllor : ControllerBase
{
private readonly MessageCenterManager _manager = new();
private readonly SentLaboratoryTestingItemsManager m = new();
private readonly string METHOD = "POST";
private readonly string TableName = "MES_QMS_SAMPLE_CHECK";
private readonly string URL = "http://localhost:10054/api/SentLaboratoryTestingItems/";
///
/// 获取所有
///
///
[HttpPost("GetList")]
public ResponseResult GetList()
{
try
{
dynamic resultInfos = new ExpandoObject();
resultInfos.tbBillList = m.GetList();
return new ResponseResult
{
status = 0,
message = "OK",
data = resultInfos
};
}
catch (Exception ex)
{
return ResponseResult.ResponseError(ex);
}
}
}