public void onClick$btnBatal(Event event) throws Exception {

    if (logger.isDebugEnabled()) {
      logger.debug("--> " + event.toString());
    }
    window_Permohonan.onClose();
  }
  public void onClick$btnSimpan_Permohonan(Event event) throws Exception {

    if (logger.isDebugEnabled()) {
      logger.debug("--> " + event.toString());
    }
    if (isValidatedFlow()) {
      doSimpan();
      window_Permohonan.onClose();
    }
  }
 public void onClick$button_Download(Event event) throws Exception {
   if (logger.isDebugEnabled()) {
     logger.debug("--> " + event.toString());
   }
   String lam = permohonanService.getFilePath() + "lampiran.xlsx";
   try {
     Filedownload.save(new File(lam), null);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
  public void onClick$btnImprimir(Event event) {
    logger.log(java.util.logging.Level.INFO, "[onClick$btnImprimir]Event:{0}", event.toString());
    try {

      genericDaoServiceBean.executeSPSaldoInicial(
          UtilFormat.convertirFechaYYYYMMMDDD(dbDesde.getValue()),
          getUserLogin().getEmpresa().getIdempresa());

      genericDaoServiceBean.executeSPSaldoInicialMayor(
          UtilFormat.convertirFechaYYYYMMMDDD(dbDesde.getValue()),
          getUserLogin().getEmpresa().getIdempresa());

      obtenerReporteLibroAuxiliar();

    } catch (Exception a) {
      a.printStackTrace();
    }
  }
  public void onCreate$window_Permohonan(Event event) throws Exception {

    if (logger.isDebugEnabled()) {
      logger.debug("--> " + event.toString());
    }

    doCheckRights();

    Map<String, Object> args = getCreationArgsMap(event);

    if (args.containsKey("tPermohonan")) {
      TPermohonan tPermohonan = (TPermohonan) args.get("tPermohonan");
      settPermohonan(tPermohonan);
    } else {
      settPermohonan(null);
    }

    if (args.containsKey("permohonanBaruCtrl")) {
      permohonanBaruCtrl = (PermohonanBaruCtrl) args.get("permohonanBaruCtrl");
    } else {
      permohonanBaruCtrl = null;
    }

    if (args.containsKey("listbox_DaftarPermohonan")) {
      listbox_DaftarPermohonan = (Listbox) args.get("listbox_DaftarPermohonan");
    } else {
      listbox_DaftarPermohonan = null;
    }
    if (getPelaksanaanGangguanService().getEmployeeName() != null) {
      ListModelList lmlNamaPelaksana =
          new ListModelList(getPelaksanaanGangguanService().getEmployeeName());
      VHrEmployeePelaksana pelaksana = new VHrEmployeePelaksana();
      pelaksana.setEmployee_name("Silakan pilih");
      pelaksana.setEmployee_no("555");
      lmlNamaPelaksana.add(0, pelaksana);
      listbox_NamaPelaksana.setModel(lmlNamaPelaksana);
      listbox_NamaPelaksana.setItemRenderer(new PelaksanaListModelItemRenderer());
    }
    doShowDialog(gettPermohonan(), gettVerifikasi());
  }