old mode 100755
new mode 100644
| | |
| | | CommonPage.Loading.Start(); |
| | | if (Common.Logic.LogicList.Count == 0) |
| | | { |
| | | //var Idlist = await Logic.Send.GetLogicId(); |
| | | //if (Idlist.Count != 0) |
| | | //{ |
| | | // foreach (var LogicId in Idlist) |
| | | // { |
| | | // var logic = await Logic.Send.GetLogic(LogicId); |
| | | // if (logic != null) |
| | | // { |
| | | // Common.Logic.LogicList.Add(logic); |
| | | // } |
| | | // } |
| | | //} |
| | | var Idlist = await Logic.Send.GetLogicId(); |
| | | var Idlist = await Logic.Send.GetLogicId(0); |
| | | if (Idlist.Count != 0) |
| | | { |
| | | var listlogic = await Logic.Send.ReadList(Idlist.Count); |
| | | for (int i = 0; i < Idlist.Count; i++) |
| | | var listlogic = await Logic.Send.ReadList(Idlist.Count,0); |
| | | //foreach可能集合已被修改,枚举操作可能不会执行,可能出现崩溃(建议for)。 |
| | | for (int j = 0; j < listlogic.Count; j++) |
| | | { |
| | | var LogicId = Idlist[i]; |
| | | //foreach可能集合已被修改,枚举操作可能不会执行,可能出现崩溃(建议for)。 |
| | | for (int j = 0; j < listlogic.Count; j++) |
| | | var logic = listlogic[j]; |
| | | if (logic.LogicType != 0) |
| | | { |
| | | var logic = listlogic[j]; |
| | | if (logic.LogicId == LogicId) |
| | | { |
| | | Common.Logic.LogicList.Add(logic); |
| | | } |
| | | continue; |
| | | } |
| | | Common.Logic.LogicList.Add(logic); |
| | | } |
| | | } |
| | | } |