Examples of JDBInterface


Examples of com.commander4j.db.JDBInterface

    if (dbconnected)
    {

      JeMail mail = new JeMail(getHostID(), getSessionID());
      JDBInterfaceRequest ir = new JDBInterfaceRequest(getHostID(), getSessionID());
      JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
      OutgoingProductionDeclarationConfirmation opdc = new OutgoingProductionDeclarationConfirmation(getHostID(), getSessionID());
      OutgoingDespatchConfirmation odc = new OutgoingDespatchConfirmation(getHostID(), getSessionID());
      OutgoingDespatchPreAdvice opa = new OutgoingDespatchPreAdvice(getHostID(), getSessionID());
      OutgoingEquipmentTracking oet = new OutgoingEquipmentTracking(getHostID(), getSessionID());
      OutgoingPalletStatusChange psc = new OutgoingPalletStatusChange(getHostID(), getSessionID());
      OutgoingPalletSplit ops = new OutgoingPalletSplit(getHostID(), getSessionID());
      OutgoingPalletDelete opd = new OutgoingPalletDelete(getHostID(), getSessionID());
      OutgoingLabelData old = new OutgoingLabelData(getHostID(), getSessionID());
      LinkedList<Long> irqList = new LinkedList<Long>();
      int noOfMessages = 0;

      while (true)
      {

        JWait.milliSec(500);

        if (allDone)
        {
          if (dbconnected)
          {
            Common.hostList.getHost(hostID).disconnect(getSessionID());
          }
          return;
        }

        irqList.clear();
        irqList = ir.getInterfaceRequestIDs();
        noOfMessages = irqList.size();

        if (noOfMessages > 0)
        {
          for (int x = 0; x < noOfMessages; x++)
          {
            JWait.milliSec(100);
            ir.setInterfaceRequestID(irqList.get(x));
            ir.getInterfaceRequestProperties();

            if (ir.getMode().equals("Inbound File Re-Submit"))
            {
              if (inter.getInterfaceProperties(ir.getInterfaceType(), "Input") == true)
              {
                String sourceFile = Common.base_dir + java.io.File.separator + "xml" + java.io.File.separator + "interface" + java.io.File.separator + "error" + java.io.File.separator + ir.getInterfaceType() + java.io.File.separator
                    + ir.getFilename();

                destinationFile = inter.getRealPath() + java.io.File.separator + ir.getFilename();
                renamedDestinationFile = inter.getRealPath() + java.io.File.separator + ir.getFilename().replaceAll(".xml", ".lmx");

                mover.move_File(sourceFile, renamedDestinationFile);
                mover.move_File(renamedDestinationFile, destinationFile);
                ir.delete();

              }
            }

            if (ir.getMode().equals("Normal"))
            {

              errorMessage = "Unknown Outbound Interface Type :" + ir.getInterfaceType();
              messageProcessedOK = false;

              if (ir.getInterfaceType().equals("Production Declaration"))
              {
                messageProcessedOK = opdc.processMessage(ir.getTransactionRef());
                errorMessage = opdc.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Production Declaration", messageProcessedOK.toString());
              }

              if (ir.getInterfaceType().equals("Pallet Status Change"))
              {
                messageProcessedOK = psc.processMessage(ir.getTransactionRef());
                errorMessage = psc.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Pallet Status Change", messageProcessedOK.toString());
              }             

              if (ir.getInterfaceType().equals("Pallet Split"))
              {
                messageProcessedOK = ops.processMessage(ir.getTransactionRef());
                errorMessage = ops.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Pallet Split", messageProcessedOK.toString());
             
             
              if (ir.getInterfaceType().equals("Pallet Delete"))
              {
                messageProcessedOK = opd.processMessage(ir.getTransactionRef());
                errorMessage = opd.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Pallet Delete", messageProcessedOK.toString());
             
             
              if (ir.getInterfaceType().equals("Despatch Confirmation"))
              {
                messageProcessedOK = odc.processMessage(ir.getTransactionRef());
                errorMessage = odc.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Despatch Confirmation", messageProcessedOK.toString());
              }

              if (ir.getInterfaceType().equals("Despatch Pre Advice"))
              {
                messageProcessedOK = opa.processMessage(ir.getTransactionRef());
                errorMessage = opa.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Despatch Pre Advice", messageProcessedOK.toString());
              }

              if (ir.getInterfaceType().equals("Equipment Tracking"))
              {
                messageProcessedOK = oet.processMessage(ir.getTransactionRef());
                errorMessage = oet.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Equipment Tracking", messageProcessedOK.toString());
              }
             
              if (ir.getInterfaceType().equals("Label Data"))
              {
                messageProcessedOK = old.processMessage(ir.getUniqueID());
                errorMessage = oet.getErrorMessage();
                GenericMessageHeader.updateStats("Output","Label Data", messageProcessedOK.toString());
              }

              if (messageProcessedOK == true)
              {
                ir.delete();
              }
              else
              {
                ir.update(irqList.get(x), "Error");
                if (inter.getInterfaceProperties(ir.getInterfaceType(), "Output") == true)
                {
                  if (inter.getEmailError() == true)
                  {
                    String emailaddresses = inter.getEmailAddresses();

                    StringConverter stringConverter = new StringConverter();
                    ArrayConverter arrayConverter = new ArrayConverter(String[].class, stringConverter);
                    arrayConverter.setDelimiter(';');
                    arrayConverter.setAllowedChars(new char[] { '@' });
View Full Code Here

Examples of com.commander4j.db.JDBInterface

    Boolean result = true;

    JDBDespatch desp = new JDBDespatch(getHostID(), getSessionID());
    JDBPallet pal = new JDBPallet(getHostID(), getSessionID());
    JDBLocation loc = new JDBLocation(getHostID(), getSessionID());
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
    Integer palletCount = 0;

    inter.getInterfaceProperties("Despatch Confirmation", "Input");

    despatchNo = JUtility.replaceNullStringwithBlank(gmh.getXMLDocument().findXPath("//message/messageData/despatchConfirmation/despatchNo").trim());
    trailer = JUtility.replaceNullStringwithBlank(gmh.getXMLDocument().findXPath("//message/messageData/despatchConfirmation/trailer").trim());
    haulier = JUtility.replaceNullStringwithBlank(gmh.getXMLDocument().findXPath("//message/messageData/despatchConfirmation/haulier").trim());
    loadNo = JUtility.replaceNullStringwithBlank(gmh.getXMLDocument().findXPath("//message/messageData/despatchConfirmation/loadNo").trim());
View Full Code Here

Examples of com.commander4j.db.JDBInterface

  {
    Boolean result = false;
    String path = "";
    JDBInterfaceLog il = new JDBInterfaceLog(getHostID(), getSessionID());
    GenericMessageHeader gmh = new GenericMessageHeader();
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());

    inter.getInterfaceProperties("Pallet Split", "Output");
    String device = inter.getDevice();

    JDBPalletHistory palhistbefore = new JDBPalletHistory(getHostID(), getSessionID());
    JDBPalletHistory palhistafter = new JDBPalletHistory(getHostID(), getSessionID());
    JDBPalletHistory palhistcreate = new JDBPalletHistory(getHostID(), getSessionID());
    
    ResultSet rsBefore = palhistbefore.getInterfacingData(transactionRef, "SPLIT", "BEFORE", Long.valueOf(1), "SSCC", "asc");

    ResultSet rsAfter = palhistafter.getInterfacingData(transactionRef, "SPLIT", "AFTER", Long.valueOf(1), "SSCC", "asc");

    ResultSet rsCreate = palhistcreate.getInterfacingData(transactionRef, "SPLIT", "CREATE", Long.valueOf(1), "SSCC", "asc");

    try
    {
      if (rsBefore.next())
      {
        if (rsAfter.next())
        {
          if (rsCreate.next())
          {
            palhistbefore.getPropertiesfromResultSet(rsBefore);
            palhistafter.getPropertiesfromResultSet(rsAfter);
            palhistcreate.getPropertiesfromResultSet(rsCreate);
           
            String locn =palhistbefore.getPallet().getLocationID();

            try
            {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = factory.newDocumentBuilder();

              Document document = builder.newDocument();

              Element message = (Element) document.createElement("message");

              Element hostUniqueID = addElement(document, "hostRef", Common.hostList.getHost(getHostID()).getUniqueID());
              message.appendChild(hostUniqueID);

              Element messageRef = addElement(document, "messageRef", String.valueOf(transactionRef));
              message.appendChild(messageRef);

              Element messageType = addElement(document, "interfaceType", "Pallet Split");
              message.appendChild(messageType);

              Element messageInformation = addElement(document, "messageInformation", "SSCC=" + palhistbefore.getPallet().getSSCC());
              message.appendChild(messageInformation);

              Element messageDirection = addElement(document, "interfaceDirection", "Output");
              message.appendChild(messageDirection);

              Element messageDate = addElement(document, "messageDate", JUtility.getISOTimeStampStringFormat(JUtility.getSQLDateTime()));
              message.appendChild(messageDate);

              Element messageData = (Element) document.createElement("messageData");
             
              //-----------------------INPUT PALLET - BEFORE ------------------------//
             
              Element palletSplitBefore = (Element) document.createElement("palletSplitBefore");

              Element ssccBefore = addElement(document, "SSCC", palhistbefore.getPallet().getSSCC());
              palletSplitBefore.appendChild(ssccBefore);

              Element materialBefore = addElement(document, "material", palhistbefore.getPallet().getMaterial());
              palletSplitBefore.appendChild(materialBefore);

              Element batchBefore = addElement(document, "batch", palhistbefore.getPallet().getBatchNumber());
              palletSplitBefore.appendChild(batchBefore);

              Element locationBefore = addElement(document, "location", palhistbefore.getPallet().getLocationID());
              palletSplitBefore.appendChild(locationBefore);

              //---
           
              Element processOrderBefore = addElement(document, "processOrder", palhistbefore.getPallet().getProcessOrder());
              palletSplitBefore.appendChild(processOrderBefore);           

              Element statusBefore = addElement(document, "status", palhistbefore.getPallet().getStatus());
              palletSplitBefore.appendChild(statusBefore)
             
              Element plantBefore = addElement(document, "plant", palhistbefore.getPallet().getLocationObj().getPlant());
              palletSplitBefore.appendChild(plantBefore);

              Element warehouseBefore= addElement(document, "warehouse", palhistbefore.getPallet().getLocationObj().getWarehouse());
              palletSplitBefore.appendChild(warehouseBefore);

              Element binBefore = addElement(document, "bin", palhistbefore.getPallet().getLocationObj().getStorageBin());
              palletSplitBefore.appendChild(binBefore);
             
              Element storageLocationBefore = addElement(document, "storageLocation", palhistbefore.getPallet().getLocationObj().getStorageLocation());
              palletSplitBefore.appendChild(storageLocationBefore);

              Element storageTypeBefore = addElement(document, "storageType", palhistbefore.getPallet().getLocationObj().getStorageType());
              palletSplitBefore.appendChild(storageTypeBefore);
              //----
             
              Element quantityBefore = addElement(document, "quantity", palhistbefore.getPallet().getQuantity().toString());
              palletSplitBefore.appendChild(quantityBefore);

              Element uomBefore = addElement(document, "uom", palhistbefore.getPallet().getUom().toString());
              palletSplitBefore.appendChild(uomBefore);

              messageData.appendChild(palletSplitBefore);

              //-----------------------INPUT PALLET - AFTER ------------------------//
             
              Element palletSplitAfter = (Element) document.createElement("palletSplitAfter");

              Element ssccAfter = addElement(document, "SSCC", palhistafter.getPallet().getSSCC());
              palletSplitAfter.appendChild(ssccAfter);

              Element materialAfter = addElement(document, "material", palhistafter.getPallet().getMaterial());
              palletSplitAfter.appendChild(materialAfter);

              Element batchAfter = addElement(document, "batch", palhistafter.getPallet().getBatchNumber());
              palletSplitAfter.appendChild(batchAfter);

              Element locationAfter = addElement(document, "location", palhistafter.getPallet().getLocationID());
              palletSplitAfter.appendChild(locationAfter);
             
              //---
             
              Element processOrderAfter = addElement(document, "processOrder", palhistafter.getPallet().getProcessOrder());
              palletSplitAfter.appendChild(processOrderAfter);           

              Element statusAfter = addElement(document, "status", palhistafter.getPallet().getStatus());
              palletSplitAfter.appendChild(statusAfter)
             
              Element plantAfter = addElement(document, "plant", palhistafter.getPallet().getLocationObj().getPlant());
              palletSplitAfter.appendChild(plantAfter);

              Element warehouseAfter = addElement(document, "warehouse", palhistafter.getPallet().getLocationObj().getWarehouse());
              palletSplitAfter.appendChild(warehouseAfter);

              Element binAfter = addElement(document, "bin", palhistafter.getPallet().getLocationObj().getStorageBin());
              palletSplitAfter.appendChild(binAfter);
             
              Element storageLocationAfter = addElement(document, "storageLocation", palhistafter.getPallet().getLocationObj().getStorageLocation());
              palletSplitAfter.appendChild(storageLocationAfter);

              Element storageTypeAfter = addElement(document, "storageType", palhistafter.getPallet().getLocationObj().getStorageType());
              palletSplitAfter.appendChild(storageTypeAfter);
              //----
             
              Element quantityAfter = addElement(document, "quantity", palhistafter.getPallet().getQuantity().toString());
              palletSplitAfter.appendChild(quantityAfter);

              Element uomAfter = addElement(document, "uom", palhistafter.getPallet().getUom().toString());
              palletSplitAfter.appendChild(uomAfter);

              messageData.appendChild(palletSplitAfter);
             
              //-----------------------OUTPUT PALLET - NEW ------------------------//           
             
              Element palletSplitCreated = (Element) document.createElement("palletSplitCreated");

              Element ssccCreated = addElement(document, "SSCC", palhistcreate.getPallet().getSSCC());
              palletSplitCreated.appendChild(ssccCreated);

              Element materialCreated = addElement(document, "material", palhistcreate.getPallet().getMaterial());
              palletSplitCreated.appendChild(materialCreated);

              Element batchCreated = addElement(document, "batch", palhistcreate.getPallet().getBatchNumber());
              palletSplitCreated.appendChild(batchCreated);

              Element locationCreated = addElement(document, "location", palhistcreate.getPallet().getLocationID());
              palletSplitCreated.appendChild(locationCreated);
             
              //---
             
              Element processOrderCreated = addElement(document, "processOrder", palhistcreate.getPallet().getProcessOrder());
              palletSplitCreated.appendChild(processOrderCreated);           

              Element statusCreated = addElement(document, "status", palhistcreate.getPallet().getStatus());
              palletSplitCreated.appendChild(statusCreated)
             
              Element plantCreated = addElement(document, "plant", palhistcreate.getPallet().getLocationObj().getPlant());
              palletSplitCreated.appendChild(plantCreated);

              Element warehouseCreated = addElement(document, "warehouse", palhistcreate.getPallet().getLocationObj().getWarehouse());
              palletSplitCreated.appendChild(warehouseCreated);

              Element binCreated = addElement(document, "bin", palhistcreate.getPallet().getLocationObj().getStorageBin());
              palletSplitCreated.appendChild(binCreated);
             
              Element storageLocationCreated = addElement(document, "storageLocation", palhistcreate.getPallet().getLocationObj().getStorageLocation());
              palletSplitCreated.appendChild(storageLocationCreated);

              Element storageTypeCreated = addElement(document, "storageType", palhistcreate.getPallet().getLocationObj().getStorageType());
              palletSplitCreated.appendChild(storageTypeCreated);
              //----             

              Element quantityCreated = addElement(document, "quantity", palhistcreate.getPallet().getQuantity().toString());
              palletSplitCreated.appendChild(quantityCreated);

              Element uomCreated = addElement(document, "uom", palhistcreate.getPallet().getUom().toString());
              palletSplitCreated.appendChild(uomCreated);

              messageData.appendChild(palletSplitCreated);
             
              //--------------------------------------------------------------//   
             
              message.appendChild(messageData);

              document.appendChild(message);

              JXMLDocument xmld = new JXMLDocument();
              xmld.setDocument(document);
              gmh.decodeHeader(xmld);

              if (device.equals("Disk") | device.equals("Email"))
              {

                path = inter.getRealPath();
                if (fio.writeToDisk(path, document, transactionRef, "_" + locn.replace(" ", "_") + "_PalletSplit.xml") == true)
                {
                  result = true;
                  il.write(gmh, GenericMessageHeader.msgStatusSuccess, "Processed OK", "File Write", fio.getFilename());
                  setErrorMessage("");
View Full Code Here

Examples of com.commander4j.db.JDBInterface

    sessionID = session;
  }

  public void submit(long dbTransactionRef)
  {
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
    inter.getInterfaceProperties("Pallet Split", "Output");
    if (inter.isEnabled() == true)
    {
      JDBInterfaceRequest ir = new JDBInterfaceRequest(getHostID(), getSessionID());
      ir.write(dbTransactionRef, "Pallet Split");
    } else
    {
View Full Code Here

Examples of com.commander4j.db.JDBInterface

  {
    Boolean result = false;
    String path = "";
    JDBInterfaceLog il = new JDBInterfaceLog(getHostID(), getSessionID());
    GenericMessageHeader gmh = new GenericMessageHeader();
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
    JDBUom uom = new JDBUom(getHostID(), getSessionID());
    JDBMaterial mat = new JDBMaterial(getHostID(), getSessionID());
    JDBControl ctrl = new JDBControl(getHostID(), getSessionID());

    String expiryMode;
    expiryMode = ctrl.getKeyValue("EXPIRY DATE MODE");

    inter.getInterfaceProperties("Production Declaration", "Output");
    String device = inter.getDevice();

    JDBPalletHistory palhist = new JDBPalletHistory(getHostID(), getSessionID());
    ResultSet rs = palhist.getInterfacingData(transactionRef, "PROD DEC", "CONFIRM", Long.valueOf(1), "SSCC", "asc");
    try
    {
      if (rs.next())
      {
        palhist.getPropertiesfromResultSet(rs);

        try
        {
          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
          DocumentBuilder builder = factory.newDocumentBuilder();

          Document document = builder.newDocument();

          Element message = (Element) document.createElement("message");

          Element hostUniqueID = addElement(document, "hostRef", Common.hostList.getHost(getHostID()).getUniqueID());
          message.appendChild(hostUniqueID);

          Element messageRef = addElement(document, "messageRef", String.valueOf(transactionRef));
          message.appendChild(messageRef);

          Element messageType = addElement(document, "interfaceType", "Production Declaration");
          message.appendChild(messageType);

          Element messageInformation = addElement(document, "messageInformation", "SSCC=" + palhist.getPallet().getSSCC());
          message.appendChild(messageInformation);

          Element messageDirection = addElement(document, "interfaceDirection", "Output");
          message.appendChild(messageDirection);

          Element messageDate = addElement(document, "messageDate", JUtility.getISOTimeStampStringFormat(JUtility.getSQLDateTime()));
          message.appendChild(messageDate);

          Element productionDeclaration = (Element) document.createElement("productionDeclaration");

          Element sscc = addElement(document, "SSCC", palhist.getPallet().getSSCC());
          productionDeclaration.appendChild(sscc);

          Element processOrder = addElement(document, "processOrder", palhist.getPallet().getProcessOrder());
          productionDeclaration.appendChild(processOrder);

          Element recipe = addElement(document, "recipe", palhist.getPallet().getProcessOrderObj(false).getRecipe());
          productionDeclaration.appendChild(recipe);

          Element required_resource = addElement(document, "requiredResource", palhist.getPallet().getProcessOrderObj(false).getRequiredResource());
          productionDeclaration.appendChild(required_resource);
         
          Element material = addElement(document, "material", palhist.getPallet().getMaterial());
          productionDeclaration.appendChild(material);

          if (mat.getMaterialProperties(palhist.getPallet().getMaterial()) == true)
          {
            Element description = addElement(document, "description", mat.getDescription());
            productionDeclaration.appendChild(description);
            Element old_code = addElement(document,"old_code",mat.getOldMaterial());
            productionDeclaration.appendChild(old_code);
          }
          else
          {
            Element description = addElement(document, "description", "");
            productionDeclaration.appendChild(description);
            Element old_code = addElement(document,"old_code","");
            productionDeclaration.appendChild(old_code);
          }

          Element ean = addElement(document, "ean", palhist.getPallet().getEAN());
          productionDeclaration.appendChild(ean);

          Element variant = addElement(document, "variant", palhist.getPallet().getVariant());
          productionDeclaration.appendChild(variant);

          Element status = addElement(document, "status", palhist.getPallet().getStatus());
          productionDeclaration.appendChild(status);

          Element batch = addElement(document, "batch", palhist.getPallet().getBatchNumber());
          productionDeclaration.appendChild(batch);

          Element batchStatus = addElement(document, "batchStatus", palhist.getPallet().getMaterialBatchStatus());
          productionDeclaration.appendChild(batchStatus);

          Element expiryDateMode = addElement(document, "expiry_Mode", expiryMode);
          productionDeclaration.appendChild(expiryDateMode);

          if (expiryMode.equals("BATCH") == true)
          {
            Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getMaterialBatchExpiryDate()));
            productionDeclaration.appendChild(expiryDate);
          }
          else
          {
            Element expiryDate = addElement(document, "expiryDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getBatchExpiry()));
            productionDeclaration.appendChild(expiryDate);
          }

          Element location = addElement(document, "location", palhist.getPallet().getLocationID());
          productionDeclaration.appendChild(location);

          Element name = addElement(document, "name", palhist.getPallet().getLocationObj().getDescription());
          productionDeclaration.appendChild(name);

          Element gln = addElement(document, "gln", palhist.getPallet().getLocationObj().getGLN());
          productionDeclaration.appendChild(gln);

          Element plant = addElement(document, "plant", palhist.getPallet().getLocationObj().getPlant());
          productionDeclaration.appendChild(plant);

          Element warehouse = addElement(document, "warehouse", palhist.getPallet().getLocationObj().getWarehouse());
          productionDeclaration.appendChild(warehouse);

          Element storageLocation = addElement(document, "storageLocation", palhist.getPallet().getLocationObj().getStorageLocation());
          productionDeclaration.appendChild(storageLocation);

          Element storageSection = addElement(document, "storageSection", palhist.getPallet().getLocationObj().getStorageSection());
          productionDeclaration.appendChild(storageSection);

          Element storageBin = addElement(document, "storageBin", palhist.getPallet().getLocationObj().getStorageBin());
          productionDeclaration.appendChild(storageBin);

          Element storageType = addElement(document, "storageType", palhist.getPallet().getLocationObj().getStorageType());
          productionDeclaration.appendChild(storageType);

          Element productionQuantity = addElement(document, "productionQuantity", String.valueOf(palhist.getPallet().getQuantity()));
          productionDeclaration.appendChild(productionQuantity);

          String paluom = palhist.getPallet().getUom();
          paluom = uom.convertUom(inter.getUOMConversion(), paluom);

          Element productionUOM = addElement(document, "productionUOM", paluom);
          productionDeclaration.appendChild(productionUOM);

          Element productionConfirmed = addElement(document, "confirmed", palhist.getPallet().getConfirmed());
          productionDeclaration.appendChild(productionConfirmed);

          Element productionDate = addElement(document, "productionDate", JUtility.getISOTimeStampStringFormat(palhist.getPallet().getDateOfManufacture()));
          productionDeclaration.appendChild(productionDate);

          Element messageData = (Element) document.createElement("messageData");
          messageData.appendChild(productionDeclaration);

          message.appendChild(messageData);

          document.appendChild(message);

          JXMLDocument xmld = new JXMLDocument();
          xmld.setDocument(document);
          gmh.decodeHeader(xmld);

          if (device.equals("Disk") | device.equals("Email"))
          {

            path = inter.getRealPath();
            if (fio.writeToDisk(path, document, transactionRef,"_"+ palhist.getPallet().getLocationID().replace(" ", "_")+"_ProductionDeclaration.xml") == true)
            {
              result = true;
              il.write(gmh, GenericMessageHeader.msgStatusSuccess, "Processed OK", "File Write", fio.getFilename());
              setErrorMessage("");
View Full Code Here

Examples of com.commander4j.db.JDBInterface

  public void setSessionID(String session) {
    sessionID = session;
  }

  public void submit(long dbTransactionRef) {
    JDBInterface inter = new JDBInterface(getHostID(), getSessionID());
    inter.getInterfaceProperties("Production Declaration", "Output");
    if (inter.isEnabled() == true)
    {
      JDBInterfaceRequest ir = new JDBInterfaceRequest(getHostID(), getSessionID());
      ir.write(dbTransactionRef, "Production Declaration");
    }
    else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.