本文整理汇总了Java中com.openbravo.pos.ticket.ProductInfoExt.setName方法的典型用法代码示例。如果您正苦于以下问题:Java ProductInfoExt.setName方法的具体用法?Java ProductInfoExt.setName怎么用?Java ProductInfoExt.setName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.pos.ticket.ProductInfoExt
的用法示例。
在下文中一共展示了ProductInfoExt.setName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInputProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private ProductInfoExt getInputProduct() {
ProductInfoExt oProduct = new ProductInfoExt(); // Es un ticket
oProduct.setReference(null);
oProduct.setCode(null);
oProduct.setName("");
oProduct.setTaxCategoryID(((TaxCategoryInfo) taxcategoriesmodel.getSelectedItem()).getID());
oProduct.setPriceSell(includeTaxes(oProduct.getTaxCategoryID(), getInputValue()));
return oProduct;
}
示例2: getInputProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private ProductInfoExt getInputProduct() {
ProductInfoExt oProduct = new ProductInfoExt(); // Es un ticket
// JG 6 May 14 - always add Default Prod ID + Null Name if free line entry
oProduct.setID("xxx999_999xxx_x9x9x9");
oProduct.setReference(null);
oProduct.setCode(null);
oProduct.setName("");
oProduct.setTaxCategoryID(((TaxCategoryInfo) taxcategoriesmodel.getSelectedItem()).getID());
oProduct.setPriceSell(includeTaxes(oProduct.getTaxCategoryID(), getInputValue()));
return oProduct;
}
示例3: jbtnMooringActionPerformed
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private void jbtnMooringActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnMooringActionPerformed
// Display vessel selection box on screen if reply is good add to the ticket
if (listener != null) {
listener.stop();
}
JMooringDetails mooring = JMooringDetails.getMooringDetails(this, m_App.getSession());
mooring.setVisible(true);
if (mooring.isCreate()){
if (((mooring.getVesselDays()>0 )) && ((mooring.getVesselSize()>1))){
try{
ProductInfoExt vProduct = dlSales.getProductInfoByCode("BFeesDay1");
vProduct.setName("Berth Fees 1st Day " + mooring.getVesselName());
addTicketLine(vProduct, mooring.getVesselSize(), vProduct.getPriceSell());
if (mooring.getVesselDays()>1){
vProduct = dlSales.getProductInfoByCode("BFeesDay2");
vProduct.setName("Additional Days " +(mooring.getVesselDays()-1));
addTicketLine(vProduct, mooring.getVesselSize() * (mooring.getVesselDays()-1), vProduct.getPriceSell());
}
if (mooring.getVesselPower()){
vProduct = dlSales.getProductInfoByCode("PowerSupplied");
addTicketLine(vProduct, mooring.getVesselDays(), vProduct.getPriceSell());
}
}catch (BasicException e){}
}
}
refreshTicket();
}