public void preInsert_insertbtn(ActionEvent actionEvent) {
    AppModuleImpl app =
        ((AppModuleImpl) JSFUtils.getApplicationModuleForDataControl("AppModuleDataControl"));

    FResult result = app.penaltyPayment_preInsert(getPenaltyValue());
    if ("error".equalsIgnoreCase(result.getType())) {
      JSFUtils.addFacesErrorMessage(result.getText());

    } else if ("yn_popup".equalsIgnoreCase(result.getType())) {

      setPopupText(result.getText());

      RichPopup.PopupHints ph = new RichPopup.PopupHints();
      popUpInsertYesNobtn.show(ph);
    }
  }
  public String popUpYesbtn_edit() {
    AppModuleImpl app =
        ((AppModuleImpl) JSFUtils.getApplicationModuleForDataControl("AppModuleDataControl"));
    FResult result = app.penaltyPayment_edit(getPenaltyValue(), getPenaltyDesc());

    if ("info".equalsIgnoreCase(result.getType()))
      JSFUtils.addFacesInfoMessage("تغییرات ثبت گردید");
    //      else
    //        JSFUtils.addFacesErrorMessage("ثبت تغییرات با مشکل مواجه شد.");
    return "exit";
  }