陈嘉乐
2020-09-02 652243206427f35a256400a149a1734085824cb9
ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs
old mode 100644 new mode 100755
@@ -256,7 +256,7 @@
                if (!Config.Instance.Home.IsVirtually)
                {//虚拟的不获取网关逻辑列表
                 //重新刷新logic列表
                    If_once = true;
                    If_once = true;
                    Common.Logic.LogicList.Clear();
                    Read(logicScrolView, no);
                }
@@ -287,39 +287,39 @@
            {
                if (!Config.Instance.Home.IsVirtually)//虚拟的不获取网关逻辑列表
                {
                    if (If_once)
                    {
                        if (Common.Logic.LogicList.Count == 0)
                        {
                    if (If_once)
                    {
                        if (Common.Logic.LogicList.Count == 0)
                        {
                            If_once = false;
                            var Idlist1 = await Send.GetLogicId(0);//
                            var Idlist2 = await Send.GetLogicId(2);//门锁常开模式
                            if (Idlist1.Count != 0)
                            {
                                var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
                                for (int j = 0; j < listlogic1.Count; j++)
                                {
                                    var logic = listlogic1[j];
                                    if (logic.LogicType != 0)
                                    {
                                        continue;
                                    }
                                    Common.Logic.LogicList.Add(logic);
                                }
                            }
                            if (Idlist2.Count != 0)
                            {
                                var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
                                for (int j = 0; j < listlogic2.Count; j++)
                                {
                                    var logic = listlogic2[j];
                                    if (logic.LogicType != 2)
                                    {
                                        continue;
                                    }
                                    Common.Logic.LogicList.Add(logic);
                                }
                            }
                            var Idlist1 = await Send.GetLogicId(0);//
                            var Idlist2 = await Send.GetLogicId(2);//门锁常开模式
                            if (Idlist1.Count != 0)
                            {
                                var listlogic1 = await Send.ReadList(Idlist1.Count, 0);
                                for (int j = 0; j < listlogic1.Count; j++)
                                {
                                    var logic = listlogic1[j];
                                    if (logic.LogicType != 0)
                                    {
                                        continue;
                                    }
                                    Common.Logic.LogicList.Add(logic);
                                }
                            }
                            if (Idlist2.Count != 0)
                            {
                                var listlogic2 = await Send.ReadList(Idlist2.Count, 2);
                                for (int j = 0; j < listlogic2.Count; j++)
                                {
                                    var logic = listlogic2[j];
                                    if (logic.LogicType != 2)
                                    {
                                        continue;
                                    }
                                    Common.Logic.LogicList.Add(logic);
                                }
                            }
                        }
                    }