Web/BBS/Admin/MasterSet.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
using DotBBS.Business;
using DotBBS.Common;
using DotBBS.Model;
//============================================================================
// 官方支持:DotBBS.Net 作者:吸铁石团队(水煮鱼)
//============================================================================
public partial class Admin_MasterSet : DotAdminPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string UserID = Request.QueryString["UserID"];
lblUserID.Text = UserID;
InitBoardTree(UserID);
}
}
private void InitBoardTree(string UserID)
{
UserBll bll = new UserBll();
string bigClassIDs = bll.Scalar("BigClassIDS","and UserID='"+UserID+"'").ToString();
string smallClassIDs = bll.Scalar("SmallClassIDS", "and UserID='" + UserID + "'").ToString();
TreeNode node = null;
TreeNode childNode = null;
BigClassBll bcBll = new BigClassBll();
IList<BigClass> bcList= bcBll.GetList("order by BigClassPos","All");
foreach(BigClass bc in bcList)
{
node = new TreeNode();
node.ShowCheckBox = true;
node.Text = bc.BigClassName + "(" + bc.BigClassID + ")";
node.Expanded = true;
if (bigClassIDs.IndexOf(bc.BigClassID + ",") > -1)
{
node.Checked = true;
}
else
{
node.Checked = false;
}
int BigClassID =bc.BigClassID;
SmallClassBll scBll=new SmallClassBll();
IList<SmallClass> scList=scBll.GetList("and BigClassID="+BigClassID+" order by SmallClassPos",BigClassID.ToString());
foreach(SmallClass sc in scList)
后面还有 50 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。