Select Case e.DataCol.name Case "是否执行" Dim dr As DataRow = DataTables("采购订单").Find("订单编号 = '" & e.DataRow("订单编号") & "'")
If dr IsNot Nothing Then Dim drs = DataTables("入库").Select("订单编号 = '" & e.DataRow("订单编号") & "'") Dim flag As Boolean = True For Each r As DataRow In drs If r("是否执行") = False Then flag = False Exit For End If Next dr("是否执行") = flag end if End Select