e.Form.Controls("Label1").Text = "正在统计平均分及最低分排名,请稍后..."
Application.DoEvents()
Dim timestart,timeend As Date
timestart=Date.now
Dim dt1 As DataTable = DataTables("专业录取线")
Dim dt2 As DataTable = DataTables("一分一档")
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物理系列") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物理组总_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物理系列") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物理组总_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化生") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化生_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化生") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化生_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化地_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化地_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物化政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物化政_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物生地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物生地_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物生地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物生地_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物生政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物生政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物生政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物生政_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物地政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物地政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("物地政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("物地政_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("历史系列") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("历史组总_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("历史系列") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("历史组总_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化生") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化生_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化生") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化生_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化地_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化地_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史化政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史化政_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史生地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史生地_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史生地") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史生地_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史生政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史生政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史生政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史生政_低分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史地政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("平均分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史地政_均分排名") = fdr("全省排名")
End If
Next
For Each dr As DataRow In dt1.Select("")
Dim filter As String = "选科系列 = '" & dr("史地政") & "' and 录取年度 = '" & dr("录取年度") & "' and 最低分 = '" & dr("最低分") & "'"
Dim fdr = dt2.find(filter)
If fdr IsNot Nothing Then
dr("史地政_低分排名") = fdr("全省排名")
End If
Next
e.Form.Controls("Label1").Text = "平均分及最低分排名统计完成!"
timeend=Date.now
e.Form.Controls("Label1").text="耗时" & (timeend-timestart).TotalSeconds & "秒"
Messagebox.Show("项目完毕,请继续!")