public void viewReport() throws Exception {
    try {
      listb.getItems().clear();
      DosenSedangMenempuhStudiDAO dao = new DosenSedangMenempuhStudiDAOImpl();
      datas =
          dao.getData(
              (UKProgramStudi) cmbProgdi.getSelectedItem().getValue(),
              (JenjangStudi) cmbJenjangStudi.getSelectedItem().getValue());

      for (DosenSedangMenempuhStudi o : datas) {
        Listitem li = new Listitem();
        Listcell cell = new Listcell(o.getNama());
        li.appendChild(cell);
        cell = new Listcell(o.getProdi());
        li.appendChild(cell);
        cell = new Listcell(o.getJenjangStudi());
        li.appendChild(cell);
        cell = new Listcell(o.getTempat());
        li.appendChild(cell);
        listb.appendChild(li);
      }
      btnExport.setDisabled(false);

    } catch (Exception ex) {
      ex.printStackTrace();
      Messagebox.show(ex.getMessage());
    }
  }
 public void exportReport() throws Exception {
   try {
     // JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(datas);
     if (cmbExportType.getSelectedItem().getValue().toString().equals("pdf")) {
       Window pdfPreviewWnd =
           (Window) Executions.createComponents("/zul/pdfpreview/PdfPreview.zul", null, null);
       Jasperreport pdfReport = (Jasperreport) pdfPreviewWnd.getFellow("report");
       pdfReport.setType(cmbExportType.getSelectedItem().getValue().toString());
       pdfReport.setSrc("reports/statistikpendidikandosen/StatistikPendidikanDosen.jasper");
       Map parameters = new HashMap();
       parameters.put("chart", chart.createBufferedImage(500, 300));
       pdfReport.setParameters(parameters);
       pdfReport.setDatasource(null);
       pdfPreviewWnd.doModal();
     } else {
       report.setType(cmbExportType.getSelectedItem().getValue().toString());
       report.setSrc("reports/statistikpendidikandosen/StatistikPendidikanDosen.jasper");
       Map parameters = new HashMap();
       parameters.put(
           "chart", chart.createBufferedImage(500, 300, BufferedImage.TRANSLUCENT, null));
       report.setParameters(parameters);
       report.setDatasource(null);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
示例#3
0
 public void viewReport() throws Exception {
   try {
     JadwalDosenDAO dao = new JadwalDosenDAOImpl();
     if (cmbNamaDosen.getValue() != null
         && cmbProgdi.getValue() != null
         && !cmbTahun.getSelectedItem().getValue().toString().isEmpty()
         && cmbSemester.getValue() != null) {
       datas =
           dao.getJadwalDosen(
               (Dosen) cmbNamaDosen.getSelectedItem().getValue(),
               (ProgramStudi) cmbProgdi.getSelectedItem().getValue(),
               cmbTahun.getSelectedItem().getValue().toString(),
               Integer.valueOf(cmbSemester.getSelectedItem().getValue().toString()));
       lstData.getItems().clear();
       for (JadwalDosen jd : datas) {
         Listitem item = new Listitem();
         item.setValue(jd);
         item.appendChild(new Listcell(jd.getJam()));
         item.appendChild(new Listcell(jd.getSenin()));
         item.appendChild(new Listcell(jd.getSelasa()));
         item.appendChild(new Listcell(jd.getRabu()));
         item.appendChild(new Listcell(jd.getKamis()));
         item.appendChild(new Listcell(jd.getJumat()));
         item.appendChild(new Listcell(jd.getSabtu()));
         lstData.appendChild(item);
       }
       btnExport.setDisabled(false);
     } else {
       Messagebox.show("Silahkan Input Parameter dengan benar");
       btnExport.setDisabled(true);
     }
   } catch (Exception ex) {
     Messagebox.show("Telah terjadi kesalahan..");
   }
 }
示例#4
0
 public void onClick$btnValidar(Event ev) {
   if (cmbCurso.getSelectedItem() != null) {
     Curso curso = cmbCurso.getSelectedItem().getValue();
     List<Grupo> listaGrupo = docGruposOpInt.getGrupoList(curso.getNombre());
     ListModelList model2 = new ListModelList(listaGrupo);
     model2.addSelection(model2.get(0));
     cmbGrupo.setModel(model2);
   }
 }
  public void onChange$genlistboxPageSize() {

    if (genlistboxPageSize.getSelectedItem() == null) {
      genlistboxPageSize.setSelectedIndex(0);
    }
    String pgsz = (String) genlistboxPageSize.getSelectedItem().getValue();
    try {
      int pageSize = Math.abs(Integer.parseInt(pgsz));
      Toolkit.getToolkit().setCookie("topNGenerateTimePageSize", pgsz, Integer.MAX_VALUE);
      topNGenerateTime.setPageSize(pageSize);
      topNGenerateTime.getPaginal().setPageSize(pageSize);

    } catch (Exception e) {

    }
  }
  public void onSelect$poste_travail() throws SQLException {
    message.setValue("");

    String poste = (String) map_poste.get((String) poste_travail.getSelectedItem().getLabel());

    CategoryModel catmodel = new SimpleCategoryModel();
    List charts = new ArrayList<CategoryModel>();
    StatMoyFamillePosteBean cpb;
    Iterator it;
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    List sect_items = cotationMoel.getListPosteMoyFam(poste);
    it = sect_items.iterator();
    if (sect_items.size() > 0) {
      mychart.setVisible(true);
      while (it.hasNext()) {
        cpb = (StatMoyFamillePosteBean) it.next();

        catmodel.setValue(cpb.getFamille(), "Familles de compétence", cpb.getMoy_famille());
        // catmodel.setValue("IMI","indice de maitrise individuel",3);
        mychart.setModel(catmodel);
      }

      catmodel.setValue("IMG", "Indice de maitrise global", cotationMoel.getIMGParPoste(poste));
      mychart.setModel(catmodel);

      ChartEngine d = mychart.getEngine();
      image = d.drawChart(mychart);
    } else {
      message.setVisible(true);
      message.setValue("Pas de résultat à afficher");
      mychart.setVisible(false);
    }
  }
示例#7
0
  @Listen("onChange = #typeBox")
  public void onChange$typeBox() {
    // have to do this to make sure model is updated
    typeBox.getSelectedItem();

    onNodeTypeChanged();
  }
示例#8
0
  /*
   * (non-Javadoc)
   *
   * @see com.hxzy.base.web.window.ActionWindow#onSubmit()
   */
  @Override
  public void onSubmit() {
    Dict category = null;
    if (combobox.getSelectedItem() != null) {
      category = (Dict) combobox.getSelectedItem().getValue();
    }

    member.setCompanyName(companyName.getValue());
    member.setCategory(category);
    member.setContacts(contacts.getValue());
    member.setJoinTime(joinTime.getValue());
    member.setEndTime(endTime.getValue());

    memberService.update(member);

    ((ListWindow) this.getParent()).onFind();
  }
 public void cetak() throws Exception {
   Window win =
       (Window) Executions.createComponents("/zul/admin/rpt_daftar_perusahaan.zul", null, null);
   Textbox sql = (Textbox) win.getFellow("sql");
   Kecamatan kec = (Kecamatan) cmbKecamatan.getSelectedItem().getValue();
   sql.setValue("SELECT * FROM perusahaan WHERE kecamatan_id=" + kec.getId());
   win.doModal();
 }
示例#10
0
 public void exportReport() throws Exception {
   try {
     JRBeanCollectionDataSource dataSource = new JRBeanCollectionDataSource(datas);
     Map param = new HashMap();
     param.put("dosen", ((Dosen) cmbNamaDosen.getSelectedItem().getValue()).getNama());
     param.put("prodi", ((ProgramStudi) cmbProgdi.getSelectedItem().getValue()).getNama());
     param.put("tahun", cmbTahun.getSelectedItem().getValue().toString());
     param.put("semester", cmbSemester.getSelectedItem().getValue() + "");
     if (cmbExportType.getSelectedItem().getValue().toString().equals("pdf")) {
       Window pdfPreviewWnd =
           (Window) Executions.createComponents("/zul/pdfpreview/PdfPreview.zul", null, null);
       Jasperreport pdfReport = (Jasperreport) pdfPreviewWnd.getFellow("report");
       pdfReport.setType(cmbExportType.getSelectedItem().getValue().toString());
       pdfReport.setSrc("reports/jadwaldosen/JadwalDosen.jasper");
       pdfReport.setParameters(param);
       pdfReport.setDatasource(dataSource);
       pdfPreviewWnd.doModal();
     } else {
       report.setType(cmbExportType.getSelectedItem().getValue().toString());
       report.setSrc("reports/jadwaldosen/JadwalDosen.jasper");
       report.setParameters(param);
       report.setDatasource(dataSource);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
示例#11
0
  public void onClick$btnAceptar(Event ev) {

    if (docGrupoDTO == null) {
      docGrupoDTO = new DocGrupoDTO();
    }

    if (cmbCurso.getSelectedItem() != null
        && cmbDocente.getSelectedItem() != null
        && cmbGrupo.getSelectedItem() != null) {
      Curso curso = cmbCurso.getSelectedItem().getValue();
      Docente docente = cmbDocente.getSelectedItem().getValue();
      Grupo grupo = cmbGrupo.getSelectedItem().getValue();

      docGrupoDTO.setIdCurso(curso.getIdCurso());
      docGrupoDTO.setIdnGrupo(grupo.getIdn());
      docGrupoDTO.setNombreCurso(curso.getNombre());
      docGrupoDTO.setNombreDocente(docente.getNombreCompleto());
      docGrupoDTO.setNumeroGrupo(grupo.getNumeroGrupo());
      docGrupoDTO.setIdnDocente(docente.getIdn());
      docGruposOpInt.almacenarDocGrupo(docGrupoDTO);

      Messagebox.show(
          "Docente por Grupo guardado", "Informacion", Messagebox.OK, Messagebox.INFORMATION);
      self.detach();
    } else {
      Messagebox.show(
          "Debe ingresar todos los datos", "Informacion", Messagebox.OK, Messagebox.INFORMATION);
    }
  }
示例#12
0
  public void onSelect$nivelCombo(Event e) {

    ne1 = ((NivelEscolar) nivelCombo.getSelectedItem().getValue());
    serieCombo.getChildren().clear();
    for (Serie se : Facade.getInstance().listarSerieNivel(ne1.getId())) {
      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(se.getDescricao());
      comboitem.setValue(se);
      serieCombo.appendChild(comboitem);
    }

    serieCombo.setDisabled(false);
    binder.loadComponent(RowSerie);
  }
示例#13
0
  public void onSelect$serieCombo() {

    s = ((Serie) serieCombo.getSelectedItem().getValue());
    turmaCombo.getChildren().clear();
    for (Turma t : Facade.getInstance().listarTurmaSerie(s.getId(), anoletivoObj.getId())) {
      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(t.getNome());
      comboitem.setValue(t);
      turmaCombo.appendChild(comboitem);
    }

    turmaCombo.setDisabled(false);
    binder.loadComponent(RowTurma);
  }
 public void onSelect$cmbEmpleadosPreparaciones(Event event) {
   logger.log(Level.INFO, "[GestionIngresosDescuentosCtrl][onChanging$cmbEmpleadosPreparaciones]");
   Comboitem itm;
   try {
     planillaDetalleSelected = null;
     itm = cmbEmpleadosPreparaciones.getSelectedItem();
     if (itm != null) {
       planillaDetalleSelected = (PlanillaDetalle) itm.getAttribute("data");
     }
     llenarDatosCampos();
     revisarEstadoComponentes();
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
示例#15
0
 public void loadDosenOnChanging(String nama) throws Exception {
   try {
     DosenDAO dao = new DosenDAOImpl();
     List<Dosen> dosens =
         dao.getsByName(nama, (ProgramStudi) cmbProgdi.getSelectedItem().getValue());
     cmbNamaDosen.getItems().clear();
     for (Dosen d : dosens) {
       Comboitem items = new Comboitem();
       items.setValue(d);
       items.setLabel(d.getNama());
       cmbNamaDosen.appendChild(items);
     }
   } catch (Exception ex) {
     Messagebox.show(ex.getMessage());
   }
 }
示例#16
0
  public void onSelect$anoLetivoCombo(Event e) throws InterruptedException {

    anoletivoObj = (AnoLetivo) anoLetivoCombo.getSelectedItem().getValue();

    nivelCombo.getChildren().clear();
    for (NivelEscolar ne : Facade.getInstance().listarNivelEscolar()) {
      // funciona como um GROUP BY para que não sejam repetidos os mesmos níveis no combobox

      Comboitem comboitem = new Comboitem();
      comboitem.setLabel(ne.getNivel());
      comboitem.setValue(ne);
      nivelCombo.appendChild(comboitem);
    }
    nivelCombo.setDisabled(false);
    binder.loadComponent(RowNivel);
  }
  public void onSelect$compagne() throws SQLException {

    poste_travail.getItems().clear();
    poste_travail.setVisible(true);
    String compagne_id = (String) map_compagne.get((String) compagne.getSelectedItem().getLabel());
    StatCotationEmployeModel cotationMoel = new StatCotationEmployeModel();
    map_poste = cotationMoel.getListPostTravailValid(compagne_id);
    Set set = (map_poste).entrySet();
    Iterator i = set.iterator();

    while (i.hasNext()) {
      Map.Entry me = (Map.Entry) i.next();
      poste_travail.appendItem((String) me.getKey());
    }

    poste_travail.setSelectedIndex(0);
  }
示例#18
0
 public void loadDosen() throws Exception {
   try {
     cmbNamaDosen.setValue("");
     DosenDAO dao = new DosenDAOImpl();
     List<Dosen> dosens = dao.getsByProdi((ProgramStudi) cmbProgdi.getSelectedItem().getValue());
     cmbNamaDosen.getItems().clear();
     for (Dosen d : dosens) {
       Comboitem items = new Comboitem();
       items.setValue(d);
       items.setLabel(d.getNama());
       cmbNamaDosen.appendChild(items);
     }
   } catch (Exception ex) {
     ex.printStackTrace();
     Messagebox.show(ex.getMessage());
   }
 }
示例#19
0
  public void onClick$listarDisciplinaFiltro() {
    if (nivelCombo.getSelectedIndex() == -1
        || anoLetivoCombo.getSelectedIndex() == -1
        || serieCombo.getSelectedIndex() == -1
        || turmaCombo.getSelectedIndex() == -1) {
      alert("Existe(m) Campo(s) não selecionado(s)!");
    } else {
      turmav = ((Turma) turmaCombo.getSelectedItem().getValue());
      List<RegistroDeDisciplina> list = new ArrayList<RegistroDeDisciplina>();
      for (RegistroDeDisciplina rd :
          Facade.getInstance().listarRegistroDeDisciplinaTurma(turmav.getId())) {
        list.add(rd);
      }

      listModel = new ListModelList(list);
      ListagemDisciplina.setModel(listModel);

      JanelaFiltroParaListarDisciplina.setVisible(false);
      janelaDisciplinaAluno.setVisible(false);
      janelaDisciplina.setVisible(true);
    }
  }
示例#20
0
  /**
   * *************************************************** Helper methods
   * ***************************************************
   */
  private Node createNode() throws InterruptedException {
    Comboitem item = typeBox.getSelectedItem();
    if (item == null) {
      Messagebox.show("Node type is required.");
      return null;
    }

    String nodeType = GeneralUtil.getNodeDescriptionByLabel(ntds, item.getLabel()).get("type");
    String firstName = firstNameBox.getValue().trim();
    String lastName = lastNameBox.getValue().trim();
    String midName = midNameBox.getValue().trim();
    String label = labelBox.getValue().trim();
    String username;
    if (nodeType.equals(Constants.NODE_TYPE_USER)) {
      if (firstName.isEmpty()) {
        Messagebox.show("First Name is required.");
        return null;
      } else if (firstName.length() > 80) {
        Messagebox.show("First Name cannot be longer than 80.");
        return null;
      } else if (GeneralUtil.containSpecialCharacter(firstName)) {
        Messagebox.show("First Name cannot contain special characters.");
        return null;
      }

      if (lastName.isEmpty()) {
        Messagebox.show("Last Name is required.");
        return null;
      } else if (lastName.length() > 80) {
        Messagebox.show("Last Name cannot be longer than 80.");
        return null;
      } else if (GeneralUtil.containSpecialCharacter(lastName)) {
        Messagebox.show("Last Name cannot contain special characters.");
        return null;
      }

      username = firstName.replace(" ", "_") + "__" + lastName.replace(" ", "_");
    } else {
      if (label.isEmpty()) {
        Messagebox.show("Label is required.");
        return null;
      } else if (label.length() > 255) {
        Messagebox.show("Label cannot be longer than 255.");
        return null;
      }
      username = GeneralUtil.replaceSpecialCharacter(label, "_").replace(" ", "_");
    }

    if (nodeDao.findByUsername(username) != null) {
      Messagebox.show("Username: "******" has already been used.");
      return null;
    }

    Survey survey = surveyDao.findById(1L);
    Node node = new Node();
    node.setType(nodeType);
    node.setUsername(username);
    node.setLabel(label);
    if (nodeType.equals(Constants.NODE_TYPE_USER)) {
      node.setFirstName(firstName);
      node.setLastName(lastName);
      node.setMidName(midName);
    }

    String defaultPassword = survey.getAttribute(Constants.SURVEY_DEFAULT_PASSWORD);
    if (defaultPassword == null) {
      defaultPassword = "******";
    }
    if (defaultPassword.equals("rAnDoM")) {
      RandomString rs = new RandomString(8);
      defaultPassword = rs.nextString();
    }
    node.setPassword(defaultPassword);

    node.setAttribute(
        Constants.NODE_LOGIN_MODE, survey.getAttribute(Constants.SURVEY_DEFAULT_LOGIN_MODE));

    // role
    node.getRoles().add(roleDao.findByName(Constants.ROLE_USER));

    // groups
    Set<Group> groups = new HashSet<Group>();
    AbstractQuestionRelation p = (AbstractQuestionRelation) getParent();
    groups.addAll(p.getQuestion().getAvailableGroups());
    groups.add(groupDao.findByName(Constants.GROUP_ALL));

    if (nodeType.equals(Constants.NODE_TYPE_USER)) {
      groups.add(groupDao.findByName(Constants.GROUP_USER));
    } else {
      String groupName = Constants.GROUP_NODE_TYPE_PREFIX + nodeType;
      Group group = groupDao.findByName(groupName);
      if (group == null) {
        group = new Group();
        group.setName(groupName);
        groupDao.save(group);
        logger.info("created new group: " + group.getName());
      }
      groups.add(group);
    }

    node.setGroups(groups);

    // save
    nodeDao.save(node);
    logger.debug("Node created: " + username);

    return node;
  }
  public void cari() throws Exception {
    Connection conn = getConn();
    try {
      PerusahaanDAO dao = new PerusahaanDAOImpl(conn);
      List<Perusahaan> list = dao.gets((Kecamatan) cmbKecamatan.getSelectedItem().getValue());
      lstHasil.getItems().clear();
      int no = 1;
      for (final Perusahaan p : list) {
        Listitem item = new Listitem();
        item.setValue(p);
        item.appendChild(new Listcell(p.getNamaPerusahaan()));
        item.appendChild(new Listcell(p.getNamaPimpinan()));
        item.appendChild(
            new Listcell(
                p.getAlamatJalan()
                    + ", "
                    + p.getKota()
                    + " Telp: "
                    + p.getTelp()
                    + " Fax: "
                    + p.getFax()));
        Toolbarbutton btnDetail = new Toolbarbutton();
        btnDetail.setId("btnDetail" + (no++));
        btnDetail.setImage("/img/detail.png");
        btnDetail.setTooltiptext("Klik di sini untuk Detail dan Perubahan data");
        btnDetail.addEventListener(
            "onClick",
            new EventListener() {

              public void onEvent(Event event) throws Exception {
                // panggil form edit
                Window win =
                    (Window)
                        Executions.createComponents("/zul/admin/editPerusahaan.zul", null, null);
                Textbox txtIdPerusahaan = (Textbox) win.getFellow("txtIdPerusahaan");
                txtIdPerusahaan.setValue(p.getId());
                win.doModal();
                cari();
              }
            });

        Toolbarbutton btnHapus = new Toolbarbutton();
        btnHapus.setId("btnHapus" + no++);
        btnHapus.setImage("/img/delete.png");
        btnHapus.setTooltiptext("Klik untuk mengahapus Perusahaan");
        btnHapus.addEventListener(
            "onClick",
            new EventListener() {

              public void onEvent(Event event) throws Exception {
                if (Messagebox.show(
                        "Hapus?", "Konfirmasi", Messagebox.YES | Messagebox.NO, Messagebox.QUESTION)
                    == Messagebox.YES) {
                  Connection connDel = getConn();
                  try {
                    PerusahaanDAO daoDel = new PerusahaanDAOImpl(connDel);
                    daoDel.delete(p.getId());
                    cari();
                  } catch (Exception ex) {
                    Messagebox.show(ex.getMessage());
                  } finally {
                    connDel.close();
                  }
                }
              }
            });

        Listcell cellAksi = new Listcell();
        cellAksi.appendChild(btnDetail);
        cellAksi.appendChild(new Space());
        cellAksi.appendChild(btnHapus);
        item.appendChild(cellAksi);
        lstHasil.appendChild(item);
      }
    } catch (Exception ex) {
      Messagebox.show(ex.getMessage());
    } finally {
      conn.close();
    }
  }
  public static void EditSalaryHead(Event event) {

    System.out.println("****************SubmitClaim Event Called*********");
    try {
      Component salaryHeadWindow = event.getTarget();
      GenericValue userLogin =
          (GenericValue)
              Executions.getCurrent().getDesktop().getSession().getAttribute("userLogin");
      GenericDelegator delegator =
          HrmsInfrastructure.getDelegator(); // GenericDelegator.getGenericDelegator("default");
      LocalDispatcher dispatcher =
          HrmsInfrastructure
              .getDispatcher(); // GenericDispatcher.getLocalDispatcher("default", delegator);
      Map submitUpdate = null;
      String salaryHeadId =
          (String) ((Textbox) salaryHeadWindow.getFellow("salaryHeadId")).getValue();

      String hrName = (String) ((Textbox) salaryHeadWindow.getFellow("applyHrName")).getValue();

      Listitem isCrListItem =
          (Listitem) ((Listbox) salaryHeadWindow.getFellow("applyCredit")).getSelectedItem();
      String isCr = (String) isCrListItem.getValue();

      Listitem salaryHeadTypeIdListItem =
          (Listitem)
              ((Listbox) salaryHeadWindow.getFellow("applySalaryHeadType")).getSelectedItem();
      String salaryHeadTypeId = (String) salaryHeadTypeIdListItem.getValue();

      /*
       * String geoId = (String) ((Bandbox) salaryHeadWindow
       * .getFellow("searchPanel")).getValue();
       */
      Combobox countryBox = ((Combobox) salaryHeadWindow.getFellow("countrybandbox"));
      String geoId =
          (String)
              (countryBox.getSelectedItem() == null
                  ? countryBox.getValue()
                  : countryBox.getSelectedItem().getValue());

      Listitem isTaxableListItem =
          (Listitem) ((Listbox) salaryHeadWindow.getFellow("applyTaxable")).getSelectedItem();
      String isTaxable = (String) isTaxableListItem.getValue();

      Listitem isMandatoryListItem =
          (Listitem) ((Listbox) salaryHeadWindow.getFellow("applyMandatory")).getSelectedItem();
      String isMandatory = (String) isMandatoryListItem.getValue();

      Listitem currencyUomIdListItem =
          (Listitem) ((Listbox) salaryHeadWindow.getFellow("applyCurrencyUomId")).getSelectedItem();
      String currencyUomId = (String) currencyUomIdListItem.getValue();

      Listitem salaryComputationTypeIdListItem =
          (Listitem)
              ((Listbox) salaryHeadWindow.getFellow("applyComputationType")).getSelectedItem();
      String salaryComputationTypeId = (String) salaryComputationTypeIdListItem.getValue();

      submitUpdate =
          UtilMisc.toMap(
              "userLogin",
              userLogin,
              "salaryHeadId",
              salaryHeadId,
              "hrName",
              hrName,
              "isCr",
              isCr,
              "salaryHeadTypeId",
              salaryHeadTypeId,
              "geoId",
              geoId,
              "isTaxable",
              isTaxable,
              "isMandatory",
              isMandatory,
              "currencyUomId",
              currencyUomId,
              "salaryComputationTypeId",
              salaryComputationTypeId);

      Map<String, Object> result = dispatcher.runSync("updateSalaryHead", submitUpdate);

      Messagebox messageBox = new Messagebox();
      String err = "";
      err = (String) result.get("responseMessage");
      if (err != null && err.equals("error"))
        messageBox.show((String) result.get("errorMessage"), "Error", 1, null);
      else
        messageBox.show(
            "Salary Head" + " " + hrName + " " + "Successfully Updated", "Success", 1, null);

      Events.postEvent(
          "onClick$searchButton", salaryHeadWindow.getPage().getFellow("searchPanel"), null);

    } catch (Exception e) {
      e.printStackTrace();
    }
  }