?? frmpayfroomedit.frm
字號:
VERSION 5.00
Begin VB.Form FrmPayFRoomEdit
Caption = "編輯結款信息"
ClientHeight = 3765
ClientLeft = 60
ClientTop = 450
ClientWidth = 10215
LinkTopic = "Form1"
ScaleHeight = 3765
ScaleWidth = 10215
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Cmd_Pay
Caption = "結 款"
Height = 495
Left = 7440
TabIndex = 27
Top = 2880
Width = 1095
End
Begin VB.CommandButton Cmd_Close
Caption = "關 閉"
Height = 495
Left = 9000
TabIndex = 26
Top = 2880
Width = 1095
End
Begin VB.Frame Frame3
Caption = "預定信息"
Height = 1695
Left = 0
TabIndex = 5
Top = 960
Width = 10095
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "押金(元)"
Height = 180
Left = 240
TabIndex = 25
Top = 1320
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "退房日期"
Height = 180
Left = 7560
TabIndex = 24
Top = 405
Width = 720
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "客房編號:"
Height = 180
Left = 240
TabIndex = 23
Top = 360
Width = 810
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "入住日期"
Height = 180
Left = 2400
TabIndex = 22
Top = 360
Width = 720
End
Begin VB.Label lblRoomNo
AutoSize = -1 'True
Caption = "lblRoomNo"
Height = 180
Left = 1200
TabIndex = 21
Top = 360
Width = 810
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "報價(元)"
Height = 180
Left = 240
TabIndex = 20
Top = 855
Width = 900
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "入住天數"
Height = 180
Left = 4920
TabIndex = 19
Top = 360
Width = 720
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "折扣(%)"
Height = 180
Left = 2400
TabIndex = 18
Top = 855
Width = 810
End
Begin VB.Label Label16
AutoSize = -1 'True
Caption = "其他費用(元)"
Height = 180
Left = 4920
TabIndex = 17
Top = 840
Width = 1260
End
Begin VB.Label lblTotal
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "0"
Height = 180
Left = 7080
TabIndex = 16
Top = 1335
Width = 90
End
Begin VB.Label Label18
AutoSize = -1 'True
Caption = "總費用(元)"
Height = 180
Left = 4920
TabIndex = 15
Top = 1335
Width = 1080
End
Begin VB.Label lblInDate
AutoSize = -1 'True
Caption = "lblInDate"
Height = 180
Left = 3600
TabIndex = 14
Top = 360
Width = 810
End
Begin VB.Label lblDays
AutoSize = -1 'True
Caption = "lblDays"
Height = 180
Left = 6360
TabIndex = 13
Top = 360
Width = 630
End
Begin VB.Label lblLeaveDate
AutoSize = -1 'True
Caption = "lblLeaveDate"
Height = 180
Left = 8760
TabIndex = 12
Top = 405
Width = 1080
End
Begin VB.Label lblPrice
AutoSize = -1 'True
Caption = "lblPrice"
Height = 180
Left = 1200
TabIndex = 11
Top = 840
Width = 720
End
Begin VB.Label lblRate
AutoSize = -1 'True
Caption = "lblRate"
Height = 180
Left = 3600
TabIndex = 10
Top = 840
Width = 630
End
Begin VB.Label lblOtherFee
AutoSize = -1 'True
Caption = "lblOtherFee"
Height = 180
Left = 6360
TabIndex = 9
Top = 840
Width = 990
End
Begin VB.Label lblFirstPay
AutoSize = -1 'True
Caption = "lblFirstPay"
Height = 180
Left = 1200
TabIndex = 8
Top = 1320
Width = 990
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "應收款(元)"
Height = 180
Left = 2400
TabIndex = 7
Top = 1320
Width = 1080
End
Begin VB.Label lblPay
AutoSize = -1 'True
Caption = "lblPay"
Height = 180
Left = 3600
TabIndex = 6
Top = 1320
Width = 540
End
End
Begin VB.Frame Frame2
Caption = "客戶信息"
Height = 855
Left = 0
TabIndex = 0
Top = 0
Width = 10095
Begin VB.Label lblCid
AutoSize = -1 'True
Caption = "lblCid"
Height = 180
Left = 960
TabIndex = 4
Top = 360
Width = 540
End
Begin VB.Label lblCname
AutoSize = -1 'True
Caption = "lblCname"
Height = 180
Left = 4080
TabIndex = 3
Top = 360
Width = 720
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "姓 名:"
Height = 180
Left = 3360
TabIndex = 2
Top = 360
Width = 540
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "編 號:"
Height = 180
Left = 240
TabIndex = 1
Top = 360
Width = 540
End
End
Begin VB.Label Label17
AutoSize = -1 'True
Caption = "操作人員"
Height = 180
Left = 120
TabIndex = 31
Top = 3037
Width = 720
End
Begin VB.Label lblEmpName
AutoSize = -1 'True
Caption = "lblEmpName"
Height = 180
Left = 1080
TabIndex = 30
Top = 3037
Width = 900
End
Begin VB.Label lblOptDate
AutoSize = -1 'True
Caption = "lblOptDate"
Height = 180
Left = 3960
TabIndex = 29
Top = 3037
Width = 900
End
Begin VB.Label Label19
AutoSize = -1 'True
Caption = "收款日期"
Height = 180
Left = 3000
TabIndex = 28
Top = 3037
Width = 720
End
End
Attribute VB_Name = "FrmPayFRoomEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public TmpRid As Integer '編號
Private Sub Cmd_Close_Click()
Unload Me
End Sub
Private Sub Cmd_Pay_Click()
Dim TmpRNo As String
'添加結款記錄
With MyPayFRoom
.RegId = TmpRid
.Amount = Val(lblTotal)
.OptTime = lblOptDate
.UserName = CurUser.EmpName
.Insert
End With
'更改入住登記記錄狀態值為3(已結款)
MyReg.Status = 3
MyReg.UpdateStatus (TmpRid)
'讀取房間編號
MyReg.GetInfo (TmpRid)
TmpRNo = MyReg.RoomNo
'更改房間狀態
MyRoom.Status = 0
MyRoom.UpdateStatus (TmpRNo)
Unload Me
End Sub
Private Sub Form_Load()
lblEmpName = CurUser.EmpName
lblOptDate = Date
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -