private string obtenerAdministradores() { StringBuilder sb = new StringBuilder(); try { SqlDataReader dr = ADMINISTRADORES.Catalogo(); sb.Append("<TABLE id='tblDatos2' style='width: 450px;' class='texto MM' mantenimiento='1'>"); sb.Append("<colgroup><col style='width:11px;' /><col style='width: 20px' /><col style='width: 300px;' /><col style='width: 40px;' /><col style='width: 40px;' /><col style='width: 40px;' /></colgroup>"); sb.Append("<tbody>"); while (dr.Read()) { sb.Append("<tr id='" + dr["t001_idficepi"].ToString() + "' bd='' style='height:20px;' tipo='" + dr["tipo"].ToString() + "'"); sb.Append(" onmousedown='DD(event)' onclick='mm(event)'>"); sb.Append("<td style='padding-left:1px'><img src='../../../images/imgFN.gif'></td>"); sb.Append("<td align='center'>"); if (dr["t001_sexo"].ToString() == "V") { switch (dr["tipo"].ToString()) { case "P": sb.Append("<img src='../../../images/imgUsuPV.gif'>"); break; case "E": sb.Append("<img src='../../../images/imgUsuEV.gif'>"); break; case "F": sb.Append("<img src='../../../images/imgUsuFV.gif'>"); break; } } else { switch (dr["tipo"].ToString()) { case "P": sb.Append("<img src='../../../images/imgUsuPM.gif'>"); break; case "E": sb.Append("<img src='../../../images/imgUsuEM.gif'>"); break; case "F": sb.Append("<img src='../../../images/imgUsuFM.gif'>"); break; } } sb.Append("</td>"); sb.Append("<td style='text-align:left;' ><nobr class='NBR' style='width:295px'>" + dr["Profesional"].ToString() + "</nobr></td>"); sb.Append("<td><input type='checkbox' class='check' onclick='exclusivo(this,1)' "); if (dr["t399_figura"].ToString() == "A") { sb.Append("checked=true"); } sb.Append("></td>"); sb.Append("<td><input type='checkbox' class='check' onclick='exclusivo(this,2)' "); if (dr["t399_figura"].ToString() == "S") { sb.Append("checked=true"); } sb.Append("></td>"); sb.Append("<td><input type='checkbox' class='check' onclick='exclusivo(this,3)' "); if (dr["t399_figura"].ToString() == "P") { sb.Append("checked=true"); } sb.Append("></td>"); sb.Append("</tr>" + (char)10); } dr.Close(); dr.Dispose(); sb.Append("</tbody>"); sb.Append("</table>"); return("OK@#@" + sb.ToString());; } catch (Exception ex) { return("Error@#@" + Errores.mostrarError("Error al obtener la relaciĆ³n de administradores.", ex)); } }