If e.Col.IsNumeric AndAlso e.Col.Name = "环境_温度" Then
If e.Row.IsNull(e.Col.Name) = False Then'且该列已经输入内容
If e.Row(e.Col.Name) < 19 Then '如果该列的值小于19
e.Style = "温低" '那么用"温低"样式绘制单元格
ElseIf e.Row(e.Col.Name) > 21 Then '如果单元格的值大于21
e.Style = "温高" '那么用"温高"样式绘制单元格
End If
End If
If e.Col.IsNumeric AndAlso e.Col.Name = "密度1_第一次_水槽水温" Then
If e.Row.IsNull(e.Col.Name) = False Then
If e.Row(e.Col.Name) < 19 Then
e.Style = "水温低"
ElseIf e.Row(e.Col.Name) > 21 Then
e.Style = "水温高"
End If
End If
End If
End If