sjz
2025-03-18 795fa3a0ce15e32463a444c2b3fc1468596afba2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/";
 
    /// <summary>
    ///     获取所有
    /// </summary>
    /// <returns></returns>
    [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);
        }
    }
}