本文整理汇总了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", " "));
}
示例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"));
}
}
示例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;
}