| | |
| | | #endif |
| | | |
| | | }; |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 分享与功能 |
| | | shareMenuButton = new MenuButton() |
| | |
| | | shareMenuButton.SelectAction = shateAction; |
| | | #endregion |
| | | |
| | | #region 报警类 |
| | | #region 报警类 |
| | | alarmMenuButton = new MenuButton() |
| | | { |
| | | X = shareMenuButton.Right, |
| | |
| | | MenuButtonSelect(2); |
| | | }; |
| | | alarmMenuButton.SelectAction = alarmAction; |
| | | #endregion |
| | | #endregion |
| | | |
| | | #region 系统信息 |
| | | #region 系统信息 |
| | | systemMenuButton = new MenuButton() |
| | | { |
| | | X = alarmMenuButton.Right, |
| | |
| | | X = systemMenuButton.Right, |
| | | Y = Application.GetRealWidth(16), |
| | | }; |
| | | //menuView.AddChidren(propertyMenuButton); //先屏蔽 |
| | | menuView.AddChidren(propertyMenuButton); //先屏蔽 |
| | | propertyMenuButton.ImageButton.SelectedImagePath = "Collection/MesCenter/SystemOn.png"; |
| | | propertyMenuButton.ImageButton.UnSelectedImagePath = "Collection/MesCenter/System.png"; |
| | | propertyMenuButton.TextButton.TextID = StringId.SystemMessage; |
| | | propertyMenuButton.TextButton.TextID = StringId.Propertynotice; |
| | | propertyMenuButton.TextButton.IsMoreLines = true; |
| | | Action propertyAction = () => |
| | | { |
| | | MenuButtonSelect(4); |
| | |
| | | #endregion |
| | | |
| | | //先屏蔽 |
| | | ////右paddingView |
| | | //menuView.AddChidren(new Button() { |
| | | // Width = Application.GetRealWidth(15), |
| | | // BackgroundColor = CSS_Color.viewTranslucence |
| | | //}); |
| | | //右paddingView |
| | | menuView.AddChidren(new Button() |
| | | { |
| | | Width = Application.GetRealWidth(15), |
| | | BackgroundColor = CSS_Color.viewTranslucence |
| | | }); |
| | | |
| | | } |
| | | |
| | |
| | | propertyMenuButton.IsSelected = true; |
| | | |
| | | } |
| | | |
| | | menuView.ScrollToX(selectId * Application.GetRealWidth(40)); |
| | | |
| | | GetPushMessageList(showMesType); |
| | | } |
| | |
| | | //btnTilte.MouseUpEventHandler = eventHandler; |
| | | //btnSubtitle.MouseUpEventHandler = eventHandler; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | try |
| | | { |
| | | var result = new HttpServerRequest().PushSerivceDeleteMessage(pushMessageInfo.id); |
| | | var delPush = new PushMsgIdObj() |
| | | { |
| | | msgId = pushMessageInfo.id, |
| | | pushType = pushMessageInfo.pushType |
| | | }; |
| | | |
| | | var result = new HttpServerRequest().PushSerivceDeleteMessage(delPush); |
| | | if (result) |
| | | { |
| | | PushMessageInfoList.Remove(pushMessageInfo); |
| | |
| | | void GetPushMessageList(int queryType = 0) |
| | | { |
| | | bodyScrolView.RemoveAll(); |
| | | if(PushMessageInfoList == null) |
| | | if (PushMessageInfoList == null) |
| | | { |
| | | PushMessageInfoList = new List<PushMessageInfo>(); |
| | | } |
| | |
| | | { |
| | | PushMessageInfoList.Clear(); |
| | | } |
| | | |
| | | |
| | | YearMark = "";//标记清空 |
| | | if (string.IsNullOrEmpty(OnAppConfig.Instance.PushId)) |
| | | { |
| | |
| | | //PushMessageInfoList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<PushMessageInfo>>(result.Data.ToString()); |
| | | //2021-08-28 改为分页接口 |
| | | var mPushMesList = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageInfoList>(result.Data.ToString()); |
| | | if(mPushMesList != null) { |
| | | if (mPushMesList != null) |
| | | { |
| | | PushMessageInfoList = mPushMesList.list; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | #region 测试 |
| | | #region 测试 |
| | | #if DEBUG |
| | | /// <summary> |
| | | /// |
| | |
| | | |
| | | #endif |
| | | |
| | | #endregion |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 标记所有推送消息已读 |