Foxtable(狐表)用户栏目专家坐堂 → 控件判断出错


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

主题:控件判断出错

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


加好友 发短信
等级:童狐 帖子:265 积分:1837 威望:0 精华:0 注册:2012/11/6 17:17:00
控件判断出错  发帖心情 Post By:2013/3/25 10:09:00 [只看该作者]

我在文本框选择事件中写入代码:

 

Dim a As Row = Tables("售后出差申请").Current
Dim jl As WinForm.TextBox = e.Form.Controls("部门经理签名")
Dim rc As WinForm.TextBox = e.Form.Controls("审核日期")
Dim ss As WinForm.TextBox = e.Form.Controls("售后签名")
Dim ssrc As WinForm.TextBox = e.Form.Controls("售后审核日期")
Dim zf As WinForm.CheckBox = e.Form.Controls("转发工厂")
Dim sh As WinForm.PictureBox = e.Form.Controls("已审核")
Dim ph As WinForm.TextBox = e.Form.Controls("配合度")
Dim tj As WinForm.TextBox = e.Form.Controls("现场条件")
Dim yw As WinForm.TextBox = e.Form.Controls("我方义务")
Dim qt As WinForm.TextBox = e.Form.Controls("其它")
Dim mb As WinForm.TextBox = e.Form.Controls("完成目标")
Dim zy As WinForm.TextBox = e.Form.Controls("注意事项")
Dim w As DataRow = DataTables("员工表").Find("[部门] = '储运部'and  [职务] = '经理' ")
If jl.Value = ""  Then
    MessageBox.Show("部门经理未审核,您不能越过此流程","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
    If ss.Value <> ""  Then
        MessageBox.Show("此文件已经审核","审核",MessageBoxButtons.OK,MessageBoxIcon.Information)
    Else
        If w("姓名") = user.Name Then
            a("售后审核签名") = user.Name
            a("售后审核日期") = Date.Now
            sh.Image  = GetImage("已审核.jpg" )
            zf.ReadOnly =BooleanEnum.False
            ph.ReadOnly =BooleanEnum.False
            zf.BackColor = Color.Red
            tj.ReadOnly =BooleanEnum.False
            yw.ReadOnly =BooleanEnum.False
            qt.ReadOnly =BooleanEnum.False
            mb.ReadOnly =BooleanEnum.False
            zy.ReadOnly =BooleanEnum.False
        Else
            MessageBox.Show("非售后部门经理,您无权审核","提示",MessageBoxButtons.YesNo,MessageBoxIcon.Warning)
        End If
    End If
End If

 

目的是想让对应部门的对应人员才有权去签名审核。但报错...

 

报错为:


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

 

求解


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


加好友 发短信
等级:等待验证 帖子:3855 积分:20692 威望:0 精华:5 注册:2012/6/21 14:03:00
  发帖心情 Post By:2013/3/25 10:14:00 [只看该作者]

用户已被锁定

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


加好友 发短信
等级:童狐 帖子:265 积分:1837 威望:0 精华:0 注册:2012/11/6 17:17:00
  发帖心情 Post By:2013/3/25 10:21:00 [只看该作者]

原来是没找到数据,我晕.......小问题总是没留意到,谢谢muhua

 回到顶部