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


Java AppView.getBean方法代码示例

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


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

示例1: CategoriesEditor

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form JPanelCategories */
public CategoriesEditor(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
         
    initComponents();
         
    // El modelo de categorias
    m_sentcat = dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel();
    
    m_sentadd = dlSales.getCatalogCategoryAdd();
    m_sentdel = dlSales.getCatalogCategoryDel();
    
    m_jName.getDocument().addDocumentListener(dirty);
    m_jCategory.addActionListener(dirty);
    m_jImage.addPropertyChangeListener("image", dirty);
    
    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:CategoriesEditor.java

示例2: TaxEditor

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form taxEditor
 * @param app
 * @param dirty */
public TaxEditor(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();
    
    taxcatsent = dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel();        
    
    taxcustcatsent = dlSales.getTaxCustCategoriesList();
    taxcustcatmodel = new ComboBoxValModel();    
    
    taxparentsent = dlSales.getTaxList();
    taxparentmodel = new ComboBoxValModel();    

    m_jName.getDocument().addDocumentListener(dirty);
    m_jTaxCategory.addActionListener(dirty);
    m_jCustTaxCategory.addActionListener(dirty);
    m_jTaxParent.addActionListener(dirty);
    m_jRate.getDocument().addDocumentListener(dirty);
    jCascade.addActionListener(dirty);
    jOrder.getDocument().addDocumentListener(dirty);
    
    writeValueEOF();
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:29,代码来源:TaxEditor.java

示例3: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/**
     *
     * @param app
     */
    @Override
    public void init(AppView app) {
         
        DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
       
        // El modelo de categorias
        m_sentcat = dlSales.getCategoriesList();
        m_CategoryModel = new ComboBoxValModel();          
         
//        m_jCboName.setModel(new ListQBFModelNumber());
//        m_jCboPriceBuy.setModel(new ListQBFModelNumber());
//        m_jCboPriceSell.setModel(new ListQBFModelNumber());
        m_jCboName.setModel(ListQBFModelNumber.getMandatoryString());
        m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
        m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
    }
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:21,代码来源:ProductFilter.java

示例4: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public void init(AppView app) {
     
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
   
    // El modelo de categorias
    m_sentcat = dlSales.getCategoriesList();
    m_CategoryModel = new ComboBoxValModel();          
     
    m_jCboName.setModel(ListQBFModelNumber.getMandatoryString());
    m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
    m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:ProductFilter.java

示例5: CustomersView

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form CustomersView */
public CustomersView(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();
    
    m_sentcat = dlSales.getTaxCustCategoriesList();
    m_CategoryModel = new ComboBoxValModel();
    
    m_Dirty = dirty;
    m_jTaxID.getDocument().addDocumentListener(dirty);
    m_jSearchkey.getDocument().addDocumentListener(dirty);
    m_jName.getDocument().addDocumentListener(dirty);
    m_jCategory.addActionListener(dirty);
    m_jNotes.getDocument().addDocumentListener(dirty);
    txtMaxdebt.getDocument().addDocumentListener(dirty);
    m_jVisible.addActionListener(dirty);
    
    txtFirstName.getDocument().addDocumentListener(dirty);
    txtLastName.getDocument().addDocumentListener(dirty);
    txtEmail.getDocument().addDocumentListener(dirty);
    txtPhone.getDocument().addDocumentListener(dirty);
    txtPhone2.getDocument().addDocumentListener(dirty);
    txtFax.getDocument().addDocumentListener(dirty);
    
    txtAddress.getDocument().addDocumentListener(dirty);
    txtAddress2.getDocument().addDocumentListener(dirty);
    txtPostal.getDocument().addDocumentListener(dirty);
    txtCity.getDocument().addDocumentListener(dirty);
    txtRegion.getDocument().addDocumentListener(dirty);
    txtCountry.getDocument().addDocumentListener(dirty);
    
    writeValueEOF(); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:36,代码来源:CustomersView.java

示例6: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public void init(AppView app) throws BeanFactoryException {

        this.app = app;
        dlcustomers = (DataLogicCustomers) app.getBean("com.openbravo.pos.customers.DataLogicCustomers");
        dlsales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
        dlsystem = (DataLogicSystem) app.getBean("com.openbravo.pos.forms.DataLogicSystem");
        ttp = new TicketParser(app.getDeviceTicket(), dlsystem);
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:CustomersPayment.java

示例7: TaxEditor

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form taxEditor */
public TaxEditor(AppView app, DirtyManager dirty) {
    
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    initComponents();
    
    taxcatsent = dlSales.getTaxCategoriesList();
    taxcatmodel = new ComboBoxValModel();        
    
    taxcustcatsent = dlSales.getTaxCustCategoriesList();
    taxcustcatmodel = new ComboBoxValModel();    
    
    taxparentsent = dlSales.getTaxList();
    taxparentmodel = new ComboBoxValModel();    

    m_jName.getDocument().addDocumentListener(dirty);
    m_jTaxCategory.addActionListener(dirty);
    txtValidFrom.getDocument().addDocumentListener(dirty);
    m_jCustTaxCategory.addActionListener(dirty);
    m_jTaxParent.addActionListener(dirty);
    m_jRate.getDocument().addDocumentListener(dirty);
    jCascade.addActionListener(dirty);
    jOrder.getDocument().addDocumentListener(dirty);
    
    writeValueEOF();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:28,代码来源:TaxEditor.java

示例8: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public void init(AppView app) throws BeanFactoryException {   
    
    m_App = app;
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    taxsent = dlSales.getTaxList();
    
    editor = getEditorCreator();
    if (editor instanceof ReportEditorCreator) {
        jPanelFilter.add(((ReportEditorCreator) editor).getComponent(), BorderLayout.CENTER);
    }
              
    reportviewer = new JRViewer300(null);                        
    
    add(reportviewer, BorderLayout.CENTER);
    
    try {     
        
        InputStream in = getClass().getResourceAsStream(getReport() + ".ser");
        if (in == null) {      
            // read and compile the report
            JasperDesign jd = JRXmlLoader.load(getClass().getResourceAsStream(getReport() + ".jrxml"));            
            jr = JasperCompileManager.compileReport(jd);    
        } else {
            // read the compiled report
            ObjectInputStream oin = new ObjectInputStream(in);
            jr = (JasperReport) oin.readObject();
            oin.close();
        }
    } catch (Exception e) {
        MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotloadreport"), e);
        msg.show(this);
        jr = null;
    }  
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:35,代码来源:JPanelReport.java

示例9: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public void init(AppView app) {
     
    DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
    
    // El modelo de locales
    m_sentlocations = dlSales.getLocationsList();
    m_LocationsModel = new ComboBoxValModel();   
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JParamsLocation.java

示例10: constructBean

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public Object constructBean(AppView app) throws BeanFactoryException {

        DataLogicSystem dlSystem = (DataLogicSystem) app.getBean("com.openbravo.pos.forms.DataLogicSystem");
        DataLogicIntegration dli = (DataLogicIntegration) app.getBean("com.openbravo.possync.DataLogicIntegration");

        OrdersSync bean = new OrdersSync(dlSystem, dli);
        return bean;
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:OrdersSyncCreate.java

示例11: constructBean

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public Object constructBean(AppView app) throws BeanFactoryException {
    
    DataLogicSystem dlSystem = (DataLogicSystem) app.getBean("com.openbravo.pos.forms.DataLogicSystem");
    DataLogicIntegration dli = (DataLogicIntegration) app.getBean("com.openbravo.possync.DataLogicIntegration");
    DataLogicSales dlsales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");

    ProductsSync bean = new ProductsSync(dlSystem, dli, dlsales, app.getInventoryLocation());
    return bean;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:ProductsSyncCreate.java

示例12: CustomersView

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form CustomersView
    * @param app
    * @param dirty */
   public CustomersView(AppView app, DirtyManager dirty) {
       try {
           dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
       
       initComponents();
       
       m_sentcat = dlSales.getTaxCustCategoriesList();
       m_CategoryModel = new ComboBoxValModel();
       
       m_Dirty = dirty;        
       m_jTaxID.getDocument().addDocumentListener(dirty);
       m_jSearchkey.getDocument().addDocumentListener(dirty);
       m_jName.getDocument().addDocumentListener(dirty);
       m_jCategory.addActionListener(dirty);
       m_jNotes.getDocument().addDocumentListener(dirty);
       txtMaxdebt.getDocument().addDocumentListener(dirty);
       m_jVisible.addActionListener(dirty);
       
       txtFirstName.getDocument().addDocumentListener(dirty);
       txtLastName.getDocument().addDocumentListener(dirty);
       txtEmail.getDocument().addDocumentListener(dirty);
       txtPhone.getDocument().addDocumentListener(dirty);
       txtPhone2.getDocument().addDocumentListener(dirty);
       txtFax.getDocument().addDocumentListener(dirty);
       m_jImage.addPropertyChangeListener(dirty);
       
       txtAddress.getDocument().addDocumentListener(dirty);
       txtAddress2.getDocument().addDocumentListener(dirty);
//           txtAddress3.getDocument().addDocumentListener(dirty);
       txtPostal.getDocument().addDocumentListener(dirty);
       txtCity.getDocument().addDocumentListener(dirty);
       txtRegion.getDocument().addDocumentListener(dirty);
       txtCountry.getDocument().addDocumentListener(dirty);   
      
           init();
       } catch (Exception ex) {
           Logger.getLogger(CustomersView.class.getName()).log(Level.SEVERE, null, ex);
       }
   }
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:43,代码来源:CustomersView.java

示例13: BreaksView

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form BreaksView
 * @param app
 * @param dirty */
public BreaksView(AppView app, DirtyManager dirty) {

    DataLogicPresenceManagement dlPresenceManagement = (DataLogicPresenceManagement) app.getBean("com.openbravo.pos.epm.DataLogicPresenceManagement");
    initComponents();
    m_sentcat = dlPresenceManagement.getBreaksList();
    m_Dirty = dirty;
    m_jBreakName.getDocument().addDocumentListener(dirty);
    m_jVisible.addActionListener(dirty);
    m_jBreakDescription.getDocument().addDocumentListener(dirty);
    writeValueEOF();
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:15,代码来源:BreaksView.java

示例14: JTicketsBagRestaurantRes

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
/** Creates new form JPanelReservations */
public JTicketsBagRestaurantRes(AppView oApp, JTicketsBagRestaurantMap restaurantmap) {
    
    m_restaurantmap = restaurantmap;
    
    dlCustomers = (DataLogicCustomers) oApp.getBean("com.openbravo.pos.customers.DataLogicCustomers");

    m_dcurrentday = null;
    
    initComponents();
    
    m_datepanel = new JCalendarPanel();
    jPanelDate.add(m_datepanel, BorderLayout.CENTER);
    m_datepanel.addPropertyChangeListener("Date", new DateChangeCalendarListener());
    
    m_timepanel = new JTimePanel(null, JTimePanel.BUTTONS_HOUR);
    m_timepanel.setPeriod(3600000L); // Los milisegundos que tiene una hora.
    jPanelTime.add(m_timepanel, BorderLayout.CENTER);
    m_timepanel.addPropertyChangeListener("Date", new DateChangeTimeListener());
    
    m_timereservation = new JTimePanel(null, JTimePanel.BUTTONS_MINUTE);
    m_jPanelTime.add(m_timereservation, BorderLayout.CENTER);   
        
    txtCustomer.addEditorKeys(m_jKeys);
    m_jtxtChairs.addEditorKeys(m_jKeys);
    m_jtxtDescription.addEditorKeys(m_jKeys);

    m_Dirty = new DirtyManager();
    m_timereservation.addPropertyChangeListener("Date", m_Dirty);
    txtCustomer.addPropertyChangeListener("Text", m_Dirty);
    txtCustomer.addPropertyChangeListener("Text", new PropertyChangeListener(){
        public void propertyChange(PropertyChangeEvent evt) {
            customer = new CustomerInfo(null);
            customer.setTaxid(null);
            customer.setSearchkey(null);
            customer.setName(txtCustomer.getText());            
        }
    });
    m_jtxtChairs.addPropertyChangeListener("Text", m_Dirty);
    m_jtxtDescription.addPropertyChangeListener("Text", m_Dirty);
    
    writeValueEOF();
    
    ListProvider lpr = new ListProviderCreator(dlCustomers.getReservationsList(), new MyDateFilter());            
    SaveProvider spr = new SaveProvider(dlCustomers.getReservationsUpdate(), dlCustomers.getReservationsInsert(), dlCustomers.getReservationsDelete());        
    
    m_bd = new BrowsableEditableData(lpr, spr, new CompareReservations(), this, m_Dirty);           
    
    JListNavigator nl = new JListNavigator(m_bd, true);
    nl.setCellRenderer(new JCalendarItemRenderer());  
    m_jPanelList.add(nl, BorderLayout.CENTER);
    
    // La Toolbar
    m_jToolbar.add(new JLabelDirty(m_Dirty));
    m_jToolbar.add(new JCounter(m_bd));
    m_jToolbar.add(new JNavigator(m_bd));
    m_jToolbar.add(new JSaver(m_bd));       
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:59,代码来源:JTicketsBagRestaurantRes.java

示例15: init

import com.openbravo.pos.forms.AppView; //导入方法依赖的package包/类
public void init(AppView app) {
    this.app = app;
    dlSystem = (DataLogicSystem) app.getBean("com.openbravo.pos.forms.DataLogicSystem");
    printselected = true;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:6,代码来源:JPaymentSelect.java


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