If Forms("Éè¼Æ²¿·ÖÎö´óÀà").Opened Then
'ÏîÄ¿¼ÆÊý,Ìî³äÎı¾¿ò
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox1").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","±àºÅ Is Not Null")
Select Case e.DataCol.Name
Case "²Ù×÷ÐÔ"
If Forms("Éè¼Æ²¿·ÖÎö´óÀà").Opened Then
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox2").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'Ç©µ¥'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox3").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'Åܵ¥'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox4").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = '¿É²Ù×÷'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox5").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'µÈ´ýÖÐ'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox6").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'Ô¤ÊÕÉè¼Æ'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox7").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'Ԥǩ'")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox8").value = DataTables("·åºÍÉè¼Æ²¿").compute("Count([±àºÅ])","²Ù×÷ÐÔ = 'δ֪'")
End If
End Select
'¼ÆËã°Ù·Ö±È
Dim zc As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox1").Value) 'ÔÚ²á
If zc > 0 Then
'Dim jt As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox8").Value) '½òÌù
Dim a As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox2").Value) 'A
Dim b As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox3").Value) 'B
Dim c As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox4").Value) 'C
Dim d As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox5").Value) 'D
Dim h As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox6").Value) 'E
Dim f As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox7").Value) 'F
Dim g As Integer = CInt(Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox8").Value) 'G
'Dim jtbf As Double = IIf(jt=0,0,jt/zc*100)
Dim abf As Double = IIf(a=0,0,a/zc*100)
Dim bbf As Double = IIf(b=0,0,b/zc*100)
Dim cbf As Double = IIf(c=0,0,c/zc*100)
Dim dbf As Double = IIf(d=0,0,d/zc*100)
Dim hbf As Double = IIf(h=0,0,h/zc*100)
Dim fbf As Double = IIf(f=0,0,f/zc*100)
Dim gbf As Double = IIf(g=0,0,g/zc*100)
'Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("TextBox6").Value = Format(Math.Round(jtbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox1").Value = Format(Math.Round(abf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox2").Value = Format(Math.Round(bbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox3").Value = Format(Math.Round(cbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox4").Value = Format(Math.Round(dbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox5").Value = Format(Math.Round(hbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox6").Value = Format(Math.Round(fbf,2),"0.00")
Forms("Éè¼Æ²¿·ÖÎö´óÀà").Controls("NumericComboBox7").Value = Format(Math.Round(gbf,2),"0.00")
End If
End If