Foxtable(狐表)用户栏目专家坐堂 → 两个sql表,审批的问题?


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

主题:两个sql表,审批的问题?

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


加好友 发短信
等级:超级版主 帖子:107135 积分:544918 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/9/19 9:00:00 [显示全部帖子]

If e.DataCol.name = "审批" Then
  e.DataRow.save
  dim c1 as integer = e.datatable.sqlcompute("count(审批)", "审批=1 and 编号='" & e.DataRow("编号") & "'")
  dim c2 as integer = e.datatable.sqlcompute("count(审批)", "编号='" & e.DataRow("编号") & "'")
    Dim pr As DataRow = datatables("财务_Table2").find("编号='" & e.DataRow("编号") & "'")
    If pr IsNot Nothing Then
        pr("审批") = (c1 = c2)
    End If
End If

 回到顶部