gxc
2019-12-25 944b87b6bcccb095cd73f13f4410fb20faf48f74
ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs
@@ -66,7 +66,7 @@
            var dicData = await this.GetMessageData();
            //关闭进度条
            this.CloseProgressBar(dicData == null && showReload == true ? ShowReLoadMode.YES : ShowReLoadMode.NO);
            HdlThreadLogic.Current.RunMain(() =>
            {
                //关闭刷新特效
@@ -188,7 +188,7 @@
            var rowControl = new RowLayoutControl(frameList.rowSpace / 2);
            frameList.AddChidren(rowControl);
            rowControl.Name = frameList.ChildrenCount.ToString();
            rowControl.MainKeys = recordInfo.RegId;
            rowControl.MainKeys = recordInfo.Id;
            this.dicAllRow[frameList.Name + "-" + rowControl.Name] = rowControl;
            //图标(现在测试)
@@ -240,7 +240,7 @@
                string msg = Language.StringByID(R.MyInternationalizationString.uDeleteMessageMsg);
                this.ShowMassage(ShowMsgType.Confirm, msg, async () =>
                {
                    await this.DeleteMsg(recordInfo.RegId, frameList, rowControl);
                    await this.DeleteMsg(recordInfo.Id, frameList, rowControl);
                });
            };
@@ -261,7 +261,7 @@
                if (sender != null)
                {
                    //标记已读(不管它成功不成功)
                    await this.SetTickIsRead(recordInfo.RegId);
                    await this.SetTickIsRead(recordInfo.Id);
                }
            };
        }
@@ -276,8 +276,14 @@
        /// <param name="strId"></param>
        private async System.Threading.Tasks.Task<bool> SetTickIsRead(string strId)
        {
            var pra = new { Id = strId };
            await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/TickIsRead", true, pra);
            string strUrl = "ZigbeeUsers/TickIsRead?Id=" + strId;
            var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET");
            if (result == null)
            {
                return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/TickIsRead", null, null);
            }
            //云端是不会返回东西的
            return true;
        }
@@ -335,9 +341,15 @@
        /// <param name="rowContr"></param>
        private async System.Threading.Tasks.Task<bool> DeleteMsg(string strId, FrameListControl frameList, RowLayoutControl rowContr)
        {
            var pra = new { Id = strId };
            var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/DeletePushMessage", true, pra);
            if (result == true && frameList != null)
            string strUrl = "ZigbeeUsers/DeletePushMessage?Id=" + strId;
            var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET");
            if (result == null)
            {
                return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/DeletePushMessage", null, null);
            }
            //云端是不会返回东西的
            if (frameList != null)
            {
                HdlThreadLogic.Current.RunMain(() =>
                {
@@ -347,7 +359,7 @@
                    this.AdjustControlLocation(frameList, rowContr);
                });
            }
            return result;
            return true;
        }
        /// <summary>