Dim cmb As WinForm.ComboBox = e.Sender
Dim str As String = e.Form.Controls("商品编号").Value
Dim sl As Double = e.Form.Controls("数量").Value
cmb.ComboList = DataTables("商品库存明细").GetComboListString("货格", "货品编号 = '" & str & "'and 可用库存 > '" & sl & " '")
我之前做的是,在商品库存明细中取得 货格的不重复值,后来数据格式变化了,一个货格里可能有n个批次,每个批次在明细中是一行 在人工选择该货格 只会选中其中一行,选不了该货格其他行。
现在的效果是
OW-01-03-B
CW-02-03-B
预期的效果是
OW-01-03-B 16
OW-01-03-B 5
CW-02-03-B 3
CW-02-03-B 6
CW-02-03-B 14
CW-02-03-B 2
货格 可用库存
请问是要怎样做