//批量删除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevel("manager_log", DTEnums.ActionEnum.Delete.ToString()); //检查权限 BLL.manager_log bll = new BLL.manager_log(); int sucCount = bll.Delete(7); AddAdminLog(DTEnums.ActionEnum.Delete.ToString(), "删除管理日志" + sucCount + "条"); //记录日志 JscriptMsg("删除日志" + sucCount + "条", Utils.CombUrlTxt("manager_log.aspx", "keywords={0}", this.keywords)); }
//批量删除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevel("manager_log", DTEnums.ActionEnum.Delete.ToString()); //检查权限 BLL.manager_log bll = new BLL.manager_log(); int sucCount = bll.Delete(7); AddAdminLog(DTEnums.ActionEnum.Delete.ToString(), "删除管理日志" + sucCount + "条"); //记录日志 JscriptMsg("删除日志" + sucCount + "条", Utils.CombUrlTxt("manager_log.aspx", "keywords={0}", txtKeywords.Text), "Success"); }
//批量删除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevel("manager_log", DTEnums.ActionEnum.Delete.ToString()); //检查权限 BLL.manager_log bll = new BLL.manager_log(); int sucCount = bll.Delete(7); AddAdminLog(DTEnums.ActionEnum.Delete.ToString(), "删除管理日志" + sucCount + "条"); //记录日志 JscriptMsg("删除日志" + sucCount + "条", Utils.CombUrlTxt("manager_log.aspx", "start_time={0}&end_time={1}&keywords={2}", this.start_time, this.end_time, this.keywords)); }
//批次刪除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevelEdit("manager_log", "Edit"); //ChkAdminLevel("manager_log", TWEnums.ActionEnum.Delete.ToString()); //檢查許可權 BLL.manager_log bll = new BLL.manager_log(); int sucCount = bll.Delete(7); AddAdminLog(TWEnums.ActionEnum.Delete.ToString(), "刪除管理日誌" + sucCount + "條"); //記錄日誌 JscriptMsg("刪除日誌" + sucCount + "條", Utils.CombUrlTxt("manager_log.aspx", "keywords={0}", this.keywords)); }
//批量删除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevel("sys_log", DTEnums.ActionEnum.Delete.ToString()); //检查权限 BLL.manager_log bll = new BLL.manager_log(); for (int i = 0; i < rptList.Items.Count; i++) { int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value); CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId"); if (cb.Checked) { bll.Delete(id); } } JscriptMsg("批量删除成功啦!", Utils.CombUrlTxt("manager_log.aspx", "keywords={0}", this.keywords), "Success"); }
//批量删除 protected void btnDelete_Click(object sender, EventArgs e) { ChkAdminLevel("sys_log", DTEnums.ActionEnum.Delete.ToString()); //检查权限 BLL.manager_log bll = new BLL.manager_log(); for (int i = 0; i < rptList.Items.Count; i++) { int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value); CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId"); if (cb.Checked) { bll.Delete(id); } } JscriptMsg("批量删除成功啦!", Utils.CombUrlTxt("manager_log.aspx", "keywords={0}", this.keywords), "Success"); }