public Listitem crearFilas(Object objeto, Component componente) throws Exception {
    Listitem fila = new Listitem();

    final Maestro_manual maestro_manual = (Maestro_manual) objeto;

    fila.appendChild(new Listcell(maestro_manual.getId_manual() + ""));
    fila.appendChild(new Listcell(maestro_manual.getManual() + ""));
    fila.appendChild(
        new Listcell(
            Utilidades.getNombreElemento(
                maestro_manual.getTipo_manual(), "tipo_manual", getServiceLocator())));
    fila.appendChild(
        new Listcell(
            Utilidades.getNombreElemento(
                maestro_manual.getTipo_moneda(), "tipo_moneda", getServiceLocator())));

    Hlayout hlayout = new Hlayout();
    fila.setStyle("text-align: justify;nowrap:nowrap");
    Toolbarbutton toolbarbutton = new Toolbarbutton("Editar");
    toolbarbutton.setImage("/images/editar.gif");
    toolbarbutton.setTooltiptext("Editar registro");
    toolbarbutton.addEventListener(
        Events.ON_CLICK,
        new EventListener<Event>() {
          @Override
          public void onEvent(Event arg0) throws Exception {
            mostrarDatos(maestro_manual);
          }
        });
    hlayout.appendChild(toolbarbutton);
    toolbarbutton = new Toolbarbutton("Eliminar");
    toolbarbutton.setImage("/images/borrar.gif");
    toolbarbutton.setTooltiptext("Eliminar registro");
    toolbarbutton.addEventListener(
        Events.ON_CLICK,
        new EventListener<Event>() {
          @Override
          public void onEvent(Event arg0) throws Exception {
            Messagebox.show(
                "Esta seguro que desea eliminar este registro? ",
                "Eliminar Registro",
                Messagebox.YES + Messagebox.NO,
                Messagebox.QUESTION,
                new org.zkoss.zk.ui.event.EventListener<Event>() {
                  public void onEvent(Event event) throws Exception {
                    if ("onYes".equals(event.getName())) {
                      eliminarDatos(maestro_manual);
                      buscarDatos();
                    }
                  }
                });
          }
        });
    hlayout.appendChild(toolbarbutton);
    Listcell listcell = new Listcell();
    listcell.appendChild(hlayout);
    fila.appendChild(listcell);

    return fila;
  }
  // Metodo para guardar la informacion //
  public void guardarDatos() throws Exception {
    try {
      // log.info("ejecutando metodo guardarDatos()");
      if (validarForm()) {
        FormularioUtil.setUpperCase(groupboxEditar);
        // Cargamos los componentes //

        Maestro_manual maestro_manual = new Maestro_manual();
        maestro_manual.setId_manual(
            (lgxId_manual.getValue() != null ? lgxId_manual.getValue() : 0L));
        maestro_manual.setCodigo_empresa(codigo_empresa);
        maestro_manual.setCodigo_sucursal(codigo_sucursal);
        maestro_manual.setManual(tbxManual.getValue());
        maestro_manual.setTipo_manual(lbxTipo_manual.getSelectedItem().getValue().toString());
        maestro_manual.setTipo_moneda(lbxTipo_moneda.getSelectedItem().getValue().toString());
        maestro_manual.setCreacion_date(new Timestamp(new GregorianCalendar().getTimeInMillis()));
        maestro_manual.setCreacion_user(usuarios.getCodigo().toString());
        Map<String, Object> mapa_datos = new HashMap<String, Object>();
        mapa_datos.put("maestro_manual", maestro_manual);
        mapa_datos.put("accion", tbxAccion.getValue());
        mapa_datos.put("mapa_datos_procedimientos", mapa_datos_procedimientos);
        maestro_manualService.guardarDatos(mapa_datos);
        tbxAccion.setValue("modificar");
        mostrarDatos(maestro_manual);
        MensajesUtil.mensajeInformacion(
            "Informacion ..", "Los datos se guardaron satisfactoriamente");
      }

    } catch (Exception e) {
      MensajesUtil.mensajeError(e, "", this);
    }
  }
  // Metodo para colocar los datos del objeto que se consulta en la vista //
  public void mostrarDatos(Object obj) throws Exception {
    Maestro_manual maestro_manual = (Maestro_manual) obj;
    try {
      procedimientos_seleccionados.clear();
      mapa_datos_procedimientos.clear();
      lgxId_manual.setValue(maestro_manual.getId_manual());
      tbxManual.setValue(maestro_manual.getManual());
      Utilidades.seleccionarListitem(lbxTipo_manual, maestro_manual.getTipo_manual());
      Utilidades.seleccionarListitem(lbxTipo_moneda, maestro_manual.getTipo_moneda());

      listboxProcedimientos.getItems().clear();

      Map<String, Object> parametros = new HashMap<String, Object>();
      parametros.put("id_manual", maestro_manual.getId_manual());

      List<Manuales_procedimientos> listado_procedimientos =
          getServiceLocator().getServicio(Manuales_procedimientosService.class).listar(parametros);

      for (Manuales_procedimientos manuales_procedimientos : listado_procedimientos) {
        Long id_procedimiento = manuales_procedimientos.getId_procedimiento();
        Procedimientos procedimientos = new Procedimientos();
        procedimientos.setId_procedimiento(id_procedimiento);
        procedimientos = getServiceLocator().getProcedimientosService().consultar(procedimientos);
        Map<String, Object> pcd =
            OpenProcedimientosAction.getProcedimientoMap(
                codigo_empresa, codigo_sucursal, procedimientos);
        mapa_datos_procedimientos.put(id_procedimiento, pcd);
        pcd.put("codigo_manual", manuales_procedimientos.getCodigo_manual());
        pcd.put("valor", manuales_procedimientos.getValor());
        pcd.put("grupo_uvr", manuales_procedimientos.getGrupo_uvr());
        pcd.put(
            "nro_cuenta",
            manuales_procedimientos.getNro_cuenta_contable() != null
                ? manuales_procedimientos.getNro_cuenta_contable()
                : "");
        adicionarProcedimiento(pcd);
        procedimientos_seleccionados.add(id_procedimiento + "");
      }

      // Mostramos la vista //
      tbxAccion.setText("modificar");
      accionForm(true, tbxAccion.getText());
    } catch (Exception e) {
      MensajesUtil.mensajeError(e, "", this);
    }
  }