PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click IfString.IsNullOrEmpty(Me.ComboBox1.Text) ThenExit Sub
IfNot mResult Then ShowMessage(String.Format("本机没有连接Internet或发布网址{0}无效", RegionalCodeLibrary.NET.NetConst.GOV_ADDRESS)) EndIf EndIf
Return mResult End Function
PrivateSub ShowMessage(ByVal msg AsString) If msg =""Then msg ="待命" Me.Label1.Text =String.Format("消息:{0}", msg) Me.Label1.Refresh() End Sub
PrivateSub MainForm_FormClosing(ByVal sender AsObject, ByVal e As System.Windows.Forms.FormClosingEventArgs) HandlesMe.FormClosing ClearEnvironment() End Sub
PrivateSub ClearEnvironment() If gQueryTable IsNothingThenExit Sub gQueryTable.Close() gQueryTable =Nothing '' gUpdateDatabase.Dispose() End Sub
'加以下代码是为了截图的 Windows.Forms.Application.DoEvents() End Sub
'' PrivateSub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged Me.DataGridView1.DataSource =Nothing End Sub
'' PrivateSub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click IfMe.DataGridView1.DataSource IsNothingThenExit Sub
Dim mDataTable As DataTable =CType(Me.DataGridView1.DataSource, DataTable) Dim mLastdate AsString=Me.ComboBox1.Text
SELECT a.区划码ID ,a.区划码 ,b.名称 ,b.截止日期 ,b.起始日期 FROM ( SELECT b.区划码ID ,b.区划码 FROM[Edit].区划码情况 a INNERJOIN[Base].区划码 b ON a.区划码ID = b.区划码ID GROUPBY b.区划码ID, b.区划码 HAVINGCOUNT(b.区划码ID) >1 ) a INNERJOIN[Edit].区划码情况 b ON a.区划码ID = b.区划码ID