-- 如何实现全选中导入
如何实现当前窗口“产品”表的数据全选,并仅对当前窗口全选的数据批量导入 "B明细表"?
下面代码,是手工选单条,执行单条导入,如何实现上面需求:
Dim t As Table = e.Form.Controls("产品").Table
For k As Integer = t.TopRow To t.BottomRow
Dim r As Row = t.Rows(k)
If r("选中") = True Then
Dim nma() As String = {"产品编号","产品名称"}
Dim nmb() As String = {"产品编号","产品名称"}
Dim dr As Row = Tables("B明细表").AddNew
For i As Integer = 0 To nma.Length - 1
dr(nmb(i)) = r(nma(i))
Next
End If
Next