⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.vb

📁 应急系统(Emergency System, ES)主要是针对自然灾害,安全事故
💻 VB
📖 第 1 页 / 共 5 页
字号:
Public Class Form1
    Inherits System.Windows.Forms.Form
    Private Sub showposition()
        Dim headstr As String = "突发事件数据库中"
        Dim icnt As Integer
        Dim ipos As Integer
        icnt = Me.BindingContext(DataSet21, "突发事件信息表").Count
        If icnt = 0 Then
            Lbposition.Text = "没有任何记录"
        Else
            ipos = Me.BindingContext(DataSet21, "突发事件信息表").Position + 1
            Lbposition.Text = headstr & "共" & icnt.ToString & "条记录,当前为第" & ipos.ToString & "条记录"
        End If
    End Sub

    Private Sub setall1()
        Txtbianhao.Enabled = True
        Txtaccidentname.Enabled = True
        Cbaccidenttype.Enabled = True
        Txtaccidentaddr.Enabled = True
        Txtbegintime.Enabled = True
        Txtlasttime.Enabled = True
        Txthurtnumber.Enabled = True
        Txtdeadnumber.Enabled = True
        Txtcost.Enabled = True
        Txtapplytime.Enabled = True
        Txtapplycompany.Enabled = True
        Txtapplycompanyphone.Enabled = True
        Txtmodifytime.Enabled = True
        Txtmodifycompany.Enabled = True
        Txtmodifycompanyphone.Enabled = True
        Txtadditional.Enabled = True
    End Sub
    Private Sub setall2()
        Btfirstrecord.Enabled = False
        Btfrontrecord.Enabled = False
        Btnextrecord.Enabled = False
        Btlastrecord.Enabled = False
        Btdeleterecord.Enabled = False
        Btseeall.Enabled = False
    End Sub
    Private Sub setall3()
        Txtbianhao.Enabled = True
        Txtaccidentname.Enabled = False
        Cbaccidenttype.Enabled = False
        Txtaccidentaddr.Enabled = False
        Txtbegintime.Enabled = False
        Txtlasttime.Enabled = False
        Txthurtnumber.Enabled = False
        Txtdeadnumber.Enabled = False
        Txtcost.Enabled = False
        Txtapplytime.Enabled = False
        Txtapplycompany.Enabled = False
        Txtapplycompanyphone.Enabled = False
        Txtmodifytime.Enabled = False
        Txtmodifycompany.Enabled = False
        Txtmodifycompanyphone.Enabled = False
        Txtadditional.Enabled = False
    End Sub
    Private Sub setall4()
        Btfirstrecord.Enabled = True
        Btfrontrecord.Enabled = True
        Btnextrecord.Enabled = True
        Btlastrecord.Enabled = True
        Btdeleterecord.Enabled = True
        Btseeall.Enabled = True
    End Sub
