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

📄 main_rcyw_kcsxx.frm

📁 是基于C#语言的一个图书综合管理系统的开发案例,相当实用
💻 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 main_rcyw_kcsxx 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "图书管理-【库存上限下限设置】"
   ClientHeight    =   3720
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7815
   Icon            =   "main_rcyw_kcsxx.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3720
   ScaleWidth      =   7815
   StartUpPosition =   1  '所有者中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   495
      Top             =   3270
      Visible         =   0   'False
      Width           =   1980
      _ExtentX        =   3493
      _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=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=Nbooks"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "Nbooks"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from kcb"
      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 MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "main_rcyw_kcsxx.frx":0CCA
      Height          =   2940
      Left            =   90
      TabIndex        =   5
      Top             =   765
      Width           =   7700
      _ExtentX        =   13573
      _ExtentY        =   5186
      _Version        =   393216
      AllowArrows     =   0   'False
      BackColor       =   12713963
      HeadLines       =   1
      RowHeight       =   15
      FormatLocked    =   -1  'True
      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     =   7
      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
      BeginProperty Column02 
         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 Column03 
         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 Column04 
         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 Column05 
         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 Column06 
         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 
         BeginProperty Column00 
            ColumnWidth     =   1184.882
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   2294.929
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   450.142
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   705.26
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   794.835
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame1 
      Height          =   630
      Left            =   75
      TabIndex        =   2
      Top             =   90
      Width           =   4635
      Begin VB.TextBox Text1 
         BackColor       =   &H00FFFFFF&
         Height          =   300
         Left            =   1665
         TabIndex        =   4
         Top             =   210
         Width           =   2865
      End
      Begin VB.ComboBox Combo1 
         BackColor       =   &H00FFFFFF&
         Height          =   300
         ItemData        =   "main_rcyw_kcsxx.frx":0CDF
         Left            =   90
         List            =   "main_rcyw_kcsxx.frx":0CE1
         TabIndex        =   3
         Top             =   210
         Width           =   1515
      End
   End
   Begin VB.Frame Frame2 
      Height          =   630
      Left            =   4680
      TabIndex        =   0
      Top             =   90
      Width           =   3120
      Begin VB.CommandButton Command1 
         Caption         =   "&E 退出"
         Height          =   350
         Left            =   2025
         TabIndex        =   6
         Top             =   195
         Width           =   990
      End
      Begin VB.CommandButton CmdFind 
         Caption         =   "&F 查询"
         Height          =   350
         Left            =   960
         TabIndex        =   1
         Top             =   195
         Width           =   990
      End
   End
End
Attribute VB_Name = "main_rcyw_kcsxx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    '自动识别路径
    Adodc1.ConnectionString = "DSN=NBooks"
    Adodc1.RecordSource = "select * from kcb"
    Adodc1.Refresh
    '添加字段列表
    Combo1.AddItem ("书号")
    Combo1.AddItem ("条形码")
    Combo1.AddItem ("书名")
    Combo1.AddItem ("作者")
    Combo1.AddItem ("出版社")
    Combo1.AddItem ("图书类别")
    Combo1.AddItem ("存放位置")
    Combo1.ListIndex = 1
    '锁定DataGrid1表格的0至5列
    Dim a As Integer
    For a = 0 To 4
        DataGrid1.Columns(a).Locked = True
    Next a
    '按选择的字段和输入的内容模糊查询
    Adodc1.RecordSource = "select * from kcb "
    Adodc1.Refresh
End Sub
Private Sub Form_Unload(Cancel As Integer)
    frm_main.Enabled = True
End Sub
Private Sub CmdFind_Click()  '查询
    '按选择的字段和输入的内容模糊查询
    Adodc1.RecordSource = "select * from kcb where kcb." & Combo1.text & " " & " like '%" + Text1.text + "%'order by 书号"
    Adodc1.Refresh
End Sub
Private Sub Command1_Click()  '退出
    frm_main.Enabled = True
    Unload Me
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 13 Then CmdFind.SetFocus   '按回车键CmdFind获得焦点
End Sub

⌨️ 快捷键说明

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