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

📄 scgl_kfyl.frm

📁 一个简单的酒店管理系统 用VB.net+SQL2000实现
💻 FRM
字号:
VERSION 5.00
Begin VB.Form scgl_kfyl 
   ClientHeight    =   4650
   ClientLeft      =   3105
   ClientTop       =   2745
   ClientWidth     =   5025
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   ScaleHeight     =   4650
   ScaleWidth      =   5025
   Begin VB.Frame Frame1 
      Caption         =   "预留数量"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3975
      Left            =   0
      TabIndex        =   6
      Top             =   480
      Width           =   4935
      Begin VB.CommandButton Cmd1 
         Caption         =   "确认"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   555
         Index           =   0
         Left            =   1440
         TabIndex        =   4
         Top             =   3120
         Width           =   1335
      End
      Begin VB.CommandButton Cmd1 
         Caption         =   "返回"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   555
         Index           =   1
         Left            =   3120
         TabIndex        =   5
         Top             =   3120
         Width           =   1335
      End
      Begin VB.TextBox m_yl_4 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   270
         Left            =   2160
         MaxLength       =   2
         TabIndex        =   3
         Top             =   2280
         Width           =   1095
      End
      Begin VB.TextBox m_yl_3 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   270
         Left            =   2160
         MaxLength       =   2
         TabIndex        =   2
         Top             =   1680
         Width           =   1095
      End
      Begin VB.TextBox m_yl_2 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   270
         Left            =   2160
         MaxLength       =   2
         TabIndex        =   1
         Top             =   1080
         Width           =   1095
      End
      Begin VB.TextBox m_yl_1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   270
         Left            =   2160
         MaxLength       =   2
         TabIndex        =   0
         Top             =   480
         Width           =   1095
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "豪华套:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   960
         TabIndex        =   10
         Top             =   2280
         Width           =   735
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "套间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   960
         TabIndex        =   9
         Top             =   1680
         Width           =   525
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "双人间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   960
         TabIndex        =   8
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "单人间:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   960
         TabIndex        =   7
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   120
      TabIndex        =   12
      Top             =   120
      Width           =   1935
   End
   Begin VB.Label msg 
      AutoSize        =   -1  'True
      ForeColor       =   &H00FF0000&
      Height          =   180
      Left            =   3360
      TabIndex        =   11
      Top             =   120
      Width           =   90
   End
End
Attribute VB_Name = "scgl_kfyl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub CMD1_Click(Index As Integer)
    Select Case Index
    Case 0
        If IsNumeric(Trim(m_yl_1.Text)) And IsNumeric(Trim(m_yl_2.Text)) And IsNumeric(Trim(m_yl_3.Text)) And IsNumeric(Trim(m_yl_4.Text)) Then
            SYS_Yl = Array(0, CDec(Trim(m_yl_1.Text)), CDec(Trim(m_yl_2.Text)), CDec(Trim(m_yl_3.Text)), CDec(Trim(m_yl_4.Text)))
            Call Sys_save
            MsgBox "客房预留数成功修改!", vbOKOnly
            Unload Me
            yx_main.Show (1)
        Else
            Exit Sub
        End If
    Case 1
        Unload Me
        yx_main.Show (1)
    End Select
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 27 Then
        Unload Me
        yx_main.Show (1)
    End If
End Sub

Private Sub Form_Load()
    KeyPreview = True
    m_yl_1.Text = SYS_Yl(1)
    m_yl_2.Text = SYS_Yl(2)
    m_yl_3.Text = SYS_Yl(3)
    m_yl_4.Text = SYS_Yl(4)
End Sub
Sub MAIN(t_gnmc As String)
   Label1.Caption = t_gnmc
End Sub
Private Sub m_yl_1_Change()
    MSG.Caption = ""
End Sub

Private Sub m_yl_1_GotFocus()
    m_yl_1.SelStart = 0
    m_yl_1.SelLength = Len(Trim(m_yl_1.Text))
End Sub

Private Sub m_yl_1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then
        If Not Trim(m_yl_1.Text) = "" Then
            If IsNumeric(Trim(m_yl_1.Text)) Then
                m_yl_2.SetFocus
                m_yl_2.SelStart = 0
                m_yl_2.SelLength = Len(Trim(m_yl_2.Text))
            Else
                MSG.Caption = "无效数据!"
                m_yl_1.SelStart = 0
                m_yl_1.SelLength = Len(Trim(m_yl_1.Text))
            End If
        Else
            m_yl_1.Text = "0"
            m_yl_2.SetFocus
            m_yl_2.SelStart = 0
            m_yl_2.SelLength = Len(Trim(m_yl_2.Text))
        End If
    End If
End Sub

Private Sub m_yl_2_Change()
    MSG.Caption = ""
End Sub

Private Sub m_yl_2_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then
        If Not Trim(m_yl_2.Text) = "" Then
            If IsNumeric(Trim(m_yl_2.Text)) Then
                m_yl_3.SetFocus
                m_yl_3.SelStart = 0
                m_yl_3.SelLength = Len(Trim(m_yl_3.Text))
            Else
                MSG.Caption = "无效数据!"
                m_yl_2.SelStart = 0
                m_yl_2.SelLength = Len(Trim(m_yl_2.Text))
            End If
        Else
            m_yl_2.Text = "0"
            m_yl_3.SetFocus
            m_yl_3.SelStart = 0
            m_yl_3.SelLength = Len(Trim(m_yl_3.Text))
        End If
    End If
End Sub

Private Sub m_yl_3_Change()
    MSG.Caption = ""
End Sub

Private Sub m_yl_3_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then
        If Not Trim(m_yl_3.Text) = "" Then
            If IsNumeric(Trim(m_yl_3.Text)) Then
                m_yl_4.SetFocus
                m_yl_4.SelStart = 0
                m_yl_4.SelLength = Len(Trim(m_yl_4.Text))
            Else
                MSG.Caption = "无效数据!"
                m_yl_3.SelStart = 0
                m_yl_3.SelLength = Len(Trim(m_yl_3.Text))
            End If
        Else
            m_yl_3.Text = "0"
            m_yl_4.SetFocus
            m_yl_4.SelStart = 0
            m_yl_4.SelLength = Len(Trim(m_yl_4.Text))
        End If
    End If
End Sub

Private Sub m_yl_4_Change()
    MSG.Caption = ""
End Sub

Private Sub m_yl_4_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then
        If Not Trim(m_yl_4.Text) = "" Then
            If IsNumeric(Trim(m_yl_4.Text)) Then
                CMD1(0).SetFocus
            Else
                MSG.Caption = "无效数据!"
                m_yl_4.SelStart = 0
                m_yl_4.SelLength = Len(Trim(m_yl_4.Text))
            End If
        Else
            m_yl_4.Text = "0"
            CMD1(0).SetFocus
        End If
    End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -