之前模块维护人邮箱列值为空,现在怀疑模块有值,同时模块维护人邮箱也有值了。也就说说模块维护人邮箱的值变动了,那么应该在技术支持信息表,取出对应的手机号码。可实际上红色代码没执行。
If e.DataCol.Name = "怀疑模块" Then
Dim nms() As String = {"模块维护人","模块维护人邮箱","研发组长","研发组长邮箱","研发组名","研发部门"}
If e.NewValue Is Nothing Then
For Each nm As String In nms
e.DataRow(nm) = Nothing
Next
Else
Dim dr As DataRow
dr = DataTables("模块名称库").Find("[模块名称] = '" & e.NewValue & "'")
If dr IsNot Nothing
Systemready = False
For Each nm As String In nms
e.DataRow(nm) = dr(nm)
Next
Systemready = True
msgbox(e.DataRow("模块维护人邮箱"))
End If
End If
End If
If e.DataCol.Name = "模块维护人邮箱" Then
If e.NewValue Is Nothing Then
e.DataRow("研发分机号") = Nothing
Else
Dim dr As DataRow
dr = DataTables("技术支持信息表").Find("[name] = '" & e.NewValue & "'")
If dr IsNot Nothing
msgbox(1)
Systemready = False
e.DataRow("研发分机号") = dr("手机号码")
Systemready = True
msgbox(e.DataRow("研发分机号"))
End If
End If
End If