Foxtable(狐表)用户栏目专家坐堂 → list中的模糊查询


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

主题:list中的模糊查询

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


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

'' 关于离退休部门的验证

If r("离退休部门") <> Nothing Then
    r("离退休部门") =r("离退休部门").Replace(" ","")
    If cstr(r("离退休部门")).length > 30 Then
        r.DataRow.SetError("离退休部门 ", "离退休部门长度不允许超过30")
        r.DataRow("标记")=1
    Else
        Dim dep As DataRow = DataTables("depList").find("depName like '%" & r("离退休部门") & "%' and organName = '" & _UserOrgan & "'")
        If dep IsNot Nothing Then
            r.DataRow.SetError("离退休部门", "请先录入该部门")
            r.DataRow("标记")=1
        End If
    End If
Else
    r.DataRow.SetError("离退休部门", "离退休部门不允许为空")
    r.DataRow("标记")=1
End If


 回到顶部