我正在使用Visual Studio中的VB.NET查询我的发票。我获得了一份感兴趣的发票清单,并在遍历列表时发现对于每张发票,invoice.ORInvoiceLineRetList都是空的。以下是一段代码片段,尽管我认为我做得完全正确?
resp = SessMgr.DoRequests(msgReq)
resplist = resp.ResponseList
curResp = resplist.GetAt(0)
If curResp.StatusCode = 0 Then
Dim invoiceList As IInvoiceRetList = curResp.Detail
Dim curInvoice As IInvoiceRet
Dim i As Integer
For i = 0 To invoiceList.Count - 1
curInvoice = invoiceList.GetAt(i)
如果我在最后一行断点,我可以看到curInvoice和它的数据(例如refnumber),但我需要到达每行项目。 有人能帮忙吗? 谢谢, Jerry