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


Java JCustomerFinder.getSelectedCustomer方法代码示例

本文整理汇总了Java中com.openbravo.pos.customers.JCustomerFinder.getSelectedCustomer方法的典型用法代码示例。如果您正苦于以下问题:Java JCustomerFinder.getSelectedCustomer方法的具体用法?Java JCustomerFinder.getSelectedCustomer怎么用?Java JCustomerFinder.getSelectedCustomer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.openbravo.pos.customers.JCustomerFinder的用法示例。


在下文中一共展示了JCustomerFinder.getSelectedCustomer方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: jButton1ActionPerformed

import com.openbravo.pos.customers.JCustomerFinder; //导入方法依赖的package包/类
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed

        JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
        finder.search(customer);
        finder.setVisible(true);
        
        CustomerInfo c = finder.getSelectedCustomer(); 
        
        if (c == null) {       
            assignCustomer(new CustomerInfo(null));
        } else {
            assignCustomer(c);
        }
        
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:JTicketsBagRestaurantRes.java

示例2: btnCustomerActionPerformed

import com.openbravo.pos.customers.JCustomerFinder; //导入方法依赖的package包/类
private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed

        JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
        finder.search(currentcustomer);
        finder.setVisible(true);
        currentcustomer = finder.getSelectedCustomer();
        if (currentcustomer == null) {
            jTextField1.setText(null);
        } else {
            jTextField1.setText(currentcustomer.getName());
        }
        
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsCustomer.java

示例3: btnCustomerActionPerformed

import com.openbravo.pos.customers.JCustomerFinder; //导入方法依赖的package包/类
private void btnCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCustomerActionPerformed
       if (listener  != null) {
            listener.stop();
        }
       JCustomerFinder finder = JCustomerFinder.getCustomerFinder(this, dlCustomers);
                finder.search(m_oTicket.getCustomer());
                finder.setVisible(true);
        
        try {            
           if (finder.getSelectedCustomer() == null){
               m_oTicket.setCustomer(null);
           }else {
               m_oTicket.setCustomer(dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()));
           if ("restaurant".equals(m_App.getProperties().getProperty("machine.ticketsbag"))) { 
// JG 30 Apr 14 Redundant String() to String() assignment
//               restDB.setCustomerNameInTableByTicketId (dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()).toString(), m_oTicket.getId().toString());  
               restDB.setCustomerNameInTableByTicketId (dlSales.loadCustomerExt(finder.getSelectedCustomer().getId()).toString(), m_oTicket.getId());  
               }
           }

        } catch (BasicException e) {
            MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.cannotfindcustomer"), e);
            msg.show(this);            
        }

        refreshTicket();     
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:28,代码来源:JPanelTicket.java


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