Foxtable(狐表)用户栏目专家坐堂 → 帮忙看看代码那错了?


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

主题:帮忙看看代码那错了?

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


加好友 发短信
等级:狐神 帖子:5015 积分:25363 威望:0 精华:0 注册:2015/8/18 9:21:00
  发帖心情 Post By:2016/7/9 8:55:00 [只看该作者]

If e.DataCol.Name = "是否" AndAlso e.DataRow("是否") = True Then
    Dim count As Integer = DataTables("财务").compute("count(_Identify)", "付款方式 = '" & e.DataRow("付款方式") & "' and 编号 = '" & e.DataRow("编号") & "'")
    If count > 1 Then
        msgbox("不能新增")
return
    End If
    Dim nma() As String = {"派工id"} 'A表数据来源列
    Dim nmb() As String = {"编号"} 'B表数据接收列
    Dim dr As DataRow = DataTables("财务").AddNew
    For i As Integer = 0 To nma.Length - 1
        dr(nmb(i)) = e.DataRow(nma(i))
    Next
End If

 回到顶部
总数 15 1 2 下一页