📄 bjyj.frm
字号:
TabIndex = 10
Top = 1200
Width = 900
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "话费:"
Height = 180
Left = 120
TabIndex = 9
Top = 1200
Width = 540
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "餐费:"
Height = 180
Left = 4560
TabIndex = 8
Top = 720
Width = 540
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "店内消费:"
Height = 180
Left = 2160
TabIndex = 7
Top = 720
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "住宿金额:"
Height = 180
Left = 120
TabIndex = 6
Top = 720
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "押金总额:"
Height = 180
Left = 4560
TabIndex = 5
Top = 240
Width = 900
End
Begin VB.Label Label2
Caption = "姓名:"
Height = 495
Left = 2160
TabIndex = 4
Top = 240
Width = 975
End
Begin VB.Label Label1
Caption = "房号:"
Height = 375
Left = 120
TabIndex = 3
Top = 240
Width = 855
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 240
Top = 4680
Width = 7200
_ExtentX = 12700
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KFGL.MDB;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KFGL.MDB;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "djb"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame1
Caption = "客人基本信息"
Height = 1575
Left = 120
TabIndex = 0
Top = 120
Width = 7215
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "bjyj.frx":0000
Height = 1215
Left = 120
TabIndex = 1
Top = 240
Width = 6975
_ExtentX = 12303
_ExtentY = 2143
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Begin MSComCtl2.DTPicker DTP1
Height = 300
Left = 8040
TabIndex = 30
Top = 1080
Width = 1320
_ExtentX = 2328
_ExtentY = 529
_Version = 393216
Format = 23789569
CurrentDate = 37203
End
Begin VB.Label Label25
Caption = "Label25"
Height = 375
Left = 8040
TabIndex = 33
Top = 2160
Width = 855
End
Begin VB.Label Label24
Caption = "Label24"
DataField = "标准价"
DataSource = "Adodc1"
Height = 255
Left = 8040
TabIndex = 32
Top = 1680
Width = 1215
End
End
Attribute VB_Name = "bjyjj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "请输入补交押金的金额!", vbOKOnly + vbExclamation, "错误"
Exit Sub
End If
Label25.Caption = Label14.Caption + Val(Text1.Text)
Dim rs_bookstyle As New ADODB.Recordset
Dim conn As String
conn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kfgl.mdb;Persist Security Info=False"
Dim sql As String
sql = "select * from djb where 房号='" & Label12.Caption & "'"
rs_bookstyle.Open sql, conn, adOpenKeyset, adLockPessimistic
rs_bookstyle.Fields(4) = Trim(Label25.Caption)
rs_bookstyle.Update
rs_bookstyle.Close
MsgBox "押金补交成功!", vbOKOnly, ""
Text1.Text = ""
Adodc1.Refresh
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Label15.Caption = ""
Label19.Caption = ""
Label20.Caption = ""
Label21.Caption = ""
Label23.Caption = ""
Adodc1.Refresh
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub DataGrid1_Click()
Label23.Caption = DTP1.Value - DTP2.Value
Label15.Caption = Label24.Caption * Label23.Caption
Label19.Caption = Val(Label15.Caption) + Val(Label16.Caption) + Val(Label17.Caption) + Val(Label18.Caption)
Label20.Caption = Val(Label14.Caption) - Val(Label19.Caption)
Label21.Caption = Val(Label19.Caption) - Val(Label14.Caption)
End Sub
Private Sub Form_Activate()
Adodc1.Refresh
End Sub
Private Sub Form_Load()
DTP1.Value = Date
Text1.Text = ""
Label15.Caption = ""
Label19.Caption = ""
Label20.Caption = ""
Label21.Caption = ""
Label23.Caption = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -