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

📄 n_sf.frm

📁 杭州舟远信息技术连锁有限公司的棋牌管理系统源代码
💻 FRM
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Begin VB.Form N_SF 
   BorderStyle     =   1  'Fixed Single
   ClientHeight    =   1830
   ClientLeft      =   15
   ClientTop       =   15
   ClientWidth     =   3735
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1830
   ScaleWidth      =   3735
   StartUpPosition =   3  '窗口缺省
   Begin ACTIVESKINLibCtl.Skin Skin1 
      Left            =   600
      OleObjectBlob   =   "N_SF.frx":0000
      Top             =   1080
   End
   Begin VB.TextBox Text2 
      Enabled         =   0   'False
      Height          =   375
      Left            =   720
      TabIndex        =   3
      Text            =   "棋牌桌号:"
      Top             =   360
      Width           =   975
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   360
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H80000001&
      Caption         =   "确定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1320
      MaskColor       =   &H00808000&
      TabIndex        =   1
      Top             =   1080
      Width           =   735
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H80000001&
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2160
      MaskColor       =   &H00808000&
      TabIndex        =   0
      Top             =   1080
      Width           =   735
   End
End
Attribute VB_Name = "N_SF"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public CS_SZLX
Private Sub Command1_Click()
On Error Resume Next
Dim fj As ADODB.Recordset
If Text1.Text = "" Then
    MsgBox "请输入棋牌桌号!"
    GoTo endless
End If
Set fj = New ADODB.Recordset
fj.Source = "SELECT * FROM N_CZ where FHID = '" & Trim(Text1.Text) & "'"
Set fj.ActiveConnection = objConn
fj.CursorType = adOpenDynamic
fj.LockType = adLockOptimistic
fj.Open
If fj.EOF Or fj.BOF Then
    MsgBox "输入棋牌桌号错误!"
    fj.Close
    Set fj = Nothing
    GoTo endless
End If
Select Case CS_SZLX
Case 0
    If fj.Fields("fzt") = 2 Or fj.Fields("fzt") = 4 Then
        fj.Fields("fzt") = 0
        fj.Update
        fj.Close
        Set fj = Nothing
    Else
        MsgBox "只有脏桌能转清洁桌,错误!"
        fj.Close
        Set fj = Nothing
        GoTo endless
    End If
Case 1
    If fj.Fields("fzt") = 1 Then
        fj.Fields("fzt") = 6
        fj.Update
        fj.Close
        Set fj = Nothing
    Else
        MsgBox "只有有客桌能被长包,错误!"
        fj.Close
        Set fj = Nothing
        GoTo endless
    End If
Case 2
    If fj.Fields("fzt") = 0 Or fj.Fields("fzt") = 2 Then
        fj.Fields("fzt") = 4
        fj.Update
        fj.Close
        Set fj = Nothing
    Else
        MsgBox "只有空桌和脏桌可以进入维修状态,错误!"
        fj.Close
        Set fj = Nothing
        GoTo endless
    End If
    
Case 3
    If fj.Fields("fzt") = 0 Then
        fj.Fields("fzt") = 3
        fj.Update
        fj.Close
        Set fj = Nothing
    Else
        MsgBox "只有空桌可以被预定,错误!"
        fj.Close
        Set fj = Nothing
        GoTo endless
    End If
    
Case 4
    If fj.Fields("fzt") = 3 Then
        fj.Fields("fzt") = 0
        fj.Update
        fj.Close
        Set fj = Nothing
    Else
        MsgBox "只有预定桌可以取消,错误!"
        fj.Close
        Set fj = Nothing
        GoTo endless
    End If
End Select
Call dt_main.fj_road
endless:
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub


Private Sub Form_Load()
Skin1.LoadSkin App.Path + "\棋牌界面"
Skin1.ApplySkin hWnd
End Sub

⌨️ 快捷键说明

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