• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TaxesLogic类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
/**
 *
 * @throws BasicException
 */
public void activate() throws BasicException {
    
    // Load the taxes logic
    taxeslogic = new TaxesLogic(taxsent.list());

    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_jCategory.setModel(m_CategoryModel);

    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    m_jTax.setModel(taxcatmodel);

    attmodel = new ComboBoxValModel(attsent.list());
    attmodel.add(0, null);
    m_jAtt.setModel(attmodel);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:ProductsEditor.java


示例2: loadCatalog

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
@Override
public void loadCatalog(AppView app) throws BasicException {

    // delete all categories panel
    m_jProducts.removeAll();

    m_productsset.clear();
    m_categoriesset.clear();

    showingcategory = null;
    subcategories = new LinkedList();

    // Load the taxes logic
    taxeslogic = new TaxesLogic(m_dlSales.getTaxList().list());

    s_DefProdCat = app.getDefaultProductCategory();
    s_DefLocation = app.getInventoryLocation();

    // Display catalog panel
    showRootCategoriesPanel();
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:22,代码来源:JCatalog.java


示例3: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
public void activate() throws BasicException {
    
    s_GenRef = m_App.getGenerateProductReference();
    s_GenBarcode = m_App.getGenerateProductBarcode();
    s_DefBarcode = m_App.getUserBarcode();
    s_DefTaxCat = m_App.getDefaultTaxCategory();
    s_DefProdCat = m_App.getDefaultProductCategory();

    // Load the taxes logic
    taxeslogic = new TaxesLogic(taxsent.list());
    
    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_jCategory.setModel(m_CategoryModel);
    
    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    m_jTax.setModel(taxcatmodel);
    
    attmodel = new ComboBoxValModel(attsent.list());
    attmodel.add(0, null);
    m_jAtt.setModel(attmodel);
    
    m_oCurrentProductEdit = new ProductInfoEdit();
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:24,代码来源:ProductsEditor.java


示例4: loadCatalog

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
public void loadCatalog() throws BasicException {
    
    // delete all categories panel
    m_jProducts.removeAll();
    
    m_productsset.clear();        
    m_categoriesset.clear();
    
    showingcategory = null;
            
    // Load the taxes logic
    taxeslogic = new TaxesLogic(m_dlSales.getTaxList().list());

    // Load all categories.
    java.util.List<CategoryInfo> categories = m_dlSales.getRootCategories(); 
    
    // Select the first category
    m_jListCategories.setCellRenderer(new SmallCategoryRenderer());
    m_jListCategories.setModel(new CategoriesListModel(categories)); // aCatList
    if (m_jListCategories.getModel().getSize() == 0) {
        m_jscrollcat.setVisible(false);
        jPanel2.setVisible(false);
    } else {
        m_jscrollcat.setVisible(true);
        jPanel2.setVisible(true);
        m_jListCategories.setSelectedIndex(0);
    }
        
    // Display catalog panel
    showRootCategoriesPanel();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:32,代码来源:JCatalog.java


示例5: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
public void activate() throws BasicException {
    
    // Load the taxes logic
    taxeslogic = new TaxesLogic(taxsent.list());        
    
    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_jCategory.setModel(m_CategoryModel);

    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    m_jTax.setModel(taxcatmodel);

    attmodel = new ComboBoxValModel(attsent.list());
    attmodel.add(0, null);
    m_jAtt.setModel(attmodel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:ProductsEditor.java


示例6: loadCatalog

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void loadCatalog() throws BasicException {
    
    // delete all categories panel
    m_jProducts.removeAll();
    
    m_productsset.clear();        
    m_categoriesset.clear();
    
    showingcategory = null;
            
    // Load the taxes logic
    taxeslogic = new TaxesLogic(m_dlSales.getTaxList().list());

    // Load all categories.
    java.util.List<CategoryInfo> categories = m_dlSales.getRootCategories(); 
    
    // Select the first category
    m_jListCategories.setCellRenderer(new SmallCategoryRenderer());
    m_jListCategories.setModel(new CategoriesListModel(categories)); // aCatList
    if (m_jListCategories.getModel().getSize() == 0) {
        m_jscrollcat.setVisible(false);
        jPanel2.setVisible(false);
    } else {
        m_jscrollcat.setVisible(true);
        jPanel2.setVisible(true);
        m_jListCategories.setSelectedIndex(0);
    }
        
    // Display catalog panel
    showRootCategoriesPanel();
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:37,代码来源:JCatalog.java


示例7: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
/**
 *
 * @throws BasicException
 */
@Override
public void activate() throws BasicException {

    setVisibleFilter(true);
    taxeslogic = new TaxesLogic(taxsent.list()); 
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:11,代码来源:JPanelReport.java


示例8: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
/**
 * Loads Tax and category data into their combo boxes.
 * @throws com.openbravo.basic.BasicException
 */
@Override
public void activate() throws BasicException {
    // Get tax details and logic
    taxsent = m_dlSales.getTaxList();  //get details taxes table
    taxeslogic = new TaxesLogic(taxsent.list());
    taxcatsent = m_dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel(taxcatsent.list());
    jComboTax.setModel(taxcatmodel);

    // Get categories list
    m_sentcat = m_dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
    m_CategoryModel.add(reject_bad_categories_text);
    jComboDefaultCategory.setModel(m_CategoryModel);

    // Build the cat_list for later use
    cat_list = new HashMap<>();
    for (Object category : m_sentcat.list()) {
        m_CategoryModel.setSelectedItem(category);
        cat_list.put(category.toString(), m_CategoryModel.getSelectedKey().toString());
    }

    // reset the selected to the first in the list
    m_CategoryModel.setSelectedItem(null);
    taxcatmodel.setSelectedFirst();

    // Set the column delimiter
    jComboSeparator.removeAllItems();
    jComboSeparator.addItem(",");
    jComboSeparator.addItem(";");
    jComboSeparator.addItem("~");
    jComboSeparator.addItem("^");

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


示例9: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
@Override
public void activate() throws BasicException {
    m_cat.loadCatalog(m_App);

    taxeslogic = new TaxesLogic(m_dlSales.getTaxList().list());

    java.util.List l = m_sentlocations.list();
    m_LocationsModel = new ComboBoxValModel(l);
    m_jLocation.setModel(m_LocationsModel); // para que lo refresque
    m_LocationsModelDes = new ComboBoxValModel(l);
    m_jLocationDes.setModel(m_LocationsModelDes); // para que lo refresque

    stateToInsert();

}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:16,代码来源:StockManagement.java


示例10: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
public void activate() throws BasicException {

        setVisibleFilter(true);
        taxeslogic = new TaxesLogic(taxsent.list()); 
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:6,代码来源:JPanelReport.java


示例11: init

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
private void init(DataLogicSales dlSales) throws BasicException {

        initComponents();

        m_jReference.setEnabled(true);
        m_jName.setEnabled(true);
        m_jBarcode.setEnabled(true);
        m_jBuyPrice.setEnabled(true);
        m_jSellPrice.setEnabled(true);

//        m_jSellPriceTax.setEnabled(false);
        m_jName.addEditorKeys(m_jKeyboardKeys);
        m_jReference.addEditorKeys(m_jKeyboardKeys);
        m_jBarcode.addEditorKeys(m_jKeyboardKeys);
        m_jBuyPrice.addEditorKeys(m_jKeyboardKeys);
        m_jSellPrice.addEditorKeys(m_jKeyboardKeys);
//        m_jSellPriceTax.addEditorKeys(m_jKeyboardKeys);

        m_jName.reset();
        m_jReference.reset();
        m_jBarcode.reset();
        m_jBuyPrice.reset();
        m_jSellPrice.reset();
//        m_jSellPriceTax.reset();

        m_jName.activate();

        taxsent = dlSales.getTaxList();
        taxeslogic = new TaxesLogic(taxsent.list());

        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel(m_sentcat.list());
        m_jCategory.setModel(m_CategoryModel);

        m_taxcatsent = dlSales.getTaxCategoriesList();
        m_TaxCategoryModel = new ComboBoxValModel(m_taxcatsent.list());
        m_jTax.setModel(m_TaxCategoryModel);

        m_attsent = dlSales.getAttributeSetList();
        m_AttributeModel = new ComboBoxValModel(m_attsent.list());
        m_AttributeModel.add(0, null);
        m_jAtt.setModel(m_AttributeModel);

        getRootPane().setDefaultButton(m_jButtonOK);

        m_oEditProduct = null;
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:48,代码来源:JProductEditDialog.java


示例12: activate

import com.openbravo.pos.sales.TaxesLogic; //导入依赖的package包/类
public void activate() throws BasicException {

        setVisibleFilter(true);
        taxeslogic = new TaxesLogic(taxsent.list());
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:6,代码来源:JPanelReport.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PackageView类代码示例发布时间:2022-05-23
下一篇:
Java IPluginExecutionMetadata类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap