new
This commit is contained in:
@@ -47,13 +47,13 @@ Public Class cProgrammeUpdate
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
While dr.Read
|
||||
Dim UD As New cProgrammeUpdate
|
||||
For Each l In cProgrammeUpdate.getParameterList(UD)
|
||||
Dim propInfo As PropertyInfo = UD.GetType.GetProperty(l.Scalarvariable)
|
||||
For Each li In cProgrammeUpdate.getParameterList(UD)
|
||||
Dim propInfo As PropertyInfo = UD.GetType.GetProperty(li.Scalarvariable)
|
||||
|
||||
If dr.Item(l.Text) Is DBNull.Value Then
|
||||
If dr.Item(li.Text) Is DBNull.Value Then
|
||||
propInfo.SetValue(UD, Nothing)
|
||||
Else
|
||||
propInfo.SetValue(UD, dr.Item(l.Text))
|
||||
propInfo.SetValue(UD, dr.Item(li.Text))
|
||||
End If
|
||||
|
||||
Next
|
||||
@@ -123,8 +123,8 @@ Public Class cProgrammeUpdate
|
||||
|
||||
|
||||
Public Shared Function isNewFile(ByRef file As VERAG_PROG_ALLGEMEIN.cProgrammeUpdate, LIST_DEST As List(Of VERAG_PROG_ALLGEMEIN.cProgrammeUpdate)) As Boolean
|
||||
For Each l In LIST_DEST
|
||||
If l.pud_filePathFolder = file.pud_filePathFolder And l.pud_fileName = file.pud_fileName And l.pud_file_Size = file.pud_file_Size And l.pud_file_Date = file.pud_file_Date Then
|
||||
For Each li In LIST_DEST
|
||||
If li.pud_filePathFolder = file.pud_filePathFolder And li.pud_fileName = file.pud_fileName And li.pud_file_Size = file.pud_file_Size And li.pud_file_Date = file.pud_file_Date Then
|
||||
Return False
|
||||
End If
|
||||
Next
|
||||
@@ -132,8 +132,8 @@ Public Class cProgrammeUpdate
|
||||
End Function
|
||||
|
||||
Public Shared Function isOldFile(ByRef file As VERAG_PROG_ALLGEMEIN.cProgrammeUpdate, LIST_SOURCE As List(Of VERAG_PROG_ALLGEMEIN.cProgrammeUpdate)) As Boolean
|
||||
For Each l In LIST_SOURCE
|
||||
If l.pud_filePathFolder = file.pud_filePathFolder And l.pud_fileName = file.pud_fileName And l.pud_file_Size = file.pud_file_Size And l.pud_file_Date = file.pud_file_Date Then
|
||||
For Each li In LIST_SOURCE
|
||||
If li.pud_filePathFolder = file.pud_filePathFolder And li.pud_fileName = file.pud_fileName And li.pud_file_Size = file.pud_file_Size And li.pud_file_Date = file.pud_file_Date Then
|
||||
Return False
|
||||
End If
|
||||
Next
|
||||
|
||||
Reference in New Issue
Block a user