Dim cmd As New SQLComm and
Dim dt As DataTable
cmd.ConnectionN ame = "2022"
cmd.CommandTex t = "SEL ECT * Fr om {系统_数据操作日志}"
wdt = cmd.Execut eReader(True)
If e.DataTable.Name <> "系统_数据操作日志" Then
If e.DataRow.RowState = 2 Then
Return
Else
Dim dr As DataRow = DataTables("系统_数据操作日志").AddNew
dr("ID") = e.DataRow("_Identify")
dr("用户") = _UserName
dr("涉及表") = e.DataTable.Name
dr("涉及列") = e.DataCol.Name
dr("涉及行") = e.DataRow("_Identify")
dr("日期") = Date.Now
dr("操作") = """" & e.OldValue & """ 改成了 """ & e.NewValue & """"
Dim str As String = ""
For Each c As DataCol In e.DataTable.DataCols
str += c.Name & "=" & e.DataRow(c.Name) & "|"
Next
dr("原行数据") = str
End If
End If