private void BuildSpecialNode(LeftMenuNode node, string id) { DataTable dt; if (node.Data.Trim() == "105") { // UserInfoUtil UserInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; XBase.Business.Personal.Culture.CultureType bll = new XBase.Business.Personal.Culture.CultureType(); dt = bll.GetList("CompanyCD='" + UserInfo.CompanyCD + "'"); nodeLevel--; id = "0"; node.Data = "10590"; } else { XBase.Business.KnowledgeCenter.KnowledgeType bll = new XBase.Business.KnowledgeCenter.KnowledgeType(); dt = bll.Select().Tables[0]; } nodeLevel++; foreach (DataRow row in dt.Select("SupperTypeID=" + id)) { BuildSpecialSubNode(node, row, dt, node.Data); } nodeLevel--; if (node.Data.Trim() == "10590") { nodeLevel++; } }
private void LoadKnowledgeType() { XBase.Business.KnowledgeCenter.KnowledgeType bll = new XBase.Business.KnowledgeCenter.KnowledgeType(); DataSet ds = bll.Select(); this.keywordType.Items.Add(new ListItem("--请选择--", "-1")); foreach (DataRow row in ds.Tables[0].Select("SupperTypeID=" + Pid)) { this.keywordType.Items.Add(new ListItem(getSep() + row["TypeName"].ToString(), row["ID"].ToString())); LoadSubType(row["ID"].ToString(), ds); } }