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


Java Row.getListProvider方法代码示例

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


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

示例1: init

import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {

        filter = new AttributeFilter();
        filter.init(app);
        filter.addActionListener(new ReloadActionListener());

        row = new Row(
                new Field("ID", Datas.STRING, Formats.STRING),
                new Field("ATTRIBUTE_ID", Datas.STRING, Formats.STRING),
                new Field(AppLocal.getIntString("label.value"), Datas.STRING, Formats.STRING, true, true, true)
        );

        Table table = new Table(
                "ATTRIBUTEVALUE",
                new PrimaryKey("ID"),
                new Column("ATTRIBUTE_ID"),
                new Column("VALUE"));

        lpr = row.getListProvider(app.getSession(),
                "SELECT ID, ATTRIBUTE_ID, VALUE FROM ATTRIBUTEVALUE WHERE ATTRIBUTE_ID = ? ", filter);
        spr = row.getSaveProvider(app.getSession(), table);

        editor = new AttributeValuesEditor(dirty);
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:AttributeValuesPanel.java

示例2: init

import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {

        row = new Row(
                new Field("ID", Datas.STRING, Formats.STRING),
                new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
        );

        Table table = new Table(
                "ATTRIBUTESET",
                new PrimaryKey("ID"),
                new Column("NAME"));

        lpr = row.getListProvider(app.getSession(), table);
        spr = row.getSaveProvider(app.getSession(), table);

        editor = new AttributeSetsEditor(dirty);
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributeSetsPanel.java

示例3: init

import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {          
    
    row = new Row(
            new Field("ID", Datas.STRING, Formats.STRING),
            new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
    );
    
    Table table = new Table(
            "ATTRIBUTE",
            new PrimaryKey("ID"),
            new Column("NAME"));
    
    lpr = row.getListProvider(app.getSession(), table);
    spr = row.getSaveProvider(app.getSession(), table);        
    
    editor = new AttributesEditor(dirty);    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:AttributesPanel.java

示例4: init

import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {  
    
    filter = new AuxiliarFilter();
    filter.init(app);
    filter.addActionListener(new ReloadActionListener());
    
    row = new Row(
            new Field("ID", Datas.STRING, Formats.STRING),
            new Field("PRODUCT1", Datas.STRING, Formats.STRING),
            new Field("PRODUCT2", Datas.STRING, Formats.STRING),
            new Field(AppLocal.getIntString("label.prodref"), Datas.STRING, Formats.STRING, true, true, true),
            new Field(AppLocal.getIntString("label.prodbarcode"), Datas.STRING, Formats.STRING, false, true, true),
            new Field(AppLocal.getIntString("label.prodname"), Datas.STRING, Formats.STRING, true, true, true)
    );        
    Table table = new Table(
            "PRODUCTS_COM",
            new PrimaryKey("ID"),
            new Column("PRODUCT"),
            new Column("PRODUCT2"));
     
    lpr = row.getListProvider(app.getSession(), 
            "SELECT COM.ID, COM.PRODUCT, COM.PRODUCT2, P.REFERENCE, P.CODE, P.NAME " +
            "FROM PRODUCTS_COM COM, PRODUCTS P " +
            "WHERE COM.PRODUCT2 = P.ID AND COM.PRODUCT = ?", filter);
    spr = row.getSaveProvider(app.getSession(), table);              
    
    editor = new AuxiliarEditor(app, dirty);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:29,代码来源:AuxiliarPanel.java

示例5: init

import com.openbravo.data.model.Row; //导入方法依赖的package包/类
protected void init() {

        filter = new AttributeSetFilter();
        filter.init(app);
        filter.addActionListener(new ReloadActionListener());

        row = new Row(
                new Field("ID", Datas.STRING, Formats.STRING),
                new Field("ATRIBUTESET_ID", Datas.STRING, Formats.STRING),
                new Field("ATTRIBUTE_ID", Datas.STRING, Formats.STRING),
                new Field(AppLocal.getIntString("label.order"), Datas.INT, Formats.INT, false, true, true),
                new Field(AppLocal.getIntString("label.name"), Datas.STRING, Formats.STRING, true, true, true)
        );

        Table table = new Table(
                "ATTRIBUTEUSE",
                new PrimaryKey("ID"),
                new Column("ATTRIBUTESET_ID"),
                new Column("ATTRIBUTE_ID"),
                new Column("LINENO"));

        lpr = row.getListProvider(app.getSession(),
                "SELECT ATTUSE.ID, ATTUSE.ATTRIBUTESET_ID, ATTUSE.ATTRIBUTE_ID, ATTUSE.LINENO, ATT.NAME " +
                "FROM ATTRIBUTEUSE ATTUSE, ATTRIBUTE ATT " +
                "WHERE ATTUSE.ATTRIBUTE_ID = ATT.ID AND ATTUSE.ATTRIBUTESET_ID = ? ORDER BY LINENO", filter);
        spr = row.getSaveProvider(app.getSession(), table);

        editor = new AttributeUseEditor(app, dirty);
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:30,代码来源:AttributeUsePanel.java


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