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


Java DataRead类代码示例

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


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

示例1: readValues

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sId = dr.getString(1);
    m_sName = dr.getString(2);
    m_ix = dr.getInt(3).intValue();
    m_iy = dr.getInt(4).intValue();
    m_sfloor = dr.getString(5);
    
    m_bPeople = false;
    m_btn = new JButton();

    m_btn.setFocusPainted(false);
    m_btn.setFocusable(false);
    m_btn.setRequestFocusEnabled(false);
    m_btn.setHorizontalTextPosition(SwingConstants.CENTER);
    m_btn.setVerticalTextPosition(SwingConstants.BOTTOM);            
    m_btn.setIcon(ICO_FRE);
    m_btn.setText(m_sName);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:Place.java

示例2: 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

示例3: 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

示例4: getSerializerRead

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public static SerializerRead getSerializerRead() {
    return new SerializerRead() { 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).booleanValue();
        product.m_bScale = dr.getBoolean(6).booleanValue();
        product.m_dPriceBuy = dr.getDouble(7).doubleValue();
        product.m_dPriceSell = dr.getDouble(8).doubleValue();
        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));
        return product;
    }};
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:ProductInfoExt.java

示例5: AttributeUseEditor

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
/** Creates new form AttributeSetEditor */
public AttributeUseEditor(AppView app, DirtyManager dirty) {

    attributesent = new StaticSentence(app.getSession()
        , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
        , null
        , new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
            return new AttributeInfo(dr.getString(1), dr.getString(2));
        }}
    );
    attributemodel = new ComboBoxValModel();

    initComponents();

    jLineno.getDocument().addDocumentListener(dirty);
    jAttribute.addActionListener(dirty);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributeUseEditor.java

示例6: 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_ix = dr.getInt(3).intValue();
    m_iy = dr.getInt(4).intValue();
    m_sfloor = dr.getString(5);
    m_customer = dr.getString(6);
    m_waiter = dr.getString(7);
    m_ticketId = dr.getString(8);
    m_tableMoved = dr.getBoolean(9);
    
    m_bPeople = false;
    m_btn = new JButton();

    m_btn.setFocusPainted(false);
    m_btn.setFocusable(false);
    m_btn.setRequestFocusEnabled(false);
    m_btn.setHorizontalTextPosition(SwingConstants.CENTER);
    m_btn.setVerticalTextPosition(SwingConstants.BOTTOM);            
    m_btn.setIcon(ICO_FRE);
    m_btn.setText(m_sName);
    m_btn.setMargin(new Insets(2,5,2,5));

}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:31,代码来源:Place.java

示例7: 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

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

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

示例10: AttributeUseEditor

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
/** Creates new form AttributeSetEditor
    * @param app
    * @param dirty */
   public AttributeUseEditor(AppView app, DirtyManager dirty) {

       attributesent = new StaticSentence(app.getSession()
           , "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
           , null
           , new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
               return new AttributeInfo(dr.getString(1), dr.getString(2));
           }}
       );
       attributemodel = new ComboBoxValModel();

       initComponents();

       jLineno.getDocument().addDocumentListener(dirty);
       jAttribute.addActionListener(dirty);
   }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:21,代码来源:AttributeUseEditor.java

示例11: getSerializerRead

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public static SerializerRead getSerializerRead() {
    return new SerializerRead() { 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).booleanValue();
        product.m_bScale = dr.getBoolean(6).booleanValue();
        product.m_bKitchenPrint = dr.getBoolean(7).booleanValue();
        product.m_dPriceBuy = dr.getDouble(8).doubleValue();
        product.m_dPriceSell = dr.getDouble(9).doubleValue();
        product.taxcategoryid = dr.getString(10);
        product.categoryid = dr.getString(11);
        product.attributesetid = dr.getString(12);
        product.m_Image = ImageUtils.readImage(dr.getBytes(13));
        product.attributes = ImageUtils.readProperties(dr.getBytes(14));
        return product;
    }};
}
 
开发者ID:ZarGate,项目名称:OpenbravoPOS,代码行数:21,代码来源:ProductInfoExt.java

示例12: readValues

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public Object readValues(DataRead dr) throws BasicException {             
    Object[] m_values = new Object[fields.length];
    for (int i = 0; i < fields.length; i++) {
        m_values[i] = fields[i].getData().getValue(dr, i + 1);
    }
    return m_values;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:8,代码来源:Row.java

示例13: readValues

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sID = dr.getString(1);
    m_sName = dr.getString(2);
    BufferedImage img = ImageUtils.readImage(dr.getBytes(3));
    ThumbNailBuilder tnbcat = new ThumbNailBuilder(32, 32, defimg);
    m_container = new JPanelDrawing(img);
    m_icon = new ImageIcon(tnbcat.getThumbNail(img));        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:Floor.java

示例14: readValues

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
@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).doubleValue();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:FindTicketsInfo.java

示例15: getCustomerList

import com.openbravo.data.loader.DataRead; //导入依赖的package包/类
public SentenceList getCustomerList() {
    return new StaticSentence(s
        , new QBFBuilder("SELECT ID, TAXID, SEARCHKEY, NAME FROM CUSTOMERS WHERE VISIBLE = " + s.DB.TRUE() + " AND ?(QBF_FILTER) ORDER BY NAME", new String[] {"TAXID", "SEARCHKEY", "NAME"})
        , new SerializerWriteBasic(new Datas[] {Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING, Datas.OBJECT, Datas.STRING})
        , new SerializerRead() {
                public Object readValues(DataRead dr) throws BasicException {
                    CustomerInfo c = new CustomerInfo(dr.getString(1));
                    c.setTaxid(dr.getString(2));
                    c.setSearchkey(dr.getString(3));
                    c.setName(dr.getString(4));
                    return c;
                }                
            });
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:DataLogicCustomers.java


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