protected void grid_OnCustomColumnDisplayText(object sender, ASPxGridViewColumnDisplayTextEventArgs e) { if (e.Column.FieldName != "BindingTemplateID") { return; } if (e.Value != null) { ESB.BusinessService service = m_UddiService.GetBusinessServiceByTemplateID(e.Value.ToString()); ESB.BusinessEntity[] entityArray = m_UddiService.GetAllBusinessEntity(); ESB.BusinessEntity entity = entityArray.First(x => x.BusinessID == service.BusinessID); if (e.Column.Caption == "调用服务") { e.DisplayText = service.ServiceName; } else if (e.Column.Caption == "调用系统") { e.DisplayText = entity.Description; } } }
/// <summary> /// 获取到服务提供者导航 /// </summary> /// <returns></returns> public String GetProviderNav(String serivceID, String pageName) { StringBuilder sbNav = new StringBuilder(); if (serivceID == "All") { sbNav.AppendFormat(@"<li class=""active""><a href=""{0}?ServiceID={1}"">概览</a></li>", pageName, serivceID); } else { sbNav.Append(@"<li><a href=""#"">概览</a></li>"); } String nav = @"<li class=""active""><a href=""#"">概览</a></li> <li><a href=""Page?asp=1"">微信商城</a></li> <li><a href=""#"">企业服务总线</a></li> <li><a href=""#"">邦购网</a></li>"; ESB.BusinessEntity[] lstBE = uddiService.GetAllBusinessEntity(); return(nav); }