Tables("TabPN").OpenLoadTree("Status|InDate Y|CustomerName|PNType",200,30,True)
For Each a As OBJECT In Tables("TabPN").grid.Parent.controls
For Each b As OBJECT In a.controls
If B.text = "加载树" Then
Dim tr = b.controls(0).controls(0).controls("tr")
For Each nd As object In tr.nodes
For Each cnd As object In nd.nodes
cnd.text = cnd.name & "年"
Next
If nd.text = "已完工" Then
nd.text = "所有【已完结】订单"
ElseIf nd.text = "生产中" Then
nd.text = "所有【生产中】订单"
End If
Next
End If
Next
Next