Foxtable(狐表)用户栏目专家坐堂 → [求助]麻烦大侠给翻译下,我迷糊了!


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

主题:[求助]麻烦大侠给翻译下,我迷糊了!

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


加好友 发短信
等级:小狐 帖子:371 积分:3120 威望:0 精华:0 注册:2013/7/13 15:49:00
[求助]麻烦大侠给翻译下,我迷糊了!  发帖心情 Post By:2014/5/2 19:05:00 [只看该作者]

If e.Table.Current IsNot Nothing Then
    If Forms("营业报账").Opened Then
        If user.Name = e.Table.Current("业务负责") Then
            If Tables("利润单.利润明细单").Current.isnull("账单编号") =  False  Then
                Dim b As WinForm.Button = Forms("营业报账").Controls("删除利润单按键")
                Dim d As WinForm.Button = Forms("营业报账").Controls("删除利润明细按键")
                Select Case e.Table.Current("订单状态")
                    Case "1-新增订单"
                        b.Enabled = True
                        d.Enabled = True
                    Case Else
                        b.Enabled = False
                        d.Enabled = False
                End Select
            End If
        End If
    End If
End If

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


加好友 发短信
等级:七尾狐 帖子:1731 积分:11255 威望:0 精华:0 注册:2011/12/15 22:06:00
  发帖心情 Post By:2014/5/2 19:09:00 [只看该作者]

以下是引用viking在2014-5-2 19:05:00的发言:
If e.Table.Current IsNot Nothing Then '判断当前表当前行是否存在
    If Forms("营业报账").Opened Then '判断这个窗口是否打开
        If user.Name = e.Table.Current("业务负责") Then '判断登陆用户是否是当前行的负责人
            If Tables("利润单.利润明细单").Current.isnull("账单编号") =  False  Then  '判断账单编号是不是空值,不是空值则继续
                Dim b As WinForm.Button = Forms("营业报账").Controls("删除利润单按键")     '定义变量引用两个按钮
                Dim d As WinForm.Button = Forms("营业报账").Controls("删除利润明细按键")
                Select Case e.Table.Current("订单状态")   '判断订单状态
                    Case "1-新增订单" '  当为这个状态时,两个按钮可用,否则不可用
                        b.Enabled = True
                        d.Enabled = True
                    Case Else
                        b.Enabled = False
                        d.Enabled = False
                End Select
            End If
        End If
    End If
End If


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


加好友 发短信
等级:小狐 帖子:371 积分:3120 威望:0 精华:0 注册:2013/7/13 15:49:00
  发帖心情 Post By:2014/5/3 10:48:00 [只看该作者]

也就是说:当前登录时业务负责 时, 账单编号 不是空值 且 订单状态为 新增订单  时  两个按钮可用?


 回到顶部