Foxtable(狐表)用户栏目专家坐堂 → 多值字段问题


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

主题:多值字段问题

美女呀,离线,留言给我吧!
13775189031
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:825 积分:5733 威望:0 精华:0 注册:2017/12/19 14:46:00
多值字段问题  发帖心情 Post By:2018/9/14 14:03:00 [只看该作者]

Dim ary1() As String = {"外购","锻件","铸件","下料","壳体制作","机加工","镀层","零件表面无损探伤","组合焊接","标识","热处理","焊接件无损探伤","部件机加工","试装配","固溶","酸洗","装配","内部水压试验","喷砂油漆","打包装箱"}
Dim ary2() As String = {"外购","锻件","铸件","下料","壳体制作","机加工","镀层","零件表面无损探伤","组合焊接","标识","热处理","焊接件无损探伤","部件机加工","试装配","固溶","酸洗","装配","内部水压试验","喷砂油漆","打包装箱"}
If e.DataCol.Name = "工序流程" Then
    Dim str As String = e.DataRow("工序流程")
    Dim ary3 = str.split("|")
    For i As Integer = 0 To ary1.length-1
        Dim idx As Integer = array.indexof(ary3, ary1(i))
        If idx >= 0 Then
            Tables("零部件清单").current(ary2(i)) = True
        Else
            Tables("零部件清单").current(ary2(i)) = False
        End If
    Next
Else
End If


工序流程”列为多值字段,点选打勾的话,上述编码没问题,
但是,多行“工序流程”内容相同时,用重复填充列,“工序流程”列中内容显示,但逻辑列中不显示,是什么问题?

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


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

改成

 

Dim ary1() As String = {"外购","锻件","铸件","下料","壳体制作","机加工","镀层","零件表面无损探伤","组合焊接","标识","热处理","焊接件无损探伤","部件机加工","试装配","固溶","酸洗","装配","内部水压试验","喷砂油漆","打包装箱"}
Dim ary2() As String = {"外购","锻件","铸件","下料","壳体制作","机加工","镀层","零件表面无损探伤","组合焊接","标识","热处理","焊接件无损探伤","部件机加工","试装配","固溶","酸洗","装配","内部水压试验","喷砂油漆","打包装箱"}
If e.DataCol.Name = "工序流程" Then
    Dim str As String = e.DataRow("工序流程")
    Dim ary3 = str.split("|")
    For i As Integer = 0 To ary1.length-1
        Dim idx As Integer = array.indexof(ary3, ary1(i))
        If idx >= 0 Then
            e.DataRow(ary2(i)) = True
        Else
            e.DataRow(ary2(i)) = False
        End If
    Next
End If


 回到顶部
美女呀,离线,留言给我吧!
13775189031
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:825 积分:5733 威望:0 精华:0 注册:2017/12/19 14:46:00
  发帖心情 Post By:2018/9/15 8:52:00 [只看该作者]

ok!谢谢!

 回到顶部