2013-04-02 44 views

回答

0

我使用舊版本8.0,如果通過「溝通」,你的意思是能夠從.NET應用程序直接運行JDE BSFN,那麼我會讓你失望,但是我沒有辦法知道。

也許事情在9.0中有所變化,但我對此表示懷疑。

個人每當我想我使用(基於AS400)與我們的JDE溝通:

前端

-.NET的Web API服務 〜C#的WinForms應用程式 -ASP.NET

後端

定製Dll業務邏輯和數據訪問層。

+0

你有什麼樣你可以分享?我剛剛開始調查JDE的9.1演示版本 – HGMamaci

1

迴應此舊帖子。希望這可以幫助有相似需求的人:

看看我們的產品Lynx Business Integrator。它是Oracle驗證的,它允許您使用C#在本地創建的集成流程,並將其作爲Web服務發佈。所以,你可以寫這樣的代碼:

private bool CallAddressBookBsfn(BusinessDocument businessDocument, Transaction transaction) 
{  
    AddressBookMaster abm = businessDocument.document.input.AddressBook; 

    // create an instance of the Address Book Master Business function 
    // note the use of JDE Transactions 
    AddressBookMasterMBF bsfn = new AddressBookMasterMBF(transaction); 

    // set parameters - most of this code is auto-generated 
    bsfn.DpmnAddressBookNumber.InValue = (long)abm.AddressNumber; 
    bsfn.DpszSearchType.InValue = abm.AddressType; 
    bsfn.DpszAlphaName.InValue = abm.Name; 
    bsfn.DpszAddressLine1.InValue = abm.AddressLine1; 
    bsfn.DpszAddressLine2.InValue = abm.AddressLine2; 
    bsfn.DpszAddressLine3.InValue = abm.AddressLine3; 
    bsfn.DpszAddressLine4.InValue = abm.AddressLine4; 
    bsfn.DpszPostalCode.InValue = abm.ZipCodePostal; 
    bsfn.DpszCity.InValue = abm.City; 
    bsfn.DpszState.InValue = abm.State; 
    bsfn.DpszCountry.InValue = abm.Country; 
    bsfn.DpcActionCode.InValue = 'A'; 
    bsfn.DpcUpdateMasterFile.InValue = '1'; 

    // execute the business function 
    if (bsfn.Execute() != BusinessFunctionResult.Success) 
    { 
    // get errors 
    return false; 
    } 

    // assign output 
    businessDocument.document.output.AddressNumber = bsfn.DpmnAddressBookNumber.OutValue; 
    businessDocument.document.output.AddressNumberSpecified = true; 
    return true; 
} 

看看我們的YouTube頻道在http://www.youtube.com/user/aelliuslynx和我們的產品頁面http://www.aellius.com/products/lynx-business-integrator

相關問題