Foxtable(狐表)用户栏目专家坐堂 → 判断着色


  共有2204人关注过本帖树形打印复制链接

主题:判断着色

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


加好友 发短信
等级:幼狐 帖子:99 积分:852 威望:0 精华:0 注册:2015/6/19 14:35:00
判断着色  发帖心情 Post By:2016/6/6 11:58:00 [显示全部帖子]


图片点击可在新窗口打开查看此主题相关图片如下:1111.jpg
图片点击可在新窗口打开查看

If e.Row.IsNull("零件名称") = False Then
    If e.Row("车型") = "售后"  Then
        If e.Row("A点_供应商简称") = Nothing Then
            If e.Col.Name = "A点_供应商简称" Then
                e.Style = "到期"
            End If
        Else  If e.Row("A点_售后含税单价") = Nothing Then
            If e.Col.Name = "A点_售后含税单价" Then
                e.Style = "到期"
            End If
        Else  If e.Row("A点_合同编号") = Nothing Then
            If e.Col.Name = "A点_合同编号" Then
                e.Style = "到期"
            End If
        Else  If e.Row("A点占比") = "100"  Then
            If e.Row("A点_供应商简称") = Nothing Then
                If e.Col.Name = "A点_供应商简称" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_含税单价") = Nothing Then
                If e.Col.Name = "A点_含税单价" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_合同编号") = Nothing Then
                If e.Col.Name = "A点_合同编号" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_供应商简称") = Nothing Then
                If e.Col.Name = "A点_供应商简称" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_含税单价") = Nothing Then
                If e.Col.Name = "A点_含税单价" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_合同编号") = Nothing Then
                If e.Col.Name = "A点_合同编号" Then
                    e.Style = "到期"
                End If
                If e.Row("B点_供应商简称") = Nothing Then
                    If e.Col.Name = "B点_供应商简称" Then
                        e.Style = "到期"
                    End If
                Else  If e.Row("B点_含税单价") = Nothing Then
                    If e.Col.Name = "B点_含税单价" Then
                        e.Style = "到期"
                    End If
                Else  If e.Row("B点_合同编号") = Nothing Then
                    If e.Col.Name = "B点_合同编号" Then
                        e.Style = "到期"
                    End If
                End If
            End If
        End If
    End If
End If

怎么“非售后”都不能执行呢?


 回到顶部
帅哥哟,离线,有人找我吗?
260964006
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:99 积分:852 威望:0 精华:0 注册:2015/6/19 14:35:00
  发帖心情 Post By:2016/6/6 12:48:00 [显示全部帖子]

怎么修改上面的程序?谢谢,我有判断啊

 回到顶部
帅哥哟,离线,有人找我吗?
260964006
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:99 积分:852 威望:0 精华:0 注册:2015/6/19 14:35:00
  发帖心情 Post By:2016/6/6 14:56:00 [显示全部帖子]

If e.Row.IsNull("零件名称") = False Then
    If e.Row("车型") = "售后"  Then
        If e.Row.IsNull("A点_供应商简称") Then
            If e.Col.Name = "A点_供应商简称" Then
                e.Style = "到期"
            End If
        Else
            If e.Row.Isnull("A点_售后含税单价") Then
                If e.Col.Name = "A点_售后含税单价" Then
                    e.Style = "到期"
                End If
            Else If e.Row("A点_合同编号") = Nothing Then
                If e.Col.Name = "A点_合同编号" Then
                    e.Style = "到期"
                End If
            End If
        End  If
    Else
       
        If e.Row("A点占比") = "100"  Then
            If e.Row("A点_供应商简称") = Nothing Then
                If e.Col.Name = "A点_供应商简称" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_含税单价") = Nothing Then
                If e.Col.Name = "A点_含税单价" Then
                    e.Style = "到期"
                End If
            Else  If e.Row("A点_合同编号") = Nothing Then
                If e.Col.Name = "A点_合同编号" Then
                    e.Style = "到期"
                End If
            End If
        End  If
    Else If e.Row("A点_供应商简称") = Nothing Then
        If e.Col.Name = "A点_供应商简称" Then
            e.Style = "到期"
        End If
    Else  If e.Row("A点_含税单价") = Nothing Then
        If e.Col.Name = "A点_含税单价" Then
            e.Style = "到期"
        End If
    Else  If e.Row("A点_合同编号") = Nothing Then
        If e.Col.Name = "A点_合同编号" Then
            e.Style = "到期"
        End If
        If e.Row("B点_供应商简称") = Nothing Then
            If e.Col.Name = "B点_供应商简称" Then
                e.Style = "到期"
            End If
        Else  If e.Row("B点_含税单价") = Nothing Then
            If e.Col.Name = "B点_含税单价" Then
                e.Style = "到期"
            End If
        Else  If e.Row("B点_合同编号") = Nothing Then
            If e.Col.Name = "B点_合同编号" Then
                e.Style = "到期"
            End If
        End If
    End If
End If

               错误。


 回到顶部