• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java CustomerInfoExt类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



CustomerInfoExt类属于com.openbravo.pos.customers包,在下文中一共展示了CustomerInfoExt类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: readValues

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sId = dr.getString(1);
    tickettype = dr.getInt(2).intValue();
    m_iTicketId = dr.getInt(3).intValue();
    m_dDate = dr.getTimestamp(4);
    m_sActiveCash = dr.getString(5);
    try {
        byte[] img = dr.getBytes(6);
        if (img != null) {
            attributes.loadFromXML(new ByteArrayInputStream(img));
        }
    } catch (IOException e) {
    }
    m_User = new UserInfo(dr.getString(7), dr.getString(8));
    m_Customer = new CustomerInfoExt(dr.getString(9));
    m_aLines = new ArrayList<TicketLineInfo>();

    payments = new ArrayList<PaymentInfo>();
    taxes = null;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:21,代码来源:TicketInfo.java


示例2: getTaxInfo

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param tcid
 * @param customer
 * @return
 */
public TaxInfo getTaxInfo(String tcid, CustomerInfoExt customer) {
    
    
    TaxInfo defaulttax = null;
    
    for (TaxInfo tax : taxlist) {
        if (tax.getParentID() == null && tax.getTaxCategoryID().equals(tcid)) {
            if ((customer == null || customer.getTaxCustCategoryID() == null) && tax.getTaxCustCategoryID() == null) {
                return tax;
            } else if (customer != null && customer.getTaxCustCategoryID() != null && customer.getTaxCustCategoryID().equals(tax.getTaxCustCategoryID())) {
                return tax;
            }
            
            if (tax.getTaxCustCategoryID() == null) {
                defaulttax = tax;
            }
        }
    }
    
    // No tax found
    return defaulttax;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:29,代码来源:TaxesLogic.java


示例3: readValues

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param dr
 * @throws BasicException
 */
@Override
public void readValues(DataRead dr) throws BasicException {
    m_sId = dr.getString(1);
    tickettype = dr.getInt(2);
    m_iTicketId = dr.getInt(3);
    m_dDate = dr.getTimestamp(4);
    m_sActiveCash = dr.getString(5);
    try {
        byte[] img = dr.getBytes(6);
        if (img != null) {
            attributes.loadFromXML(new ByteArrayInputStream(img));
        }
    } catch (IOException e) {
    }
    m_User = new UserInfo(dr.getString(7), dr.getString(8));
    m_Customer = new CustomerInfoExt(dr.getString(9));
    m_aLines = new ArrayList<>(); // JG June 2102 diamond inference

    payments = new ArrayList<>(); // JG June 2102 diamond inference
    taxes = null;
  
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:28,代码来源:TicketInfo.java


示例4: getTaxRate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public double getTaxRate(TaxCategoryInfo tc, Date date, CustomerInfoExt customer) {
    
    if (tc == null) {
        return 0.0;
    } else {
        return getTaxRate(tc.getID(), date, customer);
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:TaxesLogic.java


示例5: getTaxInfo

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public TaxInfo getTaxInfo(String tcid, Date date, CustomerInfoExt customer) {
    
    TaxInfo candidatetax = null;
    TaxInfo defaulttax = null;
    
    for (TaxInfo tax : taxlist) {
        if (tax.getParentID() == null && tax.getTaxCategoryID().equals(tcid) && tax.getValidFrom().compareTo(date) <= 0) {


            if (candidatetax == null || tax.getValidFrom().compareTo(candidatetax.getValidFrom()) > 0) {
                // is valid date
                if ((customer == null || customer.getTaxCustCategoryID() == null) && tax.getTaxCustCategoryID() == null) {
                    candidatetax = tax;
                } else if (customer != null && customer.getTaxCustCategoryID() != null && customer.getTaxCustCategoryID().equals(tax.getTaxCustCategoryID())) {
                    candidatetax = tax;
                }
            }
            
            if (tax.getTaxCustCategoryID() == null) {
                if (defaulttax == null || tax.getValidFrom().compareTo(defaulttax.getValidFrom()) > 0) {
                    defaulttax = tax;
                }
            }
        }
    }

    return candidatetax == null ? defaulttax : candidatetax;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:29,代码来源:TaxesLogic.java


示例6: readExternal

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    // esto es solo para serializar tickets que no estan en la bolsa de tickets pendientes
    m_sId = (String) in.readObject();
    tickettype = in.readInt();
    m_iTicketId = in.readInt();
    m_Customer = (CustomerInfoExt) in.readObject();
    m_dDate = (Date) in.readObject();
    attributes = (Properties) in.readObject();
    m_aLines = (List<TicketLineInfo>) in.readObject();
    m_User = null;
    m_sActiveCash = null;

    payments = new ArrayList<PaymentInfo>();
    taxes = null;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:16,代码来源:TicketInfo.java


示例7: findCustomerExt

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public CustomerInfoExt findCustomerExt(String card) throws BasicException {
    return (CustomerInfoExt) new PreparedSentence(s
            , "SELECT ID, TAXID, SEARCHKEY, NAME, CARD, TAXCATEGORY, NOTES, MAXDEBT, VISIBLE, CURDATE, CURDEBT" +
              ", FIRSTNAME, LASTNAME, EMAIL, PHONE, PHONE2, FAX" +
              ", ADDRESS, ADDRESS2, POSTAL, CITY, REGION, COUNTRY" +
              " FROM CUSTOMERS WHERE CARD = ? AND VISIBLE = " + s.DB.TRUE()
            , SerializerWriteString.INSTANCE
            , new CustomerExtRead()).find(card);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:DataLogicSales.java


示例8: loadCustomerExt

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public CustomerInfoExt loadCustomerExt(String id) throws BasicException {
    return (CustomerInfoExt) new PreparedSentence(s
            , "SELECT ID, TAXID, SEARCHKEY, NAME, CARD, TAXCATEGORY, NOTES, MAXDEBT, VISIBLE, CURDATE, CURDEBT" +
              ", FIRSTNAME, LASTNAME, EMAIL, PHONE, PHONE2, FAX" +
              ", ADDRESS, ADDRESS2, POSTAL, CITY, REGION, COUNTRY" +
            " FROM CUSTOMERS WHERE ID = ?"
            , SerializerWriteString.INSTANCE
            , new CustomerExtRead()).find(id);
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:10,代码来源:DataLogicSales.java


示例9: readValues

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public Object readValues(DataRead dr) throws BasicException {
    CustomerInfoExt c = new CustomerInfoExt(dr.getString(1));
    c.setTaxid(dr.getString(2));
    c.setSearchkey(dr.getString(3));
    c.setName(dr.getString(4));
    c.setCard(dr.getString(5));
    c.setTaxCustomerID(dr.getString(6));
    c.setNotes(dr.getString(7));
    c.setMaxdebt(dr.getDouble(8));
    c.setVisible(dr.getBoolean(9).booleanValue());
    c.setCurdate(dr.getTimestamp(10));
    c.setCurdebt(dr.getDouble(11));
    c.setFirstname(dr.getString(12));
    c.setLastname(dr.getString(13));
    c.setEmail(dr.getString(14));
    c.setPhone(dr.getString(15));
    c.setPhone2(dr.getString(16));
    c.setFax(dr.getString(17));
    c.setAddress(dr.getString(18));
    c.setAddress2(dr.getString(19));
    c.setPostal(dr.getString(20));
    c.setCity(dr.getString(21));
    c.setRegion(dr.getString(22));
    c.setCountry(dr.getString(23));

    return c;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:28,代码来源:DataLogicSales.java


示例10: activate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public void activate(CustomerInfoExt customerext, double dTotal, String transID) {
    
    this.customerext = customerext;
    m_dTotal = dTotal;
    
    m_jTendered.reset();
    
    // 
    if (customerext == null) {
        m_jName.setText(null);
        m_jNotes.setText(null);
        txtMaxdebt.setText(null);
        txtCurdate.setText(null);        
        txtCurdebt.setText(null);
        
        m_jKeys.setEnabled(false);
        m_jTendered.setEnabled(false);
        
        
    } else {            
        m_jName.setText(customerext.getName());
        m_jNotes.setText(customerext.getNotes());
        txtMaxdebt.setText(Formats.CURRENCY.formatValue(RoundUtils.getValue(customerext.getMaxdebt())));
        txtCurdate.setText(Formats.DATE.formatValue(customerext.getCurdate()));        
        txtCurdebt.setText(Formats.CURRENCY.formatValue(RoundUtils.getValue(customerext.getCurdebt())));   
            
        if (RoundUtils.compare(RoundUtils.getValue(customerext.getCurdebt()), RoundUtils.getValue(customerext.getMaxdebt())) >= 0)  {
            m_jKeys.setEnabled(false);
            m_jTendered.setEnabled(false);                
        } else {    
            m_jKeys.setEnabled(true);
            m_jTendered.setEnabled(true);
            m_jTendered.activate();  
        }
    }        
    
    printState();
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:40,代码来源:JPaymentDebt.java


示例11: activate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public void activate(CustomerInfoExt customerext, double dTotal, String transID) {   
    this.transaction = transID;

    if (m_cardpanel == null) {
        jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));  
        m_notifier.setStatus(false, false);
    } else {
        jlblMessage.setText(null);
        m_cardpanel.activate(transaction, dTotal); 
        // The cardpanel sets the status
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JPaymentMagcard.java


示例12: showDialog

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public boolean showDialog(double total, CustomerInfoExt customerext) {
    
    m_aPaymentInfo = new PaymentInfoList();
    accepted = false;
    
    m_dTotal = total;
    
    this.customerext = customerext;        

    m_jButtonPrint.setSelected(printselected);
    m_jTotalEuros.setText(Formats.CURRENCY.formatValue(new Double(m_dTotal)));
    
    addTabs();

    if (m_jTabPayment.getTabCount() == 0) {
        // No payment panels available            
        m_aPaymentInfo.add(getDefaultPayment(total));
        accepted = true;            
    } else {
        getRootPane().setDefaultButton(m_jButtonOK);
        printState();
        setVisible(true);
    }
    
    // gets the print button state
    printselected = m_jButtonPrint.isSelected();
    
    // remove all tabs        
    m_jTabPayment.removeAll();
    
    return accepted;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:33,代码来源:JPaymentSelect.java


示例13: syncCustomer

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
public void syncCustomer(final CustomerInfoExt customer) throws BasicException {

        Transaction t = new Transaction(s) {
            public Object transact() throws BasicException {
                // Sync the Customer in a transaction

                // Try to update
                if (new PreparedSentence(s,
                            "UPDATE CUSTOMERS SET SEARCHKEY = ?, NAME = ?, NOTES = ?, VISIBLE = " + s.DB.TRUE() + " WHERE ID = ?",
                            SerializerWriteParams.INSTANCE
                            ).exec(new DataParams() { public void writeValues() throws BasicException {
                                setString(1, customer.getSearchkey());
                                setString(2, customer.getName());
                                setString(3, customer.getAddress());
                                setString(4, customer.getId());
                            }}) == 0) {

                    // If not updated, try to insert
                    new PreparedSentence(s,
                            "INSERT INTO CUSTOMERS(ID, SEARCHKEY, NAME, NOTES, VISIBLE) VALUES (?, ?, ?, ?, " + s.DB.TRUE() + ")",
                            SerializerWriteParams.INSTANCE
                            ).exec(new DataParams() { public void writeValues() throws BasicException {
                                setString(1, customer.getId());
                                setString(2, customer.getSearchkey());
                                setString(3, customer.getName());
                                setString(4, customer.getAddress());
                            }});
                }

                return null;
            }
        };
        t.execute();
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:35,代码来源:DataLogicIntegration.java


示例14: getTaxRate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param tc
 * @param customer
 * @return
 */
public double getTaxRate(TaxCategoryInfo tc, CustomerInfoExt customer) {
    
    if (tc == null) {
        return 0.0;
    } else {
        return getTaxRate(tc.getID(), customer);          
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:TaxesLogic.java


示例15: readExternal

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    // esto es solo para serializar tickets que no estan en la bolsa de tickets pendientes
    m_sId = (String) in.readObject();
    tickettype = in.readInt();
    m_iTicketId = in.readInt();
    m_Customer = (CustomerInfoExt) in.readObject();
    m_dDate = (Date) in.readObject();
    attributes = (Properties) in.readObject();
    m_aLines = (List<TicketLineInfo>) in.readObject();
    m_User = null;
    m_sActiveCash = null;
    payments = new ArrayList<>(); // JG June 2102 diamond inference
    taxes = null;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:16,代码来源:TicketInfo.java


示例16: findCustomerExt

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param card
 * @return
 * @throws BasicException
 */
public CustomerInfoExt findCustomerExt(String card) throws BasicException {
    return (CustomerInfoExt) new PreparedSentence(s
            , "SELECT "
            + "ID, "
            + "TAXID, "
            + "SEARCHKEY, "
            + "NAME, "
            + "CARD, "
            + "TAXCATEGORY, "
            + "NOTES, "
            + "MAXDEBT, "
            + "VISIBLE, "
            + "CURDATE, "
            + "CURDEBT, " 
            + "FIRSTNAME, "
            + "LASTNAME, "
            + "EMAIL, "
            + "PHONE, "
            + "PHONE2, "
            + "FAX, "
            + "ADDRESS, "
            + "ADDRESS2, "
            + "POSTAL, "
            + "CITY, "
            + "REGION, "
            + "COUNTRY, "
            + "IMAGE "
            + "FROM CUSTOMERS "
            + "WHERE CARD = ? AND VISIBLE = " + s.DB.TRUE() + " "
            + "ORDER BY NAME"
            , SerializerWriteString.INSTANCE
            , new CustomerExtRead()).find(card);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:40,代码来源:DataLogicSales.java


示例17: loadCustomerExt

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param id
 * @return
 * @throws BasicException
 */
public CustomerInfoExt loadCustomerExt(String id) throws BasicException {
    return (CustomerInfoExt) new PreparedSentence(s
            , "SELECT "
            + "ID, "
            + "TAXID, " 
            + "SEARCHKEY, "
            + "NAME, "
            + "CARD, "
            + "TAXCATEGORY, "
            + "NOTES, "
            + "MAXDEBT, "
            + "VISIBLE, "
            + "CURDATE, "
            + "CURDEBT, "
            + "FIRSTNAME, "
            + "LASTNAME, "
            + "EMAIL, "
            + "PHONE, "
            + "PHONE2, "
            + "FAX, "
            + "ADDRESS, "
            + "ADDRESS2, "
            + "POSTAL, "
            + "CITY, "
            + "REGION, "
            + "COUNTRY, "
            + "IMAGE "
            + "FROM CUSTOMERS WHERE ID = ?"
            , SerializerWriteString.INSTANCE
            , new CustomerExtRead()).find(id);
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:38,代码来源:DataLogicSales.java


示例18: readValues

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param dr
 * @return
 * @throws BasicException
 */
@Override
public Object readValues(DataRead dr) throws BasicException {
    CustomerInfoExt c = new CustomerInfoExt(dr.getString(1));
    c.setTaxid(dr.getString(2));
    c.setSearchkey(dr.getString(3));
    c.setName(dr.getString(4));
    c.setCard(dr.getString(5));
    c.setTaxCustomerID(dr.getString(6));
    c.setNotes(dr.getString(7));
    c.setMaxdebt(dr.getDouble(8));
    c.setVisible(dr.getBoolean(9));
    c.setCurdate(dr.getTimestamp(10));
    c.setCurdebt(dr.getDouble(11));
    c.setFirstname(dr.getString(12));
    c.setLastname(dr.getString(13));
    c.setEmail(dr.getString(14));
    c.setPhone(dr.getString(15));
    c.setPhone2(dr.getString(16));
    c.setFax(dr.getString(17));
    c.setAddress(dr.getString(18));
    c.setAddress2(dr.getString(19));
    c.setPostal(dr.getString(20));
    c.setCity(dr.getString(21));
    c.setRegion(dr.getString(22));
    c.setCountry(dr.getString(23));
    c.setImage(dr.getString(24));

    return c;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:36,代码来源:DataLogicSales.java


示例19: activate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param customerext
 * @param dTotal
 * @param transID
 */
@Override
public void activate(CustomerInfoExt customerext, double dTotal, String transID) {
    
    m_dTotal = dTotal;
    
    m_jTendered.reset();
    m_jTendered.activate();
    
    printState();        
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:17,代码来源:JPaymentPaper.java


示例20: activate

import com.openbravo.pos.customers.CustomerInfoExt; //导入依赖的package包/类
/**
 *
 * @param customerext
 * @param dTotal
 * @param transID
 */
@Override
public void activate(CustomerInfoExt customerext, double dTotal, String transID) {   
    this.transaction = transID;

    if (m_cardpanel == null) {
        jlblMessage.setText(AppLocal.getIntString("message.nopaymentgateway"));  
        m_notifier.setStatus(false, false);
    } else {
        jlblMessage.setText(null);
        m_cardpanel.activate(transaction, dTotal); 
        // The cardpanel sets the status
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:20,代码来源:JPaymentMagcard.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java RestModifyView类代码示例发布时间:2022-05-23
下一篇:
Java Transaction类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap