📄 frmchangnum.frm
字号:
VERSION 5.00
Begin VB.Form frmChangNum
BorderStyle = 1 'Fixed Single
Caption = "更改数量"
ClientHeight = 2250
ClientLeft = 45
ClientTop = 330
ClientWidth = 4095
Icon = "frmChangNum.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2250
ScaleWidth = 4095
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox txtGoods
BackColor = &H00FFC0C0&
Height = 330
Left = 1320
Locked = -1 'True
TabIndex = 4
Top = 720
Width = 2295
End
Begin VB.TextBox txtPrice
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1320
TabIndex = 0
Top = 1200
Width = 2295
End
Begin VB.CommandButton cmdCancel
Caption = "取消(&C)"
Height = 375
Left = 2160
TabIndex = 3
Top = 1680
Width = 1095
End
Begin VB.CommandButton cmdOK
Caption = "确定(&O)"
Height = 375
Left = 720
TabIndex = 2
Top = 1680
Width = 1095
End
Begin VB.TextBox txtNo
BackColor = &H00FFFFFF&
Height = 330
Left = 1320
TabIndex = 1
Top = 240
Width = 2295
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "商品名称:"
Height = 180
Left = 360
TabIndex = 7
Top = 840
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "购买数量:"
Height = 180
Left = 360
TabIndex = 6
Top = 1320
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "序 号:"
Height = 180
Left = 360
TabIndex = 5
Top = 360
Width = 900
End
End
Attribute VB_Name = "frmChangNum"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
If Trim(frm_Main.mshfView.TextMatrix(Me.txtNo, 1)) = "" Then
MsgBox "序号有错!", vbInformation, "提示窗口"
SendNext Me.txtNo
Exit Sub
End If
frm_Main.mshfView.TextMatrix(Me.txtNo, 5) = Me.txtPrice
frm_Main.mshfView.TextMatrix(Me.txtNo, 6) = Format(Round(Val(Me.txtPrice) * Val(frm_Main.mshfView.TextMatrix(Me.txtNo, 4)), 1), "0.00")
frm_Main.GotTotal
Unload Me
End Sub
Private Sub Form_Load()
Me.txtNo = frm_Main.mshfView.TextMatrix(frm_Main.mshfView.RowSel, 0)
Me.txtGoods = frm_Main.mshfView.TextMatrix(frm_Main.mshfView.RowSel, 2)
Me.txtPrice = frm_Main.mshfView.TextMatrix(frm_Main.mshfView.RowSel, 5)
Me.txtPrice.SelStart = 0
Me.txtPrice.SelLength = Len(Me.txtPrice)
End Sub
Private Sub txtPrice_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Me.cmdOK.SetFocus
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -