Dim cmb As WinForm.ComboBox
cmb = e.form.Controls("ComboBox1")
Dim dr As DataRow = DataTables("销售发货").DataRows("客户代码")
\'Dim vs = DataTables("销售订单").getValues("订单单号", "[客户简称] = \'" & e.rows("客户简称") & "\'", "订单单号 desc")
Dim vs = DataTables("销售订单").getValues("订单单号", "[客户代码] = \'dr\' ", "订单单号 desc")
Dim ls As new List(of String)
‘订单单号数量限定
For Each v As String In vs
If ls.count >= 50 Then Exit For
ls.add(v)
Next
e.form.Controls("ComboBox1").Combolist = String.Join("|", ls.ToArray)