本文整理汇总了Java中com.openbravo.data.loader.DataRead.getDouble方法的典型用法代码示例。如果您正苦于以下问题:Java DataRead.getDouble方法的具体用法?Java DataRead.getDouble怎么用?Java DataRead.getDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.data.loader.DataRead
的用法示例。
在下文中一共展示了DataRead.getDouble方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
m_sTicket = dr.getString(1);
m_iLine = dr.getInt(2).intValue();
productid = dr.getString(3);
attsetinstid = dr.getString(4);
multiply = dr.getDouble(5);
price = dr.getDouble(6);
tax = new TaxInfo(dr.getString(7), dr.getString(8), dr.getString(9), dr.getTimestamp(10), dr.getString(11), dr.getString(12), dr.getDouble(13), dr.getBoolean(14), dr.getInt(15));
attributes = new Properties();
try {
byte[] img = dr.getBytes(16);
if (img != null) {
attributes.loadFromXML(new ByteArrayInputStream(img));
}
} catch (IOException e) {
}
}
示例2: getSerializerRead
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @return
*/
public static SerializerRead getSerializerRead() {
return new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
return new PromoInfo(
dr.getString(1),
dr.getString(2),
dr.getInt(3),
dr.getInt(4),
dr.getString(5),
dr.getString(6),
dr.getInt(7),
dr.getDouble(8),
dr.getInt(9),
dr.getInt(10),
dr.getInt(11),
dr.getInt(12),
dr.getString(13),
dr.getString(14)
);
}};
}
示例3: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
public void readValues(DataRead dr) throws BasicException {
m_sID = dr.getString(1);
m_sName = dr.getString(2);
m_iStartHour = dr.getInt(3);
m_iEndHour = dr.getInt(4);
m_sArticle = dr.getString(5);
m_sArticleCategory = dr.getString(6);
m_iType = dr.getInt(7);
m_bdAmount = dr.getDouble(8);
m_iMinQuantity = dr.getInt(9);
m_iMaxQuantity = dr.getInt(10);
m_iStepQuantity = dr.getInt(11);
m_iStepAmount = dr.getInt(12);
m_sArticleBonus = dr.getString(13);
m_sArticleBonusDescription = dr.getString(14);
}
示例4: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
public Object readValues(DataRead dr) throws BasicException {
return new Object[] {
dr.getString(1),
dr.getString(2),
dr.getString(3),
dr.getString(4),
((Object[]) m_paramslocation.createValue())[1],
dr.getDouble(5),
dr.getDouble(6),
dr.getDouble(7)
};
}
示例5: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
@Override
public void readValues(DataRead dr) throws BasicException {
m_sID = dr.getString(1);
m_sName = dr.getString(2);
m_dPriceBuy = dr.getDouble(3).doubleValue();
m_dAmount = (dr.getDouble(4) == null) ? 1.0 : dr.getDouble(4).doubleValue();
m_sUnit = dr.getString(5);
}
示例6: getSerializerRead
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @return
*/
public static SerializerRead getSerializerRead() {
return new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
return new SalesDetailInfo(dr.getInt(1), dr.getString(2), dr.getDouble(3));
}};
}
示例7: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
@Override
public void readValues(DataRead dr) throws BasicException {
m_sTicket = dr.getString(1);
m_iLine = dr.getInt(2);
productid = dr.getString(3);
attsetinstid = dr.getString(4);
multiply = dr.getDouble(5);
price = dr.getDouble(6);
tax = new TaxInfo(
dr.getString(7),
dr.getString(8),
dr.getString(9),
dr.getString(10),
dr.getString(11),
dr.getDouble(12),
dr.getBoolean(13),
dr.getInt(14));
attributes = new Properties();
try {
byte[] img = dr.getBytes(15);
if (img != null) {
attributes.loadFromXML(new ByteArrayInputStream(img));
}
} catch (IOException e) {
}
}
示例8: getSerializerRead
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @return
*/
public static SerializerRead getSerializerRead() {
return new SerializerRead() {
@Override
public Object readValues(DataRead dr) throws BasicException {
System.out.println("dr.getDataField().length:"+dr.getDataField().length);
ProductInfoExt product = new ProductInfoExt();
product.m_ID = dr.getString(1);
product.m_sRef = dr.getString(2);
product.m_sCode = dr.getString(3);
product.m_sName = dr.getString(4);
product.m_bCom = dr.getBoolean(5);
product.m_bScale = dr.getBoolean(6);
product.m_dPriceBuy = dr.getDouble(7);
product.m_dPriceSell = dr.getDouble(8);
product.taxcategoryid = dr.getString(9);
product.categoryid = dr.getString(10);
product.attributesetid = dr.getString(11);
product.m_Image = ImageUtils.readImage(dr.getBytes(12));
product.attributes = ImageUtils.readProperties(dr.getBytes(13));
product.m_bKitchen = dr.getBoolean(14);
product.m_bService = dr.getBoolean(15);
// ADDED JG 13 Nov 12 - Display
product.m_sDisplay = dr.getString(16);
// ADDED JDL 19.12.12
product.m_bVprice = dr.getBoolean(17);
// ADDED JDL 09.0.2.13 for Chris
product.m_bVerpatrib = dr.getBoolean(18);
// ADDED JDL 09.04.13
product.m_sTextTip = dr.getString(19);
// ADDED JDL 25.04.13
product.m_bWarranty = dr.getBoolean(20);
// JG July 2014 - added for Stock count
product.m_dStockUnits = dr.getDouble(21);
return product;
}
};
}
示例9: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
@Override
public void readValues(DataRead dr) throws BasicException {
ticketid = dr.getInt(1);
tickettype = dr.getInt(2);
date = dr.getTimestamp(3);
name = dr.getString(4);
customer = dr.getString(5);
total = (dr.getObject(6) == null) ? 0.0 : dr.getDouble(6);
}
示例10: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
@Override
public void readValues(DataRead dr) throws BasicException {
m_sTicket = dr.getString(1);
m_iLine = dr.getInt(2).intValue();
productid = dr.getString(3);
attsetinstid = dr.getString(4);
multiply = dr.getDouble(5);
price = dr.getDouble(6);
tax = new TaxInfo(
dr.getString(7),
dr.getString(8),
dr.getString(9),
dr.getString(10),
dr.getString(11),
dr.getDouble(12),
dr.getBoolean(13),
dr.getInt(14));
attributes = new Properties();
try {
byte[] img = dr.getBytes(15);
if (img != null) {
attributes.loadFromXML(new ByteArrayInputStream(img));
}
} catch (IOException e) {
}
}
示例11: getSerializerRead
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @return ticketlines for this customer
*/
public static SerializerRead getSerializerRead() {
return new SerializerRead() {
@Override
public Object readValues(DataRead dr) throws BasicException {
String ticketId = dr.getString(1);
String productName = dr.getString(2);
String unit = dr.getString(3);
Double amount = dr.getDouble(4);
Double total = dr.getDouble(5);
String dateValue = dr.getString(6);
String customerName = dr.getString(7);
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
Date date = null;
try {
date = formatter.parse(dateValue);
} catch (ParseException ex) {
Logger.getLogger(DataLogicSales.class.getName()).log(Level.SEVERE, null, ex);
}
return new CustomerTransaction(ticketId, productName, unit, amount, total, date, customerName);
}
};
}
示例12: getSerializerRead
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @return
*/
public static SerializerRead getSerializerRead() {
return new SerializerRead() {
@Override
public Object readValues(DataRead dr) throws BasicException {
ProductInfoExt product = new ProductInfoExt();
product.m_ID = dr.getString(1);
product.m_sRef = dr.getString(2);
product.m_sCode = dr.getString(3);
product.m_sName = dr.getString(4);
product.m_bCom = dr.getBoolean(5);
product.m_bScale = dr.getBoolean(6);
product.m_dPriceBuy = dr.getDouble(7);
product.m_dPriceSell = dr.getDouble(8);
product.taxcategoryid = dr.getString(9);
product.categoryid = dr.getString(10);
product.attributesetid = dr.getString(11);
product.m_Image = ImageUtils.readImage(dr.getBytes(12));
product.attributes = ImageUtils.readProperties(dr.getBytes(13));
product.m_bKitchen = dr.getBoolean(14);
product.m_bService = dr.getBoolean(15);
// ADDED JG 13 Nov 12 - Display
product.m_sDisplay = dr.getString(16);
// ADDED JDL 19.12.12
product.m_bVprice = dr.getBoolean(17);
// ADDED JDL 09.0.2.13 for Chris
product.m_bVerpatrib = dr.getBoolean(18);
// ADDED JDL 09.04.13
product.m_sTextTip = dr.getString(19);
// ADDED JDL 25.04.13
product.m_bWarranty = dr.getBoolean(20);
// JG July 2014 - added for Stock count
product.m_dStockUnits = dr.getDouble(21);
return product;
}
};
}
示例13: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
/**
*
* @param dr
* @throws BasicException
*/
@Override
public void readValues(DataRead dr) throws BasicException {
m_sName = dr.getString(1);
m_dTicket = dr.getDouble(2);
m_transactionID = dr.getString(3);
if (dr.getDouble(4) != null) {
m_dTendered = dr.getDouble(4);}
m_dCardName = dr.getString(5);
}
示例14: readValues
import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
@Override
public void readValues(DataRead dr) throws BasicException {
id = dr.getString(1);
name = dr.getString(2);
latitude = dr.getDouble(3);
longtitude = dr.getDouble(4);
visible = dr.getBoolean(5);
layerId = dr.getString(6);
}