⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 thrz.frm

📁 酒店管理系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
      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 + -