|
|
|
@ -18,7 +18,9 @@ using System.Data;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using Timer = System.Windows.Forms.Timer;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
{
|
|
|
|
@ -196,11 +198,18 @@ namespace Mesnac.Action.ChemicalWeighing.ManualControl
|
|
|
|
|
deviceNo = deviceNo.ToString(),
|
|
|
|
|
state = statu.ToString(),
|
|
|
|
|
};
|
|
|
|
|
HttpResponse httpResponse = new HttpResponse();
|
|
|
|
|
// MesnacServiceManager.Instance.LoggingService.Info($"湿混机{deviceNo}下发请求");
|
|
|
|
|
string returnTest = httpResponse.PostResponse(tankIsDischargedSyncEntity);
|
|
|
|
|
// ManualLogControl($"湿混机{deviceNo}返回数据 " + returnTest);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info($"湿混机{deviceNo}返回数据" + returnTest);
|
|
|
|
|
|
|
|
|
|
//即使网络不同 也不会影响上位机的使用
|
|
|
|
|
ThreadPool.QueueUserWorkItem(delegate
|
|
|
|
|
{
|
|
|
|
|
HttpResponse httpResponse = new HttpResponse();
|
|
|
|
|
// MesnacServiceManager.Instance.LoggingService.Info($"湿混机{deviceNo}下发请求");
|
|
|
|
|
string returnTest = httpResponse.PostResponse(tankIsDischargedSyncEntity);
|
|
|
|
|
// ManualLogControl($"湿混机{deviceNo}返回数据 " + returnTest);
|
|
|
|
|
MesnacServiceManager.Instance.LoggingService.Info($"湿混机{deviceNo}返回数据" + returnTest);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|