Dim r As Row = Tables("半成品").Current
If r IsNot Nothing then
Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1") trv.BuildTree("合同信息","合同公司","计划号 = '" & r("计划号") & "' And 材质 = '" & r("材质") & "' ")
End If