If e.DataCol.Name = "介质名称" Then
If e.NewValue Is Nothing Then
e.DataRow("介质名称英文") = Nothing
Else
Dim dr As DataRow
dr = DataTables("泵电机参数").Find("[介质名称] = \'" & e.NewValue & "\'")
If dr IsNot Nothing
e.DataRow("介质名称英文") = dr("介质名称英文")
End If
End If
End If
If e.DataCol.Name = "螺杆数量" Then
If e.NewValue Is Nothing Then
e.DataRow("螺杆轴数量英文") = Nothing
e.DataRow("螺杆轴数量代码") = Nothing
Else
Dim dr As DataRow
dr = DataTables("泵电机参数").Find("[螺杆轴数量] = \'" & e.NewValue & "\'")
If dr IsNot Nothing
e.DataRow("螺杆轴数量英文") = dr("螺杆轴数量英文")
e.DataRow("螺杆轴数量代码") = dr("螺杆轴数量代码")
End If
End If
End If
If e.DataCol.Name = "压力范围" Then
If e.NewValue Is Nothing Then
e.DataRow("压力范围英文") = Nothing
e.DataRow("压力范围代码") = Nothing
Else
Dim dr As DataRow
dr = DataTables("泵电机参数").Find("[压力范围] = \'" & e.NewValue & "\'")
If dr IsNot Nothing
e.DataRow("压力范围英文") = dr("压力范围英文")
e.DataRow("压力范围代码") = dr("压力范围代码")
End If
End If
End If