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

📄 frmfuncroomdata.frm

📁 Call centeer gestion de usuarios todo ello gratis y bajo windows
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmFuncRoomData 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Update Banquet"
   ClientHeight    =   2790
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   5205
   Icon            =   "frmFuncRoomData.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2790
   ScaleWidth      =   5205
   StartUpPosition =   2  'CenterScreen
   Begin MSComctlLib.Toolbar Toolbar1 
      Height          =   570
      Left            =   1440
      TabIndex        =   6
      Top             =   1680
      Width           =   2490
      _ExtentX        =   4392
      _ExtentY        =   1005
      ButtonWidth     =   2064
      ButtonHeight    =   1005
      Appearance      =   1
      Style           =   1
      TextAlignment   =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   3
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Cancel"
            Key             =   "Cancel"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "Update"
            Key             =   "Update"
            ImageIndex      =   2
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   360
      Top             =   1800
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   2
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmFuncRoomData.frx":0BC2
            Key             =   ""
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmFuncRoomData.frx":1014
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.TextBox data 
      Alignment       =   2  'Center
      BackColor       =   &H00FFC0C0&
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   2
      Left            =   1680
      MaxLength       =   8
      TabIndex        =   5
      Top             =   1080
      Width           =   3015
   End
   Begin VB.TextBox data 
      Alignment       =   2  'Center
      BackColor       =   &H00FFC0C0&
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   1
      Left            =   1680
      TabIndex        =   4
      Top             =   600
      Width           =   3015
   End
   Begin VB.TextBox data 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00C0E0FF&
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   2760
      Locked          =   -1  'True
      TabIndex        =   0
      Top             =   3120
      Width           =   3015
   End
   Begin VB.Label Label3 
      Caption         =   "Pax"
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   3
      Top             =   1080
      Width           =   1815
   End
   Begin VB.Label Label2 
      Caption         =   "Location"
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   2
      Top             =   600
      Width           =   2175
   End
   Begin VB.Label Label1x 
      BackColor       =   &H00FFC0C0&
      Caption         =   "Function Room  No."
      BeginProperty Font 
         Name            =   "Century Gothic"
         Size            =   9
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   1
      Top             =   3240
      Width           =   2055
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H8000000F&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00FF8080&
      BorderWidth     =   7
      Height          =   2295
      Left            =   240
      Top             =   240
      Width           =   4695
   End
End
Attribute VB_Name = "frmFuncRoomData"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()

End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.key
'=======
Case "Cancel"
Unload Me
'=======
Case "Update"
'On Error GoTo r
Dim b As Integer
b = 0
If data(1) = "" Then
MsgBox "Please enter the banquet location...", vbInformation, "HMS"
data(1).SetFocus
Exit Sub
ElseIf data(2) = "" Then
MsgBox "Please enter the banquet pax...", vbInformation, "HMS"
data(2).SetFocus
Exit Sub
End If
'================
If frmFuncRoom.mowd = "add" Then
check_RStemp
rstemp.Open "select * from banquet", Cnn
'================
While rstemp.RecordCount > 0
check_RStemp
b = b + 1
rstemp.Open "select * from banquet where banquet_no = " & b, Cnn
Wend
'================
Cnn.Execute "INSERT INTO banquet (banquet_no,location,pax) VALUES (" & b & ", '" & data(1).Text & "', '" & data(2).Text & "')" '
'================
ElseIf frmFuncRoom.mowd = "edit" Then
Cnn.Execute "update banquet set location = '" & data(1) & "', pax = '" & data(2) & "' where banquet_no = " & data(0)
End If
rs.Requery 1
frmFuncRoom.fill
Unload Me
'r:

End Select

End Sub

⌨️ 快捷键说明

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