以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]求教代码改写  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=184858)

--  作者:xubing051018
--  发布时间:2023/1/10 17:19:00
--  [求助]求教代码改写
有个需求要跟其他系统对接取数,对方提供了API代码示例
ApiClient client = new ApiClient("https://ddxxxww.ik3cloud.com/K3Cloud/");
bool result = client.Login("27890909890909123679", "admin", "******", 2052);
    if (result)
    {
        string apiParam="{"ReportType":1,"ReportNumber":"BBMB0045","AcctSystemNumber":"KJHSTX01_SYS","OrgNumber":"103","AcctPolicyNumber":"KJZC02_SYS","CurrencyNumber":"PRE001","CurrUnitNumber":"JEDW01_SYS","CycleType":4,"Year":2021,"Period":3,"DataType":"Excel","ResultType":1"}";
        var reportData = client.Execute<string>("Kingdee.BOS.KDS.ServiceFacade.ServicesStub.KDSReportAPIStub.GetReportData, Kingdee.BOS.KDS.ServiceFacade.ServicesStub",new string[] { apiParam });
        Console.Write(reportData);
    }

请教下怎么改写成ft的代码, 

--  作者:有点蓝
--  发布时间:2023/1/10 17:27:00
--  
如果是C#代码,转换为vb参考:http://converter.telerik.com/