本文整理汇总了Java中com.openbravo.pos.forms.AppView类的典型用法代码示例。如果您正苦于以下问题:Java AppView类的具体用法?Java AppView怎么用?Java AppView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AppView类属于com.openbravo.pos.forms包,在下文中一共展示了AppView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JTicketsBagTicket
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JTicketsBagTicket */
public JTicketsBagTicket(AppView app, JPanelTicketEdits panelticket) {
super(app, panelticket);
m_panelticketedit = panelticket;
m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
dlCustomers = (DataLogicCustomers) m_App.getBean("com.openbravo.pos.customers.DataLogicCustomers");
// Inicializo la impresora...
m_TP = new DeviceTicket();
// Inicializo el parser de documentos de ticket
m_TTP = new TicketParser(m_TP, m_dlSystem); // para visualizar el ticket
m_TTP2 = new TicketParser(m_App.getDeviceTicket(), m_dlSystem); // para imprimir el ticket
initComponents();
m_TicketsBagTicketBag = new JTicketsBagTicketBag(this);
m_jTicketEditor.addEditorKeys(m_jKeys);
// Este deviceticket solo tiene una impresora, la de pantalla
m_jPanelTicket.add(m_TP.getDevicePrinter("1").getPrinterComponent(), BorderLayout.CENTER);
}
示例2: JPaymentMagcard
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPaymentMagcard */
public JPaymentMagcard(AppView app, JPaymentNotifier notifier) {
initComponents();
m_notifier = notifier;
m_paymentgateway = PaymentGatewayFac.getPaymentGateway(app.getProperties());
if (m_paymentgateway == null) {
jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));
} else {
// Se van a poder efectuar pagos con tarjeta
m_cardpanel = PaymentPanelFac.getPaymentPanel(app.getProperties().getProperty("payment.magcardreader"), notifier);
add(m_cardpanel.getComponent(), BorderLayout.CENTER);
jlblMessage.setText(null);
// jlblMessage.setText(AppLocal.getIntString("message.nocardreader"));
}
}
示例3: JPanelPrinter
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPrinter */
public JPanelPrinter(AppView oApp) {
initComponents();
if (oApp.getDeviceTicket().getDeviceDisplay().getDisplayComponent() != null) {
m_jDisplay.add(oApp.getDeviceTicket().getDeviceDisplay().getDisplayComponent());
}
List<DevicePrinter> aprinters = oApp.getDeviceTicket().getDevicePrinterAll();
for (int i = 0; i < aprinters.size(); i++) {
DevicePrinter printer = aprinters.get(i);
if (printer.getPrinterComponent() != null) {
m_jPrinters.add(printer.getPrinterName(), printer.getPrinterComponent());
}
}
DeviceFiscalPrinter fp = oApp.getDeviceTicket().getFiscalPrinter();
if (fp.getFiscalComponent() != null) {
m_jPrinters.add(fp.getFiscalName(), fp.getFiscalComponent());
}
}
示例4: init
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
public void init(AppView app) throws BeanFactoryException {
m_App = app;
m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
m_TTP = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);
m_jTicketTable.setDefaultRenderer(Object.class, new TableRendererBasic(
new Formats[] {new FormatsPayment(), Formats.CURRENCY}));
m_jTicketTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
m_jScrollTableTicket.getVerticalScrollBar().setPreferredSize(new Dimension(25,25));
m_jTicketTable.getTableHeader().setReorderingAllowed(false);
m_jTicketTable.setRowHeight(25);
m_jTicketTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
m_jsalestable.setDefaultRenderer(Object.class, new TableRendererBasic(
new Formats[] {Formats.STRING, Formats.CURRENCY, Formats.CURRENCY, Formats.CURRENCY}));
m_jsalestable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
m_jScrollSales.getVerticalScrollBar().setPreferredSize(new Dimension(25,25));
m_jsalestable.getTableHeader().setReorderingAllowed(false);
m_jsalestable.setRowHeight(25);
m_jsalestable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
}
示例5: AttributeUseEditor
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form AttributeSetEditor */
public AttributeUseEditor(AppView app, DirtyManager dirty) {
attributesent = new StaticSentence(app.getSession()
, "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
, null
, new SerializerRead() { public Object readValues(DataRead dr) throws BasicException {
return new AttributeInfo(dr.getString(1), dr.getString(2));
}}
);
attributemodel = new ComboBoxValModel();
initComponents();
jLineno.getDocument().addDocumentListener(dirty);
jAttribute.addActionListener(dirty);
}
示例6: CategoriesEditor
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPanelCategories */
public CategoriesEditor(AppView app, DirtyManager dirty) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
// El modelo de categorias
m_sentcat = dlSales.getCategoriesList();
m_CategoryModel = new ComboBoxValModel();
m_sentadd = dlSales.getCatalogCategoryAdd();
m_sentdel = dlSales.getCatalogCategoryDel();
m_jName.getDocument().addDocumentListener(dirty);
m_jCategory.addActionListener(dirty);
m_jImage.addPropertyChangeListener("image", dirty);
writeValueEOF();
}
示例7: ThirdPartiesView
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form ThirdPartiesView */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
initComponents();
m_jCIF.getDocument().addDocumentListener(dirty);
m_jName.getDocument().addDocumentListener(dirty);
m_jAddress.getDocument().addDocumentListener(dirty);
m_jContactComm.getDocument().addDocumentListener(dirty);
m_jContactFact.getDocument().addDocumentListener(dirty);
m_jPayRule.getDocument().addDocumentListener(dirty);
m_jFaxNumber.getDocument().addDocumentListener(dirty);
m_jPhoneNumber.getDocument().addDocumentListener(dirty);
m_jMobileNumber.getDocument().addDocumentListener(dirty);
m_jEMail.getDocument().addDocumentListener(dirty);
m_jWebPage.getDocument().addDocumentListener(dirty);
m_jNotes.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
示例8: JTicketsBagRestaurant
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JTicketsBagRestaurantMap
* @param app
* @param restaurant */
public JTicketsBagRestaurant(AppView app, JTicketsBagRestaurantMap restaurant) {
super();
m_App = app;
m_restaurant = restaurant;
initComponents();
// Added by JDL for kitchen printer
ticketExt = null;
restDB = new RestaurantDBUtils(m_App);
m_dlSystem = (DataLogicSystem) m_App.getBean("com.openbravo.pos.forms.DataLogicSystem");
//JG July 2014 - Thank you Ron Isaacson m_TP = new DeviceTicket();
m_TP = new DeviceTicket(app.getProperties());
m_TTP2 = new TicketParser(m_App.getDeviceTicket(), m_dlSystem);
m_KitchenPrint.setVisible(m_App.getAppUserView().getUser().hasPermission("sales.PrintKitchen"));
m_KitchenPrint.setVisible(false);
}
示例9: init
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/**
*
* @param app
*/
@Override
public void init(AppView app) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
// El modelo de categorias
m_sentcat = dlSales.getCategoriesList();
m_CategoryModel = new ComboBoxValModel();
// m_jCboName.setModel(new ListQBFModelNumber());
// m_jCboPriceBuy.setModel(new ListQBFModelNumber());
// m_jCboPriceSell.setModel(new ListQBFModelNumber());
m_jCboName.setModel(ListQBFModelNumber.getMandatoryString());
m_jCboPriceBuy.setModel(ListQBFModelNumber.getMandatoryNumber());
m_jCboPriceSell.setModel(ListQBFModelNumber.getMandatoryNumber());
}
示例10: JPaymentMagcard
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPaymentMagcard
* @param app
* @param notifier */
public JPaymentMagcard(AppView app, JPaymentNotifier notifier) {
initComponents();
m_notifier = notifier;
m_paymentgateway = PaymentGatewayFac.getPaymentGateway(app.getProperties());
if (m_paymentgateway == null) {
jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));
} else {
// Se van a poder efectuar pagos con tarjeta
m_cardpanel = PaymentPanelFac.getPaymentPanel(app.getProperties().getProperty("payment.magcardreader"), notifier);
add(m_cardpanel.getComponent(), BorderLayout.CENTER);
jlblMessage.setText(null);
// jlblMessage.setText(AppLocal.getIntString("message.nocardreader"));
}
}
示例11: AttributeUseEditor
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form AttributeSetEditor
* @param app
* @param dirty */
public AttributeUseEditor(AppView app, DirtyManager dirty) {
attributesent = new StaticSentence(app.getSession()
, "SELECT ID, NAME FROM ATTRIBUTE ORDER BY NAME"
, null
, new SerializerRead() {@Override
public Object readValues(DataRead dr) throws BasicException {
return new AttributeInfo(dr.getString(1), dr.getString(2));
}}
);
attributemodel = new ComboBoxValModel();
initComponents();
jLineno.getDocument().addDocumentListener(dirty);
jAttribute.addActionListener(dirty);
}
示例12: TaxEditor
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form taxEditor
* @param app
* @param dirty */
public TaxEditor(AppView app, DirtyManager dirty) {
DataLogicSales dlSales = (DataLogicSales) app.getBean("com.openbravo.pos.forms.DataLogicSales");
initComponents();
taxcatsent = dlSales.getTaxCategoriesList();
taxcatmodel = new ComboBoxValModel();
taxcustcatsent = dlSales.getTaxCustCategoriesList();
taxcustcatmodel = new ComboBoxValModel();
taxparentsent = dlSales.getTaxList();
taxparentmodel = new ComboBoxValModel();
m_jName.getDocument().addDocumentListener(dirty);
m_jTaxCategory.addActionListener(dirty);
m_jCustTaxCategory.addActionListener(dirty);
m_jTaxParent.addActionListener(dirty);
m_jRate.getDocument().addDocumentListener(dirty);
jCascade.addActionListener(dirty);
jOrder.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
示例13: ThirdPartiesView
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form ThirdPartiesView
* @param app
* @param dirty */
public ThirdPartiesView(AppView app, DirtyManager dirty) {
initComponents();
m_jCIF.getDocument().addDocumentListener(dirty);
m_jName.getDocument().addDocumentListener(dirty);
m_jAddress.getDocument().addDocumentListener(dirty);
m_jContactComm.getDocument().addDocumentListener(dirty);
m_jContactFact.getDocument().addDocumentListener(dirty);
m_jPayRule.getDocument().addDocumentListener(dirty);
m_jFaxNumber.getDocument().addDocumentListener(dirty);
m_jPhoneNumber.getDocument().addDocumentListener(dirty);
m_jMobileNumber.getDocument().addDocumentListener(dirty);
m_jEMail.getDocument().addDocumentListener(dirty);
m_jWebPage.getDocument().addDocumentListener(dirty);
m_jNotes.getDocument().addDocumentListener(dirty);
writeValueEOF();
}
示例14: PaymentsEditor
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
/** Creates new form JPanelPayments
* @param oApp
* @param dirty */
public PaymentsEditor(AppView oApp, DirtyManager dirty) {
m_App = oApp;
initComponents();
m_ReasonModel = new ComboBoxValModel();
m_ReasonModel.add(new PaymentReasonPositive("cashin", AppLocal.getIntString("transpayment.cashin")));
m_ReasonModel.add(new PaymentReasonNegative("cashout", AppLocal.getIntString("transpayment.cashout")));
m_jreason.setModel(m_ReasonModel);
jTotal.addEditorKeys(m_jKeys);
m_jreason.addActionListener(dirty);
jTotal.addPropertyChangeListener("Text", dirty);
m_jNotes.addPropertyChangeListener("Text", dirty);
m_jNotes.addEditorKeys(m_jKeys);
writeValueEOF();
}
示例15: showMessage
import com.openbravo.pos.forms.AppView; //导入依赖的package包/类
public static TicketLineInfo showMessage(Component parent, AppView app, TicketLineInfo oLine) throws BasicException {
Window window = getWindow(parent);
JProductLineEdit myMsg;
if (window instanceof Frame) {
myMsg = new JProductLineEdit((Frame) window, true);
} else {
myMsg = new JProductLineEdit((Dialog) window, true);
}
return myMsg.init(app, oLine);
}