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


Java Record类代码示例

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


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

示例1: addStaticData

import org.ofbiz.datafile.Record; //导入依赖的package包/类
private void addStaticData(Record record) {
    // grab a taxware properties file and get static data
    record.set("COMPANY_ID", UtilProperties.getPropertyValue("taxware.properties", "COMPANY_ID", " "));
    record.set("AUDIT_FILE_INDICATOR", UtilProperties.getPropertyValue("taxware.properties", "AUDIT_FILE_INDICATOR", "2"));
    record.set("SF_COUNTRY_CODE", UtilProperties.getPropertyValue("taxware.properties", "SF_COUNTRY_CODE", ""));
    record.set("SF_STATE_PROVINCE", UtilProperties.getPropertyValue("taxware.properties", "SF_STATE_PROVINCE", " "));
    record.set("SF_CITY", UtilProperties.getPropertyValue("taxware.properties", "SF_CITY", " "));
    record.set("SF_POSTAL_CODE", UtilProperties.getPropertyValue("taxware.properties", "SF_POSTAL_CODE", " "));
    record.set("POO_COUNTRY_CODE", UtilProperties.getPropertyValue("taxware.properties", "POO_COUNTRY_CODE", ""));
    record.set("POO_STATE_PROVINCE", UtilProperties.getPropertyValue("taxware.properties", "POO_STATE_PROVINCE", " "));
    record.set("POO_CITY", UtilProperties.getPropertyValue("taxware.properties", "POO_CITY", " "));
    record.set("POO_POSTAL_CODE", UtilProperties.getPropertyValue("taxware.properties", "POO_POSTAL_CODE", " "));
    record.set("POA_COUNTRY_CODE", UtilProperties.getPropertyValue("taxware.properties", "POA_COUNTRY_CODE", ""));
    record.set("POA_STATE_PROVINCE", UtilProperties.getPropertyValue("taxware.properties", "POA_STATE_PROVINCE", " "));
    record.set("POA_CITY", UtilProperties.getPropertyValue("taxware.properties", "POA_CITY", " "));
    record.set("POA_POSTAL_CODE", UtilProperties.getPropertyValue("taxware.properties", "POA_POSTAL_CODE", " "));
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:18,代码来源:TaxwareUTL.java

示例2: addAddresses

import org.ofbiz.datafile.Record; //导入依赖的package包/类
private void addAddresses(Record record) {
    // set the address info from the value objects
    if (shipToAddress != null) {
        // set the ship to address
        if (shipToAddress.get("countryGeoId") == null) {
            record.set("ST_COUNTRY_CODE", "US");
        } else if (shipToAddress.getString("countryGeoId").equals("USA")) {
            record.set("ST_COUNTRY_CODE", "US");
        } else {
            record.set("ST_COUNTRY_CODE", shipToAddress.get("countryGeoId"));
        }
        record.set("ST_COUNTRY_CODE", "US");
        record.set("ST_STATE_PROVINCE", shipToAddress.get("stateProvinceGeoId"));
        record.set("ST_CITY", shipToAddress.get("city"));
        record.set("ST_POSTAL_CODE", shipToAddress.get("postalCode"));
    }
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:18,代码来源:TaxwareUTL.java

示例3: makeItemData

import org.ofbiz.datafile.Record; //导入依赖的package包/类
private Record makeItemData(Record record) {
    addStaticData(record);
    addAddresses(record);
    record.set("TAXSEL_PARM", "3");
    record.set("SYSTEM_INDICATOR", "1");
    record.set("INVOICE_DATE", new java.sql.Date(new Date().getTime()));
    return record;
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:9,代码来源:TaxwareUTL.java


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