Package com.commander4j.db

Examples of com.commander4j.db.JDBQMSelectList


 
  private void populateList(String defaultid,String defaultval) {

    DefaultComboBoxModel DefComboBoxMod = new DefaultComboBoxModel();

    JDBQMSelectList tempSelectList = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);

    tempSelectList.setDisplayModeLong(true);
    LinkedList<JDBQMSelectList> tempList = tempSelectList.getSelectLists();
    int sel = -1;
    for (int j = 0; j < tempList.size(); j++)
    {
      JDBQMSelectList t = (JDBQMSelectList) tempList.get(j);
      DefComboBoxMod.addElement(t);
      if (t.getSelectListID().equals(defaultid) & (t.getSelectListID().equals(defaultval)))
      {
        sel = j;
      }
    }
View Full Code Here


      llistid = ((JDBQMSelectList) jListSelectLists.getSelectedValue()).getSelectListID();
      llistval = ((JDBQMSelectList) jListSelectLists.getSelectedValue()).getValue();
      int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_SelectList_Delete") + " " + llistid + "/" + llistval +" ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION);
      if (question == 0)
      {
        JDBQMSelectList u = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);
        u.setSelectListID(llistid);
        u.setValue(llistval);
        u.delete();
        populateList("","");
      }
    }
  }
View Full Code Here

    }
  }
 
  private void excel()
  {
    JDBQMSelectList slist = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement ps = slist.getSelectListPreparedStatement();
    export.saveAs("qm_selectlist.xls", slist.getQMSelectListResultSet(ps), Common.mainForm);
    try
    {
      ps.close();
    } catch (SQLException e)
    {
View Full Code Here

 
  private void populateList(String defaultid,String defaultval) {

    DefaultComboBoxModel<JDBQMSelectList> DefComboBoxMod = new DefaultComboBoxModel<JDBQMSelectList>();

    JDBQMSelectList tempSelectList = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);

    tempSelectList.setDisplayModeLong(true);
    LinkedList<JDBQMSelectList> tempList = tempSelectList.getSelectLists();
    int sel = -1;
    for (int j = 0; j < tempList.size(); j++)
    {
      JDBQMSelectList t = (JDBQMSelectList) tempList.get(j);
      DefComboBoxMod.addElement(t);
      if (t.getSelectListID().equals(defaultid) & (t.getSelectListID().equals(defaultval)))
      {
        sel = j;
      }
    }
View Full Code Here

      llistid = ((JDBQMSelectList) jListSelectLists.getSelectedValue()).getSelectListID();
      llistval = ((JDBQMSelectList) jListSelectLists.getSelectedValue()).getValue();
      int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_SelectList_Delete") + " " + llistid + "/" + llistval +" ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (question == 0)
      {
        JDBQMSelectList u = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);
        u.setSelectListID(llistid);
        u.setValue(llistval);
        u.delete();
        populateList("","");
      }
    }
  }
View Full Code Here

    }
  }
 
  private void excel()
  {
    JDBQMSelectList slist = new JDBQMSelectList(Common.selectedHostID, Common.sessionID);
    JExcel export = new JExcel();
    PreparedStatement ps = slist.getSelectListPreparedStatement();
    export.saveAs("qm_selectlist.xls", slist.getQMSelectListResultSet(ps), Common.mainForm);
    try
    {
      ps.close();
    } catch (SQLException e)
    {
View Full Code Here

    setSession(sessionid);

    tableMode = mode;
    test = new JDBQMTest(getHost(), getSession());
    new JDBQMDictionary(getHost(), getSession());
    selectlist = new JDBQMSelectList(getHost(), getSession());

    testPropertiesList = test.getTestsPropertiesList(inspectionid, activityid);

    getTableHeader().setFont(Common.font_table_header);
    getTableHeader().setForeground(Common.color_tableHeaderFont);
View Full Code Here

      if (tempDict.getDataType().equals("list"))
      {

        LinkedList<JDBQMSelectList> listValues = new LinkedList<JDBQMSelectList>();
        listValues = selectlist.getSelectList(tempDict.getSelectListID());
        JDBQMSelectList blank = new JDBQMSelectList();
        JComboBox comboBox = new JComboBox();
        comboBox.addItem(blank);

        for (int y = 0; y < listValues.size(); y++)
        {
View Full Code Here

    JDBQMDictionary tempDict;
    sample = new JDBQMSample(hostid, sessionid);
    test = new JDBQMTest(hostid, sessionid);

    res = new JDBQMResult(hostid, sessionid);
    select = new JDBQMSelectList(hostid, sessionid);
    testPropertiesList = test.getTestsPropertiesList(inspectionid, activityid);

    sampleList = sample.getSamples(processOrder, inspectionid, activityid);
    testList = test.getTests(inspectionid, activityid);
View Full Code Here

      if (testPropertiesList.get(col).getDataType().equals("list"))
      {
        try
        {
          JDBQMSelectList sl = new JDBQMSelectList();
          sl.setSelectListID(listID.get(col));
          sl.setValue(res.getValue());
          select.setSelectListID(listID.get(col));
          select.setValue(res.getValue());
          select.getProperties();
          sl.setDescription(select.getDescription());
          result = sl;
        } catch (Exception ex)
        {
          result = null;
        }
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBQMSelectList

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.