Select Case e.Col.Name Case "物料名称", "规格型号" Dim dr As Row = Table("辅料表").find ("[物料名称]=\'" & e.Row("物料名称") & "\' and [规格型号] =\'" & e.Row("规格型号") & "\',"[_SortKey] Desc" ) If dr.Row("安全库存") > dr.Row("库存数量") Then e.Style = "安全库存" End If End Select
Select Case e.Col.Name Case "库存数量" If e.Row("安全库存") > e.Row("库存数量") Then e.Style = "安全库存" End If End Select