private void grdActivity_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e)
        {
            int activityId = (int)this.grdActivity.DataKeys[e.RowIndex].Value;

            if (VShopHelper.DeleteActivity(activityId))
            {
                this.BindData();
                this.ShowMsg("成功删除了选定的活动", true);
                return;
            }
            this.ShowMsg("删除活动失败", false);
        }
        public void Delete(HttpContext context)
        {
            int?intParam = base.GetIntParam(context, "id", true);

            if (!intParam.HasValue)
            {
                throw new HidistroAshxException("错误的编号");
            }
            if (VShopHelper.DeleteActivity(intParam.Value))
            {
                base.ReturnSuccessResult(context, "删除成功", 0, true);
                return;
            }
            throw new HidistroAshxException("删除失败!");
        }