-- 作者:大红袍
-- 发布时间:2016/4/27 20:56:00
--
Select Case e.DataCol.Name Case "商品编号", "报价等级", "QTY" Dim fdr As DataRow = DataTables("表B").Find("商品编号 = \'" & e.DataRow("商品编号") & "\' and 等级 = \'" & e.DataRow("等级") & "\' And 从量K <= " & e.DataRow("QTY") & " And 置量K > " & e.DataRow("QTY")) If fdr IsNot Nothing Then e.DataRow("cutting") = fdr("切工费") End If End Select