|
|
@ -29,6 +29,7 @@ using Mesnac.Action.ChemicalWeighing.FreeDb;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.ManualControl;
|
|
|
|
using Mesnac.Action.ChemicalWeighing.ManualControl;
|
|
|
|
using DevExpress.Pdf.Native;
|
|
|
|
using DevExpress.Pdf.Native;
|
|
|
|
using DevExpress.Utils.Drawing.Helpers;
|
|
|
|
using DevExpress.Utils.Drawing.Helpers;
|
|
|
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.InterfaceDocking;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -47,7 +48,7 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
|
|
|
|
|
|
|
|
private string AlarmString = "报警信息 ";
|
|
|
|
private string AlarmString = "报警信息 ";
|
|
|
|
|
|
|
|
|
|
|
|
int LineKindFlag;
|
|
|
|
int LineKindFlag = 0;
|
|
|
|
|
|
|
|
|
|
|
|
//DataTable ParametersWithPCTable = new DataTable();
|
|
|
|
//DataTable ParametersWithPCTable = new DataTable();
|
|
|
|
|
|
|
|
|
|
|
@ -159,6 +160,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
this.AlarmForm.BaseControl.BindDataSource = TempTable;
|
|
|
|
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 = new Timer();
|
|
|
|
timer.Interval = 1000;
|
|
|
|
timer.Interval = 1000;
|
|
|
|
timer.Enabled = true;
|
|
|
|
timer.Enabled = true;
|
|
|
@ -274,7 +280,15 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
|
|
|
|
timer.Dispose();
|
|
|
|
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 reachSingle = RgvPlcUtil.GetRGVAllError();
|
|
|
|
var mixSingle = Db3000Helper.ReadDb();
|
|
|
|
var mixSingle = Db3000Helper.ReadDb();
|
|
|
|