📄 main_tf.frm
字号:
Top = 1080
Width = 3255
End
Begin MSDBCtls.DBCombo DBCombo1
Height = 330
Left = 4080
TabIndex = 23
Top = 1950
Width = 1470
_ExtentX = 2593
_ExtentY = 582
_Version = 393216
Enabled = 0 'False
Locked = -1 'True
Text = ""
End
Begin MSDBCtls.DBCombo DBCombo2
Height = 330
Left = 6735
TabIndex = 24
Top = 1950
Width = 2565
_ExtentX = 4524
_ExtentY = 582
_Version = 393216
Enabled = 0 'False
Locked = -1 'True
Text = ""
End
Begin MSDBCtls.DBCombo DBCombo3
Height = 330
Left = 1320
TabIndex = 25
Top = 1950
Width = 1605
_ExtentX = 2831
_ExtentY = 582
_Version = 393216
Enabled = 0 'False
Locked = -1 'True
Text = ""
End
Begin MSDBCtls.DBCombo DBCombo4
Bindings = "main_tf.frx":0070
Height = 330
Left = 1320
TabIndex = 26
Top = 570
Width = 2835
_ExtentX = 5001
_ExtentY = 582
_Version = 393216
Enabled = 0 'False
ListField = "凭证号码"
Text = ""
End
Begin MSComCtl2.DTPicker TIM2
Height = 285
Left = 7980
TabIndex = 45
Top = 525
Width = 1365
_ExtentX = 2408
_ExtentY = 503
_Version = 393216
Format = 30015490
CurrentDate = 37203
End
Begin MSComCtl2.DTPicker DTP2
Height = 285
Left = 6630
TabIndex = 46
Top = 525
Width = 1365
_ExtentX = 2408
_ExtentY = 503
_Version = 393216
Format = 30015489
CurrentDate = 37203
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "退宿结帐"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 390
Left = 4110
TabIndex = 55
Top = -15
Width = 1380
End
Begin VB.Label Lab2
BackStyle = 0 'Transparent
Caption = "NO."
Height = 225
Left = 7065
TabIndex = 49
Top = 180
Width = 675
End
Begin VB.Label Lab3
BackStyle = 0 'Transparent
Caption = "退房时间"
Height = 255
Left = 5865
TabIndex = 47
Top = 570
Width = 975
End
Begin VB.Label Lab10
BackStyle = 0 'Transparent
Caption = "挂帐单位"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 270
Left = 5670
TabIndex = 44
Top = 2865
Visible = 0 'False
Width = 945
End
Begin VB.Label Lab9
BackStyle = 0 'Transparent
Caption = "附 加 费"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 36
Top = 2835
Width = 1170
End
Begin VB.Label Lab12
BackStyle = 0 'Transparent
Caption = "备 注"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 32
Top = 3765
Width = 1335
End
Begin VB.Label Lab7
BackStyle = 0 'Transparent
Caption = "实住天数 宿费"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 31
Top = 2415
Width = 4545
End
Begin VB.Label Lab5
BackStyle = 0 'Transparent
Caption = "联系地址"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 30
Top = 1530
Width = 1065
End
Begin VB.Label Lab4
BackStyle = 0 'Transparent
Caption = "姓 名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 29
Top = 1095
Width = 1110
End
Begin VB.Label Lab8
BackStyle = 0 'Transparent
Caption = "%"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 315
Left = 9240
TabIndex = 28
Top = 2340
Width = 300
End
Begin VB.Label Lab1
BackStyle = 0 'Transparent
Caption = "凭证号码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 27
Top = 615
Width = 1065
End
Begin VB.Label Lab6
BackStyle = 0 'Transparent
Caption = "房 间 号 客房类型 客房价格"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 33
Top = 1965
Width = 7725
End
Begin VB.Label Lab11
BackStyle = 0 'Transparent
Caption = "实收金额 押金 退还金额"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 210
TabIndex = 34
Top = 3315
Width = 7620
End
End
Begin VB.TextBox czy
BackColor = &H80000004&
BorderStyle = 0 'None
Height = 225
Left = 795
TabIndex = 8
Top = 4935
Width = 1290
End
Begin VB.CommandButton Comdj
BackColor = &H00C0C0C0&
Caption = "登记"
Height = 300
Left = 3435
Style = 1 'Graphical
TabIndex = 4
Top = 4950
Width = 1155
End
Begin VB.CommandButton Comprint
BackColor = &H00C0C0C0&
Caption = "打印"
Enabled = 0 'False
Height = 300
Left = 7320
Style = 1 'Graphical
TabIndex = 3
Top = 4950
Width = 1155
End
Begin VB.CommandButton Comend
BackColor = &H00C0C0C0&
Caption = "退出"
Height = 300
Left = 8610
Style = 1 'Graphical
TabIndex = 2
Top = 4950
Width = 1155
End
Begin VB.CommandButton Comok
BackColor = &H00C0C0C0&
Caption = "确定"
Enabled = 0 'False
Height = 300
Left = 4725
Style = 1 'Graphical
TabIndex = 1
Top = 4950
Width = 1155
End
Begin VB.CommandButton Comcancel
BackColor = &H00C0C0C0&
Caption = "取消"
Height = 300
Left = 6030
Style = 1 'Graphical
TabIndex = 0
Top = 4950
Width = 1155
End
Begin VB.Label Lab14
BackStyle = 0 'Transparent
Caption = "操作员:"
Height = 315
Left = 75
TabIndex = 7
Top = 4950
Width = 735
End
End
Attribute VB_Name = "main_tf"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub JS() '定义计算住宿天数的函数
If DTP2.Value > DTP1.Value Then
If tim2.Value > #11:59:00 PM# Then
If tim2.Value > #12:00:00 PM# Then
If tim2.Value > #6:00:00 PM# Then
Texts.Text = DTP2.Value - DTP1.Value + 1
Else
Texts.Text = DTP2.Value - DTP1.Value + 0.5
End If
Else
Texts.Text = DTP2.Value - DTP1.Value
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -