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

📄 main_rcyw_kccx.frm

📁 图书综合管理系统 VB毕业设计 原代码+论文
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   450.142
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   555.024
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column12 
            ColumnWidth     =   794.835
         EndProperty
         BeginProperty Column13 
            ColumnWidth     =   794.835
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   -735
      Top             =   2565
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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 MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   -360
      Top             =   2910
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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 VB.Frame Frame1 
      Height          =   630
      Left            =   45
      TabIndex        =   8
      Top             =   -15
      Width           =   5385
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "main_rcyw_kccx.frx":0457
         Left            =   1605
         List            =   "main_rcyw_kccx.frx":0459
         TabIndex        =   11
         Top             =   210
         Width           =   780
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   90
         TabIndex        =   10
         Top             =   210
         Width           =   1515
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   2385
         TabIndex        =   9
         Top             =   210
         Width           =   2910
      End
   End
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   330
      Left            =   0
      Top             =   0
      Visible         =   0   'False
      Width           =   1365
      _ExtentX        =   2408
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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 xsb"
      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 je 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H000000FF&
      Height          =   180
      Left            =   4920
      TabIndex        =   5
      Top             =   3705
      Width           =   1755
   End
   Begin VB.Label sl 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H00FF0000&
      Height          =   180
      Left            =   2655
      TabIndex        =   4
      Top             =   3705
      Width           =   1080
   End
   Begin VB.Label pz 
      BackStyle       =   0  'Transparent
      ForeColor       =   &H0000FF00&
      Height          =   180
      Left            =   945
      TabIndex        =   3
      Top             =   3705
      Width           =   780
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "库存品种:         库存数量:               库存金额:"
      Height          =   195
      Left            =   60
      TabIndex        =   2
      Top             =   3705
      Width           =   6765
   End
End
Attribute VB_Name = "main_rcyw_kccx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Myval As String
Private Sub Form_Load()
 Combo1.AddItem ("书号")
 Combo1.AddItem ("条形码")
 Combo1.AddItem ("书名")
 Combo1.AddItem ("作者")
 Combo1.AddItem ("出版社")
 Combo1.AddItem ("图书类别")
 Combo1.AddItem ("存放位置")
 Combo1.ListIndex = 0
 Combo2.AddItem ("like")
 Combo2.AddItem ("=")
 Combo2.ListIndex = 0
 CmdFind_Click
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.Enabled = True
End Sub
Private Sub CmdFind_Click()
 Select Case Combo2.text
  Case Is = "like"
   Adodc1.RecordSource = "select * from kcb where kcb." & Combo1.text & " " & " like +'" + Text1.text + "'+ '%'order by val(书号)"
   Adodc1.Refresh
   Adodc2.RecordSource = "select count(*)as 品种,sum(现存数量)as 合计数量,sum(金额)as 合计金额 from kcb  where kcb." & Combo1.text & " " & "like +'" + Text1.text + "'+ '%'"
   Adodc2.Refresh
  Case Is = "="
   Adodc1.RecordSource = "select * from kcb where kcb." & Combo1.text & " " & "= '" + Text1.text + "'order by val(书号)"
   Adodc1.Refresh
   Adodc2.RecordSource = "select count(*)as 品种,sum(现存数量)as 合计数量,sum(金额)as 合计金额 from kcb  where kcb." & Combo1.text & " " & "='" + Text1.text + "'"
   Adodc2.Refresh
 End Select
 With Adodc2.Recordset
  If .Fields(0) <> "" Then pz.Caption = .Fields(0) Else pz.Caption = "0"
  If .Fields(1) <> "" Then sl.Caption = .Fields(1) Else sl.Caption = "0"
  If .Fields(2) <> "" Then je.Caption = Format(.Fields(2), "0.00") Else je.Caption = "0.00"
 End With
End Sub
Private Sub CmdPrint_Click()
 Select Case Combo2.text
  Case Is = "like"
    DataE1.rsCommand3.Open "select * from kcb where kcb." & Combo1.text & " " & " like +'" + Text1.text + "'+ '%'order by val(书号)", Cnn, adOpenKeyset, adLockOptimistic
  Case Is = "="
    DataE1.rsCommand3.Open "select * from kcb where kcb." & Combo1.text & " " & "= '" + Text1.text + "'order by val(书号)", Cnn, adOpenKeyset, adLockOptimistic
 End Select
 DR1_kccx.Show
End Sub
Private Sub CmdDelete_Click()
 Myval = MsgBox("是否真的删除该数据?", vbYesNo)
 If Myval = vbYes Then
  On Error Resume Next
  Adodc1.Recordset.Delete
  Adodc1.Recordset.Update
 End If
End Sub
Private Sub CmdEnd_Click()
 Unload Me
 frm_main.Enabled = True
End Sub

⌨️ 快捷键说明

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