| | |
| | | return logicIdList; |
| | | } |
| | | mainGateWay.GwResDataAction += action; |
| | | |
| | | var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2004 } }; |
| | | var jObjectdata1 = new JObject { { "LogicType", LogicType } }; |
| | | jObject.Add("Data", jObjectdata1); |
| | | mainGateWay?.Send("Logic/GetLogicList", jObject.ToString()); |
| | | try |
| | | { |
| | | var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2004 } }; |
| | | var jObjectdata1 = new JObject { { "LogicType", LogicType } }; |
| | | jObject.Add("Data", jObjectdata1); |
| | | mainGateWay?.Send("Logic/GetLogicList", jObject.ToString()); |
| | | } |
| | | catch(Exception e) { |
| | | var d = e.Message; |
| | | } |
| | | //await System.Threading.Tasks.Task.Run(async () => |
| | | //{ |
| | | var dateTime = DateTime.Now; |
| | |
| | | |
| | | try |
| | | { |
| | | |
| | | |
| | | var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 2000 } }; |
| | | var selectMonthList = new JArray { }; |
| | | foreach (var intvalue in logic.TimeAttribute.SelectMonDate) |
| | |
| | | ["Type"] = int.Parse(dictionary["Type"]), |
| | | ["Account"] = dictionary["Account"], |
| | | ["UserId"] = dictionary["UserId"], |
| | | ["AccountName"] = dictionary["AccountName"], |
| | | |
| | | }; |
| | | accounts.Add(accounts1); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | var data = new JObject{ |
| | | { "LogicId",logic.LogicId}, |
| | | { "IsEnable", logic.IsEnable} , |