change - 去掉老代码注释

dep
wangsr 1 year ago
parent a8f9e02d7f
commit bc0f71814b

@ -26,6 +26,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
{
public class DeliverInitAction : ChemicalWeighingAction, IAction
{
#region 属性
PlcTempEntity PlcTemp = new PlcTempEntity();
private Timer timer;
@ -64,6 +66,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
#endregion
#endregion
#region 接口Run方法
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime); //必须调用
@ -85,6 +91,10 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
}
#endregion
#region 方法
private void SetAllControls()
{
ControlsHelper.ControlImport<HslBottle>(bottleE, Controls);
@ -109,8 +119,6 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
timer.Dispose();
}
AlarmControl();
DB1 = new DB1Helper();
DB90 = new DB90Helper();
DB2103 = new DB2103Helper();
@ -122,6 +130,8 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
DB1SetData();
DB90SetData();
DB2103SetData();
AlarmControl();
}
#region plc读取前端控件值写入
@ -610,26 +620,12 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
private void AlarmControl()
{
//DataTable TempTable = DBHelp.GetTable(@"SELECT
// t2.Alarm_Other_Info,
// t2.Alarm_Cn_Info,
// t1.Alarm_OccurTime
// FROM
// LR_Alarmlog t1
// LEFT JOIN Pmt_Alarm t2 ON t1.Alarm_ID = t2.Alarm_ID
// WHERE
// t1.Alarm_Status = 1
// ORDER BY
// t1.Alarm_OccurTime desc");
b1 = DB1.bytes;
b90 = DB90.bytes;
b2103 = DB2103.bytes;
StringBuilder sb = new StringBuilder();
//string nowtime = DateTime.Now.ToString();
//报警点位遍历
foreach (DataRow rows in AllAlarmTable.Rows)
{
@ -668,30 +664,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
#endregion
#region 测试程序
/// <summary>
/// 测试程序
@ -768,5 +741,9 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
Thread thread = new Thread(threadStart);
thread.Start();
}
#endregion
#endregion
}
}

Loading…
Cancel
Save