| | |
| | | <Properties StartupConfiguration="{F1296E2C-3777-4385-85B2-DA77617E3178}|Default"> |
| | | <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.SelectDevice" /> |
| | | <MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.SelectDevice" /> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/Device/Logic/MemberList.cs"> |
| | | <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/Device/Logic/TemplatePage.cs"> |
| | | <Files> |
| | | <File FileName="Shared/Phone/Device/Logic/DelayTime.cs" Line="208" Column="58" /> |
| | | <File FileName="Shared/Phone/Device/Category/Category.cs" Line="105" Column="19" /> |
| | | <File FileName="Shared/Phone/Device/Logic/DeviceStateCondition.cs" Line="1433" Column="51" /> |
| | | <File FileName="Shared/Phone/Device/Logic/MemberList.cs" Line="117" Column="30" /> |
| | | <File FileName="Shared/Phone/Device/Logic/MemberList.cs" Line="421" Column="58" /> |
| | | <File FileName="Shared/Phone/Device/Logic/Send.cs" Line="577" Column="56" /> |
| | | <File FileName="Shared/Common/Logic.cs" Line="53" Column="42" /> |
| | | <File FileName="Shared/Phone/Device/Logic/LogicCommunalPage.cs" Line="2013" Column="11" /> |
| | | <File FileName="Shared/Phone/Device/Logic/DoorLockLogic/LockLogicCommunalPage.cs" Line="1083" Column="73" /> |
| | | <File FileName="Shared/Phone/Device/Logic/TemplatePage.cs" Line="1" Column="1" /> |
| | | </Files> |
| | | <Pads> |
| | | <Pad Id="ProjectPad"> |
| | | <State name="__root__"> |
| | | <Node name="GateWay" expanded="True"> |
| | | <Node name="Shared" expanded="True"> |
| | | <Node name="Common" expanded="True" /> |
| | | <Node name="Phone" expanded="True"> |
| | | <Node name="Device" expanded="True"> |
| | | <Node name="Account" expanded="True" /> |
| | | <Node name="Category" expanded="True" /> |
| | | <Node name="Logic" expanded="True"> |
| | | <Node name="MemberList.cs" selected="True" /> |
| | | <Node name="DoorLockLogic" expanded="True" /> |
| | | <Node name="TemplatePage.cs" selected="True" /> |
| | | </Node> |
| | | </Node> |
| | | <Node name="UserCenter" expanded="True"> |
| | |
| | | /// 推送内容 |
| | | /// </summary> |
| | | public string LogicCustomPushText=string.Empty; |
| | | /// <summary> |
| | | /// 记录推送开关状态 |
| | | /// </summary> |
| | | public int LogicIsCustomPushText = 0; |
| | | |
| | | //public Dictionary<string, string> TimeAttribute = new Dictionary<string, string>(); |
| | | public TimeAttributeObj TimeAttribute = new TimeAttributeObj(); |
| | |
| | | { |
| | | tag = true; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(160); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("添加/更新", "/App/HomeLogicConfig", "POST"); |
| | |
| | | { |
| | | tag = false; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(0); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("删除", "/App/DelHomeLogicConfig", "POST"); |
| | |
| | | |
| | | } |
| | | }; |
| | | |
| | | if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0) |
| | | { |
| | | btnswitch.IsSelected = false; |
| | | } |
| | | else |
| | | { |
| | | btnswitch.IsSelected = true; |
| | | } |
| | | var saveFrameLayout = new FrameLayout |
| | | { |
| | | Y = middle.Bottom, |
| | |
| | | { |
| | | tag = true; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(160); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("添加/更新", "/App/HomeLogicConfig", "POST"); |
| | |
| | | { |
| | | tag = false; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(0); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("删除", "/App/DelHomeLogicConfig", "POST"); |
| | |
| | | |
| | | } |
| | | }; |
| | | if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0) |
| | | { |
| | | btnswitch.IsSelected = false; |
| | | } |
| | | else |
| | | { |
| | | btnswitch.IsSelected = true; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | |
| | | { "Relationship",logic.Relationship} , |
| | | { "LogicType",logic.LogicType} , |
| | | { "LogicCustomPushText",logic.LogicCustomPushText} , |
| | | { "LogicIsCustomPushText",logic.LogicIsCustomPushText} , |
| | | { "TimeAttribute", timeAttribute} , |
| | | { "Conditions", conditions }, |
| | | { "Actions", actions }, |
| | |
| | | date.Add("LogicName", logic.LogicName); |
| | | date.Add("Relationship", logic.Relationship); |
| | | date.Add("LogicCustomPushText", logic.LogicCustomPushText); |
| | | date.Add("LogicIsCustomPushText", logic.LogicIsCustomPushText); |
| | | mainGateWay?.Send("Logic/ReviseAttribute", jObject.ToString()); |
| | | //await System.Threading.Tasks.Task.Run(async () => |
| | | //{ |
| | |
| | | logic.LogicType = int.Parse(Logicifon["LogicType"].ToString()); |
| | | logic.Relationship = int.Parse(Logicifon["Relationship"].ToString()); |
| | | logic.LogicCustomPushText =Logicifon["LogicCustomPushText"].ToString(); |
| | | logic.LogicIsCustomPushText = int.Parse(Logicifon["LogicIsCustomPushText"].ToString()); |
| | | logic.TimeAttribute = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.TimeAttributeObj>(Logicifon["TimeAttribute"].ToString()); |
| | | logic.Conditions = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(Logicifon["Conditions"].ToString()); |
| | | logic.Accounts = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Dictionary<string, string>>>(Logicifon["Accounts"].ToString()); |
| | |
| | | { |
| | | tag = true; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(160); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 1; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("添加/更新", "/App/HomeLogicConfig", "POST"); |
| | |
| | | { |
| | | tag = false; |
| | | custompushFrameLayout.Height = Application.GetRealHeight(0); |
| | | Common.Logic.CurrentLogic.LogicIsCustomPushText = 0; |
| | | if (Common.Logic.CurrentLogic.LogicId != 0) |
| | | { |
| | | Send.Data("删除", "/App/DelHomeLogicConfig", "POST"); |
| | |
| | | |
| | | } |
| | | }; |
| | | if (Common.Logic.CurrentLogic.LogicIsCustomPushText == 0) |
| | | { |
| | | btnswitch.IsSelected = false; |
| | | } |
| | | else |
| | | { |
| | | btnswitch.IsSelected = true; |
| | | } |
| | | var saveFrameLayout = new FrameLayout |
| | | { |
| | | Y = middle.Bottom, |