/// <summary> /// 获取未审核的退货留言数量 /// </summary> /// <returns></returns> protected string MessageText() { try { var count = _shopRefund.GetMessageCount(Guid.Empty, (int)ReturnMsgState.CheckPending); BtnReturnMsg.Enabled = count > 0; return(string.Format("退货留言({0})", count)); } catch (Exception ex) { RAM.Alert(ex.Message); } return(string.Empty); }
/// <summary> /// 是否存在未审核的退货留言 /// </summary> /// <param name="shopId"></param> /// <returns></returns> public bool IsExistNoAuditMessage(Guid shopId) { return(_shopRefundMessage.GetMessageCount(shopId, (int)ReturnMsgState.CheckPending) > 0); }