Foxtable(狐表)用户栏目专家坐堂 → if else endif


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

主题:if else endif

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


加好友 发短信
等级:五尾狐 帖子:1182 积分:8225 威望:0 精华:0 注册:2015/3/30 10:44:00
if else endif  发帖心情 Post By:2017/9/4 10:56:00 [只看该作者]

If Forms("BUG测试查询系统").Opened Then
    Dim rr As Row = Tables("BUG录入表").Current
    If rr("提交人邮箱") = user.name Then
        Select Case rr("状态")
            Case "已更新","已解决","未解决"
                Forms("BUG测试查询系统").Controls("已解决").Enabled =True
                Forms("BUG测试查询系统").Controls("未解决").Enabled =True
            Else
                Forms("BUG测试查询系统").Controls("已解决").Enabled =False
                Forms("BUG测试查询系统").Controls("未解决").Enabled =False
        End Select
    Else
        Forms("BUG测试查询系统").Controls("已解决").Enabled =False
        Forms("BUG测试查询系统").Controls("未解决").Enabled =False
    End If
    If  rr.isnull("附件目录") Then
        Forms("BUG测试查询系统").Controls("附件下载界面").Enabled =False
    Else
        Forms("BUG测试查询系统").Controls("附件下载界面").Enabled =True
    End If
    
    If user.IsRole("测试switch")  Or user.IsRole("测试IEswitch")  Or user.IsRole("测试pon")  Or user.IsRole("测试route") Or user.IsRole("测试部经理") Then
        e.Form.Controls("另指高人").Enabled = True
        e.Form.Controls("请选择高人").Enabled = True
    Else
        e.Form.Controls("另指高人").Enabled = False
        e.Form.Controls("请选择高人").Enabled = False
    End If
End If

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



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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/9/4 11:05:00 [只看该作者]

If Forms("BUG测试查询系统").Opened Then
    Dim rr As Row = Tables("BUG录入表").Current
    If rr("提交人邮箱") = user.name Then
        Select Case rr("状态")
            Case "已更新","已解决","未解决"
                Forms("BUG测试查询系统").Controls("已解决").Enabled =True
                Forms("BUG测试查询系统").Controls("未解决").Enabled =True
            case Else
                Forms("BUG测试查询系统").Controls("已解决").Enabled =False
                Forms("BUG测试查询系统").Controls("未解决").Enabled =False
        End Select
    Else
        Forms("BUG测试查询系统").Controls("已解决").Enabled =False
        Forms("BUG测试查询系统").Controls("未解决").Enabled =False
    End If
    If  rr.isnull("附件目录") Then
        Forms("BUG测试查询系统").Controls("附件下载界面").Enabled =False
    Else
        Forms("BUG测试查询系统").Controls("附件下载界面").Enabled =True
    End If
   
    If user.IsRole("测试switch")  Or user.IsRole("测试IEswitch")  Or user.IsRole("测试pon")  Or user.IsRole("测试route") Or user.IsRole("测试部经理") Then
        e.Form.Controls("另指高人").Enabled = True
        e.Form.Controls("请选择高人").Enabled = True
    Else
        e.Form.Controls("另指高人").Enabled = False
        e.Form.Controls("请选择高人").Enabled = False
    End If
End If

 回到顶部