private void BindTree() { BindTree mBindTree; ModuleBLL mModuleBLL = new ModuleBLL(); DataTable dtDataSouce = null; if (base.UserInfo == null) { TB_Module mTB_Module = new TB_Module(); mTB_Module.IsActive = 1; mTB_Module.SiteID = base.SystemAdminInfo.SiteID; dtDataSouce = mModuleBLL.GetAllModule(mTB_Module); } else { dtDataSouce = mModuleBLL.GetUserModule(base.UserInfo.ID); } mBindTree = new BindTree(this.treModule); mBindTree.NodeIDCol = "ID"; mBindTree.NodeParentCol = "PID"; mBindTree.NodeTitleCol = "Name"; mBindTree.NodeUrlCol = "URL"; mBindTree.DataSouce = dtDataSouce; mBindTree.Bind(); }