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

📄 frmmanmodify.vb

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

    Private Sub setall1()
        Txtbianhao.Enabled = True
        Cbjobname.Enabled = True
        Txtrenshu.Enabled = True
        Cbbumen.Enabled = True
        Txtapplytime.Enabled = True
        Txtapplycompany.Enabled = True
        Txtapplycompanyphone.Enabled = True
        Txtmodifytime.Enabled = True
        Txtmodifycompany.Enabled = True
        Txtmodifycompanyphone.Enabled = True
    End Sub
    Private Sub setall2()
        Txtbianhao.Enabled = False
        Cbjobname.Enabled = False
        Txtrenshu.Enabled = False
        Cbbumen.Enabled = False
        Txtapplytime.Enabled = False
        Txtapplycompany.Enabled = False
        Txtapplycompanyphone.Enabled = False
        Txtmodifytime.Enabled = False
        Txtmodifycompany.Enabled = False
        Txtmodifycompanyphone.Enabled = False
    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 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 Txtbianhao As System.Windows.Forms.TextBox
    Friend WithEvents Cbjobname As System.Windows.Forms.ComboBox
    Friend WithEvents Txtrenshu As System.Windows.Forms.TextBox
    Friend WithEvents Cbbumen As System.Windows.Forms.ComboBox
    Friend WithEvents Txtapplytime As System.Windows.Forms.TextBox
    Friend WithEvents Txtapplycompany As System.Windows.Forms.TextBox
    Friend WithEvents Txtapplycompanyphone 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 GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Btfirstrecord As System.Windows.Forms.Button
    Friend WithEvents Btfrontrecord As System.Windows.Forms.Button
    Friend WithEvents Btnextrecord As System.Windows.Forms.Button
    Friend WithEvents Btlastrecord As System.Windows.Forms.Button
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents Btmodifyrecord As System.Windows.Forms.Button
    Friend WithEvents Btdeleterecord As System.Windows.Forms.Button
    Friend WithEvents Bexitmanmodify As System.Windows.Forms.Button
    Friend WithEvents Btreturn As System.Windows.Forms.Button
    Friend WithEvents Btseeall As System.Windows.Forms.Button
    Friend WithEvents Lbposition As System.Windows.Forms.Label
    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 OleDbConnection1 As System.Data.OleDb.OleDbConnection
    Friend WithEvents DataSet51 As 应急信息管理系统界面.DataSet5
    <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.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.Txtbianhao = New System.Windows.Forms.TextBox()
        Me.DataSet51 = New 应急信息管理系统界面.DataSet5()
        Me.Cbjobname = New System.Windows.Forms.ComboBox()
        Me.Txtrenshu = New System.Windows.Forms.TextBox()
        Me.Cbbumen = New System.Windows.Forms.ComboBox()
        Me.Txtapplytime = New System.Windows.Forms.TextBox()
        Me.Txtapplycompany = New System.Windows.Forms.TextBox()
        Me.Txtapplycompanyphone = New System.Windows.Forms.TextBox()
        Me.Txtmodifytime = New System.Windows.Forms.TextBox()
        Me.Txtmodifycompany = New System.Windows.Forms.TextBox()
        Me.Txtmodifycompanyphone = New System.Windows.Forms.TextBox()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.Btseeall = New System.Windows.Forms.Button()
        Me.Btlastrecord = New System.Windows.Forms.Button()
        Me.Btnextrecord = New System.Windows.Forms.Button()
        Me.Btfrontrecord = New System.Windows.Forms.Button()
        Me.Btfirstrecord = New System.Windows.Forms.Button()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.Bexitmanmodify = New System.Windows.Forms.Button()
        Me.Btdeleterecord = New System.Windows.Forms.Button()
        Me.Btreturn = New System.Windows.Forms.Button()
        Me.Btmodifyrecord = New System.Windows.Forms.Button()
        Me.Lbposition = New System.Windows.Forms.Label()
        Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter()
        Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand()
        Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection()
        Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand()
        CType(Me.DataSet51, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(24, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "编   号:"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(24, 56)
        Me.Label2.Name = "Label2"
        Me.Label2.TabIndex = 1
        Me.Label2.Text = "职业名称:"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(24, 96)
        Me.Label3.Name = "Label3"
        Me.Label3.TabIndex = 2
        Me.Label3.Text = "人   数:"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(24, 136)
        Me.Label4.Name = "Label4"
        Me.Label4.Size = New System.Drawing.Size(104, 32)
        Me.Label4.TabIndex = 3
        Me.Label4.Text = "隶属部门:"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(24, 176)
        Me.Label5.Name = "Label5"
        Me.Label5.TabIndex = 4
        Me.Label5.Text = "申报时间:"
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(320, 16)
        Me.Label7.Name = "Label7"
        Me.Label7.TabIndex = 6
        Me.Label7.Text = "申报单位:"
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(320, 56)
        Me.Label8.Name = "Label8"
        Me.Label8.TabIndex = 7
        Me.Label8.Text = "申报单位电话:"
        '
        'Label9
        '
        Me.Label9.Location = New System.Drawing.Point(320, 96)
        Me.Label9.Name = "Label9"
        Me.Label9.TabIndex = 8
        Me.Label9.Text = "修改时间:"
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(320, 136)
        Me.Label10.Name = "Label10"
        Me.Label10.TabIndex = 9
        Me.Label10.Text = "修改单位:"
        '
        'Label11
        '
        Me.Label11.Location = New System.Drawing.Point(320, 176)
        Me.Label11.Name = "Label11"
        Me.Label11.TabIndex = 10
        Me.Label11.Text = "修改单位电话:"
        '
        'Txtbianhao
        '
        Me.Txtbianhao.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.编号"))
        Me.Txtbianhao.Enabled = False
        Me.Txtbianhao.Location = New System.Drawing.Point(120, 16)
        Me.Txtbianhao.Name = "Txtbianhao"
        Me.Txtbianhao.Size = New System.Drawing.Size(120, 21)
        Me.Txtbianhao.TabIndex = 11
        Me.Txtbianhao.Text = ""
        '
        'DataSet51
        '
        Me.DataSet51.DataSetName = "DataSet5"
        Me.DataSet51.Locale = New System.Globalization.CultureInfo("zh-CN")
        Me.DataSet51.Namespace = "http://www.tempuri.org/DataSet5.xsd"
        '
        'Cbjobname
        '
        Me.Cbjobname.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.职业名称"))
        Me.Cbjobname.Enabled = False
        Me.Cbjobname.Items.AddRange(New Object() {"消防队员", "公安民警", "交通警察", "武装警察", "护士", "医师", "水利工程师", "化学工程师", "城市管理员", "森林火警"})
        Me.Cbjobname.Location = New System.Drawing.Point(120, 56)
        Me.Cbjobname.Name = "Cbjobname"
        Me.Cbjobname.Size = New System.Drawing.Size(121, 20)
        Me.Cbjobname.TabIndex = 12
        '
        'Txtrenshu
        '
        Me.Txtrenshu.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.人数"))
        Me.Txtrenshu.Enabled = False
        Me.Txtrenshu.Location = New System.Drawing.Point(120, 96)
        Me.Txtrenshu.Name = "Txtrenshu"
        Me.Txtrenshu.Size = New System.Drawing.Size(120, 21)
        Me.Txtrenshu.TabIndex = 13
        Me.Txtrenshu.Text = ""
        '
        'Cbbumen
        '
        Me.Cbbumen.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.隶属部门"))
        Me.Cbbumen.Enabled = False
        Me.Cbbumen.Items.AddRange(New Object() {"医疗部门", "公安部门", "卫生部门", "教育部门", "城市管理部门", "消防部门", "林业部门", "水利部门", "环卫部门", "气象部门", "化学品处理及管理部门", "交通部门", "地质灾害防预部门"})
        Me.Cbbumen.Location = New System.Drawing.Point(120, 136)
        Me.Cbbumen.Name = "Cbbumen"
        Me.Cbbumen.Size = New System.Drawing.Size(121, 20)
        Me.Cbbumen.TabIndex = 14
        '
        'Txtapplytime
        '
        Me.Txtapplytime.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.申报时间"))
        Me.Txtapplytime.Enabled = False
        Me.Txtapplytime.Location = New System.Drawing.Point(120, 176)
        Me.Txtapplytime.Name = "Txtapplytime"
        Me.Txtapplytime.Size = New System.Drawing.Size(120, 21)
        Me.Txtapplytime.TabIndex = 15
        Me.Txtapplytime.Text = ""
        '
        'Txtapplycompany
        '
        Me.Txtapplycompany.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.DataSet51, "应急人员信息表.申报单位"))
        Me.Txtapplycompany.Enabled = False
        Me.Txtapplycompany.Location = New System.Drawing.Point(416, 16)
        Me.Txtapplycompany.Name = "Txtapplycompany"
        Me.Txtapplycompany.Size = New System.Drawing.Size(144, 21)
        Me.Txtapplycompany.TabIndex = 17

⌨️ 快捷键说明

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