private void cargarNodos() { try { StringBuilder sb = new StringBuilder(); SqlDataReader dr = NODO.CatalogoNodosNaturalezas(); string sTootTip = ""; sb.Append("<table id='tblNodos' class='texto MANO' style='width: 380px;'>"); sb.Append("<colgroup><col style='width:50px;' /><col style='width:30px;' /><col style='width:270px;' /><col style='width:30px;' /></colgroup>"); sb.Append("<tbody>"); while (dr.Read()) { sTootTip = ""; if (Utilidades.EstructuraActiva("SN4")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO4) + ":</label> " + dr["t394_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN3")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO3) + ":</label> " + dr["t393_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN2")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO2) + ":</label> " + dr["t392_denominacion"].ToString() + "<br>"; } if (Utilidades.EstructuraActiva("SN1")) { sTootTip += "<label style='width:60px'>" + Estructura.getDefCorta(Estructura.sTipoElem.SUPERNODO1) + ":</label> " + dr["t391_denominacion"].ToString(); } sb.Append("<tr id='" + dr["t303_idnodo"].ToString() + "' "); if ((bool)dr["t303_defectoPIG"]) { sb.Append("defectoPIG=1 "); } else { sb.Append("defectoPIG=0 "); } sb.Append("style='height:20px;' onclick='ms(this);getNaturalezas(this);'>"); if ((bool)dr["t303_defectoPIG"]) { sb.Append("<td style='text-align:center;'><input type='checkbox' class='check' onclick='setEstadistica()' checked></td>"); } else { sb.Append("<td style='text-align:center;'><input type='checkbox' class='check' onclick='setEstadistica()'></td>"); } sb.Append("<td style='text-align:right; padding-right:3px'>" + dr["t303_idnodo"].ToString() + "</td>"); sb.Append("<td style='padding-left:8px;'><nobr class='NBR W260' style='noWrap:true;' title=\"cssbody=[dvbdy] cssheader=[dvhdr] header=[<img src='../../../images/info.gif' style='vertical-align:middle'> Estructura] body=[" + sTootTip + "] hideselects=[off]\">" + dr["t303_denominacion"].ToString() + "</nobr></td>"); sb.Append("<td style='text-align:right; padding-right:4px;'>" + dr["num_naturalezas"].ToString() + "</td>"); sb.Append("</tr>"); } dr.Close(); dr.Dispose(); sb.Append("</tbody>"); sb.Append("</table>"); strTablaHTML = sb.ToString(); } catch (Exception ex) { sErrores += Errores.mostrarError("Error al cargar los nodos", ex); } }