Foxtable(狐表)用户栏目专家坐堂 → 单列设置可显示数据标记,多列设置不体现?错哪?


  共有3540人关注过本帖平板打印复制链接

主题:单列设置可显示数据标记,多列设置不体现?错哪?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107680 积分:547721 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2023/1/31 16:27:00 [只看该作者]

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
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

 回到顶部