From 93e6a8bf1c1d3586528978f614b17c9aa1f9734e Mon Sep 17 00:00:00 2001 From: hao <1836460075@qq.com> Date: 星期五, 13 六月 2025 16:04:41 +0800 Subject: [PATCH] Merge branch 'master' of http://43.142.96.171:8080/r/~yhj/HM_JK --- StandardInterface/MESApplication/Controllers/Kingdee/ErpKcController.cs | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/StandardInterface/MESApplication/Controllers/Kingdee/ErpKcController.cs b/StandardInterface/MESApplication/Controllers/Kingdee/ErpKcController.cs new file mode 100644 index 0000000..fad5bef --- /dev/null +++ b/StandardInterface/MESApplication/Controllers/Kingdee/ErpKcController.cs @@ -0,0 +1,46 @@ +锘縰sing MES.Service.Dto.service; +using MES.Service.Dto.webApi; +using MES.Service.Modes; +using MES.Service.service; +using MES.Service.service.Kingdee; +using MES.Service.util; +using Microsoft.AspNetCore.Mvc; +using Newtonsoft.Json; +using System.Dynamic; + +namespace MESApplication.Controllers.Kingdee; + + +[ApiController] +[Route("api/[controller]")] +public class ErpKcController : ControllerBase +{ + private readonly MessageCenterManager _manager = new(); + private readonly ErpKcManager kc = new(); + private readonly string METHOD = "POST"; + private readonly string TableName = "ERPKC"; + private readonly string URL = "http://localhost:10054/api/ErpKc/"; + + + // + [HttpPost("Save")] + public ResponseResult Save(Inventory inventory) + { + try + { + dynamic resultInfos = new ExpandoObject(); + resultInfos = kc.QueryStocks(inventory); + + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } +} -- Gitblit v1.9.3