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

Java MessageInf类代码示例

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

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



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

示例1: deleteTicket

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void deleteTicket() {
    
    if (m_ticketCopy != null) {           
        // Para editar borramos el ticket anterior
        try {               
            m_dlSales.deleteTicket(m_ticketCopy, m_App.getInventoryLocation());
        } catch (BasicException eData) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.nosaveticket"), eData);
            msg.show(this);                
        }            
    }
    
    m_ticket = null;
    m_ticketCopy = null;
    resetToTicket(); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:JTicketsBagTicket.java


示例2: btnCustomerActionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed
    
    JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
    finder.search(ticket.getCustomer());
    finder.setVisible(true);
    
    try {
        ticket.setCustomer(finder.getSelectedCustomer() == null
                ? null
                : dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()));
    } catch (BasicException e) {
        MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindcustomer"), e);
        msg.show(this);            
    }
    
    // The ticket name
    m_jTicketId.setText(ticket.getName(ticketext));
    
    refreshTicketTaxes();     
    
    // refresh the receipt....
    setTicket(ticket, ticketext);
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:SimpleReceipt.java


示例3: m_jListTicketsActionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void m_jListTicketsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jListTicketsActionPerformed

        
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                
                try {
                    List<SharedTicketInfo> l = dlReceipts.getSharedTicketList();

                    JTicketsBagSharedList listDialog = JTicketsBagSharedList.newJDialog(JTicketsBagShared.this);
                    String id = listDialog.showTicketsList(l); 

                    if (id != null) {
                        saveCurrentTicket();
                        setActiveTicket(id); 
                    }
                } catch (BasicException e) {
                    new MessageInf(e).show(JTicketsBagShared.this);
                    newTicket();
                }                    
            }
        });
        
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JTicketsBagShared.java


