Я попробовал приведенный ниже код, но он всегда ничего не возвращает, он должен ввести
Protected Function GetTotalDebitAmount(ByRef roEntryDetailRecordBaseList As List(Of PPDEntryDetailRecord)) As String
Dim iTotal As Integer = 0
If Me.BatchHeaderRecord.ServiceClassCode = Convert.ToString(CInt(ServiceClassCodes.EntriesMixedDebitsAndCredits)) Then
For Each oEntryDetailRecord As PPDEntryDetailRecord In roEntryDetailRecordBaseList
If CBool(Array.IndexOf([Enum].GetValues(GetType(TransactionCodes.Debits)), CInt(oEntryDetailRecord.TransactionCode)) > 0) Then
iTotal += CInt(oEntryDetailRecord.Amount)
End If
Next
End If
Return CStr(iTotal)
End Function
Мне нужен кто-то, кто оценивает часть ниже:
If CBool(Array.IndexOf([Enum].GetValues(GetType(TransactionCodes.Debits)), CInt(oEntryDetailRecord.TransactionCode)) > 0) Then
Спасибо.