|
|
@ -13,7 +13,7 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class HttpResponse
|
|
|
|
public class HttpResponse
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public string PostResponse(TankIsDischargedSyncEntity taskIsDisChargedSyncEntity)
|
|
|
|
public string PostResponse(TankIsDischargedSyncEntity taskIsDisChargedSyncEntity)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
return Post("http://192.168.202.23:5001/api/ReceivingAndFeedingMaterials/TankIsDischargedSync", taskIsDisChargedSyncEntity.JsonTo());
|
|
|
|
return Post("http://192.168.202.23:5001/api/ReceivingAndFeedingMaterials/TankIsDischargedSync", taskIsDisChargedSyncEntity.JsonTo());
|
|
|
@ -21,9 +21,9 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string PostUsed(int deCode, string used)
|
|
|
|
public string PostUsed(int deCode, string used)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string stry = new LGusedEntity(deCode, used).JsonTo();
|
|
|
|
string stry = new LGusedEntity(deCode, used).JsonTo();
|
|
|
|
return Post("http://192.168.202.34:8080/mes/wcsInterface/saveLGusedLog", stry);
|
|
|
|
return Post("http://192.168.202.34:8080/mes/wcsInterface/saveLGusedLog", stry);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
|
|
|
|
string stry = new GetLGInfoEntity().JsonTo();
|
|
|
|
string stry = new GetLGInfoEntity().JsonTo();
|
|
|
|
var str = Post("http://192.168.202.34:30000/prod-api/open/openInterface/getLGInfo", stry);
|
|
|
|
var str = Post("http://192.168.202.34:30000/prod-api/open/openInterface/getLGInfo", stry);
|
|
|
|
var job = JObject.Parse(str);
|
|
|
|
var job = JObject.Parse(str);
|
|
|
|
if (job["code"].ToString()== "200")
|
|
|
|
if (job["code"].ToString() == "200")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
JArray arr = job["data"] as JArray;
|
|
|
|
JArray arr = job["data"] as JArray;
|
|
|
|
foreach (JObject item in arr)
|
|
|
|
foreach (JObject item in arr)
|
|
|
@ -66,7 +66,7 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private string Post(string url,string postData)
|
|
|
|
private string Post(string url, string postData)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
HttpItem item = new HttpItem()
|
|
|
|
HttpItem item = new HttpItem()
|
|
|
|
{
|
|
|
|
{
|
|
|
|