Foxtable(狐表)用户栏目专家坐堂 → 怎么实现时间和凭证号相同条件下的数据uuid全部赋值为一样 凭证编号按时间和凭证号相同的前提下 从01依次开始编号


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

主题:怎么实现时间和凭证号相同条件下的数据uuid全部赋值为一样 凭证编号按时间和凭证号相同的前提下 从01依次开始编号

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


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

For Each Product As String() In DataTables("凭证明细").GetValues("时间|凭证号")
        Dim a2 As DataRow=DataTables("凭证号").Find("时间='" & Product(0) & "'and 凭证号='" & Product(1) & "'")
        If a2 IsNot Nothing Then
dim idx as integer = 1
    For Each dr as datarow in DataTables("凭证明细").select("时间='" & Product(0) & "' and 凭证号='" & Product(1) & "'")
        dr("uuid")=a2("uuid")    
dr("凭证遍号")=idx 
idx += 1
    Next     
        End If
Next

 回到顶部