#Region " Windows 窗体设计器生成的代码 "

    Public Sub New()
        MyBase.New()

        '该调用是 Windows 窗体设计器所必需的。
        InitializeComponent()

        '在 InitializeComponent() 调用之后添加任何初始化

    End Sub

    '窗体重写处置以清理组件列表。
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Windows 窗体设计器所必需的
    Private components As System.ComponentModel.IContainer

    '注意:以下过程是 Windows 窗体设计器所必需的
    '可以使用 Windows 窗体设计器修改此过程。
    '不要使用代码编辑器修改它。
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents Label14 As System.Windows.Forms.Label
    Friend WithEvents Label16 As System.Windows.Forms.Label
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents GroupBox3 As System.Windows.Forms.GroupBox
    Friend WithEvents Txtbianhao As System.Windows.Forms.TextBox
    Friend WithEvents Txtaccidentname As System.Windows.Forms.TextBox
    Friend WithEvents Txtaccidentaddr As System.Windows.Forms.TextBox
    Friend WithEvents Txtbegintime As System.Windows.Forms.TextBox
    Friend WithEvents Txtlasttime As System.Windows.Forms.TextBox
    Friend WithEvents Txthurtnumber As System.Windows.Forms.TextBox
    Friend WithEvents Txtdeadnumber As System.Windows.Forms.TextBox
    Friend WithEvents Txtcost As System.Windows.Forms.TextBox
    Friend WithEvents Txtapplytime As System.Windows.Forms.TextBox
    Friend WithEvents Txtapplycompany As System.Windows.Forms.TextBox
    Friend WithEvents Txtmodifytime As System.Windows.Forms.TextBox
    Friend WithEvents Txtmodifycompany As System.Windows.Forms.TextBox
    Friend WithEvents Txtmodifycompanyphone As System.Windows.Forms.TextBox
    Friend WithEvents Cbaccidenttype As System.Windows.Forms.ComboBox
    Friend WithEvents Txtadditional As System.Windows.Forms.TextBox
    Friend WithEvents Btfirstrecord As System.Windows.Forms.Button
    Friend WithEvents Btnextrecord As System.Windows.Forms.Button
    Friend WithEvents Btlastrecord As System.Windows.Forms.Button
    Friend WithEvents Btseeall As System.Windows.Forms.Button
    Friend WithEvents Btmodifyrecord As System.Windows.Forms.Button
    Friend WithEvents Btreturndata As System.Windows.Forms.Button
    Friend WithEvents Btexit As System.Windows.Forms.Button
    Friend WithEvents OleDbDataAdapter1 As System.Data.OleDb.OleDbDataAdapter
    Friend WithEvents OleDbSelectCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbInsertCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbUpdateCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbDeleteCommand1 As System.Data.OleDb.OleDbCommand
    Friend WithEvents OleDbConnection1 As System.Data.OleDb.OleDbConnection
    Friend WithEvents DataSet21 As 应急信息管理系统界面.DataSet2
    Friend WithEvents Lbposition As System.Windows.Forms.Label
    Friend WithEvents Txtapplycompanyphone As System.Windows.Forms.TextBox
    Friend WithEvents Btfrontrecord As System.Windows.Forms.Button
    Friend WithEvents Btdeleterecord As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Label1 = New System.Windows.Forms.Label()
        Me.Label2 = New System.Windows.Forms.Label()
        Me.Label3 = New System.Windows.Forms.Label()
        Me.Label4 = New System.Windows.Forms.Label()
        Me.Label5 = New System.Windows.Forms.Label()
        Me.Label6 = New System.Windows.Forms.Label()
        Me.Label7 = New System.Windows.Forms.Label()
        Me.Label8 = New System.Windows.Forms.Label()
        Me.Label9 = New System.Windows.Forms.Label()
        Me.Label10 = New System.Windows.Forms.Label()
        Me.Label11 = New System.Windows.Forms.Label()
        Me.Label12 = New System.Windows.Forms.Label()
        Me.Label13 = New System.Windows.Forms.Label()
        Me.Label14 = New System.Windows.Forms.Label()
        Me.Label16 = New System.Windows.Forms.Label()
        Me.Txtbianhao = New System.Windows.Forms.TextBox()
        Me.DataSet21 = New 应急信息管理系统界面.DataSet2()
        Me.Txtaccidentname = New System.Windows.Forms.TextBox()
        Me.Txtaccidentaddr = New System.Windows.Forms.TextBox()
        Me.Txtbegintime = New System.Windows.Forms.TextBox()
        Me.Txtlasttime = New System.Windows.Forms.TextBox()
        Me.Txthurtnumber = New System.Windows.Forms.TextBox()
        Me.Txtdeadnumber = New System.Windows.Forms.TextBox()
        Me.Txtcost = New System.Windows.Forms.TextBox()
        Me.Txtapplytime = New System.Windows.Forms.TextBox()
        Me.Txtapplycompany = New System.Windows.Forms.TextBox()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -