void UcTreeMenuList_NodeBinding(object sender, TreeNodeBindingEventArgs e) { //oNode.getAttribute("nodedata") = team_id //oNode.getAttribute("text") = team_name //oNode.getAttribute("type") = team_type string teamId = Fn.ToString(e.Row["team_id"]); string teamPid = Fn.ToString(e.Row["team_pid"]); string teamGuid = Fn.ToString(e.Row["team_guid"]); string teamName = Fn.ToString(e.Row["text"]); string teamType = Fn.ToString(e.Row["type"]); string teamTypeId = Fn.ToString(e.Row["team_type_id"]); string imageUrl = Fn.ToString(e.Row["image_url"]); e.Node.NodeData = teamId; e.Node.Text = teamName; e.Node.Type = teamType; e.Node.ImageUrl = imageUrl; e.Node.ExtendedProperties.Add("team_guid", teamGuid); e.Node.ExtendedProperties.Add("team_type_id", teamTypeId); //根节点下也可以挂人 e.Node.Target = "IfraSubWindow"; e.Node.NavigateUrl = string.Format("TeamUserList.aspx?TeamId={0}&TeamGuid={1}", teamId, teamGuid); //根节点 if (teamId == "0") e.Node.ImageUrl = "Image/root.gif"; }
void UcTreeMenuList_NodeBinding(object sender, TreeNodeBindingEventArgs e) { e.Node.Text = Fn.ToString(e.Row["FUNCTION_name"]); if (e.Node.Text == string.Empty) { e.Node.Text = "Empty"; } if (!Fn.ToBoolean(e.Row["enable_flag"])) { e.Node.Text = e.Node.Text + "(Disabled)"; } //if (Fn.ToInt(e.Row["version"]) < 2) //{ // e.Node.Text = @"<span style='background-color:yellow;color:blue'>" + e.Node.Text + "</span>"; // e.Node.Type = "1"; //} //else //{ // e.Node.Type = "2"; //} if (Fn.ToInt(e.Row["function_type_id"]) == 4) { e.Node.Text = @"<span style='font-weight:bold;'>" + e.Node.Text + "</span>"; } e.Node.ImageUrl = "Image/folder.small.png"; }
void UcTreeMenuList_NodeBinding(object sender, TreeNodeBindingEventArgs e) { e.Node.Text = Fn.ToString(e.Row["menu_name_" + DBSetting.MultiLanguageSuffix]); string pageUrl = Fn.ToString(e.Row["page_url"]); if (pageUrl != string.Empty) { e.Node.NavigateUrl = "Navigate.aspx?FuncID=" + Fn.ToString(e.Row["function_id"]); #region //if (pageUrl[0] == '/') //{ // e.Node.NavigateUrl = UrlHelper.UrlBase + pageUrl; //} //else //{ // e.Node.NavigateUrl = pageUrl; //} #endregion } //string target = Fn.ToString(e.Row["target"]); //if (target != string.Empty) //{ // e.Node.Target = target; //} }
void Trv1_NodeBinding(object sender, TreeNodeBindingEventArgs e) { #region //树分页的处理 //DZD 2007-12-10 //e.Node.ExtendedProperties.Add("geo_pid", Fn.ToString(e.Row["geo_pid"])); //e.Node.ExtendedProperties.Add("childCount", Fn.ToString(e.Row["childcount"]));//当前节点的子节点个数 //e.Node.ExtendedProperties.Add("currcount", Fn.ToString(e.Row["currcount"]));//树分页,当前节点已经取出的子节点的个数 //e.Node.ExtendedProperties.Add("lastcount", Fn.ToString(e.Row["lastcount"]));//树分页,当前节点的子节点总数 //e.Node.NodeData = Fn.ToString(e.Row["geo_id"]);//oNode.getAttribute("nodedata") = geo_id //e.Node.Text = Fn.ToString(e.Row["text"]); //oNode.getAttribute("text") = geo_name //e.Node.Type = Fn.ToString(e.Row["type"]);//oNode.getAttribute("type") = geo_type //if (e.Row.Table.Columns["currPageIndex"] != null)//只有在[See More]节点出现,才有 currPageIndex 数据 // e.Node.ExtendedProperties.Add("currPageIndex", Fn.ToString(e.Row["currPageIndex"])); ////是否有子节点,分级取节点 ////第一次,取数据,如果数据库没有根节点的话,会增加一条根节点。 ////把根节点和其下的子节点取出来,如果是根节点的话,不设置 TreeNodeSrc。节省了一次数据库连接。 //if (Fn.ToInt(e.Row["hasChild"]) == -1 && !string.IsNullOrEmpty(Fn.ToString(e.Row["geo_pid"]))) // e.Node.TreeNodeSrc = string.Format("JxcGeographyGetChildNodes.aspx?parentNodeID={0}", Fn.ToString(e.Row["geo_id"])); //if (e.Node.Text == string.Empty) // e.Node.Text = "Empty"; #endregion //树的不分页处理 e.Node.NodeData = Fn.ToString(e.Row["geo_id"]);//oNode.getAttribute("nodedata") = geo_id e.Node.Text = Fn.ToString(e.Row["text"]); //oNode.getAttribute("text") = geo_name e.Node.Type = Fn.ToString(e.Row["type"]);//oNode.getAttribute("type") = geo_type }
void Trv1_NodeBinding(object sender, TreeNodeBindingEventArgs e) { e.Node.Text = Fn.ToString(e.Row["function_name"]); if (e.Node.Text == string.Empty) e.Node.Text = "Empty"; }
void Trv1_NodeBinding(object sender, TreeNodeBindingEventArgs e) { //树的不分页处理 e.Node.NodeData = Fn.ToString(e.Row["folder_id"]);//oNode.getAttribute("nodedata") = geo_id e.Node.Text = Fn.ToString(e.Row["folder_name"]); //oNode.getAttribute("text") = geo_name }
void UcTreeList_NodeBinding(object sender, TreeNodeBindingEventArgs e) { e.Node.Text = Fn.ToString(e.Row["function_name_" + DBSetting.MultiLanguageSuffix]); string pageUrl = Fn.ToString(e.Row["page_url"]); if (pageUrl != string.Empty) { e.Node.NavigateUrl = "Navigate.aspx?FuncID=" + Fn.ToString(e.Row["function_id"]); } //string target = Fn.ToString(e.Row["target"]); //if (target != string.Empty) //{ // e.Node.Target = target; //} }
void UcTreeMenuList_NodeBinding(object sender, TreeNodeBindingEventArgs e) { e.Node.Text = Fn.ToString(e.Row["FUNCTION_name_" + DBSetting.MultiLanguageSuffix]); string pageUrl = Fn.ToString(e.Row["page_url"]); if (pageUrl != string.Empty) { if (pageUrl[0] == '/') { e.Node.NavigateUrl = UrlHelper.UrlBase + pageUrl; } else { e.Node.NavigateUrl = pageUrl; } } string target = Fn.ToString(e.Row["target"]); if (target != string.Empty) { e.Node.Target = target; } }