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 b737f33..9d00382 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Mesnac.Action.ChemicalWeighing.csproj @@ -277,6 +277,7 @@ +