Package com.commander4j.db

Examples of com.commander4j.db.JDBMHNDecisions


    {
      ldecision = ((JDBMHNDecisions) jListDecisions.getSelectedValue()).getDecision();
      int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Decision_Delete") + " " + ldecision + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (question == 0)
      {
        JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
        u.setDecision(ldecision);
        u.delete();
        populateList("");
      }
    }
  }
View Full Code Here


      if (ldecision_to != null)
      {
        if (ldecision_to.equals("") == false)
        {
          //ldecision_to = ldecision_to.toUpperCase();
          JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
          u.setDecision(ldecision_from);
          if (u.renameTo(ldecision_to) == false)
          {
            JUtility.errorBeep();
            JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
          }
          populateList(ldecision_to);
        }
      }
    }
View Full Code Here

      }
    }
  }

  private void create() {
    JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
    ldecision = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Decision_Add"));
    if (ldecision != null)
    {
      if (ldecision.equals("") == false)
      {
        //ldecision = ldecision.toUpperCase();
        if (u.create(ldecision, "","Blocked") == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
        }
        else
        {
          // Common.userList.getUser(Common.sessionID)Edit = luser_id;
          JLaunchMenu.runForm("FRM_ADMIN_MHN_DECISION_EDIT", ldecision);
View Full Code Here

  private void populateList(String defaultitem) {

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

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

    {
      int[] rows = jTable1.getSelectedRows();

      JDBPallet temp = new JDBPallet(Common.selectedHostID, Common.sessionID);
      JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID);
      JDBMHNDecisions decis = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);

      int n = JOptionPane.showConfirmDialog(Common.mainForm, "Assign selected SSCC's to Master Hold Notice [" + mhnnumber + "  ?", "Confirm", JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
      if (n == 0)
      {

        String initalDecision = ctrl.getKeyValueWithDefault("MHN INITIAL DECISION", "Pending", "Decision for pallets added to MHN");
        String initialStatus = "";
        if (decis.getDecisionProperties(initalDecision) == true)
        {
          initialStatus = decis.getStatus();
        }
        else
        {
          initialStatus = "";
        }
View Full Code Here

    {
      ldecision = ((JDBMHNDecisions) jListDecisions.getSelectedValue()).getDecision();
      int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Decision_Delete") + " " + ldecision + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION);
      if (question == 0)
      {
        JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
        u.setDecision(ldecision);
        u.delete();
        populateList("");
      }
    }
  }
View Full Code Here

      if (ldecision_to != null)
      {
        if (ldecision_to.equals("") == false)
        {
          //ldecision_to = ldecision_to.toUpperCase();
          JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
          u.setDecision(ldecision_from);
          if (u.renameTo(ldecision_to) == false)
          {
            JUtility.errorBeep();
            JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE);
          }
          populateList(ldecision_to);
        }
      }
    }
View Full Code Here

      }
    }
  }

  private void create() {
    JDBMHNDecisions u = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
    ldecision = JOptionPane.showInputDialog(Common.mainForm, lang.get("dlg_Decision_Add"));
    if (ldecision != null)
    {
      if (ldecision.equals("") == false)
      {
        //ldecision = ldecision.toUpperCase();
        if (u.create(ldecision, "","Blocked") == false)
        {
          JUtility.errorBeep();
          JOptionPane.showMessageDialog(Common.mainForm, u.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE);
        }
        else
        {
          // Common.userList.getUser(Common.sessionID)Edit = luser_id;
          JLaunchMenu.runForm("FRM_ADMIN_MHN_DECISION_EDIT", ldecision);
View Full Code Here

  private void populateList(String defaultitem) {

    DefaultComboBoxModel DefComboBoxMod = new DefaultComboBoxModel();

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

    getContentPane().setBackground(Color.WHITE);

    uomList.add(new JDBUom(Common.selectedHostID, Common.sessionID));
    uomList.addAll(u.getInternalUoms());

    decisionList.add(new JDBMHNDecisions(Common.selectedHostID, Common.sessionID));
    decisionList.addAll(d.getDecisions());

    typeList.add(new JDBMaterialType(Common.selectedHostID, Common.sessionID));
    typeList.addAll(t.getMaterialTypes());
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBMHNDecisions

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.