wei
2020-12-01 8983da138cb92e35b0bbeaece1cf1c454a5a79d4
HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSciencePage.cs
@@ -3,6 +3,7 @@
using HDL_ON.Entity;
using HDL_ON.UI.CSS;
using System.Collections.Generic;
using HDL_ON.DriverLayer;
namespace HDL_ON.UI
{
@@ -364,12 +365,12 @@
        /// </summary>
        void LoadSensorDiv(Sensor sensor,int index)
        {
            if (room.sid == "" ||  sensor.roomIdList.Contains(room.sid))
            if (room.sid == "" ||  sensor.roomIds.Contains(room.sid))
            {
                var sensorTag = sensor.sid;
                if (sensor.bus_Data != null)
                {
                    sensorTag = ((int)sensor.functionType % 256) + "_" + sensor.bus_Data.SubnetID + "_" + sensor.bus_Data.DeviceID + "_" + sensor.bus_Data.LoopID;
                    sensorTag = ((int)sensor.functionType % 256) + "_" + sensor.bus_Data.SubnetID + "_" + sensor.bus_Data.DeviceID + "_" + sensor.bus_Data.loopId;
                }
                FrameLayout sensorView = new FrameLayout()
                {
@@ -469,8 +470,7 @@
                };
                sensorView.AddChidren(btnLevel);
                //Control.Send(CommandType_A.read, sensor);
                Control.SendReadCommand(sensor);
                Control.Ins.SendReadCommand(sensor);
            }
        }