当前位置: 首页>>代码示例>>Java>>正文


Java AppProperties类代码示例

本文整理汇总了Java中com.openbravo.pos.forms.AppProperties的典型用法代码示例。如果您正苦于以下问题:Java AppProperties类的具体用法?Java AppProperties怎么用?Java AppProperties使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AppProperties类属于com.openbravo.pos.forms包,在下文中一共展示了AppProperties类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PaymentGatewayCaixa

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public PaymentGatewayCaixa (AppProperties props) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
    
    this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    //EUR, USD, GPB
    this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
    
    this.sTerminal = props.getProperty("payment.terminal");
    this.sMerchantCode = props.getProperty("payment.commerceid");
    this.bSha = Boolean.valueOf(props.getProperty("payment.SHA")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode)
            ? "https://sis-t.sermepa.es:25443/sis/operaciones"
            : "https://sis.sermepa.es/sis/realizarPago";
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:PaymentGatewayCaixa.java

示例2: DeviceScale

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/** Creates a new instance of DeviceScale */
public DeviceScale(Component parent, AppProperties props) {
    StringParser sd = new StringParser(props.getProperty("machine.scale"));
    String sScaleType = sd.nextToken(':');
    String sScaleParam1 = sd.nextToken(',');
    // String sScaleParam2 = sd.nextToken(',');
    
    if ("dialog1".equals(sScaleType)) {
        m_scale = new ScaleComm(sScaleParam1);
    } else if ("samsungesp".equals(sScaleType)) {
        m_scale = new ScaleSamsungEsp(sScaleParam1);            
    } else if ("fake".equals(sScaleType)) { // a fake scale for debugging purposes
        m_scale = new ScaleFake();            
    } else if ("screen".equals(sScaleType)) { // on screen scale
        m_scale = new ScaleDialog(parent);
    } else {
        m_scale = null;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:DeviceScale.java

示例3: PaymentGatewayCaixa

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/**
 *
 * @param props
 */
public PaymentGatewayCaixa (AppProperties props) {
    AltEncrypter cypher = new AltEncrypter("cypherkey");
    this.sCommerceSign = cypher.decrypt(props.getProperty("payment.commercesign").substring(6));
    
    this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    //EUR, USD, GPB
    this.m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
    
    this.sTerminal = props.getProperty("payment.terminal");
    this.sMerchantCode = props.getProperty("payment.commerceid");
    this.bSha = Boolean.valueOf(props.getProperty("payment.SHA")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode)
            ? "https://sis-t.sermepa.es:25443/sis/operaciones"
            : "https://sis.sermepa.es/sis/realizarPago";
    
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:25,代码来源:PaymentGatewayCaixa.java

示例4: PaymentGatewayPayPoint

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/** Creates a new instance of PaymentGatewaySECPay
 * @param props */
public PaymentGatewayPayPoint(AppProperties props) {
    
    // Propiedades del sistema
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol" );
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
        
    // Configuracion del pago
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));
    
    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    m_sCurrency = (Locale.getDefault().getCountry().isEmpty())
        ? Currency.getInstance("EUR").getCurrencyCode()
        : Currency.getInstance(Locale.getDefault()).getCurrencyCode();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:PaymentGatewayPayPoint.java

示例5: DeviceTicket

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/** 
 * 
 * Creates a new instance of DeviceTicket 
 */
//    public DeviceTicket() {
    public DeviceTicket(AppProperties props) {    
        // Una impresora solo de pantalla.

        m_deviceFiscal = new DeviceFiscalPrinterNull();

        m_devicedisplay = new DeviceDisplayNull();

        m_nullprinter = new DevicePrinterNull();
        m_deviceprinters = new HashMap<>();
        m_deviceprinterslist = new ArrayList<>();

//JG July 2014 - Thank you Ron Isaacson        DevicePrinter p = new DevicePrinterPanel();
        DevicePrinter p = new DevicePrinterPanel(props);        
        m_deviceprinters.put("1", p);
        m_deviceprinterslist.add(p);
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:DeviceTicket.java

示例6: JPanelConfiguration

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public JPanelConfiguration(AppProperties props) {
    
    config = new AppConfig(props.getConfigFile());
    
    initComponents();
    
    // Inicio lista de paneles
    m_panelconfig = new ArrayList<>();
    m_panelconfig.add(new JPanelConfigGeneral());
    m_panelconfig.add(new JPanelConfigDatabase());
    m_panelconfig.add(new JPanelConfigHardware());        
    m_panelconfig.add(new JPanelConfigLocale());
    m_panelconfig.add(new JPanelConfigPayment(props));
    m_panelconfig.add(new JPanelConfigServer());
    
    // paneles auxiliares
    for (PanelConfig c: m_panelconfig) {
        m_jConfigOptions.addTab(c.getPanelConfigName(), c.getConfigComponent());
    }
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:21,代码来源:JPanelConfiguration.java

示例7: createInstance

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public static DeviceInputOutput createInstance(AppProperties props) {

        ServiceLoader<InputOutputInterface> pluLoader = ServiceLoader.load(InputOutputInterface.class);

        DeviceInputOutput m_plu = new DeviceInputOutputNull();

        for (InputOutputInterface machineInterface : pluLoader) {
            try {
                m_plu = machineInterface.getDeviceIO(props.getProperty("machine.pludevice"));
            } catch (Exception ex) {
                logger.log(Level.WARNING, ex.getMessage(), ex);
            }
        }

        return m_plu;
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:17,代码来源:DeviceInputOutputFactory.java

示例8: DeviceScaleFactory

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public DeviceScaleFactory(Component parent, AppProperties props) {

        ServiceLoader<ScaleInterface> scaleLoader = ServiceLoader.load(ScaleInterface.class);

        m_scale = new DeviceScaleNull();

        String sScaleProperty = props.getProperty("machine.scale");

        StringParser sd = new StringParser(sScaleProperty);
        sScaleType = sd.nextToken(':');

        for (ScaleInterface machineInterface : scaleLoader) {
            try {
                if (sScaleType.equals("screen")) {
                    m_scale = machineInterface.getScale(parent, sScaleProperty);
                } else {
                    m_scale = machineInterface.getScale(sScaleProperty);
                }
            } catch (Exception ex) {
                logger.log(Level.WARNING, ex.getMessage(), ex);
            }
        }
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:24,代码来源:DeviceScaleFactory.java

示例9: JPaymentMcash

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/**
 * Creates new form JPaymentFree
 *
 * @param app
 * @param notifier
 */
public JPaymentMcash(AppView app, JPaymentNotifier notifier) {
    m_notifier = notifier;
    initComponents();
    AppProperties config = app.getProperties();
    m_mCashBaseUri = config.getProperty("mcash.baseuri");
    m_mCashMerchantId = config.getProperty("mcash.merchantid");
    m_mCashUserId = config.getProperty("mcash.merchantuserid");
    m_mCashPosId = config.getProperty("mcash.posid");
    m_mCashAuthKey = config.getProperty("mcash.authkey");
    m_mCashAuthMethod = config.getProperty("mcash.authmethod");
    m_mCashSerialNumber = config.getProperty("mcash.serialnumber");
    m_mCashTestbedToken = "".equals(config.getProperty("mcash.testbedtoken")) ? null : config.getProperty("mcash.testbedtoken");
    m_mCashReceiptUri = config.getProperty("mcash.receipturi");
    m_mCashLedger = config.getProperty("mcash.ledger");
    m_apiEnabled = Boolean.valueOf(config.getProperty("api.enabled"));

}
 
开发者ID:ZarGate,项目名称:OpenbravoPOS,代码行数:24,代码来源:JPaymentMcash.java

示例10: PaymentGatewayLinkPoint

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public PaymentGatewayLinkPoint(AppProperties props) {

        
        this.m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
        this.sConfigfile = props.getProperty("payment.commerceid");
        this.sClientCertPath = props.getProperty("payment.certificatePath");
        AltEncrypter cypher = new AltEncrypter("cypherkey");
        this.sPasswordCert = cypher.decrypt(props.getProperty("payment.certificatePassword").substring(6));
        
        HOST = (m_bTestMode)
                ? "staging.linkpt.net"
                : "secure.linkpt.net";
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:PaymentGatewayLinkPoint.java

示例11: PaymentGatewayPGNET

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public PaymentGatewayPGNET(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));
    
    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    ENDPOINTADDRESS = (m_bTestMode) 
            ? "https://www.paymentsgateway.net/cgi-bin/posttest.pl"
            : "https://www.paymentsgateway.net/cgi-bin/postauth.pl";
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:PaymentGatewayPGNET.java

示例12: PaymentGatewayPlanetauthorize

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public PaymentGatewayPlanetauthorize (AppProperties props) {
    m_sCommerceID = props.getProperty("payment.commerceid");

    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:PaymentGatewayPlanetauthorize.java

示例13: createInstance

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
public static DeviceScanner createInstance(AppProperties props) {
    
    StringParser sd = new StringParser(props.getProperty("machine.scanner"));
    String sScannerType = sd.nextToken(':');
    String sScannerParam1 = sd.nextToken(',');
    // String sScannerParam2 = sd.nextToken(',');
    
    if ("scanpal2".equals(sScannerType)) {
        return new DeviceScannerComm(sScannerParam1);
    } else {
        return null;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:DeviceScannerFactory.java

示例14: PaymentGatewayBluePayAUTHNETEMU

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/** Creates a new instance of PaymentGatewayBluePayAUTHNETEMU
 * @param props */
public PaymentGatewayBluePayAUTHNETEMU(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.BluePay.accountID");
    
    this.m_sCommercePassword = props.getProperty("payment.BluePay.secretKey");

    m_bTestMode = Boolean.valueOf(props.getProperty("payment.testmode")).booleanValue();
    
    ENDPOINTADDRESS = props.getProperty( "payment.BluePay.URL" );
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:13,代码来源:PaymentGatewayBluePayAUTHNETEMU.java

示例15: PaymentGatewayAuthorizeNet

import com.openbravo.pos.forms.AppProperties; //导入依赖的package包/类
/** Creates a new instance of PaymentGatewayAuthorizeNet
 * @param props */
public PaymentGatewayAuthorizeNet(AppProperties props) {
    // Grab some configuration variables
    m_sCommerceID = props.getProperty("payment.commerceid");
    
    AltEncrypter cypher = new AltEncrypter("cypherkey" + props.getProperty("payment.commerceid"));
    this.m_sCommercePassword = cypher.decrypt(props.getProperty("payment.commercepassword").substring(6));

    m_bTestMode = Boolean.parseBoolean(props.getProperty("payment.testmode"));
    
    ENDPOINTADDRESS = (m_bTestMode) 
            ? "https://test.authorize.net/gateway/transact.dll"
            : "https://cardpresent.authorize.net/gateway/transact.dll";
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:16,代码来源:PaymentGatewayAuthorizeNet.java


注:本文中的com.openbravo.pos.forms.AppProperties类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。