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

📄 frmuserrate.frm

📁 这是一个Web短信平台后台部分中的预付费管理系统,采用SQL Server数据库,主要是对短信服务的注册用户进得后台充值预付费管理。用到了第三方控件 VideoSoft Active Controls
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      EndProperty
      BorderStyle     =   1
   End
   Begin VSFlex6DAOCtl.vsFlexGrid Gridbrowser 
      Height          =   4425
      Left            =   45
      TabIndex        =   1
      Top             =   630
      Width           =   6690
      _ExtentX        =   11800
      _ExtentY        =   7805
      _ConvInfo       =   1
      Appearance      =   1
      BorderStyle     =   1
      Enabled         =   -1  'True
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      MousePointer    =   0
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      BackColorFixed  =   -2147483633
      ForeColorFixed  =   -2147483630
      BackColorSel    =   -2147483635
      ForeColorSel    =   -2147483634
      BackColorBkg    =   8421504
      BackColorAlternate=   -2147483643
      GridColor       =   -2147483633
      GridColorFixed  =   -2147483632
      TreeColor       =   -2147483632
      FloodColor      =   192
      SheetBorder     =   -2147483642
      FocusRect       =   1
      HighLight       =   1
      AllowSelection  =   -1  'True
      AllowBigSelection=   -1  'True
      AllowUserResizing=   0
      SelectionMode   =   0
      GridLines       =   1
      GridLinesFixed  =   2
      GridLineWidth   =   1
      Rows            =   5000
      Cols            =   10
      FixedRows       =   1
      FixedCols       =   0
      RowHeightMin    =   0
      RowHeightMax    =   0
      ColWidthMin     =   0
      ColWidthMax     =   0
      ExtendLastCol   =   0   'False
      FormatString    =   ""
      ScrollTrack     =   0   'False
      ScrollBars      =   3
      ScrollTips      =   0   'False
      MergeCells      =   0
      MergeCompare    =   0
      AutoResize      =   -1  'True
      AutoSizeMode    =   0
      AutoSearch      =   0
      MultiTotals     =   -1  'True
      SubtotalPosition=   1
      OutlineBar      =   0
      OutlineCol      =   0
      Ellipsis        =   0
      ExplorerBar     =   0
      PicturesOver    =   0   'False
      FillStyle       =   0
      RightToLeft     =   0   'False
      PictureType     =   0
      TabBehavior     =   0
      OwnerDraw       =   0
      Editable        =   0   'False
      ShowComboButton =   -1  'True
      WordWrap        =   0   'False
      TextStyle       =   0
      TextStyleFixed  =   0
      OleDragMode     =   0
      OleDropMode     =   0
      DataMode        =   0
      VirtualData     =   -1  'True
   End
End
Attribute VB_Name = "frmUserRate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*******************************************************
'*    模 块 名 称 :用户费率设置
'*    功 能 描 述 :
'*    程序员姓名  :谭怀志
'*    最后修改人  :谭怀志
'*    最后修改时间:2003/6/26
'*    备        注:
'*******************************************************

Private Sub Form_Load()
    
    On Error Resume Next
    
    '初始化网格
    With Gridbrowser
     
        .RowHeight(0) = 350
        .ColAlignment(0) = flexAlignLeftCenter
        .Cols = 4
        .FixedRows = 1
        .SelectionMode = flexSelectionListBox
        .AllowUserResizing = flexResizeColumns
        .ExplorerBar = flexExSort
        
        .ColWidth(0) = 1800
        .ColWidth(1) = 3000
        .ColWidth(2) = 1500
    
        .TextMatrix(0, 0) = "用户ID"
        .TextMatrix(0, 1) = "用户名称"
        .TextMatrix(0, 2) = "当前费率"
        .TextMatrix(0, 3) = ""

        .ColHidden(3) = True
        
        Call UserRefresh
        
    End With
    
End Sub

Private Sub SzToolbar_ButtonClick(ByVal Button As MSComctlLib.Button)
        
        On Error Resume Next
        
        Select Case Button.Key
        Case "set"
            
            '设置用户费率
            If Gridbrowser.TextMatrix(Gridbrowser.RowSel, 0) <> "" And Gridbrowser.RowSel > 0 Then
                Load frmFLset
                frmFLset.WhichFunction = "User"
                frmFLset.Show vbModal
            End If
            
        Case "default"
                
            '设置默认费率
            Load frmFLset
            frmFLset.WhichFunction = "Default"
            frmFLset.Caption = "默认费率"
            frmFLset.Show vbModal
                
        Case "query"
            
            '查询用户
            frmQueryFLset.Show vbModal
            
        Case "all"
            
            '显示所有用户
            Call UserRefresh
            
        Case "close"
        
            Unload Me
            
        End Select
        
End Sub

Private Sub UserRefresh()
    
    
    '显示所有注册用户
    On Error GoTo ADOError
    
    strQry = "select JFsetting.UserID,FirstName,LastName,JFsetting.FLid,FLname,JFtype from JFsetting,sysUser,FLlist where JFsetting.UserID=sysUser.UserID and JFsetting.FLid*=FLlist.FLid"
    Set rstCustomers = GetRecordSet(cnnConnection, strQry)
        
    With Gridbrowser
    
        .Rows = .FixedRows
        .Redraw = False
        
        While Not rstCustomers.EOF
        
            .AddItem ""
            .RowHeight(Rows - 1) = 350
            .TextMatrix(.Rows - 1, 0) = rstCustomers!UserID
            .TextMatrix(.Rows - 1, 1) = IIf(IsNull(rstCustomers!FirstName & rstCustomers!LastName), "", 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
    
    Exit Sub
    
VBError:
    DisplayVBError
    Exit Sub
ADOError:
    DisplayADOError cnnConnection
        
End Sub

⌨️ 快捷键说明

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