对接接口

wangsr
我叫锄头 1 year ago
parent 2e2603aae2
commit 2af54fb64f

@ -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<GetLGRes> data { get; set; }
}
public class GetLGRes
{
/// <summary>
/// 工单id
/// </summary>
public string workorderId { get; set; }
/// <summary>
/// 料罐编码
/// </summary>
public string bucketCode { get; set; }
/// <summary>
/// 物料编码
/// </summary>
public string materialCode { get; set; }
/// <summary>
/// 物料
/// </summary>
public string materialName { get; set; }
/// <summary>
/// 班次id 5白班 2夜班
/// </summary>
public string shiftId { get; set; }
/// <summary>
///
/// </summary>
public string workorderCode { get; set; }
}
}

@ -25,6 +25,13 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
}
public string GetLGInfo()
{
string stry = new GetLGInfoEntity().JsonTo();
return Post("http://192.168.202.34:30000/prod-api/open/openInterface/getLGInfo", stry);
}
private string Post(string url,string postData)

@ -176,6 +176,10 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\PlugInPlatform\Mesnac.PlugIn.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\A3Lib\Json\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
@ -186,6 +190,7 @@
<HintPath>..\..\..\packages\System.Data.SqlClient.4.8.5\lib\net451\System.Data.SqlClient.dll</HintPath>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Runtime.Serialization.Formatters.Soap" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Extensions" />
@ -272,6 +277,7 @@
<Compile Include="InterfaceDocking\DockingEntity\MaterialPlanSyncEntity.cs" />
<Compile Include="InterfaceDocking\DockingEntity\TankDeviceStateSyncEntity.cs" />
<Compile Include="InterfaceDocking\DockingEntity\TankIsDischargedSyncEntity.cs" />
<Compile Include="InterfaceDocking\GetLGInfoEntity.cs" />
<Compile Include="InterfaceDocking\HttpHelper.cs" />
<Compile Include="InterfaceDocking\HttpResponse.cs" />
<Compile Include="InterfaceDocking\LGusedEntity.cs" />

Loading…
Cancel
Save