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

📄 frmqueryflset.frm

📁 主要功能如题
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmQueryFLset 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "查询用户"
   ClientHeight    =   2865
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4155
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "frmQueryFLset.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2865
   ScaleWidth      =   4155
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.ComboBox cboFL 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1440
      Style           =   2  'Dropdown List
      TabIndex        =   2
      Top             =   1575
      Width           =   2265
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取消"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   2835
      TabIndex        =   4
      Top             =   2205
      Width           =   915
   End
   Begin VB.CommandButton cmdQuery 
      Caption         =   "查询"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   1755
      TabIndex        =   3
      Top             =   2205
      Width           =   915
   End
   Begin VB.TextBox txtName 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1440
      TabIndex        =   1
      Top             =   915
      Width           =   2265
   End
   Begin VB.TextBox txtID 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   1440
      TabIndex        =   0
      Top             =   270
      Width           =   2265
   End
   Begin VB.Label Label3 
      Caption         =   "当前费率:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   450
      TabIndex        =   7
      Top             =   1620
      Width           =   915
   End
   Begin VB.Label Label2 
      Caption         =   "用户名称:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   450
      TabIndex        =   6
      Top             =   945
      Width           =   915
   End
   Begin VB.Label Label1 
      Caption         =   "用户ID:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   450
      TabIndex        =   5
      Top             =   315
      Width           =   735
   End
End
Attribute VB_Name = "frmQueryFLset"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*******************************************************
'*    模 块 名 称 :查询用户(用户费率设置模块)
'*    功 能 描 述 :
'*    程序员姓名  :谭怀志
'*    最后修改人  :谭怀志
'*    最后修改时间:2003/6/26
'*    备        注:
'*******************************************************

Private tmprstCustomers As ADODB.Recordset

Private Sub cmdCancel_Click()

    Unload Me
    
End Sub

Private Sub cmdQuery_Click()

    strQry = "select JFsetting.UserID,FirstName,LastName,JFsetting.FLid,FLname,JFtype from JFsetting,sysUser,FLlist where JFsetting.UserID=sysUser.UserID and JFsetting.FLid*=FLlist.FLid"
    
    If Trim(txtID.Text) <> "" Then
        strQry = strQry & "  and JFsetting.UserID like '%" & Trim(txtID.Text) & "%'"
    End If
    
    If Trim(txtName.Text) <> "" Then
        strQry = strQry & " and sysUser.LastName like '%" & Trim(txtName.Text) & "%'"
    End If
    
    If cboFL.Text <> "" Then
        strQry = strQry & " and JFsetting.FLid=" & cboFL.ItemData(cboFL.ListIndex)
    End If
    
    On Error GoTo ADOError
    
    Set rstCustomers = GetRecordSet(cnnConnection, strQry)
    
    With frmUserRate!Gridbrowser
    
        .Rows = .FixedRows
        .Redraw = False
        
        While Not rstCustomers.EOF
        
            .AddItem ""
            .RowHeight(.Rows - 1) = 350
            .TextMatrix(.Rows - 1, 0) = rstCustomers!UserID
            .TextMatrix(.Rows - 1, 1) = rstCustomers!FirstName & rstCustomers!LastName
            .TextMatrix(.Rows - 1, 2) = IIf(IsNull(rstCustomers!FLname), "", rstCustomers!FLname)
            .TextMatrix(.Rows - 1, 3) = IIf(IsNull(rstCustomers!JFtype), "", rstCustomers!JFtype)
            rstCustomers.MoveNext
            
        Wend
        
        .Redraw = True
        
    End With
    
    Unload Me
    
    Exit Sub
    
VBError:
    DisplayVBError
    Exit Sub
ADOError:
    DisplayADOError cnnConnection
    
End Sub

Private Sub Form_Resize()
    
    On Error GoTo ADOError
    
    strQry = "select FLname ,FLid from FLlist"
    Set rstCustomers = GetRecordSet(cnnConnection, strQry)
    
    With cboFL
    
        .AddItem ""
        
        While Not rstCustomers.EOF
            
            .AddItem rstCustomers!FLname
            .ItemData(.NewIndex) = rstCustomers!FLid
            rstCustomers.MoveNext
            
        Wend
    
    End With
    
    Exit Sub
    
VBError:
    DisplayVBError
    Exit Sub
ADOError:
    DisplayADOError cnnConnection
    
End Sub

⌨️ 快捷键说明

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