private void Bind() { DataTable dtNode = objMNode.GetModeNodeFromCache(); DataRow[] dr; KingTop.BLL.SysManage.Top top = new KingTop.BLL.SysManage.Top(); //公告 201008027 胡志瑶 1.加上长度 //rptMessage.DataSource = top.GetMessage(3, siteid.ToString(), UserNo, userid); //rptMessage.DataBind(); dr = dtNode.Select("WebSiteID=" + siteid + " AND ParentNode='0'", "NodelOrder asc,NodeCode asc"); for (int i = 0; i < dr.Length; i++) { if (userid == "0" || HasLeftMenuRights(dr[i]["NodeCode"].ToString())) { string strIcon = dr[i]["NodelIcon"].ToString() == "" ? "../img/sicon.gif" : dr[i]["NodelIcon"].ToString(); strNode = strNode + "<li><a style='color:#fff' href='javascript:treecontent(" + j + ");' title='" + dr[i]["NodeName"].ToString() + "'>" + dr[i]["NodeName"].ToString() + "</a></li>"; //if(i<5) strNodes = strNodes + "<div id=\"treecontent" + j + "\" title=\"" + dr[i]["NodeName"].ToString() + "\"><div style=\"cursor:pointer; padding-top: 5px; \" id=\"tree" + (j + 1) + "\"></div></div>"; modulecode = dr[i]["NodeCode"].ToString(); CreateSubTree(dr[i]["NodeCode"].ToString(), "data" + j); dataArr += "var data" + j + " = new Array();"; j++; } } }
private void InnitNote() { KingTop.BLL.SysManage.Top top = new KingTop.BLL.SysManage.Top(); //公告 rptNote.DataSource = top.GetMessage(5, SiteID.ToString(), UserNo, userID); rptNote.DataBind(); }