本文整理汇总了Java中com.openbravo.pos.forms.AppLocal.getIntString方法的典型用法代码示例。如果您正苦于以下问题:Java AppLocal.getIntString方法的具体用法?Java AppLocal.getIntString怎么用?Java AppLocal.getIntString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.pos.forms.AppLocal
的用法示例。
在下文中一共展示了AppLocal.getIntString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: btnCustomerActionPerformed
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的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);
}
示例2: readWeight
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public Double readWeight() throws ScaleException {
if (m_scale == null) {
throw new ScaleException(AppLocal.getIntString("scale.notdefined"));
} else {
Double result = m_scale.readWeight();
if (result == null) {
return null; // Canceled by the user / scale
} else if (result.doubleValue() < 0.002) {
// invalid result. nothing on the scale
throw new ScaleException(AppLocal.getIntString("scale.invalidvalue"));
} else {
// valid result
return result;
}
}
}
示例3: next
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public boolean next() throws JRException {
if (SRS == null) {
throw new JRException(AppLocal.getIntString("exception.unavailabledataset"));
}
try {
if (SRS.next()) {
current = SRS.getCurrent();
return true;
} else {
current = null;
SRS = null;
sent.closeExec();
sent = null;
return false;
}
} catch (BasicException e) {
throw new JRException(e);
}
}
示例4: JPaymentCashPos
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的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);
}
}
}
示例5: init
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
protected void init() {
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("Label.Name"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTE",
new PrimaryKey("ID"),
new Column("NAME"));
lpr = row.getListProvider(app.getSession(), table);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributesEditor(dirty);
}
示例6: init
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public void init(Session s){
this.s = s;
tcustomers = new TableDefinition(s
, "CUSTOMERS"
, new String[] { "ID", "TAXID", "SEARCHKEY", "NAME", "NOTES", "VISIBLE", "CARD", "MAXDEBT", "CURDATE", "CURDEBT"
, "FIRSTNAME", "LASTNAME", "EMAIL", "PHONE", "PHONE2", "FAX"
, "ADDRESS", "ADDRESS2", "POSTAL", "CITY", "REGION", "COUNTRY"
, "TAXCATEGORY" }
, new String[] { "ID", AppLocal.getIntString("label.taxid"), AppLocal.getIntString("label.searchkey"), AppLocal.getIntString("label.name"), AppLocal.getIntString("label.notes"), "VISIBLE", "CARD", AppLocal.getIntString("label.maxdebt"), AppLocal.getIntString("label.curdate"), AppLocal.getIntString("label.curdebt")
, AppLocal.getIntString("label.firstname"), AppLocal.getIntString("label.lastname"), AppLocal.getIntString("label.email"), AppLocal.getIntString("label.phone"), AppLocal.getIntString("label.phone2"), AppLocal.getIntString("label.fax")
, AppLocal.getIntString("label.address"), AppLocal.getIntString("label.address2"), AppLocal.getIntString("label.postal"), AppLocal.getIntString("label.city"), AppLocal.getIntString("label.region"), AppLocal.getIntString("label.country")
, "TAXCATEGORY"}
, new Datas[] { Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.BOOLEAN, Datas.STRING, Datas.DOUBLE, Datas.TIMESTAMP, Datas.DOUBLE
, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING
, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING
, Datas.STRING}
, new Formats[] { Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.BOOLEAN, Formats.STRING, Formats.CURRENCY, Formats.TIMESTAMP, Formats.CURRENCY
, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING
, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING
, Formats.STRING}
, new int[] {0}
);
}
示例7: btnCustomerActionPerformed
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed
JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
finder.search(null);
finder.setVisible(true);
try {
jtxtCustomer.setText(finder.getSelectedCustomer() == null
? null
: dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()).toString());
} catch (BasicException e) {
MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindcustomer"), e);
msg.show(this);
}
}
示例8: init
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
protected void init() {
filter = new AttributeSetFilter();
filter.init(app);
filter.addActionListener(new ReloadActionListener());
row = new Row(
new Field("ID", Datas.STRING, Formats.STRING),
new Field("ATRIBUTESET_ID", Datas.STRING, Formats.STRING),
new Field("ATTRIBUTE_ID", Datas.STRING, Formats.STRING),
new Field(AppLocal.getIntString("label.order"), Datas.INT, Formats.INT, false, true, true),
new Field(AppLocal.getIntString("label.name"), Datas.STRING, Formats.STRING, true, true, true)
);
Table table = new Table(
"ATTRIBUTEUSE",
new PrimaryKey("ID"),
new Column("ATTRIBUTESET_ID"),
new Column("ATTRIBUTE_ID"),
new Column("LINENO"));
lpr = row.getListProvider(app.getSession(),
"SELECT ATTUSE.ID, ATTUSE.ATTRIBUTESET_ID, ATTUSE.ATTRIBUTE_ID, ATTUSE.LINENO, ATT.NAME " +
"FROM ATTRIBUTEUSE ATTUSE, ATTRIBUTE ATT " +
"WHERE ATTUSE.ATTRIBUTE_ID = ATT.ID AND ATTUSE.ATTRIBUTESET_ID = ? ORDER BY LINENO", filter);
spr = row.getSaveProvider(app.getSession(), table);
editor = new AttributeUseEditor(app, dirty);
}
示例9: evalScriptAndRefresh
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public void evalScriptAndRefresh(String resource, ScriptArg... args) {
if (resource == null) {
MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotexecute"));
msg.show(this);
} else {
ScriptObject scr = new ScriptObject(m_oTicket, m_oTicketExt);
scr.setSelectedIndex(m_ticketlines.getSelectedIndex());
evalScript(scr, resource, args);
refreshTicket();
setSelectedIndex(scr.getSelectedIndex());
}
}
示例10: init
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public void init(Session s){
this.s = s;
m_tpeople = new TableDefinition(s,
"PEOPLE"
, new String[] {"ID", "NAME", "APPPASSWORD", "ROLE", "VISIBLE", "CARD", "IMAGE"}
, new String[] {"ID", AppLocal.getIntString("label.peoplename"), AppLocal.getIntString("Label.Password"), AppLocal.getIntString("label.role"), AppLocal.getIntString("label.peoplevisible"), AppLocal.getIntString("label.card"), AppLocal.getIntString("label.peopleimage")}
, new Datas[] {Datas.STRING, Datas.STRING, Datas.STRING, Datas.STRING, Datas.BOOLEAN, Datas.STRING, Datas.IMAGE}
, new Formats[] {Formats.STRING, Formats.STRING, Formats.STRING, Formats.STRING, Formats.BOOLEAN, Formats.STRING, Formats.NULL}
, new int[] {0}
);
m_troles = new TableDefinition(s,
"ROLES"
, new String[] {"ID", "NAME", "PERMISSIONS"}
, new String[] {"ID", AppLocal.getIntString("Label.Name"), "PERMISSIONS"}
, new Datas[] {Datas.STRING, Datas.STRING, Datas.BYTES}
, new Formats[] {Formats.STRING, Formats.STRING, Formats.NULL}
, new int[] {0}
);
m_tresources = new TableDefinition(s,
"RESOURCES"
, new String[] {"ID", "NAME", "RESTYPE", "CONTENT"}
, new String[] {"ID", AppLocal.getIntString("Label.Name"), AppLocal.getIntString("label.type"), "CONTENT"}
, new Datas[] {Datas.STRING, Datas.STRING, Datas.INT, Datas.BYTES}
, new Formats[] {Formats.STRING, Formats.STRING, Formats.INT, Formats.NULL}
, new int[] {0}
);
}
示例11: init
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
private TicketLineInfo init(AppView app, TicketLineInfo oLine) throws BasicException {
// Inicializo los componentes
initComponents();
if (oLine.getTaxInfo() == null) {
throw new BasicException(AppLocal.getIntString("message.cannotcalculatetaxes"));
}
m_oLine = new TicketLineInfo(oLine);
m_bunitsok = true;
m_bpriceok = true;
m_jName.setEnabled(m_oLine.getProductID() == null && app.getAppUserView().getUser().hasPermission("com.openbravo.pos.sales.JPanelTicketEdits"));
m_jPrice.setEnabled(app.getAppUserView().getUser().hasPermission("com.openbravo.pos.sales.JPanelTicketEdits"));
m_jPriceTax.setEnabled(app.getAppUserView().getUser().hasPermission("com.openbravo.pos.sales.JPanelTicketEdits"));
m_jName.setText(m_oLine.getProperty("product.name"));
m_jUnits.setDoubleValue(oLine.getMultiply());
m_jPrice.setDoubleValue(oLine.getPrice());
m_jPriceTax.setDoubleValue(oLine.getPriceTax());
m_jTaxrate.setText(oLine.getTaxInfo().getName());
m_jName.addPropertyChangeListener("Edition", new RecalculateName());
m_jUnits.addPropertyChangeListener("Edition", new RecalculateUnits());
m_jPrice.addPropertyChangeListener("Edition", new RecalculatePrice());
m_jPriceTax.addPropertyChangeListener("Edition", new RecalculatePriceTax());
m_jName.addEditorKeys(m_jKeys);
m_jUnits.addEditorKeys(m_jKeys);
m_jPrice.addEditorKeys(m_jKeys);
m_jPriceTax.addEditorKeys(m_jKeys);
if (m_jName.isEnabled()) {
m_jName.activate();
} else {
m_jUnits.activate();
}
printTotals();
getRootPane().setDefaultButton(m_jButtonOK);
returnLine = null;
setVisible(true);
return returnLine;
}
示例12: DeviceDisplayNull
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
/** Creates a new instance of DeviceDisplayNull */
public DeviceDisplayNull(String desc) {
m_sName = AppLocal.getIntString("Display.Null");
m_sDescription = desc;
}
示例13: getTitle
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public String getTitle() {
return AppLocal.getIntString("Menu.StockDiary");
}
示例14: getTitle
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public String getTitle() {
return AppLocal.getIntString("Menu.Users");
}
示例15: setTitleKey
import com.openbravo.pos.forms.AppLocal; //导入方法依赖的package包/类
public void setTitleKey(String titlekey) {
title = AppLocal.getIntString(titlekey);
}