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 @@ +