示例4: incProductByCode

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void incProductByCode(String sCode) {
// precondicion: sCode != null
    
    try {
        ProductInfoExt oProduct = dlSales.getProductInfoByCode(sCode);
        if (oProduct == null) {                  
            Toolkit.getDefaultToolkit().beep();                   
            new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.noproduct")).show(this);           
            stateToZero();
        } else {
            // Se anade directamente una unidad con el precio y todo
            incProduct(oProduct);
        }
    } catch (BasicException eData) {
        stateToZero();           
        new MessageInf(eData).show(this);           
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:JPanelTicket.java


示例5: incProductByCodePrice

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void incProductByCodePrice(String sCode, double dPriceSell) {
// precondicion: sCode != null
    
    try {
        ProductInfoExt oProduct = dlSales.getProductInfoByCode(sCode);
        if (oProduct == null) {                  
            Toolkit.getDefaultToolkit().beep();                   
            new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.noproduct")).show(this);           
            stateToZero();
        } else {
            // Se anade directamente una unidad con el precio y todo
            if (m_jaddtax.isSelected()) {
                // debemos quitarle los impuestos ya que el precio es con iva incluido...
                TaxInfo tax = taxeslogic.getTaxInfo(oProduct.getTaxCategoryID(),  m_oTicket.getDate(), m_oTicket.getCustomer());
                addTicketLine(oProduct, 1.0, dPriceSell / (1.0 + tax.getRate()));
            } else {
                addTicketLine(oProduct, 1.0, dPriceSell);
            }                
        }
    } catch (BasicException eData) {
        stateToZero();
        new MessageInf(eData).show(this);               
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JPanelTicket.java


示例6: incProduct

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void incProduct(ProductInfoExt prod) {
    
    if (prod.isScale() && m_App.getDeviceScale().existsScale()) {
        try {
            Double value = m_App.getDeviceScale().readWeight();
            if (value != null) {
                incProduct(value.doubleValue(), prod);
            }
        } catch (ScaleException e) {
            Toolkit.getDefaultToolkit().beep();                
            new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.noweight"), e).show(this);           
            stateToZero(); 
        }
    } else {
        // No es un producto que se pese o no hay balanza
        incProduct(1.0, prod);
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:JPanelTicket.java


示例7: m_jEditLineActionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void m_jEditLineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jEditLineActionPerformed
    
    int i = m_ticketlines.getSelectedIndex();
    if (i < 0){
        Toolkit.getDefaultToolkit().beep(); // no line selected
    } else {
        try {
            TicketLineInfo newline = JProductLineEdit.showMessage(this, m_App, m_oTicket.getLine(i));
            if (newline != null) {
                // line has been modified
                paintTicketLine(i, newline);
            }
        } catch (BasicException e) {
            new MessageInf(e).show(this);
        }
    }

}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:19,代码来源:JPanelTicket.java


示例8: btnCustomerActionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed

        JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
        finder.search(m_oTicket.getCustomer());
        finder.setVisible(true);
        
        try {
            m_oTicket.setCustomer(finder.getSelectedCustomer() == null
                    ? null
                    : dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()));
        } catch (BasicException e) {
            MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindcustomer"), e);
            msg.show(this);            
        }

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


示例9: jEditAttributesActionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void jEditAttributesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jEditAttributesActionPerformed

        int i = m_ticketlines.getSelectedIndex();
        if (i < 0) {
            Toolkit.getDefaultToolkit().beep(); // no line selected
        } else {
            try {
                TicketLineInfo line = m_oTicket.getLine(i);
                JProductAttEdit attedit = JProductAttEdit.getAttributesEditor(this, m_App.getSession());
                attedit.editAttributes(line.getProductAttSetId(), line.getProductAttSetInstId());
                attedit.setVisible(true);
                if (attedit.isOK()) {
                    // The user pressed OK
                    line.setProductAttSetInstId(attedit.getAttributeSetInst());
                    line.setProductAttSetInstDesc(attedit.getAttributeSetInstDescription());
                    paintTicketLine(i, line);
                }
            } catch (BasicException ex) {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindattributes"), ex);
                msg.show(this);
            }
        }
        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JPanelTicket.java


示例10: moveTicket

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void moveTicket() {
    
    // guardamos el ticket
    if (m_PlaceCurrent != null) {
                      
        try {
            dlReceipts.updateSharedTicket(m_PlaceCurrent.getId(), m_panelticket.getActiveTicket());
        } catch (BasicException e) {
            new MessageInf(e).show(this);
        }      
        
        // me guardo el ticket que quiero copiar.
        m_PlaceClipboard = m_PlaceCurrent;    
        customer = null;
        m_PlaceCurrent = null;
    }
    
    printState();
    m_panelticket.setActiveTicket(null, null);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:JTicketsBagRestaurantMap.java


示例11: newTicket

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void newTicket() {
    
    // guardamos el ticket
    if (m_PlaceCurrent != null) {
                     
        try {
            dlReceipts.updateSharedTicket(m_PlaceCurrent.getId(), m_panelticket.getActiveTicket());                
        } catch (BasicException e) {
            new MessageInf(e).show(this); // maybe other guy deleted it
        }              

        m_PlaceCurrent = null;
    }
    
    printState();     
    m_panelticket.setActiveTicket(null, null);     
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:JTicketsBagRestaurantMap.java


示例12: deleteTicket

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void deleteTicket() {
    
    if (m_PlaceCurrent != null) {
        
        String id = m_PlaceCurrent.getId();
        try {
            dlReceipts.deleteSharedTicket(id);
        } catch (BasicException e) {
            new MessageInf(e).show(this);
        }       
        
        m_PlaceCurrent.setPeople(false);
        
        m_PlaceCurrent = null;
    }        
    
    printState();     
    m_panelticket.setActiveTicket(null, null); 
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:20,代码来源:JTicketsBagRestaurantMap.java


示例13: loadTickets

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void loadTickets() {

        Set<String> atickets = new HashSet<String>();
        
        try {
            java.util.List<SharedTicketInfo> l = dlReceipts.getSharedTicketList();
            for (SharedTicketInfo ticket : l) {
                atickets.add(ticket.getId());
            }
        } catch (BasicException e) {
            new MessageInf(e).show(this);
        }            
            
        for (Place table : m_aplaces) {
            table.setPeople(atickets.contains(table.getId()));
        }
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:18,代码来源:JTicketsBagRestaurantMap.java


示例14: actionPerformed

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void actionPerformed(ActionEvent evt) {
    // String sPassword = m_actionuser.getPassword();
    if (m_actionuser.authenticate()) {
        // p'adentro directo, no tiene password        
        openAppView(m_actionuser);         
    } else {
        // comprobemos la clave antes de entrar...
        String sPassword = JPasswordDialog.showEditPassword(JRootApp.this, 
                AppLocal.getIntString("Label.Password"),
                m_actionuser.getName(),
                m_actionuser.getIcon());
        if (sPassword != null) {
            if (m_actionuser.authenticate(sPassword)) {
                openAppView(m_actionuser);                
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.BadPassword"));
                msg.show(JRootApp.this);                        
            }
        }   
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:22,代码来源:JRootApp.java


示例15: processKey

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void processKey(char c) {
    
    if (c == '\n') {
        
        AppUser user = null;
        try {
            user = m_dlSystem.findPeopleByCard(inputtext.toString());
        } catch (BasicException e) {
            e.printStackTrace();
        }
        
        if (user == null)  {
            // user not found
            MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.nocard"));
            msg.show(this);                
        } else {
            openAppView(user);   
        }

        inputtext = new StringBuffer();
    } else {
        inputtext.append(c);
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JRootApp.java


示例16: JPaymentCashPos

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
/** Creates new form JPaymentCash */
public JPaymentCashPos(JPaymentNotifier notifier, DataLogicSystem dlSystem) {
    
    m_notifier = notifier;
    
    initComponents();  
    
    m_jTendered.addPropertyChangeListener("Edition", new RecalculateState());
    m_jTendered.addEditorKeys(m_jKeys);
    
    String code = dlSystem.getResourceAsXML("payment.cash");
    if (code != null) {
        try {
            ScriptEngine script = ScriptFactory.getScriptEngine(ScriptFactory.BEANSHELL);
            script.put("payment", new ScriptPaymentCash(dlSystem));    
            script.eval(code);
        } catch (ScriptException e) {
            MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotexecute"), e);
            msg.show(this);
        }
    }
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:24,代码来源:JPaymentCashPos.java


示例17: assignProductByCode

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void assignProductByCode() {
    try {
        ProductInfoExt oProduct = m_dlSales.getProductInfoByCode(m_jcodebar.getText());
        if (oProduct == null) {       
            assignProduct(null);
            Toolkit.getDefaultToolkit().beep();                   
        } else {
            // Se anade directamente una unidad con el precio y todo
            assignProduct(oProduct);
        }
    } catch (BasicException eData) {        
        assignProduct(null);
        MessageInf msg = new MessageInf(eData);
        msg.show(this);            
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:StockDiaryEditor.java


示例18: assignProductByReference

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
private void assignProductByReference() {
    try {
        ProductInfoExt oProduct = m_dlSales.getProductInfoByReference(m_jreference.getText());
        if (oProduct == null) {       
            assignProduct(null);
            Toolkit.getDefaultToolkit().beep();                   
        } else {
            // Se anade directamente una unidad con el precio y todo
            assignProduct(oProduct);
        }
    } catch (BasicException eData) {        
        assignProduct(null);
        MessageInf msg = new MessageInf(eData);
        msg.show(this);            
    }        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:StockDiaryEditor.java


示例19: refresh

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void refresh() {
    
    List a;
    
    try {
        a = m_sentcat.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    m_CategoryModel = new ComboBoxValModel(a);
    m_jCategory.setModel(m_CategoryModel);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:CategoriesEditor.java


示例20: refresh

import com.openbravo.data.gui.MessageInf; //导入依赖的package包/类
public void refresh() {
    
    List a;
    
    try {
        a = taxparentsent.list();
    } catch (BasicException eD) {
        MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotloadlists"), eD);
        msg.show(this);
        a = new ArrayList();
    }
    
    a.add(0, null); // The null item
    taxparentmodel = new ComboBoxValModel(a);
    m_jTaxParent.setModel(taxparentmodel);    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:17,代码来源:TaxEditor.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java Kernel类代码示例发布时间:2022-05-22
下一篇:
Java RollbackUpdateCommand类代码示例发布时间: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