add - 添加产线种类显示

dep
wangsr 12 months ago
parent cd3cee5246
commit e59f052e1f

@ -13,7 +13,7 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
{
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());
@ -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);
}
@ -41,7 +41,7 @@ namespace Mesnac.Action.ChemicalWeighing.InterfaceDocking
string stry = new GetLGInfoEntity().JsonTo();
var str = Post("http://192.168.202.34:30000/prod-api/open/openInterface/getLGInfo", stry);
var job = JObject.Parse(str);
if (job["code"].ToString()== "200")
if (job["code"].ToString() == "200")
{
JArray arr = job["data"] as JArray;
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()
{

@ -29,6 +29,7 @@ using Mesnac.Action.ChemicalWeighing.FreeDb;
using Mesnac.Action.ChemicalWeighing.ManualControl;
using DevExpress.Pdf.Native;
using DevExpress.Utils.Drawing.Helpers;
using Mesnac.Action.ChemicalWeighing.InterfaceDocking;
namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
{
@ -47,7 +48,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
private string AlarmString = "报警信息 ";
int LineKindFlag;
int LineKindFlag = 0;
//DataTable ParametersWithPCTable = new DataTable();
@ -159,6 +160,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
this.AlarmForm.BaseControl.BindDataSource = TempTable;
}
SetMCLabel(LabelE.LineKind1, new HttpResponse().GetLGInfo()[1]);
SetMCLabel(LabelE.LineKind2, new HttpResponse().GetLGInfo()[2]);
SetMCLabel(LabelE.LineKind3, new HttpResponse().GetLGInfo()[3]);
SetMCLabel(LabelE.LineKind4, new HttpResponse().GetLGInfo()[4]);
timer = new Timer();
timer.Interval = 1000;
timer.Enabled = true;
@ -274,7 +280,15 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
timer.Dispose();
}
LineKindFlag += 1;
if(LineKindFlag >= 300)
{
LineKindFlag = 0;
SetMCLabel(LabelE.LineKind1, new HttpResponse().GetLGInfo()[1]);
SetMCLabel(LabelE.LineKind2, new HttpResponse().GetLGInfo()[2]);
SetMCLabel(LabelE.LineKind3, new HttpResponse().GetLGInfo()[3]);
SetMCLabel(LabelE.LineKind4, new HttpResponse().GetLGInfo()[4]);
}
var reachSingle = RgvPlcUtil.GetRGVAllError();
var mixSingle = Db3000Helper.ReadDb();

Loading…
Cancel
Save