private void SaveCombinationInfo_Click(object sender, EventArgs e) { #region 合并论坛版块 if (this.CheckCookie()) { if (sourceforumid.SelectedValue == "0") { base.RegisterStartupScript("", "<script>alert('请选择相应的源论坛!');</script>"); return; } if (targetforumid.SelectedValue == "0") { base.RegisterStartupScript("", "<script>alert('请选择相应的目标论坛!');</script>"); return; } ForumInfo forumInfo = Forums.GetForumInfo(Utils.StrToInt(targetforumid.SelectedValue, 0)); if (forumInfo != null && forumInfo.Parentid == 0 && forumInfo.Layer == 0) { base.RegisterStartupScript("", "<script>alert('您所选择的目标论坛是\"论坛分类\"而不是\"论坛版块\",因此合并无效!');</script>"); return; } string result; if (!AdminForums.CombinationForums(sourceforumid.SelectedValue, targetforumid.SelectedValue)) { result = "<script>alert('当前节点下面有子结点,因此合并无效!');window.location.href='forum_forumcombination.aspx';</script>"; base.RegisterStartupScript("", result); return; } else { AdminVistLogs.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "合并论坛版块", "合并论坛版块" + sourceforumid.SelectedValue + "到" + targetforumid.SelectedValue); base.RegisterStartupScript("PAGE", "window.location.href='forum_forumstree.aspx';"); return; } } #endregion }