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

📄 main_qtgl_ktgl_ztfw.frm

📁 有关餐饮系统的详细介绍
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         BackStyle       =   0  'Transparent
         Caption         =   "服务费:"
         Height          =   255
         Index           =   4
         Left            =   2025
         TabIndex        =   8
         Top             =   600
         Width           =   750
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "简要说明:"
         Height          =   255
         Index           =   6
         Left            =   4695
         TabIndex        =   7
         Top             =   600
         Width           =   930
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   0
         Left            =   735
         TabIndex        =   6
         Top             =   270
         Width           =   870
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   1
         Left            =   2985
         TabIndex        =   5
         Top             =   285
         Width           =   1485
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   2
         Left            =   5625
         TabIndex        =   4
         Top             =   270
         Width           =   1575
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   3
         Left            =   720
         TabIndex        =   3
         Top             =   585
         Width           =   1215
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   4
         Left            =   2805
         TabIndex        =   2
         Top             =   585
         Width           =   1230
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H00FF0000&
         Height          =   225
         Index           =   5
         Left            =   5625
         TabIndex        =   1
         Top             =   585
         Width           =   1800
      End
   End
   Begin VB.Frame Frame1 
      Height          =   450
      Left            =   30
      TabIndex        =   13
      Top             =   840
      Width           =   7545
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "容纳人数:"
         Height          =   255
         Index           =   7
         Left            =   4695
         TabIndex        =   17
         Top             =   180
         Width           =   915
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H000000FF&
         Height          =   225
         Index           =   7
         Left            =   5640
         TabIndex        =   16
         Top             =   165
         Width           =   990
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "状态:"
         Height          =   255
         Index           =   5
         Left            =   180
         TabIndex        =   15
         Top             =   180
         Width           =   555
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         ForeColor       =   &H000000FF&
         Height          =   225
         Index           =   6
         Left            =   720
         TabIndex        =   14
         Top             =   165
         Width           =   780
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3240
      Top             =   4755
      Visible         =   0   'False
      Width           =   1845
      _ExtentX        =   3254
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=CYGLXT"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=CYGLXT"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 房间台号信息表"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "单据号:"
      Height          =   315
      Left            =   45
      TabIndex        =   24
      Top             =   4815
      Width           =   735
   End
   Begin VB.Label Labdjh 
      BackStyle       =   0  'Transparent
      Height          =   195
      Left            =   780
      TabIndex        =   23
      Top             =   4800
      Width           =   2430
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "请选择或输入目标房台编号:"
      Height          =   195
      Left            =   315
      TabIndex        =   20
      Top             =   1500
      Width           =   2430
   End
End
Attribute VB_Name = "main_qtgl_ktgl_ztfw"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim newcnn As New Connection     '定义数据库连接
Dim rs1 As New ADODB.Recordset     '定义数据集对象
Dim myval, SQL1 As String     '定义字符串变量
Dim i As Integer     '定义整型变量
Private Sub Form_Load()   '初始化设置
 For i = 0 To 7
  Label4(i).Caption = main_qtgl_ktgl.Label4(i).Caption
 Next i
 If main_qtgl_ktgl.Adodc2.Recordset.RecordCount > 0 Then
   labdjh.Caption = main_qtgl_ktgl.Adodc2.Recordset.Fields("单据号")
  Else
   labdjh.Caption = ""
 End If
 Adodc1.RecordSource = "select * from 房间台号信息表 where 状态='空闲'order by 编号"
 Adodc1.Refresh
 Me.Caption = Me.Caption & "    " & frm_main.St1.Panels(3).text
End Sub
Private Sub Form_Unload(Cancel As Integer)
 main_qtgl_ktgl.Enabled = True
End Sub
Private Sub Combc_Click()     '确定转台
 myval = MsgBox("确认将[" & Label4(0).Caption & "]的客人转到[" & Trim(Text1.text) & "]吗?", vbYesNo)
 If myval = vbYes Then
  newcnn.Open "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=CYGLXT"
  SQL1 = "update 点单临时表 set 房台编号='" + Trim(Text1.text) + "'where 单据号='" + Trim(labdjh.Caption) + "'"
  newcnn.Execute SQL1
  newcnn.Close
  rs1.Open "select * from 房间台号信息表 where 编号='" + Label4(0).Caption + "'", cnn, adOpenKeyset, adLockOptimistic
  If rs1.RecordCount > 0 Then
     rs1.Fields("状态") = "空闲"
     rs1.Update
  End If
  rs1.Close
  rs1.Open "select * from 房间台号信息表 where 编号='" + Trim(Text1.text) + "'", cnn, adOpenKeyset, adLockOptimistic
  If rs1.RecordCount > 0 Then
     rs1.Fields("状态") = "营业"
     rs1.Update
  End If
  rs1.Close
  Call main_qtgl_ktgl.list_change     '调用函数
  main_qtgl_ktgl.Enabled = True
  Unload Me
End If
End Sub
Private Sub ComExit_Click()
 main_qtgl_ktgl.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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