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


Java DataRead.getBytes方法代码示例

本文整理汇总了Java中com.openbravo.data.loader.DataRead.getBytes方法的典型用法代码示例。如果您正苦于以下问题:Java DataRead.getBytes方法的具体用法?Java DataRead.getBytes怎么用?Java DataRead.getBytes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.openbravo.data.loader.DataRead的用法示例。


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

示例1: readValues

import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sId = dr.getString(1);
    tickettype = dr.getInt(2).intValue();
    m_iTicketId = dr.getInt(3).intValue();
    m_dDate = dr.getTimestamp(4);
    m_sActiveCash = dr.getString(5);
    try {
        byte[] img = dr.getBytes(6);
        if (img != null) {
            attributes.loadFromXML(new ByteArrayInputStream(img));
        }
    } catch (IOException e) {
    }
    m_User = new UserInfo(dr.getString(7), dr.getString(8));
    m_Customer = new CustomerInfoExt(dr.getString(9));
    m_aLines = new ArrayList<TicketLineInfo>();

    payments = new ArrayList<PaymentInfo>();
    taxes = null;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:TicketInfo.java

示例2: 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) {
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:TicketLineInfo.java

示例3: 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);
    tickettype = dr.getInt(2);
    m_iTicketId = dr.getInt(3);
    m_dDate = dr.getTimestamp(4);
    m_sActiveCash = dr.getString(5);
    try {
        byte[] img = dr.getBytes(6);
        if (img != null) {
            attributes.loadFromXML(new ByteArrayInputStream(img));
        }
    } catch (IOException e) {
    }
    m_User = new UserInfo(dr.getString(7), dr.getString(8));
    m_Customer = new CustomerInfoExt(dr.getString(9));
    m_aLines = new ArrayList<>(); // JG June 2102 diamond inference

    payments = new ArrayList<>(); // JG June 2102 diamond inference
    taxes = null;
  
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:28,代码来源:TicketInfo.java

示例4: 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) {
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:32,代码来源:TicketLineInfo.java

示例5: 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) {
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:32,代码来源:TicketLineInfo1.java

示例6: readValues

import com.openbravo.data.loader.DataRead; //导入方法依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sName = dr.getString(1);
    m_aPermissions = dr.getBytes(2);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:5,代码来源:RoleExtInfo.java

示例7: 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_aPermissions = dr.getBytes(2);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:11,代码来源:RoleExtInfo.java


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