当前位置: 首页>>代码示例>>Java>>正文


Java SharedTicketInfo类代码示例

本文整理汇总了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());
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:25,代码来源:JTicketsBagSharedList.java

示例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());
    
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:17,代码来源:JTicketsBagSharedList.java

示例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();
        }    
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:JTicketsBagShared.java

示例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());
    
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:17,代码来源:JTicketsBagSharedList.java

示例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;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JTicketsBagSharedList.java

示例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;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:17,代码来源:JTicketsBagSharedList.java

示例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();
                }                    
            }
        });
        
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:28,代码来源:JTicketsBagShared.java

示例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;
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:OrderCustomerList.java

示例9: CustomerComparator

import com.openbravo.pos.sales.SharedTicketInfo; //导入依赖的package包/类
public CustomerComparator(Map<SharedTicketInfo, CustomerInfoExt> base) {
    this.base = base;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:4,代码来源:OrderCustomerList.java

示例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();
            
        }    

        
    }
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:25,代码来源:JTicketsBagShared.java


注:本文中的com.openbravo.pos.sales.SharedTicketInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。