plose, etc.
This commit is contained in:
@@ -214,6 +214,7 @@ Public Class cPLOSE_Inv_Data
|
||||
|
||||
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
|
||||
Dim dtREohneDAID As DataTable = SQL.loadDgvBySql(REohneDAID, "FMZOLL")
|
||||
Dim jahrEnd = jahr.ToString.Substring(2, 2)
|
||||
|
||||
If dtREohneDAID.Rows.Count > 0 Then
|
||||
|
||||
@@ -229,19 +230,43 @@ Public Class cPLOSE_Inv_Data
|
||||
|
||||
If filename <> "" Then
|
||||
|
||||
|
||||
|
||||
filename2 = filename.Replace("-", "_")
|
||||
|
||||
|
||||
|
||||
If Regex.IsMatch(filename, "^[A-Za-z]") Then
|
||||
Dim match As Match = Regex.Match(filename, "\d+")
|
||||
If match.Success Then
|
||||
filename3 = filename.Substring(match.Index).Trim
|
||||
filename4 = filename.Replace("-", "_")
|
||||
End If
|
||||
End If
|
||||
|
||||
Dim daId As Integer = 0
|
||||
ElseIf filename.Contains("_dk") Then 'Sonderlogik Dänemark
|
||||
|
||||
filename3 = filename.Replace(jahrEnd & "-", jahrEnd)
|
||||
filename4 = filename.Replace(jahrEnd & "-", jahrEnd)
|
||||
|
||||
ElseIf filename.Contains("_fy") Then 'Sonderlogik Norwegen
|
||||
|
||||
Dim indexOfFirst_ = filename.IndexOf("_fy")
|
||||
If filename.Length > indexOfFirst_ + 5 Then
|
||||
Dim month = filename.Substring(indexOfFirst_ + 3, 2)
|
||||
If IsNumeric(month) Then
|
||||
Dim test = month.IndexOf(0)
|
||||
Dim monthWithoutLeadingZero As String = month
|
||||
If monthWithoutLeadingZero.IndexOf(0) = 0 Then monthWithoutLeadingZero = monthWithoutLeadingZero.Replace("0", "")
|
||||
filename3 = filename.Replace(jahrEnd & month, jahrEnd & monthWithoutLeadingZero)
|
||||
filename4 = filename.Replace(jahrEnd & month, jahrEnd & monthWithoutLeadingZero)
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
|
||||
End If
|
||||
|
||||
Dim daId As Integer = 0
|
||||
If filename3 = "" Then
|
||||
daId = CInt(SQL.getValueTxtBySql("Select top(1) isnull(da_id,0) FROM tblDatenarchiv WHERE da_KundenNr = 0 And da_kategorie = 'MDM' AND da_ordner='MDM_DATEN' AND da_uOrdner1= 'PLOSE' AND da_uOrdner2= '" & jahr & "' AND (da_name like '%" & filename & "' or da_name like '%" & filename2 & "')", "FMZOLL",,, 0))
|
||||
Else
|
||||
|
||||
Reference in New Issue
Block a user