This commit is contained in:
2023-01-18 08:26:42 +01:00
4 changed files with 39 additions and 11 deletions

View File

@@ -972,6 +972,10 @@ Public Class usrCntlMDMAuswertungen
MsgBox("Update erfolgreich.")
End If
End Sub
Private Sub UsrCntlMSE_KonvertCSV1_Load(sender As Object, e As EventArgs) Handles UsrCntlMSE_KonvertCSV1.Load
End Sub
End Class
Class cMDMAuswertung

View File

@@ -23,14 +23,37 @@ Public Class usrCntlMSE_KonvertCSV
Do
a = reader.ReadLine
If a IsNot Nothing AndAlso a.Contains(";") Then
Dim split = a.Split(";")
If split.Count >= 42 Then
'======================================================================
'Konvertierung RG-NR Format:
'======================================================================
If split.Count > 42 Then
If cnt > 0 Then split(2) = split(42)
split(42) = Nothing
Dim Ergebnis As String = String.Join(";", split)
writer.WriteLine(Ergebnis)
End If
'======================================================================
'HU-GO CardNr; Leistung 22
'======================================================================
If split.Count > 16 And cnt > 0 Then
If split(15) = "22" Then 'HU-GO
If split(14).Contains("Charge - HU-GO SIM card fee '") Then 'HU-GO
If split(14).Contains("'") Then
Dim splitHuGo = split(14).Split("'") '--> Bezeichnung / Card Nummer auslesen
If splitHuGo.Count >= 2 Then
split(17) = "'" & splitHuGo(1) & "'" '--> Card Nummer in Spalte
split(14) = splitHuGo(0).Trim '--> Bezeichnung in Spalte
End If
End If
End If
End If
End If
Dim Ergebnis As String = String.Join(";", split)
writer.WriteLine(Ergebnis)
cnt += 1
End If
Loop Until a Is Nothing