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

📄 frmborrowinfo.frm

📁 是有关于音像制品的管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form borrowInfo 
   BackColor       =   &H00FFFFC0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "租借管理"
   ClientHeight    =   5595
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9825
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "frmBorrowinfo.frx":0000
   ScaleHeight     =   5595
   ScaleWidth      =   9825
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton EXIT 
      Caption         =   "返  回"
      Height          =   375
      Left            =   5640
      TabIndex        =   3
      Top             =   4920
      Width           =   1335
   End
   Begin VB.CommandButton addBrwInfo 
      Caption         =   "添加租借信息"
      Height          =   375
      Left            =   2160
      TabIndex        =   2
      Top             =   4920
      Width           =   1335
   End
   Begin MSFlexGridLib.MSFlexGrid borrowedListGrid 
      Height          =   3855
      Left            =   0
      TabIndex        =   1
      Top             =   840
      Width           =   9855
      _ExtentX        =   17383
      _ExtentY        =   6800
      _Version        =   393216
      Rows            =   15
      Cols            =   12
      FixedCols       =   0
      BackColorBkg    =   14737632
      SelectionMode   =   1
      AllowUserResizing=   1
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FFFFC0&
      BackStyle       =   0  'Transparent
      Caption         =   "租借列表"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   24
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   495
      Left            =   3600
      TabIndex        =   0
      Top             =   240
      Width           =   1935
   End
End
Attribute VB_Name = "borrowInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Function borrowList_update()
   Dim rs As New ADODB.Recordset
   Dim sql As String
   
   sql = "select * from borrowInfo"
   Dim i As Integer
   Set rs = TransactSQL(sql)
      With borrowedListGrid
        .Rows = 1
        While Not rs.EOF
        .Rows = .Rows + 1
        .TextMatrix(.Rows - 1, 0) = rs(0)
        .TextMatrix(.Rows - 1, 1) = rs(1)
        .TextMatrix(.Rows - 1, 2) = rs(2)
        .TextMatrix(.Rows - 1, 3) = rs(3)
        .TextMatrix(.Rows - 1, 4) = rs(4)
        .TextMatrix(.Rows - 1, 5) = rs(5)
         rs.MoveNext
        Wend
      End With
End Function

Private Sub addBrwInfo_Click()
    borrowInfoAdd.Show
End Sub

Private Sub borrowedListGrid_Click()
    Dim i As Integer
    '首先获得选定的行号
    i = borrowedListGrid.Row
    '将选定行的内容在文本框中显示
    curSelBkNo.Text = borrowedListGrid.TextMatrix(i, 3)
End Sub


Private Sub Form_Activate()
    Call borrowList_update
End Sub


Private Sub exit_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    'MSFlexGrid1 表头
    With borrowedListGrid
         .TextMatrix(0, 0) = "会员编号"
         .TextMatrix(0, 1) = "会员姓名"
         .TextMatrix(0, 2) = "产品编号"
         .TextMatrix(0, 3) = "产品名称"
         .TextMatrix(0, 4) = "产品类型"
         .TextMatrix(0, 5) = "借出日期"
         .ColWidth(4) = 1500
         .ColWidth(5) = 1500
         .ColWidth(8) = 1500
         .ColWidth(9) = 1200
         .ColWidth(10) = 1200
         .ColWidth(11) = 2000
         .BackColorFixed = RGB(247, 214, 157)
    End With

    '在  中查询相应信息,在MSFlexGrid1中显示
    Call borrowList_update
    
End Sub

⌨️ 快捷键说明

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