Package com.commander4j.db

Examples of com.commander4j.db.JDBUserReport


  {
    if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_USER_REPORT_EDIT"))
    {
      if (jListUserReports.isSelectionEmpty() == false)
      {
        JDBUserReport reportid = (JDBUserReport) ((JDBListData) jListUserReports.getSelectedValue()).getObject();
        JLaunchMenu.runForm("FRM_ADMIN_USER_REPORT_PROP", reportid.getReportID());
      }
    }
  }
View Full Code Here


  private void deleteReport()
  {
    if (jListUserReports.isSelectionEmpty() == false)
    {
      JDBUserReport reportid = (JDBUserReport) ((JDBListData) jListUserReports.getSelectedValue()).getObject();
      int n = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_User_Report_Delete") +" " + reportid.getReportID() + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (n == 0)
      {

        reportid.delete();
        populateListUserReports("");
      }
    }
  }
View Full Code Here

  }

  private void addReport()
  {

    JDBUserReport rpt = new JDBUserReport(Common.selectedHostID, Common.sessionID);

    String reportId = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_User_Report_Create"));
    if (reportId != null)
    {
      if (reportId.equals("") == false)
      {
        reportId = reportId.toUpperCase();
        rpt.setReportID(reportId);
        if (rpt.create(reportId) == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, rpt.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
        } else
        {

          JLaunchMenu.runForm("FRM_ADMIN_USER_REPORT_PROP", reportId);
        }
View Full Code Here

  private void setButtonState()
  {
    if (jListUserReports.getSelectedIndex() > -1)
    {
      JDBUserReport reportid = (JDBUserReport) ((JDBListData) jListUserReports.getSelectedValue()).getObject();

      domDateFrom.setEnabled(reportid.isParamDateRequired());
      domDateTo.setEnabled(reportid.isParamDateRequired());
      button_CalendardomDateFrom.setEnabled(reportid.isParamDateRequired());
      button_CalendardomDateTo.setEnabled(reportid.isParamDateRequired());
      jListShifts.setEnabled(reportid.isParamDateRequired());
      button4j_Backwards.setEnabled(reportid.isParamDateRequired());
      button4j_Forwards.setEnabled(reportid.isParamDateRequired());

      btn4jAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_USER_REPORT_ADD"));
      btn4jEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_USER_REPORT_EDIT"));
      btn4jDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_USER_REPORT_DELETE"));
      btn4jRun.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_USER_REPORT_RUN"));
View Full Code Here

  private void populateListUserReports(String defaultitem)
  {
    DefaultComboBoxModel<JDBListData> defComboBoxMod = new DefaultComboBoxModel<JDBListData>();

    JDBUserReport tempUserReport = new JDBUserReport(Common.selectedHostID, Common.sessionID);

    LinkedList<JDBListData> tempUserReportList = new LinkedList<JDBListData>();

    tempUserReportList = tempUserReport.getUserReportIds();

    int sel = -1;
    for (int j = 0; j < tempUserReportList.size(); j++)
    {
      defComboBoxMod.addElement(tempUserReportList.get(j));
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBUserReport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.