以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  根据不同的学校不同的部别区分班  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=12909)

--  作者:lpxjw_zyl
--  发布时间:2011/9/20 12:23:00
--  根据不同的学校不同的部别区分班
Dim s As String = DataTables("学业考试成绩").GetComboListString("就读学校","","_Identify")
Dim Values() As String = s.split("|")
For Index As Integer = 0 To Values.Length - 1
    Output.Show(Values(Index))
    Dim s1 As String = DataTables("学业考试成绩").GetComboListString("部别","[就读学校] = \'"& Values(Index) &"\'","_Identify")
    Dim Value1s() As String = s1.split("|")
    For Index1 As Integer = 0 To Value1s.Length - 1
        Output.Show(Value1s(Index1))
        Dim s2 As String = DataTables("学业考试成绩").GetComboListString("班","[就读学校] = \'"& Values(Index) &"\'and [部别] = \'"& Value1s(Index1) &"\'","班")
        Dim Value2s() As String = s2.split("|")
        For Index2 As Integer = 0 To Value2s.Length - 1
            Output.Show(Value2s(Index2))
        Next
    Next
Next