技术支持总表 列名有:经销商 终端客户
datacolchangling 事件:
If e.DataCol.name="终端客户" Then
Dim dr As DataRow = DataTables("客户黑名单").find("终端客户='" & e.newValue & "'")
If dr IsNot Nothing Then
e.cancel=true
End If
End If
If e.DataCol.name="经销商" Then
Dim dr As DataRow = DataTables("客户黑名单").find("经销商='" & e.newValue & "'")
If dr IsNot Nothing Then
e.cancel=true
End If
End If
检测维修单 列名有:终端客户
datacolchangling 事件:
If e.DataCol.name="终端客户" Then
Dim dr As DataRow = DataTables("客户黑名单").find("终端客户='" & e.newValue & "'")
If dr IsNot Nothing Then
e.cancel=true
End If
End If
黑名单列名有: 经销商 终端客户
录入窗口的时候,选择黑名单中有的终端客户或者经销商里面的名称,仍然可以录入成功。
e.cancel=flase 也不好使