From 2af54fb64fe9ce1053bbe32ec8b2e981c22b9108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Mon, 13 Nov 2023 14:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InterfaceDocking/GetLGInfoEntity.cs | 57 +++++++++++++++++++ .../InterfaceDocking/HttpResponse.cs | 7 +++ .../Mesnac.Action.ChemicalWeighing.csproj | 6 ++ 3 files changed, 70 insertions(+) create mode 100644 Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/GetLGInfoEntity.cs diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/GetLGInfoEntity.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/GetLGInfoEntity.cs new file mode 100644 index 0000000..29b0a4d --- /dev/null +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/GetLGInfoEntity.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; + +namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking +{ + public class GetLGInfoEntity + { + public GetLGInfoEntity() + { + reqTime= DateTime.Now.ToString("yyyy-MM-dd"); + + } + + public string factory { get; set; } = "999"; + public string reqTime { get; set; } + + } + + public class GetLGResJson + { + public int code { get; set; } + public string msg { get; set; } + + public List data { get; set; } + + } + + + public class GetLGRes + { + /// + /// 工单id + /// + public string workorderId { get; set; } + /// + /// 料罐编码 + /// + public string bucketCode { get; set; } + /// + /// 物料编码 + /// + public string materialCode { get; set; } + /// + /// 物料 + /// + public string materialName { get; set; } + /// + /// 班次id 5白班 2夜班 + /// + public string shiftId { get; set; } + /// + /// + /// + public string workorderCode { get; set; } + + } +} \ No newline at end of file diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/HttpResponse.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/HttpResponse.cs index 033622b..384b8aa 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/HttpResponse.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/InterfaceDocking/HttpResponse.cs @@ -23,6 +23,13 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking string stry = new LGusedEntity(deCode, used).JsonTo(); return Post("http://192.168.202.34:8080/mes/wcsInterface/saveLGusedLog", stry); } + + + public string GetLGInfo() + { + string stry = new GetLGInfoEntity().JsonTo(); + return Post("http://192.168.202.34:30000/prod-api/open/openInterface/getLGInfo", stry); + } diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj index 188bc5c..9d00382 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -176,6 +176,10 @@ False ..\..\..\PlugInPlatform\Mesnac.PlugIn.dll + + False + ..\..\..\A3Lib\Json\Newtonsoft.Json.dll + @@ -186,6 +190,7 @@ ..\..\..\packages\System.Data.SqlClient.4.8.5\lib\net451\System.Data.SqlClient.dll + @@ -272,6 +277,7 @@ +