private async void GotoApproalLogPage() { try { _commonFun.ShowLoading("查询中..."); var result = await _notifiMngService.GetNoticeApprovalLog(NoticeReaderId); if (result != null) { if (result.ResultCode == ResultType.Success) { var List = JsonConvert.DeserializeObject <List <ApproalLogDto> >(result.Body); List <ApproalLogDto> list = null; if (List != null && List.Count > 0) { list = (from n in List where n.ReplyContent != null select n).ToList(); if (list != null && list.Count > 0) { await Navigation.PushAsync <NoticeApproalLogViewModel>((vm, v) => vm.Init(list, "审核记录"), true); } else { _commonFun.AlertLongText("没有审核记录"); } } else { _commonFun.AlertLongText(result.Msg); } } else { _commonFun.AlertLongText(result.Msg); } } else { _commonFun.AlertLongText("查询时服务出现错误,,请重试"); } } catch (OperationCanceledException) { _commonFun.HideLoading(); _commonFun.AlertLongText("请求超时,请重试"); } catch (Exception) { _commonFun.HideLoading(); _commonFun.AlertLongText("查询异常,请重试"); } finally { _commonFun.HideLoading(); } }
private async void GotoReplyLogPage() { try { _commonFun.ShowLoading("查询中..."); if (NoticeListInfoDto.NoticeReaderId == null) { _commonFun.HideLoading(); _commonFun.AlertLongText("没有反馈记录."); return; } var result = await _notifiMngService.GetNoticeApprovalLog(int.Parse(NoticeListInfoDto.NoticeReaderId)); if (result != null) { if (result.ResultCode == ResultType.Success) { var List = JsonConvert.DeserializeObject <List <ApproalLogDto> >(result.Body); if (List != null && List.Count > 0) { await Navigation.PushAsync <NoticeApproalLogViewModel>((vm, v) => vm.Init(List, "反馈记录"), true); } else { _commonFun.AlertLongText(result.Msg); } } else { _commonFun.AlertLongText(result.Msg); } } else { _commonFun.AlertLongText("查询时服务出现错误,,请重试"); } } catch (OperationCanceledException) { _commonFun.HideLoading(); _commonFun.AlertLongText("请求超时,请重试"); } catch (Exception) { _commonFun.HideLoading(); _commonFun.AlertLongText("查询异常,请重试"); } finally { _commonFun.HideLoading(); } }