📄 frm_shoufei_ae.frm
字号:
VERSION 5.00
Begin VB.Form Frm_shoufei_ae
BorderStyle = 1 'Fixed Single
Caption = "收费"
ClientHeight = 3450
ClientLeft = 45
ClientTop = 330
ClientWidth = 3075
Icon = "Frm_shoufei_ae.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3450
ScaleWidth = 3075
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text2
Height = 300
Left = 1260
TabIndex = 12
Top = 2280
Width = 1455
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 1740
TabIndex = 9
Top = 2820
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 300
TabIndex = 8
Top = 2820
Width = 1035
End
Begin VB.TextBox Text1
Height = 300
Left = 1260
TabIndex = 7
Top = 1860
Width = 1455
End
Begin VB.Label Label10
Caption = "收款员"
Height = 195
Left = 360
TabIndex = 13
Top = 2340
Width = 555
End
Begin VB.Label Label8
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Height = 300
Left = 1260
TabIndex = 11
Top = 1440
Width = 1455
End
Begin VB.Label Label9
Caption = "滞纳金"
Height = 195
Left = 360
TabIndex = 10
Top = 1500
Width = 555
End
Begin VB.Label Label7
Caption = "交费"
Height = 195
Left = 360
TabIndex = 6
Top = 1920
Width = 555
End
Begin VB.Label Label6
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Height = 300
Left = 1260
TabIndex = 5
Top = 1020
Width = 1455
End
Begin VB.Label Label5
Caption = "应交费"
Height = 315
Left = 360
TabIndex = 4
Top = 1080
Width = 555
End
Begin VB.Label Label4
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Height = 300
Left = 1260
TabIndex = 3
Top = 600
Width = 1455
End
Begin VB.Label Label3
Caption = "业主"
Height = 255
Left = 360
TabIndex = 2
Top = 660
Width = 615
End
Begin VB.Label Label2
BackColor = &H80000009&
BorderStyle = 1 'Fixed Single
Height = 300
Left = 1260
TabIndex = 1
Top = 180
Width = 1455
End
Begin VB.Label Label1
Caption = "房号"
Height = 255
Left = 360
TabIndex = 0
Top = 240
Width = 555
End
End
Attribute VB_Name = "Frm_shoufei_ae"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo myerr
Dim cn As ADODB.Connection
Set cn = GetCn
msg = MsgBox("是否保存?", vbYesNo + vbQuestion, "提示")
If msg = vbNo Then Exit Sub
If Not IsNumeric(Text1) Then
MsgBox "请正确输入交费金额!", vbExclamation, "提示"
Text1.SetFocus
Exit Sub
End If
If Text1 > Val(Label6.Caption) + Val(Label8.Caption) Then
MsgBox "交费超额!", vbExclamation, "提示"
Text1.SetFocus
Exit Sub
End If
If Text2 = "" Or Len(Text2) > 8 Then
MsgBox "请正确输入收款员!", vbExclamation, "提示"
Text2.SetFocus
Exit Sub
End If
cn.Execute "update jiaofei set sfrq='" & Date & "',sj=" & Val(Text1) & ",sky='" & Trim(Text2) & "' where id=" & Frm_shoufei.ListView1.SelectedItem.SubItems(19)
MsgBox "保存成功!", vbExclamation, "提示"
Frm_shoufei.ListView1.SelectedItem.SubItems(13) = Text1
Frm_shoufei.ListView1.SelectedItem.SubItems(17) = Date
Frm_shoufei.ListView1.SelectedItem.SubItems(18) = Text2
Unload Me
Exit Sub
myerr:
MsgBox Error, vbExclamation, "提示"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Label2.Caption = Frm_shoufei.ListView1.SelectedItem.Text
Label4.Caption = Frm_shoufei.ListView1.SelectedItem.SubItems(1)
Label6.Caption = Frm_shoufei.ListView1.SelectedItem.SubItems(12)
Label8.Caption = Frm_shoufei.ListView1.SelectedItem.SubItems(14)
Text1.Text = Frm_shoufei.ListView1.SelectedItem.SubItems(13)
Text2.Text = Frm_shoufei.ListView1.SelectedItem.SubItems(18)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -