Package com.commander4j.db

Examples of com.commander4j.db.JDBQMInspection


      rs = listStatement.executeQuery();

      while (rs.next()) {

        JDBQMInspection mt = new JDBQMInspection("","");
        mt.setInspectionID(rs.getString("inspection_id"));
        mt.setDescription(rs.getString("description"));
        DefComboBoxMod.addElement(mt);
        if (mt.getInspectionID().equals(defaultitem))
        {
          sel = x;
        }
        x++;
      }
View Full Code Here


      rs = listStatement.executeQuery();

      while (rs.next()) {

        JDBQMInspection mt = new JDBQMInspection("","");
        mt.setInspectionID(rs.getString("inspection_id"));
        mt.setDescription(rs.getString("description"));
        DefComboBoxMod.addElement(mt);
        if (mt.getInspectionID().equals(defaultitem))
        {
          sel = x;
        }
        x++;
      }
View Full Code Here

  }

  public Boolean processMessage(GenericMessageHeader gmh) {
    Boolean result = false;

    JDBQMInspection qmInspection = new JDBQMInspection(getHostID(), getSessionID());
    JDBQMExtension qmExtension = new JDBQMExtension(getHostID(), getSessionID());
    JDBQMActivity qmActivity = new JDBQMActivity(getHostID(), getSessionID());
    JDBQMTest qmTest = new JDBQMTest(getHostID(), getSessionID());
    JDBQMDictionary qmDictionary = new JDBQMDictionary(getHostID(), getSessionID());
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
    JDBProcessOrder po = new JDBProcessOrder(getHostID(),getSessionID());

    inter.getInterfaceProperties("QM Inspection Request", "Input");

    // INSPECTION //
    // Decode the Inspection Top Level ID //
   
    inspectionID = gmh.getXMLDocument().findXPath("//message/messageData/inspectionDefinition/ID").trim();
    inspectionDescription = gmh.getXMLDocument().findXPath("//message/messageData/inspectionDefinition/description").trim();
    processOrder = JUtility.replaceNullStringwithBlank(gmh.getXMLDocument().findXPath("//message/messageData/inspectionDefinition/processOrder").trim());
   
   
    if (processOrder.equals("")==false)
    {
      processOrder = processOrder.replaceAll("^0+", "");
        po.setProcessOrder(processOrder);
        if (po.isValidProcessOrder())
        {
          po.getProcessOrderProperties();
          po.setInspectionID(inspectionID);
          po.update();
        }
    }

    qmInspection.setInspectionID(inspectionID);

    // Create or update the Inspection record.
    if (qmInspection.isValid()==false)
    {
      // New inspection record to be created.
      qmInspection.create(inspectionID, inspectionDescription);
    }
    else
    {
      // Amend existing inspection record.
      qmInspection.getProperties();
      qmInspection.setDescription(inspectionDescription);
      qmInspection.update();
    }

    Long inspectionExtensionID = (long) 0;
    inspectionExtensionID=qmInspection.getExtensionID();
   
    // INSPECTION - extended data //
    // Scan through XML to process any 'extension' data which needs be stored against the top level Inspection record.
    String extensionName = " ";
    String extensionValue = "";
View Full Code Here

TOP

Related Classes of com.commander4j.db.JDBQMInspection

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.