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

📄 image2.frm

📁 杭州舟远信息技术连锁有限公司的棋牌管理系统源代码
💻 FRM
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Begin VB.Form sys_main 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "天一管理软件--棋牌管理"
   ClientHeight    =   3990
   ClientLeft      =   2040
   ClientTop       =   435
   ClientWidth     =   4950
   ControlBox      =   0   'False
   DrawStyle       =   1  'Dash
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3990
   ScaleWidth      =   4950
   StartUpPosition =   2  '屏幕中心
   Begin ACTIVESKINLibCtl.Skin Skin1 
      Left            =   3480
      OleObjectBlob   =   "Image2.frx":0000
      Top             =   -600
   End
   Begin VB.CommandButton Command2 
      Caption         =   "登录"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1200
      TabIndex        =   7
      Top             =   3120
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出"
      BeginProperty Font 
         Name            =   "黑体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2640
      TabIndex        =   6
      Top             =   3120
      Width           =   855
   End
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   2
      Left            =   480
      TabIndex        =   5
      Text            =   "密  码:"
      Top             =   2400
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   1
      Left            =   480
      TabIndex        =   4
      Text            =   "用户名:"
      Top             =   1560
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      Height          =   270
      Index           =   0
      Left            =   480
      TabIndex        =   3
      Text            =   "服务器:"
      Top             =   720
      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          =   315
      Index           =   0
      Left            =   1680
      TabIndex        =   2
      Top             =   720
      Width           =   2775
   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          =   315
      Index           =   1
      Left            =   1680
      TabIndex        =   0
      Top             =   1560
      Width           =   2775
   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          =   315
      IMEMode         =   3  'DISABLE
      Index           =   2
      Left            =   1680
      PasswordChar    =   "#"
      TabIndex        =   1
      Top             =   2400
      Width           =   2775
   End
End
Attribute VB_Name = "sys_main"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Public CS_LX As Integer

Private Declare Function GetPrivateProfileString Lib "kernel32" _
   Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _
   ByVal lpKeyName As Any, ByVal lpDefault As String, _
   ByVal lpReturnedString As String, ByVal nSize As Long, _
   ByVal lpFileName As String) As Long
Private Declare Function WritePrivateProfileString Lib "kernel32" _
   Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, _
   ByVal lpKeyName As Any, ByVal lpString As Any, _
   ByVal lpFileName As String) As Long

Private Sub Command1_Click()
End
End Sub

Private Sub Command2_Click()
'On Error GoTo Error_Handler
Dim temp_rec As ADODB.Recordset
Dim username As String
Dim paswd As String
Dim a As String
Dim b As String

'buff = String(255, 0)
'ret = GetPrivateProfileString("QPDB Connection", "user", "user", buff, "", "c:\jdgl.ini")
'a = buff
'objConn.DefaultDatabase = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "datebase")
a = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "user")
b = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "paswrd")
'MsgBox "1"
'username = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "user")
'paswd = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "paswrd")

'MsgBox "2"
Set objConn = CreateObject("ADODB.Connection")
'MsgBox "3"
objConn.Open "Provider=SQLOLEDB;Data Source=" & Trim(Text1(0).Text) & ";User Id=" & Trim(a) & ";Password=" & Trim(b)
'objConn.Open "Provider=SQLOLEDB;Data Source=" & Trim(Text1(0).Text) & ";User Id=sa;Password=63418200"
'MsgBox "4"
objConn.DefaultDatabase = "QPGL"
'MsgBox "5"
objConn.CommandTimeout = 300

'Set PUB_data = WRK.OpenDatabase("JDGL", dbDriverNoPrompt, False, "uid=" & sys_uid & ";pwd=" & sys_pwd)

'MsgBox "6"
'Set temp_rec = PUB_data.OpenRecordset("SELECT * FROM  N_USER WHERE UR='" & Trim(Text1(1).Text) & "' AND PASWD='" & Trim(Text1(2).Text) & "'", 2, 0, 2)
Set temp_rec = New ADODB.Recordset
temp_rec.Source = "SELECT * FROM  N_USER WHERE UR='" & Trim(Text1(1).Text) & "' AND PASWD='" & Trim(Text1(2).Text) & "'"
Set temp_rec.ActiveConnection = objConn
temp_rec.CursorType = adOpenDynamic
temp_rec.LockType = adLockOptimistic
temp_rec.Open
'MsgBox "7"
If Not temp_rec.EOF Then
        'SYS_GWMC = "前台接待处"
        'SYS_GWDM = "DT"
        SYS_USER = temp_rec.Fields("NAME")
        SYS_NAME = temp_rec.Fields("power")
        SYS_UR = temp_rec.Fields("UR")
        SYS_LOGIN = Date & "," & Time
        'SYS_RIGHT = "4"
        Call dt_main.MAIN(SYS_USER, SYS_NAME, SYS_UR, SYS_LOGIN)
        Me.Hide

        dt_main.Show (1)
        
        Call Command1_Click
Else
        MsgBox "密码错误,请重新输入!"
End If
temp_rec.Close
Set temp_rec = Nothing

Error_Handler:
MsgBox "数据连接异常错误!"
'temp_rec.Close
'Set temp_rec = Nothing
'objConn.Close
'Set objConn = Nothing
End Sub

Private Sub Form_Load()
Dim ret As Long
Dim buff As String
'buff = String(255, 0)
'ret = GetPrivateProfileString("QPDB Connection", "server", "server", buff, 256, "c:\jdgl.ini")
'Text1(0).Text = buff
'buff = String(255, 0)
'ret = GetPrivateProfileString("QPDB Connection", "user", "user", buff, 256, "c:\jdgl.ini")
'Text1(1).Text = buff
'buff = String(255, 0)
'ret = GetPrivateProfileString("QPDB Connection", "paswrd", "paswrd", buff, 256, "c:\jdgl.ini")
'Text1(2).Text = buff


'Text1(0).Text = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "server")
Text1(0).Text = Get_ProfileInfo("jdgl.ini", "[QPDB Connection]", "server")
Skin1.LoadSkin App.Path + "\棋牌界面"
Skin1.ApplySkin hWnd
End Sub





⌨️ 快捷键说明

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