public void adicionarProcedimiento(Map<String, Object> pcd) { String codigo_cups = (String) pcd.get("codigo_cups"); String nombre_procedimiento = (String) pcd.get("nombre_procedimiento"); String codigo_manual = (String) pcd.get("codigo_manual"); Double valor_defecto = 0D; String tipo = lbxTipo_manual.getSelectedItem().getValue().toString(); if (tipo.equals(IConstantes.TIPO_MANUAL_SOAT)) { valor_defecto = (Double) pcd.get("porcentaje_defecto"); } else if (tipo.equals(IConstantes.TIPO_MANUAL_ISS01)) { valor_defecto = (Double) pcd.get("valoriss01_defecto"); } else if (tipo.equals(IConstantes.TIPO_MANUAL_ISS04)) { valor_defecto = (Double) pcd.get("valoriss04_defecto"); } Listitem listitem = new Listitem(); listitem.setValue(pcd); listitem.appendChild(new Listcell()); listitem.appendChild(new Listcell(codigo_cups)); Textbox tbxCodigo_manual = new Textbox(codigo_manual != null ? codigo_manual : codigo_cups); tbxCodigo_manual.setHflex("1"); Listcell listcell = new Listcell(); listcell.appendChild(tbxCodigo_manual); listitem.appendChild(listcell); Res.cargarAutomatica(tbxCodigo_manual, pcd, "codigo_manual", null); pcd.put("codigo_manual", codigo_manual != null ? codigo_manual : codigo_cups); Textbox tbxNombre = new Textbox(nombre_procedimiento); tbxNombre.setHflex("1"); tbxNombre.setReadonly(true); listcell = new Listcell(); listcell.appendChild(tbxNombre); listitem.appendChild(listcell); Double valor = (Double) pcd.get("valor"); Doublebox dbxValor = new Doublebox(); dbxValor.setValue(valor != null ? valor : valor_defecto); dbxValor.setHflex("1"); listcell = new Listcell(); listcell.appendChild(dbxValor); listitem.appendChild(listcell); Res.cargarAutomatica(dbxValor, pcd, "valor", null); pcd.put("valor", valor != null ? valor : valor_defecto); String grupo_uvr = (String) pcd.get("grupo_uvr"); Textbox tbxGrupoUvr = new Textbox(grupo_uvr != null ? grupo_uvr : ""); tbxGrupoUvr.setHflex("1"); listcell = new Listcell(); listcell.appendChild(tbxGrupoUvr); listitem.appendChild(listcell); Res.cargarAutomatica(tbxGrupoUvr, pcd, "grupo_uvr", null); pcd.put("grupo_uvr", grupo_uvr != null ? grupo_uvr : ""); String nro_cuenta = (String) pcd.get("nro_cuenta"); Textbox tbxNro_cuenta = new Textbox(nro_cuenta != null ? nro_cuenta : ""); tbxNro_cuenta.setHflex("1"); listcell = new Listcell(); listcell.appendChild(tbxNro_cuenta); listitem.appendChild(listcell); Res.cargarAutomatica(tbxNro_cuenta, pcd, "nro_cuenta", null); pcd.put("nro_cuenta", nro_cuenta != null ? nro_cuenta : ""); listboxProcedimientos.appendChild(listitem); }