This commit is contained in:
@ -677,6 +677,30 @@ namespace Epost.BLL
|
||||
#endregion
|
||||
|
||||
#region 点亮指定区域通道灯
|
||||
public bool DISPLAY_LIGHT_BLOCK_Out(string block, string area, string isoff)
|
||||
{
|
||||
|
||||
DataTable dt = addrBLL.GetBoxAddress(block, area, 6);
|
||||
List<LabelParamModel> list = new List<LabelParamModel>();
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
foreach (DataRow item in dt.Rows)
|
||||
{
|
||||
LabelParamModel model = new LabelParamModel();
|
||||
model.Command = "DISPLAY_LIGHT";
|
||||
model.Timeout = "0.5";
|
||||
model.Type = "T";
|
||||
model.Address = item["address"].ToString();
|
||||
model.ControlIP = item["ControlIP"].ToString();
|
||||
model.Parameter = ConvertHexHelper.ConvertString(item["addresstype"].ToString(), 10, 16).ToString().PadLeft(2, '0') + isoff;
|
||||
list.Add(model);
|
||||
}
|
||||
dal.SendALL(list);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool DISPLAY_LIGHT_BLOCK(string block, string area, string isoff)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user