private void Delete(HttpContext context) { int value = base.GetIntParam(context, "ReviewId", false).Value; if (ProductCommentHelper.DeleteProductReview(value)) { base.ReturnSuccessResult(context, "成功删除了选择的商品评论回复!", 0, true); return; } throw new HidistroAshxException("删除商品评论失败!"); }
private void dlstPtReviews_DeleteCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e) { if (ProductCommentHelper.DeleteProductReview((long)System.Convert.ToInt32(e.CommandArgument, System.Globalization.CultureInfo.InvariantCulture)) > 0) { this.ShowMsg("成功删除了选择的商品评论回复", true); this.BindPtReview(); } else { this.ShowMsg("删除失败", false); } }
private void dlstPtReviews_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e) { int num = int.Parse(this.dlstPtReviews.DataKeys[e.RowIndex].Value.ToString()); if (ProductCommentHelper.DeleteProductReview((long)num) > 0) { this.ShowMsg("成功删除了选择的客户评论", true); this.BindPtReview(); return; } this.ShowMsg("删除失败", false); }
private void dlstPtReviews_DeleteCommand(object source, DataListCommandEventArgs e) { if (ProductCommentHelper.DeleteProductReview((long)Convert.ToInt32(e.CommandArgument, CultureInfo.InvariantCulture)) > 0) { ShowMsg("成功删除了选择的商品评论回复", true); BindPtReview(); } else { ShowMsg("删除失败", false); } }
private void dlstPtReviews_RowDeleting(object sender, GridViewDeleteEventArgs e) { if (ProductCommentHelper.DeleteProductReview((long)int.Parse(this.dlstPtReviews.DataKeys[e.RowIndex].Value.ToString())) > 0) { this.ShowMsg("成功删除了选择的商品评论回复", true); this.BindPtReview(); } else { this.ShowMsg("删除失败", false); } }