本文整理汇总了Java中com.openbravo.data.gui.MessageInf.SGN_NOTICE属性的典型用法代码示例。如果您正苦于以下问题:Java MessageInf.SGN_NOTICE属性的具体用法?Java MessageInf.SGN_NOTICE怎么用?Java MessageInf.SGN_NOTICE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.openbravo.data.gui.MessageInf
的用法示例。
在下文中一共展示了MessageInf.SGN_NOTICE属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteTicket
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: JPaymentCashPos
/** 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);
}
}
}
示例3: refresh
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);
}
示例4: refresh
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);
}
示例5: deleteTicket
/**
*
*/
@Override
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();
}
示例6: refresh
/**
*
*/
@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);
}
示例7: refresh
/**
*
*/
@Override
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);
}
示例8: save
private void save() {
customerext.setNotes(txtNotes.getText());
try {
dlcustomers.updateCustomerExt(customerext);
editCustomer(customerext);
} catch (BasicException e) {
MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.nosave"), e);
msg.show(this);
}
}
示例9: deactivate
public boolean deactivate() {
try {
return bd.actionClosingForm(this);
} catch (BasicException eD) {
MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.CannotMove"), eD);
msg.show(this);
return false;
}
}
示例10: JPaymentCashPos
/** Creates new form JPaymentCash
* @param notifier
* @param dlSystem */
public JPaymentCashPos(JPaymentNotifier notifier, DataLogicSystem dlSystem) {
m_notifier = notifier;
initComponents();
m_jTendered.addPropertyChangeListener("Edition", new RecalculateState());
m_jTendered.addEditorKeys(m_jKeys);
// added JDL 11.05.13
AppConfig m_config = new AppConfig(new File((System.getProperty("user.home")), AppLocal.APP_ID + ".properties"));
m_config.load();
priceWith00 =("true".equals(m_config.getProperty("till.pricewith00")));
if (priceWith00) {
// use '00' instead of '.'
m_jKeys.dotIs00(true);
}
// m_config=null;
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);
}
}
}
示例11: saveData
private void saveData() {
try {
Date d = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
MovementReason reason = (MovementReason) m_ReasonModel.getSelectedItem();
if (reason == MovementReason.OUT_CROSSING) {
// Es una doble entrada
saveData(new InventoryRecord(
d, MovementReason.OUT_MOVEMENT,
(LocationInfo) m_LocationsModel.getSelectedItem(),
m_App.getAppUserView().getUser().getName(),
m_invlines.getLines()
));
saveData(new InventoryRecord(
d, MovementReason.IN_MOVEMENT,
(LocationInfo) m_LocationsModelDes.getSelectedItem(),
m_App.getAppUserView().getUser().getName(),
m_invlines.getLines()
));
} else {
// Es un movimiento
saveData(new InventoryRecord(
d, reason,
(LocationInfo) m_LocationsModel.getSelectedItem(),
m_App.getAppUserView().getUser().getName(),
m_invlines.getLines()
));
}
stateToInsert();
} catch (BasicException eData) {
MessageInf msg = new MessageInf(MessageInf.SGN_NOTICE, AppLocal.getIntString("message.cannotsaveinventorydata"), eData);
msg.show(this);
}
}