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

Java AppView类代码示例

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

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



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

示例1: JTicketsBagTicket

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JTicketsBagTicket */
public JTicketsBagTicket(AppView app, JPanelTicketEdits panelticket) {
    
    super(app, panelticket);
    m_panelticketedit = panelticket; 
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    dlCustomers = (DataLogicCustomers) m_App.getBean("com.openbravo.pos.customers.DataLogicCustomers");
    
    // Inicializo la impresora...
    m_TP = new DeviceTicket();
   
    // Inicializo el parser de documentos de ticket
    m_TTP = new TicketParser(m_TP, m_dlSystem); // para visualizar el ticket
    m_TTP2 = new TicketParser(m_App.getDeviceTicket(), m_dlSystem); // para imprimir el ticket
    
    initComponents();
    
    m_TicketsBagTicketBag = new JTicketsBagTicketBag(this);
    
    m_jTicketEditor.addEditorKeys(m_jKeys);
    
    // Este deviceticket solo tiene una impresora, la de pantalla
    m_jPanelTicket.add(m_TP.getDevicePrinter("1").getPrinterComponent(), BorderLayout.CENTER);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JTicketsBagTicket.java


示例2: JPaymentMagcard

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPaymentMagcard */
public JPaymentMagcard(AppView app, JPaymentNotifier notifier) {
    
    initComponents();   
    
    m_notifier = notifier;
    
    m_paymentgateway = PaymentGatewayFac.getPaymentGateway(app.getProperties());
    
    if (m_paymentgateway == null) {
        jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));            
    } else {           
        // Se van a poder efectuar pagos con tarjeta
        m_cardpanel = PaymentPanelFac.getPaymentPanel(app.getProperties().getProperty("payment.magcardreader"), notifier);
        add(m_cardpanel.getComponent(), BorderLayout.CENTER);
        jlblMessage.setText(null);
        // jlblMessage.setText(AppLocal.getIntString("message.nocardreader"));
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:JPaymentMagcard.java


示例3: JPanelPrinter

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPrinter */
public JPanelPrinter(AppView oApp) {
   
    initComponents();

    
    if (oApp.getDeviceTicket().getDeviceDisplay().getDisplayComponent() != null) {
        m_jDisplay.add(oApp.getDeviceTicket().getDeviceDisplay().getDisplayComponent());
    }     
    
    List<DevicePrinter> aprinters = oApp.getDeviceTicket().getDevicePrinterAll();
    for (int i = 0; i < aprinters.size(); i++) {   
        DevicePrinter printer = aprinters.get(i);
        if (printer.getPrinterComponent() != null) {
            m_jPrinters.add(printer.getPrinterName(), printer.getPrinterComponent());
        }
    }
    
    DeviceFiscalPrinter fp = oApp.getDeviceTicket().getFiscalPrinter();
    if (fp.getFiscalComponent() != null) {
        m_jPrinters.add(fp.getFiscalName(), fp.getFiscalComponent());
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:24,代码来源:JPanelPrinter.java


示例4: init

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
public void init(AppView app) throws BeanFactoryException {
    
    m_App = app;        
    m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
    m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);

    m_jTicketTable.setDefaultRenderer(Object.class, new TableRendererBasic(
            new Formats[] {new FormatsPayment(), Formats.CURRENCY}));
    m_jTicketTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    m_jScrollTableTicket.getVerticalScrollBar().setPreferredSize(new Dimension(25,25));       
    m_jTicketTable.getTableHeader().setReorderingAllowed(false);         
    m_jTicketTable.setRowHeight(25);
    m_jTicketTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);         
    
    m_jsalestable.setDefaultRenderer(Object.class, new TableRendererBasic(
            new Formats[] {Formats.STRING, Formats.CURRENCY, Formats.CURRENCY, Formats.CURRENCY}));
    m_jsalestable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    m_jScrollSales.getVerticalScrollBar().setPreferredSize(new Dimension(25,25));       
    m_jsalestable.getTableHeader().setReorderingAllowed(false);         
    m_jsalestable.setRowHeight(25);
    m_jsalestable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:23,代码来源:JPanelCloseMoney.java


示例5: AttributeUseEditor

import com.openbravo.pos.forms.AppView; //导入依赖的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: 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


示例7: ThirdPartiesView

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form ThirdPartiesView */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
    initComponents();
    
    m_jCIF.getDocument().addDocumentListener(dirty);
    m_jName.getDocument().addDocumentListener(dirty);
    m_jAddress.getDocument().addDocumentListener(dirty);
    m_jContactComm.getDocument().addDocumentListener(dirty);
    m_jContactFact.getDocument().addDocumentListener(dirty);
    m_jPayRule.getDocument().addDocumentListener(dirty);
    m_jFaxNumber.getDocument().addDocumentListener(dirty);
    m_jPhoneNumber.getDocument().addDocumentListener(dirty);
    m_jMobileNumber.getDocument().addDocumentListener(dirty);
    m_jEMail.getDocument().addDocumentListener(dirty);
    m_jWebPage.getDocument().addDocumentListener(dirty);
    m_jNotes.getDocument().addDocumentListener(dirty);

    writeValueEOF();        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:ThirdPartiesView.java


示例8: JTicketsBagRestaurant

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JTicketsBagRestaurantMap
     * @param app
     * @param restaurant */
    public JTicketsBagRestaurant(AppView app, JTicketsBagRestaurantMap restaurant) {
        super();
        m_App = app;
        m_restaurant = restaurant;
        initComponents();
// Added by JDL for kitchen printer
        ticketExt = null;  
        
        restDB = new  RestaurantDBUtils(m_App); 
        
        m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
//JG July 2014 - Thank you Ron Isaacson        m_TP = new DeviceTicket();
        m_TP = new DeviceTicket(app.getProperties());        
        m_TTP2 = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);     
        m_KitchenPrint.setVisible(m_App.getAppUserView().getUser().hasPermission("sales.PrintKitchen"));
        m_KitchenPrint.setVisible(false);
        
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:JTicketsBagRestaurant.java


示例9: 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:gnoopy,项目名称:wifepos,代码行数:21,代码来源:ProductFilter.java


示例10: JPaymentMagcard

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPaymentMagcard
 * @param app
 * @param notifier */
public JPaymentMagcard(AppView app, JPaymentNotifier notifier) {
    
    initComponents();   
    
    m_notifier = notifier;
    
    m_paymentgateway = PaymentGatewayFac.getPaymentGateway(app.getProperties());
    
    if (m_paymentgateway == null) {
        jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));            
    } else {           
        // Se van a poder efectuar pagos con tarjeta
        m_cardpanel = PaymentPanelFac.getPaymentPanel(app.getProperties().getProperty("payment.magcardreader"), notifier);
        add(m_cardpanel.getComponent(), BorderLayout.CENTER);
        jlblMessage.setText(null);
        // jlblMessage.setText(AppLocal.getIntString("message.nocardreader"));
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:JPaymentMagcard.java


示例11: AttributeUseEditor

import com.openbravo.pos.forms.AppView; //导入依赖的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:herbiehp,项目名称:unicenta,代码行数:21,代码来源:AttributeUseEditor.java


示例12: 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:gnoopy,项目名称:wifepos,代码行数:29,代码来源:TaxEditor.java


示例13: ThirdPartiesView

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form ThirdPartiesView
 * @param app
 * @param dirty */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
    initComponents();
    
    m_jCIF.getDocument().addDocumentListener(dirty);
    m_jName.getDocument().addDocumentListener(dirty);
    m_jAddress.getDocument().addDocumentListener(dirty);
    m_jContactComm.getDocument().addDocumentListener(dirty);
    m_jContactFact.getDocument().addDocumentListener(dirty);
    m_jPayRule.getDocument().addDocumentListener(dirty);
    m_jFaxNumber.getDocument().addDocumentListener(dirty);
    m_jPhoneNumber.getDocument().addDocumentListener(dirty);
    m_jMobileNumber.getDocument().addDocumentListener(dirty);
    m_jEMail.getDocument().addDocumentListener(dirty);
    m_jWebPage.getDocument().addDocumentListener(dirty);
    m_jNotes.getDocument().addDocumentListener(dirty);

    writeValueEOF();        
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:ThirdPartiesView.java


示例14: PaymentsEditor

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPanelPayments
 * @param oApp
 * @param dirty */
public PaymentsEditor(AppView oApp, DirtyManager dirty) {
    
    m_App = oApp;
    
    initComponents();
   
    m_ReasonModel = new ComboBoxValModel();
    m_ReasonModel.add(new PaymentReasonPositive("cashin", AppLocal.getIntString("transpayment.cashin")));
    m_ReasonModel.add(new PaymentReasonNegative("cashout", AppLocal.getIntString("transpayment.cashout")));              
    m_jreason.setModel(m_ReasonModel);
    
    jTotal.addEditorKeys(m_jKeys);
    
    m_jreason.addActionListener(dirty);
    jTotal.addPropertyChangeListener("Text", dirty);
    m_jNotes.addPropertyChangeListener("Text", dirty);
    m_jNotes.addEditorKeys(m_jKeys);        
    
    writeValueEOF();
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:24,代码来源:PaymentsEditor.java


示例15: showMessage

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
public static TicketLineInfo showMessage(Component parent, AppView app, TicketLineInfo oLine) throws BasicException {
     
    Window window = getWindow(parent);
    
    JProductLineEdit myMsg;
    if (window instanceof Frame) { 
        myMsg = new JProductLineEdit((Frame) window, true);
    } else {
        myMsg = new JProductLineEdit((Dialog) window, true);
    }
    return myMsg.init(app, oLine);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JProductLineEdit.java


示例16: JTicketsBagRestaurant

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JTicketsBagRestaurantMap */
public JTicketsBagRestaurant(AppView app, JTicketsBagRestaurantMap restaurant) {
    
    m_App = app;
    m_restaurant = restaurant;
    
    initComponents();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JTicketsBagRestaurant.java


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


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


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


示例20: init

import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
public void init(AppView app) throws BeanFactoryException {
    
    this.app = app;
    dirty = new DirtyManager();
    bd = null;
    
    init();
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:JPanelTable.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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