private void DelRec_Click(object sender, EventArgs e) { #region 除指定条件的日志信息 if (this.CheckCookie()) { string condition = ""; condition = AdminModeratorLogs.GetDeleteModeratorManageCondition(Request.Form["deleteMode"].ToString(), DNTRequest.GetString("id").ToString(), deleteNum.Text.ToString(), deleteFrom.SelectedDate.ToString()); if (condition != "") { AdminPaymentLogs.DeleteLog(condition); Response.Redirect("forum_paymentloggrid.aspx"); } else { base.RegisterStartupScript("", "<script>alert('您未选中任何选项或输入参数错误!');window.location.href='forum_paymentloggrid.aspx';</script>"); } } #endregion }
private void DelRec_Click(object sender, EventArgs e) { #region 除指定条件的日志信息 if (this.CheckCookie()) { string condition = ""; //switch (Request.Form["deleteMode"]) //{ // case "chkall": // if (DNTRequest.GetString("id") != "") // condition = " [id] IN(" + DNTRequest.GetString("id") + ")"; // break; // case "deleteNum": // if (deleteNum.Text != "" && Utils.IsNumeric(deleteNum.Text)) // condition = " [id] not in (select top " + deleteNum.Text + " [id] from [" + BaseConfigs.GetTablePrefix + "paymentlog] order by [id] desc)"; // break; // case "deleteFrom": // if (deleteFrom.SelectedDate.ToString() != "") // condition = " [buydate]<'" + deleteFrom.SelectedDate.ToString() + "'"; // break; //} condition = DatabaseProvider.GetInstance().DelModeratorManageCondition(Request.Form["deleteMode"].ToString(), DNTRequest.GetString("id").ToString(), deleteNum.Text.ToString(), deleteFrom.SelectedDate.ToString()); if (condition != "") { AdminPaymentLogs.DeleteLog(condition); Response.Redirect("forum_paymentloggrid.aspx"); } else { base.RegisterStartupScript("", "<script>alert('您未选中任何选项或输入参数错误!');window.location.href='forum_paymentloggrid.aspx';</script>"); } } #endregion }