Foxtable(狐表)用户栏目专家坐堂 → 全局表DrawCell代码部分失效,怎么解决


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

主题:全局表DrawCell代码部分失效,怎么解决

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/12/1 14:14:00 [显示全部帖子]

 If e.Table.Name = "当月二保" Then
    '代码
    If e.Col.Name = "靠挂费日期" AndAlso e.Row.Isnull(e.Col.Name) = False Then
        e.Text = Format(e.Row(e.Col.Name), "yyyy-MM")       
    End If
    If e.Col.Name = "靠挂费日期" Then
        Dim d1 As Date = e.Row("靠挂费日期")
        Dim d2 As Date = e.Row("应维护日期")
        If Format(d1,"yyyyMM") > Format(d2, "yyyyMM") Then
            e.Text = Nothing
        End If      
    End If
End If


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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/12/1 14:30:00 [显示全部帖子]

If e.Table.Name = "当月二保" Then
    '代码
    If e.Col.Name = "靠挂费日期" Then
       
        Dim d1 As Date = e.Row("靠挂费日期")
        Dim d2 As Date = e.Row("应维护日期")
        If Format(d1,"yyyyMM") > Format(d2, "yyyyMM") Then
            e.Text = Nothing
        Else
            If e.Row.Isnull(e.Col.Name) = False Then
                e.Text = Format(e.Row(e.Col.Name), "yyyy-MM")
            End If
        End If
    End If
End If

 回到顶部