Foxtable(狐表)用户栏目专家坐堂 → 不重复转换的问题


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

主题:不重复转换的问题

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/5/3 14:53:00 [显示全部帖子]

Dim cs() As String = {"校对程序_校对","审核程序_审核","批准程序_批准"}
Dim r As Row = Tables("表E").Current
For Each c As String In cs
    If r.IsNull(c) = False Then
        Dim st() As String = r(c).Split(",")
        For Each s As String In st
            Dim nr As Row
            Dim idx As Integer = Tables("表E审批").FindRow("审批流程='" & s & "'")
            If idx >= 0 Then
                nr = Tables("表E审批").rows(idx)
            Else
                nr = Tables("表E审批").addnew
            End If
            nr("审批流程") = c
            nr("审批人员") = s
        Next
    End If
Next

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/5/3 15:14:00 [显示全部帖子]

Dim cs() As String = {"校对程序_校对","审核程序_审核","批准程序_批准"}
Dim r As Row = Tables("表E").Current
For Each c As String In cs
    If r.IsNull(c) = False Then
        Dim st() As String = r(c).Split(",")
        For Each s As String In st
            Dim nr As Row
            Dim idx As Integer = Tables("表E审批").FindRow("审批流程='" & c & "' and 审批人员 = '" & s & "'")
            If idx >= 0 Then
                nr = Tables("表E审批").rows(idx)
            Else
                nr = Tables("表E审批").addnew
            End If
            nr("审批流程") = c
            nr("审批人员") = s
        Next
    End If
Next

 回到顶部