publicClass ChinaRing1Class ChinaRing1
Inherits System.Web.UI.Page
#Region " Web 窗体设计器生成的代码 "
''该调用是 Web 窗体设计器所必需的。 <System.Diagnostics.DebuggerStepThrough()>PrivateSub InitializeComponent()Sub InitializeComponent()
End Sub ProtectedWithEvents ChinaRingCkBox1 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox2 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox3 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox4 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox5 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox6 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox7 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox8 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingCkBox9 As System.Web.UI.WebControls.CheckBox
ProtectedWithEvents ChinaRingLb1 As System.Web.UI.WebControls.Label
Protected ChinaRingCkBox(8) As System.Web.UI.WebControls.CheckBox
''注意: 以下占位符声明是 Web 窗体设计器所必需的。 ''不要删除或移动它。 Private designerPlaceholderDeclaration As System.Object PrivateSub Page_Init()Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Init
''CODEGEN: 此方法调用是 Web 窗体设计器所必需的 ''不要使用代码编辑器修改它。 InitializeComponent()
End Sub #End Region
PrivateSub Page_Load()Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
ChinaRingCkBox(0) = ChinaRingCkBox1
ChinaRingCkBox(1) = ChinaRingCkBox2
ChinaRingCkBox(2) = ChinaRingCkBox3
ChinaRingCkBox(3) = ChinaRingCkBox4
ChinaRingCkBox(4) = ChinaRingCkBox5
ChinaRingCkBox(5) = ChinaRingCkBox6
ChinaRingCkBox(6) = ChinaRingCkBox7
ChinaRingCkBox(7) = ChinaRingCkBox8
ChinaRingCkBox(8) = ChinaRingCkBox9
End Sub PrivateSub ChinaRingCkBox1_CheckedChanged()Sub ChinaRingCkBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox1.CheckedChanged
ChinaRingCkBox_CheckedChanged(1, sender, e)
End Sub PrivateSub ChinaRingCkBox2_CheckedChanged()Sub ChinaRingCkBox2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox2.CheckedChanged
ChinaRingCkBox_CheckedChanged(2, sender, e)
End Sub PrivateSub ChinaRingCkBox3_CheckedChanged()Sub ChinaRingCkBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox3.CheckedChanged
ChinaRingCkBox_CheckedChanged(3, sender, e)
End Sub PrivateSub ChinaRingCkBox4_CheckedChanged()Sub ChinaRingCkBox4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox4.CheckedChanged
ChinaRingCkBox_CheckedChanged(4, sender, e)
End Sub PrivateSub ChinaRingCkBox5_CheckedChanged()Sub ChinaRingCkBox5_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox5.CheckedChanged
ChinaRingCkBox_CheckedChanged(5, sender, e)
End Sub PrivateSub ChinaRingCkBox6_CheckedChanged()Sub ChinaRingCkBox6_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox6.CheckedChanged
ChinaRingCkBox_CheckedChanged(6, sender, e)
End Sub PrivateSub ChinaRingCkBox7_CheckedChanged()Sub ChinaRingCkBox7_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox7.CheckedChanged
ChinaRingCkBox_CheckedChanged(7, sender, e)
End Sub PrivateSub ChinaRingCkBox8_CheckedChanged()Sub ChinaRingCkBox8_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox8.CheckedChanged
ChinaRingCkBox_CheckedChanged(8, sender, e)
End Sub PrivateSub ChinaRingCkBox9_CheckedChanged()Sub ChinaRingCkBox9_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChinaRingCkBox9.CheckedChanged
ChinaRingCkBox_CheckedChanged(9, sender, e)
End Sub PrivateSub ChinaRingCkBox_CheckedChanged()Sub ChinaRingCkBox_CheckedChanged(ByVal index AsInteger, ByVal sender As System.Object, ByVal e As System.EventArgs)
Dim i AsInteger i =0 Dim ChinaRingCk AsBoolean=False If index =1Then ChinaRingCk =True Else If ChinaRingCkBox(index -2).Checked Then ChinaRingCk =True EndIf DoWhile i < index -2 If ChinaRingCkBox(i).Checked Then ChinaRingCk =False EndIf i = i +1 Loop EndIf IfNot ChinaRingCk Then ChinaRingCkBox(index -1).Checked =Not ChinaRingCkBox(index -1).Checked
''可以在这里加一个提示,根据条件提示不能套入,或不能拿出该环。 EndIf End Sub End Class