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

📄 frmbbset.frm

📁 KTV管理系统,实现了基本的日常操作.程序有不完善之处,请自修升级修改.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Enabled         =   0   'False
         ListField       =   "名称"
         Text            =   ""
      End
      Begin MSDataListLib.DataCombo DataCombo2 
         Bindings        =   "FrmBBset.frx":1997
         DataField       =   "类别"
         DataSource      =   "Adodc1"
         Height          =   330
         Left            =   960
         TabIndex        =   17
         Top             =   2046
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   582
         _Version        =   393216
         Enabled         =   0   'False
         ListField       =   "名称"
         Text            =   ""
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "FrmBBset.frx":19AC
         DataField       =   "状态"
         DataSource      =   "Adodc1"
         Height          =   330
         Left            =   960
         TabIndex        =   16
         Top             =   1572
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   582
         _Version        =   393216
         Enabled         =   0   'False
         ListField       =   "名称"
         Text            =   ""
      End
      Begin VB.TextBox Text1 
         DataField       =   "包厢号"
         DataSource      =   "Adodc1"
         Enabled         =   0   'False
         Height          =   300
         Left            =   960
         TabIndex        =   4
         Top             =   240
         Width           =   1695
      End
      Begin VB.TextBox Text2 
         DataField       =   "包厢费"
         DataSource      =   "Adodc1"
         Enabled         =   0   'False
         Height          =   300
         Left            =   960
         TabIndex        =   3
         Top             =   684
         Width           =   1695
      End
      Begin VB.TextBox Text3 
         DataField       =   "包厢人数"
         DataSource      =   "Adodc1"
         Enabled         =   0   'False
         Height          =   300
         Left            =   960
         TabIndex        =   2
         Top             =   1128
         Width           =   1695
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "别  名"
         Height          =   255
         Left            =   120
         TabIndex        =   15
         Top             =   2600
         Width           =   855
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包厢号"
         Height          =   180
         Left            =   120
         TabIndex        =   9
         Top             =   240
         Width           =   540
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "包厢费"
         Height          =   180
         Left            =   120
         TabIndex        =   8
         Top             =   712
         Width           =   540
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "可容人数"
         Height          =   180
         Left            =   120
         TabIndex        =   7
         Top             =   1184
         Width           =   720
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "状  态"
         Height          =   180
         Left            =   120
         TabIndex        =   6
         Top             =   1656
         Width           =   540
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "类  别"
         Height          =   180
         Left            =   120
         TabIndex        =   5
         Top             =   2128
         Width           =   540
      End
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "FrmBBset.frx":19C1
      Height          =   4575
      Left            =   120
      TabIndex        =   19
      Top             =   240
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   8070
      _Version        =   393216
      AllowUpdate     =   -1  'True
      HeadLines       =   2
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "FrmBBset"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case Command1.Caption
Case "添加"
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
DataCombo1.Enabled = True
DataCombo2.Enabled = True
DataCombo3.Enabled = True
Command2.Enabled = True
Command3.Enabled = False
Command4.Enabled = False
Text1.SetFocus
Command1.Caption = "取消"
Adodc1.Recordset.AddNew
Case "取消"
Adodc1.Recordset.CancelBatch adAffectCurrent
Adodc1.Recordset.MoveFirst
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
DataCombo1.Enabled = False
DataCombo2.Enabled = False
DataCombo3.Enabled = False
Command1.Caption = "添加"
Command3.Enabled = True
Command4.Enabled = True
Command2.Enabled = False
End Select
End Sub

Private Sub Command2_Click()
Adodc1.Recordset.UpdateBatch adAffectCurrent
Command1.Enabled = True
Command2.Enabled = False
Command3.Enabled = True
Text1.Enabled = False: Text2.Enabled = False: Text3.Enabled = False: DataCombo1.Enabled = False: DataCombo2.Enabled = False: DataCombo3.Enabled = False
End Sub

Private Sub Command3_Click()
Adodc1.Recordset.UpdateBatch adAffectCurrent
Command2.Enabled = True
Command1.Enabled = False
Command3.Enabled = False
Text1.Enabled = True: Text2.Enabled = True: Text3.Enabled = True: DataCombo1.Enabled = True: DataCombo2.Enabled = True: DataCombo3.Enabled = True
Text1.SetFocus
End Sub

Private Sub Command4_Click()
Adodc1.Recordset.Delete
End Sub

Private Sub Command5_Click()
If Command1.Caption = "取消" Then Adodc1.Recordset.CancelBatch adAffectCurrent
Unload Me
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = conn1
Adodc2.ConnectionString = conn1
Adodc3.ConnectionString = conn1
Adodc4.ConnectionString = conn1
Adodc1.RecordSource = "select * from 包厢号 "
Adodc1.Refresh
Adodc3.RecordSource = "select * from 类别设置 where 标识='BX'"
Adodc3.Refresh
Adodc2.RecordSource = "select * from 类别设置 where 标识='FT'"
Adodc2.Refresh
Adodc4.RecordSource = "select * from 类别设置 where 标识='BM'"
Adodc4.Refresh
End Sub
 

⌨️ 快捷键说明

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