?? thrz.frm
字號:
ForeColor = &H80000002&
Height = 300
Left = 3840
TabIndex = 25
Top = 2925
Width = 1455
End
Begin VB.Line Line6
BorderColor = &H8000000E&
Index = 1
X1 = 5640
X2 = 5640
Y1 = 1440
Y2 = 5760
End
Begin VB.Shape Shape2
BorderColor = &H80000010&
Height = 4335
Index = 2
Left = 5640
Top = 1440
Width = 3975
End
Begin VB.Line Line8
BorderColor = &H8000000E&
X1 = 240
X2 = 9720
Y1 = 5880
Y2 = 5880
End
Begin VB.Line Line7
BorderColor = &H8000000E&
X1 = 9720
X2 = 9720
Y1 = 1320
Y2 = 5890
End
Begin VB.Line Line6
BorderColor = &H8000000E&
Index = 0
X1 = 360
X2 = 360
Y1 = 1440
Y2 = 5760
End
Begin VB.Line Line5
BorderColor = &H8000000E&
X1 = 360
X2 = 5520
Y1 = 1440
Y2 = 1440
End
Begin VB.Line Line4
BorderColor = &H8000000E&
X1 = 120
X2 = 9840
Y1 = 840
Y2 = 840
End
Begin VB.Line Line3
BorderColor = &H8000000E&
X1 = 120
X2 = 120
Y1 = 840
Y2 = 6360
End
Begin VB.Label Label4
Caption = "Label4"
DataField = "FPY"
DataSource = "Data1"
Height = 255
Left = 360
TabIndex = 21
Top = 1320
Visible = 0 'False
Width = 1215
End
Begin VB.Label Label3
Caption = "Label3"
DataField = "計租日期"
DataSource = "Data1"
Height = 255
Left = 3120
TabIndex = 19
Top = 3600
Visible = 0 'False
Width = 1575
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "<大寫>人民幣"
ForeColor = &H8000000D&
Height = 495
Index = 7
Left = 1440
TabIndex = 18
Top = 3960
Width = 3975
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "附 注:"
Height = 255
Index = 6
Left = 600
TabIndex = 16
Top = 4440
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "團體人數:"
Height = 255
Index = 5
Left = 600
TabIndex = 15
Top = 2400
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "入住日期:"
Height = 255
Index = 4
Left = 600
TabIndex = 14
Top = 3000
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "陪同人數:"
Height = 255
Index = 3
Left = 3000
TabIndex = 13
Top = 2400
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "離住日期:"
Height = 255
Index = 2
Left = 3000
TabIndex = 12
Top = 3000
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "保 證 金:"
Height = 255
Index = 1
Left = 600
TabIndex = 11
Top = 3600
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "團會名稱:"
Height = 255
Index = 0
Left = 600
TabIndex = 10
Top = 1800
Width = 855
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "№"
BeginProperty Font
Name = "宋體"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Index = 1
Left = 7320
TabIndex = 9
Top = 960
Width = 495
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "團會入住登記表"
BeginProperty Font
Name = "楷體_GB2312"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00808000&
Height = 375
Index = 0
Left = 3480
TabIndex = 8
Top = 900
Width = 2895
End
Begin VB.Shape Shape2
BorderColor = &H80000010&
Height = 4575
Index = 0
Left = 240
Top = 1320
Width = 9495
End
Begin VB.Shape Shape1
BackColor = &H00C0E0FF&
BorderColor = &H80000010&
Height = 5535
Left = 120
Top = 840
Width = 9735
End
Begin VB.Shape Shape2
BorderColor = &H80000010&
Height = 4335
Index = 1
Left = 360
Top = 1440
Width = 5175
End
Begin VB.Menu MNU1
Caption = "文件(&F)"
Begin VB.Menu MNU11
Caption = "打印設置"
End
Begin VB.Menu MNU12
Caption = "打印預覽"
End
Begin VB.Menu MNU13
Caption = "打印 "
Shortcut = ^P
End
Begin VB.Menu MNU15
Caption = "-"
End
Begin VB.Menu MNU16
Caption = "退出(&E)"
End
End
Begin VB.Menu MNU2
Caption = "編輯(&E)"
Begin VB.Menu MNU21
Caption = "增加 "
Shortcut = ^A
End
Begin VB.Menu MNU26
Caption = "修改"
Shortcut = ^E
End
Begin VB.Menu MNU23
Caption = "取消"
Enabled = 0 'False
Shortcut = ^U
End
Begin VB.Menu MNU28
Caption = "保存"
Enabled = 0 'False
Shortcut = ^S
End
Begin VB.Menu MNU24
Caption = "-"
End
Begin VB.Menu MNU22
Caption = "刪除 "
Shortcut = ^D
End
Begin VB.Menu MNU25
Caption = "-"
End
Begin VB.Menu MNU27
Caption = "預訂團會入住"
Shortcut = {F3}
End
End
Begin VB.Menu MNU3
Caption = "查看(&V)"
End
Begin VB.Menu MNU4
Caption = "計算器(&J)"
End
Begin VB.Menu MNU5
Caption = "幫助(&H)"
Begin VB.Menu MNU51
Caption = "幫助主題"
Shortcut = {F1}
End
Begin VB.Menu MNU52
Caption = "索引"
Enabled = 0 'False
End
Begin VB.Menu MNU53
Caption = "-"
End
Begin VB.Menu MNU54
Caption = "關于紅日軟件..."
End
End
Begin VB.Menu POP1
Caption = "mouse"
Visible = 0 'False
Begin VB.Menu POP11
Caption = "增加 "
End
Begin VB.Menu POP13
Caption = "-"
End
Begin VB.Menu POP12
Caption = "刪除"
End
End
End
Attribute VB_Name = "THRZ"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim DATJDGL As Database
Dim RECHJZT As Recordset
Dim RECKRZD As Recordset
Private Sub Data1_Reposition()
Data2.DatabaseName = App.Path & "\data\jdgl.mdb"
Data2.RecordSource = "SELECT 團會房間安排.ID, 團會房間安排.團會ID, 團會房間安排.房號, 團會房間安排.姓名, 團會房間安排.性別, 團會房間安排.房價 From 團會房間安排 WHERE (((團會房間安排.團會ID)='" + Text6.Text + "'))"
Data2.Refresh
If IsNumeric(Text5.Text) Then Text5.Text = FormatNumber(Text5.Text, 2, vbTrue, , vbFalse)
If IsNumeric(Text5.Text) Then
If CDbl(Text5.Text) <> 0 Then
Label2(7).Caption = "<大寫>人民幣" + SUMDM(CDbl(Text5.Text))
Else
Label2(7).Caption = "<大寫>"
End If
End If
Label5.Caption = Format(Label5.Caption, "long date")
Label6.Caption = Format(Label6.Caption, "long date")
End Sub
Private Sub Data1_Validate(Action As Integer, Save As Integer)
If Action = 11 Then
If Me.MNU28.Enabled Then
If MsgBox("當前數據沒有保存!請確認是否放棄?", vbQuestion + vbYesNo, "提示信息") = vbNo Then
Action = 0
Save = 0
Exit Sub
Else
Save = 0
End If
End If
End If
End Sub
Private Sub DBGrid1_AfterColEdit(ByVal ColIndex As Integer)
If ColIndex = 2 Then
If Not IsNull(DBGrid1.Text) Then
Data3.Recordset.FindFirst ("房號 =" & DBGrid1.Text)
If Not Data3.Recordset.NoMatch Then
If Not IsNull(Data3.Recordset("房價")) Then
DBGrid1.Columns(ColIndex + 1).Text = Data3.Recordset("房價")
Else
DBGrid1.Columns(ColIndex + 1).Text = 0
End If
Else
MsgBox "此房號為空號!", vbCritical, "提示信息"
DBGrid1_ButtonClick (2)
End If
End If
End If
End Sub
Private Sub DBGrid1_BeforeUpdate(Cancel As Integer)
If DBGrid1.DataChanged Then
RECHJZT.FindFirst ("房號=" & DBGrid1.Columns(2))
If Not RECHJZT.NoMatch Then
If RECHJZT("房態") = "空房" Then
RECHJZT.Edit
RECHJZT("房態") = "在住"
RECHJZT.Update
Data3.Refresh
Else
If RECHJZT("房態") = "在住" Then
If MsgBox("此房間已有客人入住!是否加客?", vbYesNo + vbQuestion, "提示信息") = vbNo Then
DBGrid1_ButtonClick (2)
End If
Else
MsgBox RECHJZT("房態"), vbCritical, "提示信息"
DBGrid1_ButtonClick (2)
End If
End If
Else
MsgBox "此房號為空號!", vbCritical, "提示信息"
DBGrid1_ButtonClick (2)
End If
End If
End Sub
Private Sub DBGrid1_ButtonClick(ByVal ColIndex As Integer)
dbFind1.Find
If dbFind1.Value <> " " Then
Data3.Recordset.FindFirst ("房情 ='" & dbFind1.Value & "'")
DBGrid1.Columns(2) = Data3.Recordset("房號")
If Not IsNull(Data3.Recordset("房價")) Then
DBGrid1.Columns(3).Text = Data3.Recordset("房價")
Else
DBGrid1.Columns(3).Text = 0
End If
End If
End Sub
Private Sub DBGrid1_Click()
Dim MID As String
If Data1.Recordset.EditMode = 2 Then
MID = Text6.Text
Data1.Recordset.Update
Data1.Recordset.FindFirst ("團會ID='" & MID & "'")
End If
End Sub
Private Sub DBGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, y As Single)
If Button = vbRightButton Then
Me.PopupMenu POP1
End If
End Sub
Private Sub DTPicker1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then DTPicker2.SetFocus
Label5.Caption = Format(DTPicker1.Value, "long date")
End Sub
Private Sub DTPicker1_Validate(Cancel As Boolean)
Label3.Caption = DTPicker1.Value
Label5.Caption = Format(DTPicker1.Value, "long date")
End Sub
Private Sub DTPicker2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then Text5.SetFocus
Label5.Caption = Format(DTPicker2.Value, "long date")
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -