📄 ry.frm
字号:
BackStyle = 0 'Transparent
Caption = "元/吨"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 3
Left = 4320
TabIndex = 19
Top = 4440
Visible = 0 'False
Width = 645
End
Begin VB.Label Label5
AutoSize = -1 'True
BackStyle = 0 'Transparent
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 5400
TabIndex = 12
Top = 480
Width = 120
End
Begin VB.Line Line2
BorderColor = &H0000FFFF&
BorderWidth = 2
X1 = 840
X2 = 5160
Y1 = 720
Y2 = 720
End
Begin VB.Line Line1
BorderColor = &H0000FFFF&
BorderWidth = 2
X1 = 840
X2 = 5160
Y1 = 600
Y2 = 600
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "缴 纳 水 费"
BeginProperty Font
Name = "华文行楷"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 555
Left = 1500
TabIndex = 11
Top = 60
Width = 2910
End
Begin VB.Label Label3
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "缴 纳 水 费"
BeginProperty Font
Name = "华文行楷"
Size = 26.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 555
Left = 1560
TabIndex = 10
Top = 120
Width = 2910
End
Begin VB.Shape Shape1
BorderColor = &H00C00000&
Height = 5175
Left = 360
Top = 960
Width = 6495
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "缴费日期:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 9
Left = 1080
TabIndex = 7
Top = 5640
Visible = 0 'False
Width = 1275
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "当月费用:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 8
Left = 1080
TabIndex = 6
Top = 5004
Visible = 0 'False
Width = 1275
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "当前水价:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 7
Left = 1080
TabIndex = 5
Top = 4370
Visible = 0 'False
Width = 1275
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "用水量:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 6
Left = 1320
TabIndex = 4
Top = 3735
Visible = 0 'False
Width = 1020
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "应缴月份:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 4
Left = 1080
TabIndex = 3
Top = 3102
Visible = 0 'False
Width = 1275
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "地 址:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 2
Left = 1320
TabIndex = 2
Top = 2468
Visible = 0 'False
Width = 1035
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "户 名:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 1
Left = 1320
TabIndex = 1
Top = 1834
Visible = 0 'False
Width = 1035
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "总户号:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Index = 0
Left = 1335
TabIndex = 0
Top = 1200
Width = 1020
End
End
Attribute VB_Name = "Form21"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
MsgBox "已入库!", , "提示"
Text5.Text = Val(Text5.Text) + Val(Text1(5).Text)
Data1.UpdateRecord
Text1(0).SetFocus
Text1(0).Text = ""
For i = 1 To 9
Label1(i).Visible = False
Next i
For i = 1 To 6
Text1(i).Visible = False
Next i
Text8.Visible = False
End Sub
Private Sub Command2_Click()
SQL = "select * from 用户管理 where 总户号='" & Trim(Text1(0).Text) & "'"
Data3.RecordSource = SQL
Data3.Refresh
If Data3.Recordset.EOF Then
MsgBox "没有此总户号!请重新输入[总户号]!", , "提示"
Text1(0).Text = ""
Text1(0).SetFocus
Else
For i = 1 To 9
Label1(i).Visible = True
Next i
For i = 1 To 6
Text1(i).Visible = True
Next i
Text8.Visible = True
Data1.Recordset.AddNew
Text1(7) = Text6
Text1(1) = Text3
Text1(2) = Text4
Text1(4) = Text2
Text1(6).Text = Date$
Text1(3).SetFocus
Text8 = Text7
End If
End Sub
Private Sub Form_Load()
Form21.Width = 7350
Form21.Height = 7395
Form21.Move (MDIForm1.Width - Form21.Width) / 2, (MDIForm1.Height - Form21.Height) / 4
Label5.Caption = Date
End Sub
Private Sub Picture1_Click()
Picture1.Picture = Clipboard.GetData
End Sub
Private Sub Text1_Change(Index As Integer)
If Index = 3 Or Index = 4 Then
Text1(5).Text = Val(Text1(3).Text) * Val(Text1(4).Text)
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -