Foxtable(狐表)用户栏目专家坐堂 → 晕死了,升级后程序代码出错


  共有3937人关注过本帖平板打印复制链接

主题:晕死了,升级后程序代码出错

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


加好友 发短信
等级:五尾狐 帖子:1195 积分:7046 威望:0 精华:0 注册:2013/3/4 18:02:00
晕死了,升级后程序代码出错  发帖心情 Post By:2013/8/24 18:25:00 [只看该作者]

仔细检查了,之前登录没有问题,也没有改变任何代码...

出错代码如下

 


图片点击可在新窗口打开查看此主题相关图片如下:qq图片20130824182351.jpg
图片点击可在新窗口打开查看
Dim dr As DataRow
Dim Ok As Boolean
Dim zhanghao As String = e.Form.Controls("账号1").Value
Dim mima As String = e.Form.Controls("密码1").Value
If zhanghao = Nothing Then
    MessageBox.Show("请输入您的登录账号!", "错误提示!",MessageBoxButtons.OK,MessageBoxIcon.Information)
    e.Cancel = True
ElseIf mima = Nothing Then
    MessageBox.Show("请输入您的登录密码!", "错误提示!",MessageBoxButtons.OK,MessageBoxIcon.Information)
    e.Cancel = True
Else
    DataTables("用户表").LoadFilter= "[ID] = '" & zhanghao & "'"
    DataTables("用户表").Load
    dr = DataTables("用户表").Find("[ID] = '" & zhanghao & "'")
    If dr Is Nothing Then
        Messagebox.show("登陆账号和密码不一致!","错误提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
        e.Cancel = True
    ElseIf dr("密码") <> MD5Encrypt(mima) Then
        Messagebox.show("登陆账号和密码不一致!","错误提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
        e.Cancel = True
    ElseIf dr("离职") = True Then
        Messagebox.show("该账号已经被锁定,禁止登录!","错误提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
        e.Cancel = True
    ElseIf dr("ID")="FS0000"
        Dim n As WinForm.TextBox = e.Form.Controls("账号1")
        SaveConfigValue("Username",n.Text)
        basemainform.visible=False
        e.Form.close
    Else
        Dim n As WinForm.TextBox = e.Form.Controls("账号1")
        SaveConfigValue("Username",n.Text)
        e.Form.BaseForm.Hide()
        e.Form.close
        Forms("主界面").Open()
    End If
End If

 回到顶部