📄 frmsourcemodify.vb
字号:
Public Class Frmsourcemodify
Inherits System.Windows.Forms.Form
Private Sub showposition()
Dim headstr As String = "应急物资信息表中"
Dim icnt As Integer
Dim ipos As Integer
icnt = Me.BindingContext(DataSet71, "应急物资信息表").Count
If icnt = 0 Then
Lbposition.Text = "没有任何记录"
Else
ipos = Me.BindingContext(DataSet71, "应急物资信息表").Position + 1
Lbposition.Text = headstr & "共" & icnt.ToString & "条记录,当前为第" & ipos.ToString & "条记录"
End If
End Sub
Private Sub setall1()
Txtbianhao.Enabled = True
Cbsourcename.Enabled = True
Txtshuliang.Enabled = True
Cbbumen.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()
Txtbianhao.Enabled = False
Cbsourcename.Enabled = False
Txtshuliang.Enabled = False
Cbbumen.Enabled = False
Txtapplytime.Enabled = False
Txtapplycompany.Enabled = False
Txtapplycompanyphone.Enabled = False
Txtmodifytime.Enabled = False
Txtmodifycompany.Enabled = False
Txtmodifycompanyphone.Enabled = False
Txtadditional.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 GroupBox1 As System.Windows.Forms.GroupBox
Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
Friend WithEvents Txtbianhao As System.Windows.Forms.TextBox
Friend WithEvents Txtshuliang 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 Btlastrecord As System.Windows.Forms.Button
Friend WithEvents Btnextrecord As System.Windows.Forms.Button
Friend WithEvents Btfrontrecord As System.Windows.Forms.Button
Friend WithEvents Btfirstrecord As System.Windows.Forms.Button
Friend WithEvents Btexitsourcemodify As System.Windows.Forms.Button
Friend WithEvents Btdeleterecord As System.Windows.Forms.Button
Friend WithEvents Btmodifyrecord As System.Windows.Forms.Button
Friend WithEvents Txtadditional As System.Windows.Forms.TextBox
Friend WithEvents Btreturn As System.Windows.Forms.Button
Friend WithEvents Cbsourcename As System.Windows.Forms.ComboBox
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 OleDbConnection1 As System.Data.OleDb.OleDbConnection
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 DataSet71 As 应急信息管理系统界面.DataSet7
<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.Txtbianhao = New System.Windows.Forms.TextBox()
Me.DataSet71 = New 应急信息管理系统界面.DataSet7()
Me.Txtshuliang = 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.Label11 = New System.Windows.Forms.Label()
Me.Txtadditional = 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.Btexitsourcemodify = 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.Cbsourcename = New System.Windows.Forms.ComboBox()
Me.Lbposition = New System.Windows.Forms.Label()
Me.OleDbDataAdapter1 = New System.Data.OleDb.OleDbDataAdapter()
Me.OleDbDeleteCommand1 = New System.Data.OleDb.OleDbCommand()
Me.OleDbConnection1 = New System.Data.OleDb.OleDbConnection()
Me.OleDbInsertCommand1 = New System.Data.OleDb.OleDbCommand()
Me.OleDbSelectCommand1 = New System.Data.OleDb.OleDbCommand()
Me.OleDbUpdateCommand1 = New System.Data.OleDb.OleDbCommand()
CType(Me.DataSet71, System.ComponentModel.ISupportInitialize).BeginInit()
Me.GroupBox1.SuspendLayout()
Me.GroupBox2.SuspendLayout()
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(24, 24)
Me.Label1.Name = "Label1"
Me.Label1.TabIndex = 0
Me.Label1.Text = "编号:"
'
'Label2
'
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -