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

📄 frmrecord.frm

📁 这是用不VB+SQLSERVER2000开发的.
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form FrmRecord 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "查看图书借阅记录"
   ClientHeight    =   5970
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9045
   Icon            =   "FrmRecord.frx":0000
   LinkTopic       =   "FrmExpMan"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5970
   ScaleWidth      =   9045
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtName 
      Enabled         =   0   'False
      Height          =   330
      Left            =   4200
      Locked          =   -1  'True
      TabIndex        =   5
      Top             =   165
      Width           =   1335
   End
   Begin VB.TextBox txtCardNo 
      Enabled         =   0   'False
      Height          =   330
      Left            =   1320
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   165
      Width           =   1335
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "FrmRecord.frx":0442
      Height          =   4575
      Left            =   120
      TabIndex        =   1
      Top             =   600
      Width           =   8775
      _ExtentX        =   15478
      _ExtentY        =   8070
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         MarqueeStyle    =   3
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton Cmd_Back 
      BackColor       =   &H80000004&
      Cancel          =   -1  'True
      Caption         =   "返 回"
      Height          =   400
      Left            =   3872
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   5400
      Width           =   1300
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   6120
      Top             =   120
      Visible         =   0   'False
      Width           =   2415
      _ExtentX        =   4260
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Books;Data Source=127.0.0.1"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Books;Data Source=127.0.0.1"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   "sa"
      RecordSource    =   "select * from borrow"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "姓 名"
      Height          =   180
      Left            =   3480
      TabIndex        =   4
      Top             =   240
      Width           =   450
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "借阅证编号"
      Height          =   180
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   900
   End
End
Attribute VB_Name = "FrmRecord"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public TmpCardNo As String

'单击“返回”按钮
Private Sub Cmd_Back_Click()
  Unload Me
End Sub

'启动窗体
Private Sub Form_Load()
  txtCardNo = TmpCardNo
  MyCards.GetInfo (TmpCardNo)   '读取借阅证件的信息
  txtName = MyCards.Name
  '设置ADO控件的连接字符串
  Adodc1.ConnectionString = conn
  '设置数据源
  Adodc1.RecordSource = "SELECT l.Id AS 编号,l.BookNo AS 图书编号,i.BookName AS 图书名称," _
        + "b.BorrowDate AS 借阅日期,l.ReturnDate AS 应归还日期 ," _
        + "l.RealReturnDate AS 实际归还日期,l.GDate AS 续借日期,l.Forfeit AS 罚款金额, " _
        + "l.Status AS 状态 FROM Borrow b,BorrowList l,BookInfo i " _
        + " WHERE l.BorrowNo=b.BorrowNo AND l.BookNo=i.BookNo " _
        + " AND b.Cardno='" + Trim(TmpCardNo) + "' ORDER BY l.Status,l.ReturnDate DESC"
  Adodc1.Refresh
  '设置列宽度
  DataGrid1.Columns(0).Width = 800
  DataGrid1.Columns(1).Width = 1000
  DataGrid1.Columns(2).Width = 2000
  DataGrid1.Columns(3).Width = 1100
  DataGrid1.Columns(4).Width = 1100
  DataGrid1.Columns(5).Width = 1400
  DataGrid1.Columns(6).Width = 1100
  DataGrid1.Columns(7).Width = 1000
  DataGrid1.Columns(8).Width = 700
End Sub

⌨️ 快捷键说明

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