📄 editinfo.vb
字号:
Public Class EditInfo
Inherits System.Windows.Forms.Form
#Region " Windows 窗体设计器生成的代码 "
Public Sub New()
MyBase.New()
'该调用是 Windows 窗体设计器所必需的。
InitializeComponent()
'在 InitializeComponent() 调用之后添加任何初始化
End Sub
'窗体重写 dispose 以清理组件列表。
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 LabelEditType As System.Windows.Forms.Label
Friend WithEvents Label3 As System.Windows.Forms.Label
Friend WithEvents TextBoxEditMoney As System.Windows.Forms.TextBox
Friend WithEvents Label2 As System.Windows.Forms.Label
Friend WithEvents ButtonEditOk As System.Windows.Forms.Button
Friend WithEvents ButtonClose As System.Windows.Forms.Button
Friend WithEvents TextBoxEditType As System.Windows.Forms.TextBox
Friend WithEvents TextBoxBz As System.Windows.Forms.TextBox
Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.Label1 = New System.Windows.Forms.Label
Me.LabelEditType = New System.Windows.Forms.Label
Me.Label3 = New System.Windows.Forms.Label
Me.TextBoxEditMoney = New System.Windows.Forms.TextBox
Me.Label2 = New System.Windows.Forms.Label
Me.TextBoxBz = New System.Windows.Forms.TextBox
Me.ButtonEditOk = New System.Windows.Forms.Button
Me.ButtonClose = New System.Windows.Forms.Button
Me.TextBoxEditType = New System.Windows.Forms.TextBox
Me.TextBox1 = New System.Windows.Forms.TextBox
Me.SuspendLayout()
'
'Label1
'
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(72, 21)
Me.Label1.TabIndex = 0
Me.Label1.Text = "项目:"
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'LabelEditType
'
Me.LabelEditType.Location = New System.Drawing.Point(8, 40)
Me.LabelEditType.Name = "LabelEditType"
Me.LabelEditType.Size = New System.Drawing.Size(72, 21)
Me.LabelEditType.TabIndex = 2
Me.LabelEditType.Text = "收入类别:"
Me.LabelEditType.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'Label3
'
Me.Label3.Location = New System.Drawing.Point(8, 72)
Me.Label3.Name = "Label3"
Me.Label3.Size = New System.Drawing.Size(72, 21)
Me.Label3.TabIndex = 4
Me.Label3.Text = "收入金额:"
Me.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'TextBoxEditMoney
'
Me.TextBoxEditMoney.Location = New System.Drawing.Point(80, 72)
Me.TextBoxEditMoney.Name = "TextBoxEditMoney"
Me.TextBoxEditMoney.Size = New System.Drawing.Size(120, 21)
Me.TextBoxEditMoney.TabIndex = 5
Me.TextBoxEditMoney.Text = ""
'
'Label2
'
Me.Label2.Location = New System.Drawing.Point(8, 104)
Me.Label2.Name = "Label2"
Me.Label2.Size = New System.Drawing.Size(72, 21)
Me.Label2.TabIndex = 7
Me.Label2.Text = "备注:"
Me.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight
'
'TextBoxBz
'
Me.TextBoxBz.Location = New System.Drawing.Point(80, 104)
Me.TextBoxBz.Multiline = True
Me.TextBoxBz.Name = "TextBoxBz"
Me.TextBoxBz.Size = New System.Drawing.Size(192, 80)
Me.TextBoxBz.TabIndex = 8
Me.TextBoxBz.Text = ""
'
'ButtonEditOk
'
Me.ButtonEditOk.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.ButtonEditOk.Location = New System.Drawing.Point(80, 192)
Me.ButtonEditOk.Name = "ButtonEditOk"
Me.ButtonEditOk.Size = New System.Drawing.Size(64, 23)
Me.ButtonEditOk.TabIndex = 9
Me.ButtonEditOk.Text = "修改"
'
'ButtonClose
'
Me.ButtonClose.FlatStyle = System.Windows.Forms.FlatStyle.System
Me.ButtonClose.Location = New System.Drawing.Point(176, 192)
Me.ButtonClose.Name = "ButtonClose"
Me.ButtonClose.Size = New System.Drawing.Size(64, 23)
Me.ButtonClose.TabIndex = 10
Me.ButtonClose.Text = "返回"
'
'TextBoxEditType
'
Me.TextBoxEditType.Location = New System.Drawing.Point(80, 40)
Me.TextBoxEditType.Name = "TextBoxEditType"
Me.TextBoxEditType.Size = New System.Drawing.Size(120, 21)
Me.TextBoxEditType.TabIndex = 11
Me.TextBoxEditType.Text = ""
'
'TextBox1
'
Me.TextBox1.Location = New System.Drawing.Point(80, 8)
Me.TextBox1.Name = "TextBox1"
Me.TextBox1.Size = New System.Drawing.Size(64, 21)
Me.TextBox1.TabIndex = 12
Me.TextBox1.Text = ""
'
'EditInfo
'
Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)
Me.ClientSize = New System.Drawing.Size(292, 221)
Me.ControlBox = False
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.TextBoxEditType)
Me.Controls.Add(Me.ButtonClose)
Me.Controls.Add(Me.ButtonEditOk)
Me.Controls.Add(Me.TextBoxBz)
Me.Controls.Add(Me.Label2)
Me.Controls.Add(Me.TextBoxEditMoney)
Me.Controls.Add(Me.Label3)
Me.Controls.Add(Me.LabelEditType)
Me.Controls.Add(Me.Label1)
Me.MaximizeBox = False
Me.MaximumSize = New System.Drawing.Size(300, 255)
Me.MinimizeBox = False
Me.MinimumSize = New System.Drawing.Size(300, 255)
Me.Name = "EditInfo"
Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
Me.Text = "小鱼流水帐 V1.0—修改信息"
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub EditInfo_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Text = S_Select.In_TypeName
Me.TextBox1.ReadOnly = True
Me.TextBoxEditType.Text = S_Select.In_Type
Me.TextBoxEditMoney.Text = S_Select.In_Money
Me.TextBoxBz.Text = S_Select.In_Text
End Sub
Private Sub ButtonEditOk_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonEditOk.Click
With New D_InGuestInfo
Dim S As New S_InGuestInfo
S.In_Id = S_Select.In_Id
S.In_Money = Me.TextBoxEditMoney.Text
S.In_Type = Me.TextBoxEditType.Text
S.In_Text = Me.TextBoxBz.Text
Dim stemp As Boolean
stemp = .EditInGuestInfo(S, ErrStr)
If stemp = True Then
Dim F As New IndexForm
F.ListSelectData()
MsgBox("修改数据成功!", MsgBoxStyle.Exclamation)
Me.Close()
Else
MsgBox("修改数据失败!", MsgBoxStyle.Exclamation)
End If
End With
End Sub
Private Sub ButtonClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClose.Click
Me.Close()
End Sub
End Class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -