zoukankan      html  css  js  c++  java
  • address

    public void modified()
    {
        CustTable           curCustTable;
        Address             address,invoiceAddress,mailAddress;
        JaxInvoiceAddress   curjaxaddress,curaddress;
    ;
        if(JaxInvoiceTable.EajMiddleCustAccount &&JaxInvoiceTable.EajMiddleCustAccount != JaxInvoiceTable.CustAccount )
            {
                curCustTable = CustTable::find(JaxInvoiceTable.EajMiddleCustAccount,true);
                address        = DirPartyAddress::findAddress(curCustTable, AddressType::Delivery);
                invoiceAddress = DirPartyAddress::findAddress(curCustTable, AddressType::Invoice);
                mailAddress    = DirPartyAddress::findAddress(curCustTable, AddressType::Other);
    
                if (invoiceAddress)
                {
                    JaxInvoiceTable.setEajMidInvoiceAddress(invoiceAddress);
                }
                else
                {
                    JaxInvoiceTable.setEajMidInvoiceAddress(mailAddress);
                }
                if(address)
                {
                    JaxInvoiceTable.setEajMidDeliveryAddress(address);
                }
                else
                {
                    JaxInvoiceTable.setEajMidDeliveryAddress(mailAddress);
                }
    
        }
    
    }
    ------------------------------------------------
    void  setEajMidInvoiceAddress(Address   _address)
    {
        CustTable           custTable;
        JaxInvoiceAddress   invoiceAddress;
        ;
    
        custTable = this.EajMidOrderAccount();
    
        ttsbegin;
        select forupdate invoiceAddress
                    index hint InvoiceIdIdx
                    where invoiceAddress.InvoiceId == this.InvoiceId;
        if (_address)
        {
            if(invoiceAddress)
            {
                invoiceAddress.EajMidBillName             = custTable.Name;
                invoiceAddress.EajMidBillAddress          = _address.Address;
                invoiceAddress.EajMidBillZipCode          = _address.ZipCode;
                invoiceAddress.EajMidBillPhone            = _address.Phone;
                invoiceAddress.EajMidBillTeleFax          = _address.TeleFax;
                invoiceAddress.EajMidBillCountryRegionId  = _address.CountryRegionId;
                invoiceAddress.EajMidBillCounty           = _address.County;
                invoiceAddress.EajMidBillState            = _address.State;
                invoiceAddress.EajMidBillStreet           = _address.Street;
                invoiceAddress.EajMidBillCity             = _address.City;
                invoiceAddress.EajMidBillTelex            = _address.Telex;
                
                invoiceAddress.EajMidBillContactPersonId  = _address.ContactPersonId;
                
                invoiceAddress.doUpdate();
            }
    
        }
    
        ttscommit;
    }
  • 相关阅读:
    yum 下载安装包以及依赖包
    《将博客搬至CSDN》
    Lucene
    Solr
    LVS原理详解(3种工作模式及8种调度算法)
    正向代理与反向代理
    网关,网卡
    NAT地址转换
    Nginx学习总结
    网络_OSI模型_数据包传输
  • 原文地址:https://www.cnblogs.com/perock/p/2618427.html
Copyright © 2011-2022 走看看