Package com.commander4j.db

Examples of com.commander4j.db.JDBDataIDs


                {
                  lcustomer = lcustomer.toUpperCase();
                  if (u.isValidCustomer(lcustomer))
                  {
                   
                    JDBDataIDs di = new JDBDataIDs(Common.selectedHostID, Common.sessionID);
                    LinkedList<JDBDataIDs> idList = di.getDataIDs();

                    String[] dataIDList = new String[idList.size()];
                    for (int x = 0; x < idList.size(); x++)
                    {
                      dataIDList[x] = idList.get(x).getID();
View Full Code Here


    {
      lmattype = ((JDBDataIDs) jListDataIDs.getSelectedValue()).getID();
      int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Data_ID_Delete") + " " + lmattype + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (question == 0)
      {
        JDBDataIDs u = new JDBDataIDs(Common.selectedHostID, Common.sessionID);
        u.setID(lmattype);
        u.delete();
        populateList("");
      }
    }
  }
View Full Code Here

      }
    }
  }

  private void addrecord() {
    JDBDataIDs u = new JDBDataIDs(Common.selectedHostID, Common.sessionID);
    lmattype = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Data_ID_Add"));
    if (lmattype != null)
    {
      if (lmattype.equals("") == false)
      {
        lmattype = lmattype.toUpperCase();
        if (u.create(lmattype) == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
        }
        else
        {
          JLaunchMenu.runForm("FRM_ADMIN_DATA_IDS_EDIT", lmattype);
        }
View Full Code Here

  private void populateList(String defaultitem) {

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

    JDBDataIDs tempType = new JDBDataIDs(Common.selectedHostID, Common.sessionID);
    LinkedList<JDBDataIDs> tempTypeList = tempType.getDataIDs();
    int sel = -1;
    for (int j = 0; j < tempTypeList.size(); j++)
    {
      JDBDataIDs t = (JDBDataIDs) tempTypeList.get(j);
      DefComboBoxMod.addElement(t);
      if (t.getID().equals(defaultitem))
      {
        sel = j;
      }
    }
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBDataIDs

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.