當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。