dep
杨威 6 months ago
parent 8eb9cc0c09
commit eccc24538f

@ -106,6 +106,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
// DeviceDetailEntity DetailE = new DeviceDetailEntity();
HslLedDisplayEntity LedDisplayE = new HslLedDisplayEntity();
MCLabel mCLabelA;
MCLabel mCLabelB;
#endregion
#region Run方法
@ -127,6 +131,9 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
// MCWatchDog = Controls.FirstOrDefault(x => x.Name == "MCWatchDog") as MCLabel;
AlarmMoveText = Controls.FirstOrDefault(x => x.Name == "AlarmMoveText") as HslMoveText;
mCLabelA = Controls.FirstOrDefault(x => x.Name == "MCLabelA") as MCLabel;
mCLabelB = Controls.FirstOrDefault(x => x.Name == "MCLabelB") as MCLabel;
SetAllControls();
//ParametersWithPCTable.Columns.Add("id", typeof(string));
@ -456,7 +463,11 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
AlarmControl();
//现有报警刷新
var db2110 = new Db2110Help();
mCLabelA.MCValue = db2110.GetA();
mCLabelB.MCValue = db2110.GetB();
}
#endregion

@ -39,6 +39,12 @@ namespace DataBlockHelper.DBHelpers
list.Add(GetAvalue(queA2));
list.Add(GetAvalue(queA3));
list.Add(GetAvalue(queA4));
if (list.Count == list.Where(x => x == "0").Count())
{
return "";
}
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < list.Count; i++)
@ -71,7 +77,11 @@ namespace DataBlockHelper.DBHelpers
list.Add(GetAvalue(queB6));
list.Add(GetAvalue(queB7));
list.Add(GetAvalue(queB8));
if (list.Count == list.Where(x => x == "0").Count())
{
return "";
}
StringBuilder stringBuilder = new StringBuilder();
@ -80,7 +90,7 @@ namespace DataBlockHelper.DBHelpers
string a = list[i];
if (i > 0)
{
stringBuilder.Append("=>" + a);
stringBuilder.Append("=> " + a);
}
else
{

@ -1,6 +1,91 @@
<Object type="Mesnac.Gui.Common.FrmRunTemplate, Mesnac.Gui.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MainDetail" children="Controls">
<Object type="System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="FeededGelM255" children="Controls">
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCLabelB" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">A=&gt;B</Property>
<Property name="BackColor">Transparent</Property>
<Property name="ForeColor">White</Property>
<Property name="Location">266, 419</Property>
<Property name="Name">MCLabelB</Property>
<Property name="Size">29, 12</Property>
</Object>
<Object type="Mesnac.Controls.Default.MCLabel, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="MCLabelA" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="NewFillColor">Red</Property>
<Property name="OldFillColor">DarkGray</Property>
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="Text">A=&gt;B</Property>
<Property name="BackColor">Transparent</Property>
<Property name="ForeColor">White</Property>
<Property name="Location">48, 419</Property>
<Property name="Name">MCLabelA</Property>
<Property name="Size">29, 12</Property>
</Object>
<Object type="Mesnac.Controls.ChemicalWeighing.PControl, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="PControl23" children="Controls">
<Property name="StatusName" />
<Property name="Status">TurnOn</Property>
<Property name="Location">1193, 268</Property>
<Property name="Name">PControl23</Property>
<Property name="Size">10, 15</Property>
</Object>
<Object type="Mesnac.Controls.Default.SpecialLabelBlue, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SpecialLabelBlue228" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="TextAlign">MiddleCenter</Property>
<Property name="BackColor">MintCream</Property>
<Property name="Location">881, 57</Property>
<Property name="Name">SpecialLabelBlue228</Property>
<Property name="Size">1, 227</Property>
</Object>
<Object type="Mesnac.Controls.Default.SpecialLabelBlue, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SpecialLabelBlue229" children="Controls">
<Property name="Format" />
<Property name="TextName" />
<Property name="MCKey" />
<Property name="MCDataSourceID" />
<Property name="IsDbControl">False</Property>
<Property name="InitDataSource" />
<Property name="ActionDataSource" />
<Property name="BindDataSource" />
<Property name="DbOptionType">None</Property>
<Property name="MCVisible">True</Property>
<Property name="MCEnabled">True</Property>
<Property name="TextAlign">MiddleCenter</Property>
<Property name="BackColor">MintCream</Property>
<Property name="Location">854, 54</Property>
<Property name="Name">SpecialLabelBlue229</Property>
<Property name="Size">335, 1</Property>
</Object>
<Object type="Mesnac.Controls.ChemicalWeighing.HslLanternSimple, Mesnac.Controls.ChemicalWeighing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="DayBin8" children="Controls">
<Property name="Location">1844, 288</Property>
<Property name="Name">DayBin8</Property>
@ -98,9 +183,9 @@
<Property name="MCEnabled">True</Property>
<Property name="TextAlign">MiddleCenter</Property>
<Property name="BackColor">MintCream</Property>
<Property name="Location">1187, 33</Property>
<Property name="Location">1187, 55</Property>
<Property name="Name">SpecialLabelBlue231</Property>
<Property name="Size">1, 252</Property>
<Property name="Size">1, 229</Property>
</Object>
<Object type="Mesnac.Controls.Default.SpecialLabelBlue, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SpecialLabelBlue232" children="Controls">
<Property name="Format" />
@ -116,9 +201,9 @@
<Property name="MCEnabled">True</Property>
<Property name="TextAlign">MiddleCenter</Property>
<Property name="BackColor">MintCream</Property>
<Property name="Location">878, 32</Property>
<Property name="Location">852, 33</Property>
<Property name="Name">SpecialLabelBlue232</Property>
<Property name="Size">1, 252</Property>
<Property name="Size">1, 22</Property>
</Object>
<Object type="Mesnac.Controls.Default.SpecialLabelBlue, Mesnac.Controls.Default, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" name="SpecialLabelBlue233" children="Controls">
<Property name="Format" />
@ -172,7 +257,7 @@
<Property name="ZLDName" />
<Property name="ALMTName" />
<Property name="ALMDName" />
<Property name="Location">1177, 24</Property>
<Property name="Location">872, 49</Property>
<Property name="Name">DV2PCP16</Property>
<Property name="Size">22, 12</Property>
</Object>
@ -181,7 +266,7 @@
<Property name="ZLDName" />
<Property name="ALMTName" />
<Property name="ALMDName" />
<Property name="Location">868, 24</Property>
<Property name="Location">842, 24</Property>
<Property name="Name">DV2PCP15</Property>
<Property name="Size">22, 12</Property>
</Object>

Loading…
Cancel
Save