本文整理汇总了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();
}
示例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);
}
示例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();
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
示例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);
}
}
示例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();
}