private string obtenerNodosSel(string sIdsCRsFav) { string sResul = ""; try { System.Text.StringBuilder sb = new System.Text.StringBuilder(); SqlDataReader dr = null; dr = NODO.FavoritosIAP(sIdsCRsFav); sb.Append("<table id='tblDatos2' class='texto MM' style='width: 430px;'>" + (char)10); sb.Append("<colgroup><col style='width:430px;' /></colgroup>" + (char)10); sb.Append("<tbody>"); string sTootTip = ""; while (dr.Read()) { sb.Append("<tr id='" + dr["IDENTIFICADOR"].ToString() + "'"); sb.Append("onclick='mm(event)' onmousedown='DD(event)' "); sTootTip = ""; if (Utilidades.EstructuraActiva("SN4")) { sTootTip = "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO4) + ":</label> " + dr["DES_SN4"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN3")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO3) + ":</label> " + dr["DES_SN3"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN2")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO2) + ":</label> " + dr["DES_SN2"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN1")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO1) + ":</label> " + dr["DES_SN1"].ToString() + "<br>"; } sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.NODO) + ":</label> " + dr["DENOMINACION"].ToString(); sb.Append("style='height:16px;noWrap:true;' title=\"cssbody=[dvbdy] cssheader=[dvhdr] header=[<img src='../../../images/info.gif' style='vertical-align:middle'> Estructura] body=[" + sTootTip + "] hideselects=[off]\">"); sb.Append("<td style='padding-left:5px; cursor:pointer;' >" + dr["DENOMINACION"].ToString() + "</td>"); sb.Append("</tr>" + (char)10); } dr.Close(); dr.Dispose(); sb.Append("</tbody>"); sb.Append("</table>"); sResul = "OK@#@" + sb.ToString(); } catch (System.Exception objError) { sResul = "Error@#@" + Errores.mostrarError("Error al leer el catálogo de nodos seleccionados ", objError); } return(sResul); }