Foxtable(狐表)用户栏目专家坐堂 → 请教高手关于CurrentChanged的问题


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

主题:请教高手关于CurrentChanged的问题

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


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

e.Form 改成 Forms("监造周报窗口")


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


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

第二点:判断一下 If e.Table.Current IsNot Nothing Then

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


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

If Forms("周报").Opened Then

    If e.Table.Current IsNot Nothing Then

        Dim fm1 As WinForm.FileManager = Forms("周报").Controls("FileManager1")

        'Dim fm2 As WinForm.FileManager = Forms("周报").Controls("FileManager2")

        'Dim fm3 As WinForm.FileManager = Forms("周报").Controls("FileManager3")

        Dim fm As WinForm.PictureViewer = Forms("周报").Controls("PictureViewer1")

        If e.Table.Current.IsNull("审核") = False  Then '如果周报已经审批

            fm1.AddCommand.Visible = False

            'fm2.AddCommand.Visible = False

            'fm3.AddCommand.Visible = False

            fm.AddCommand.Visible = False

            fm1.DeleteCommand.Visible = False

'            fm2.DeleteCommand.Visible = False

            'm3.DeleteCommand.Visible = False

            fm.DeleteCommand.Visible = False

            fm1.ClearCommand.Visible = False

'           fm2.ClearCommand.Visible = False

'           fm3.ClearCommand.Visible = False

            fm.ClearCommand.Visible = False

        Else

            fm1.AddCommand.Visible = True

'           fm2.AddCommand.Visible = True

 '          fm3.AddCommand.Visible = True

            fm.AddCommand.Visible = True

           fm1.DeleteCommand.Visible = True

'           fm2.DeleteCommand.Visible = True

'           fm3.DeleteCommand.Visible = True

            fm.DeleteCommand.Visible = True

        End If

    End If

End If


 回到顶部