Dim cmb7 As WinForm.ComboBox = e.Form.Controls("ComboBox7") Dim tb As Table = Tables(e.Form.Name & "_Table1") tb.DataTable.DataCols.Add("下浮率_风险控制价",Gettype(Double)) For Each dr As Row In tb.Rows Dim fdr As DataRow = DataTables("招标信息").Find("系统编号 = '" & dr("系统编号") & "'") If cmb7.Value = "风险控制价" Then dr("下浮率_风险控制价") = IIF(fdr.IsNull("风险控制价"),Nothing,(dr("投标报价") - fdr("风险控制价")) / fdr("风险控制价")) End If Next
|