本文整理汇总了Java中com.openbravo.pos.sales.SharedTicketInfo类的典型用法代码示例。如果您正苦于以下问题:Java SharedTicketInfo类的具体用法?Java SharedTicketInfo怎么用?Java SharedTicketInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SharedTicketInfo类属于com.openbravo.pos.sales包,在下文中一共展示了SharedTicketInfo类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JButtonTicket
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public JButtonTicket(SharedTicketInfo ticket){
super();
m_Ticket = ticket;
setFocusPainted(false);
setFocusable(false);
setRequestFocusEnabled(false);
setMargin(new Insets(8, 14, 8, 14));
//setFont(new java.awt.Font ("Dialog", 1, 24));
//setBackground(new java.awt.Color (220, 220, 220));
addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// Selecciono el ticket
m_sDialogTicket = m_Ticket.getId();
// y oculto la ventana
JTicketsBagSharedList.this.setVisible(false);
}
});
setText(ticket.getName());
}
示例2: JButtonTicket
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public JButtonTicket(SharedTicketInfo ticket){
super();
m_Ticket = ticket;
setFocusPainted(false);
setFocusable(false);
setRequestFocusEnabled(false);
setMargin(new Insets(8, 14, 8, 14));
setFont(new java.awt.Font ("New Gulim", 0, 12));
setBackground(new java.awt.Color (220, 220, 220));
addActionListener(new ActionListenerImpl());
setText(ticket.getName()+"-"+ticket.getCustomerName());
}
示例3: selectValidTicket
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
private void selectValidTicket() {
try {
List<SharedTicketInfo> l = dlReceipts.getSharedTicketList();
if (l.isEmpty()) {
m_jListTickets.setText("");
newTicket();
} else {
// m_jListTickets.setText("*");
// setActiveTicket(l.get(0).getId());
newTicket();
}
} catch (BasicException e) {
new MessageInf(e).show(this);
newTicket();
}
}
示例4: JButtonTicket
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public JButtonTicket(SharedTicketInfo ticket){
super();
m_Ticket = ticket;
setFocusPainted(false);
setFocusable(false);
setRequestFocusEnabled(false);
setMargin(new Insets(8, 14, 8, 14));
setFont(new java.awt.Font ("Dialog", 0, 14));
setBackground(new java.awt.Color (220, 220, 220));
addActionListener(new ActionListenerImpl());
setText(ticket.getName());
}
示例5: showTicketsList
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public String showTicketsList(java.util.List<SharedTicketInfo> atickets) {
for (int i = 0; i < atickets.size(); i++) {
m_jtickets.add(new JButtonTicket(atickets.get(i)));
}
m_sDialogTicket = null;
setVisible(true);
return m_sDialogTicket;
}
示例6: showTicketsList
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
/**
*
* @param atickets
* @return
*/
public String showTicketsList(java.util.List<SharedTicketInfo> atickets) {
for (SharedTicketInfo aticket : atickets) {
m_jtickets.add(new JButtonTicket(aticket));
}
m_sDialogTicket = null;
setVisible(true);
return m_sDialogTicket;
}
示例7: m_jListTicketsActionPerformed
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
private void m_jListTicketsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jListTicketsActionPerformed
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
try {
List<SharedTicketInfo> l = dlReceipts.getSharedTicketList();
// String itemCount = Integer.toString(l.size());
// m_jListTickets.setText(itemCount);
// m_jListTickets.setIcon(null);
JTicketsBagSharedList listDialog = JTicketsBagSharedList.newJDialog(JTicketsBagShared.this);
String id = listDialog.showTicketsList(l);
if (id != null) {
saveCurrentTicket();
setActiveTicket(id);
}
} catch (BasicException e) {
new MessageInf(e).show(JTicketsBagShared.this);
newTicket();
}
}
});
}
示例8: compare
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
@Override
public int compare(SharedTicketInfo a, SharedTicketInfo b) {
String nameA = base.get(a).getName();
String nameB = base.get(b).getName();
if (nameA.compareToIgnoreCase(nameB) < 0) {
return -1;
} else {
return 1;
}
}
示例9: CustomerComparator
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public CustomerComparator(Map<SharedTicketInfo, CustomerInfoExt> base) {
this.base = base;
}
示例10: selectValidTicket
import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
private void selectValidTicket() {
try {
List<SharedTicketInfo> l = dlReceipts.getSharedTicketList();
if (l.isEmpty()) {
//remove seba m_jListTickets.setText(m_panelticket.getActiveTicket().getName());
newTicket();
} else {
// m_jListTickets.setText("*");
// setActiveTicket(l.get(0).getId());
newTicket();
}
} catch (BasicException e) {
new MessageInf(e).show(this);
newTicket();
}
}