Select Case e.DataCol.Name
Case "工序1完成人", "工序2完成人", "工序3完成人", "工序4完成人", "工序5完成人", "工序6完成人", "工序7完成人", "工序8完成人", "工序9完成人"
e.DataRow.save
Dim st1 As String = e.DataCol.Name
Dim st3 As String
Dim st4 As String
st3 = st1.substring(0, 3) & "完成日期"
st4 = st1.substring(0, 3) & "完成年月"
If e.DataRow.isnull(e.DataCol.Name) Then
e.DataRow(st3) = Nothing
e.DataRow(st4) = Nothing
Else
If e.DataRow.isnull(st1) = False Then
If e.DataRow.isnull(st3) Then
e.DataRow(st3) = Date.today
End If
Else
e.DataRow(st3) = Nothing
e.DataRow(st4) = Nothing
End If
End If
e.DataRow.save
End Select
老师,上面代码老是出现 “name 参数不能为空” 的提示,请问是哪里的问题呢?谢谢。