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


Java MessageInf.show方法代码示例

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


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

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

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

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

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

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

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

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

示例11: btnEndDateActionPerformed

import com.openbravo.data.gui.MessageInf; //导入方法依赖的package包/类
private void btnEndDateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEndDateActionPerformed
        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            if (IsValidEndDate(date)) {
                m_jEndDate.setText(Formats.TIMESTAMP.formatValue(date));
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.invalidenddate"));
                msg.show(this);
            }
        }
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:18,代码来源:LeavesView.java

示例12: jEditAttributesActionPerformed

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

        int i = m_invlines.getSelectedRow();
        if (i < 0) {
            Toolkit.getDefaultToolkit().beep(); // no line selected
        } else {
            try {
                InventoryLine line = m_invlines.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());
                    m_invlines.setLine(i, line);
                }
            } catch (BasicException ex) {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindattributes"), ex);
                msg.show(this);
            }
        }
    }
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:24,代码来源:StockManagement.java

示例13: refresh

import com.openbravo.data.gui.MessageInf; //导入方法依赖的package包/类
/**
 *
 */
@Override
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:herbiehp,项目名称:unicenta,代码行数:21,代码来源:CategoriesEditor.java

示例14: processKey

import com.openbravo.data.gui.MessageInf; //导入方法依赖的package包/类
private void processKey(char c) {
    
    if ((c == '\n') || (c =='?')) {
        
        AppUser user = null;
        try {
            user = m_dlSystem.findPeopleByCard(inputtext.toString());
        } catch (BasicException e) {
        }
        
        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 StringBuilder();

    } else {
        inputtext.append(c);
    }
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:25,代码来源:JRootApp.java

示例15: btnCheckInActionPerformed

import com.openbravo.data.gui.MessageInf; //导入方法依赖的package包/类
private void btnCheckInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCheckInActionPerformed
        try {
            boolean isOnBreak = dlpresencemanagement.IsOnBreak(app.getAppUserView().getUser().getId());
            if (isOnBreak) {
                dlpresencemanagement.EndBreak(app.getAppUserView().getUser().getId());
                message.setText(app.getAppUserView().getUser().getName()+AppLocal.getIntString("message.breakoverandcheckedin")+" "+Formats.TIMESTAMP.formatValue(new Date()));
            } else {
                dlpresencemanagement.CheckIn(app.getAppUserView().getUser().getId());
                message.setText(app.getAppUserView().getUser().getName()+" "+AppLocal.getIntString("message.checkedin")+" "+Formats.TIMESTAMP.formatValue(new Date()));
            }
        } catch (BasicException ex) {
            MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotcheckin"));
            msg.show(this);
        }
        CheckInAction();
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:17,代码来源:JPanelEmployeePresence.java


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