コード例 #1
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public void accessDailyLog(int sequenceNumber, int type, int timeout) throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.accessDailyLog(sequenceNumber, type, timeout);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #2
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public boolean getCapAuthorizeCompletion() throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      return service14.getCapAuthorizeCompletion();
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #3
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public String getTransactionType() throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      return service14.getTransactionType();
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #4
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public void setTrainingMode(boolean trainingMode) throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.setTrainingMode(trainingMode);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #5
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public void setPowerNotify(int powerNotify) throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.setPowerNotify(powerNotify);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #6
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public void setAdditionalSecurityInformation(String securityInfo) throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.setAdditionalSecurityInformation(securityInfo);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }
コード例 #7
0
ファイル: CAT.java プロジェクト: openlpos/OpenShoppe
  public void authorizeVoid(int sequenceNumber, long amount, long taxOthers, int timeout)
      throws JposException {
    // Make sure control is opened
    if (!bOpen) {
      throw new JposException(JPOS_E_CLOSED, "Control not opened");
    }

    // Perform the operation
    try {
      service14.authorizeVoid(sequenceNumber, amount, taxOthers, timeout);
    } catch (JposException je) {
      throw je;
    } catch (Exception e) {
      throw new JposException(JPOS_E_FAILURE, "Unhandled exception from Device Service", e);
    }
  }