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

📄 form14.frm

📁 超市商品管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form14 
   Caption         =   "销售排行榜"
   ClientHeight    =   4845
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6255
   LinkTopic       =   "Form14"
   ScaleHeight     =   4845
   ScaleWidth      =   6255
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   495
      Left            =   3840
      Top             =   1800
      Width           =   1935
      _ExtentX        =   3413
      _ExtentY        =   873
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "销售排行榜"
      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.CommandButton Command3 
      Caption         =   "查询"
      Height          =   495
      Left            =   4920
      TabIndex        =   14
      Top             =   120
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "查询"
      Height          =   375
      Left            =   5400
      TabIndex        =   12
      Top             =   840
      Width           =   615
   End
   Begin VB.TextBox Text6 
      Height          =   495
      Left            =   4560
      TabIndex        =   11
      Text            =   "Text6"
      Top             =   840
      Width           =   495
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出"
      Height          =   495
      Left            =   3960
      TabIndex        =   10
      Top             =   3120
      Width           =   1575
   End
   Begin VB.TextBox Text5 
      DataField       =   "现有库存"
      DataSource      =   "Adodc1"
      Height          =   615
      Left            =   1920
      TabIndex        =   9
      Text            =   "Text5"
      Top             =   3120
      Width           =   1335
   End
   Begin VB.TextBox Text4 
      DataField       =   "已售出"
      DataSource      =   "Adodc1"
      Height          =   615
      Left            =   1920
      TabIndex        =   8
      Text            =   "Text4"
      Top             =   2280
      Width           =   1335
   End
   Begin VB.TextBox Text3 
      DataField       =   "供销商"
      DataSource      =   "Adodc1"
      Height          =   615
      Left            =   1920
      TabIndex        =   7
      Text            =   "Text3"
      Top             =   1440
      Width           =   1335
   End
   Begin VB.TextBox Text2 
      DataField       =   "商品名称"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   1920
      TabIndex        =   6
      Text            =   "Text2"
      Top             =   840
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      DataField       =   "商品标号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   1920
      TabIndex        =   5
      Text            =   "Text1"
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label Label7 
      Caption         =   "查询销量大于"
      Height          =   615
      Left            =   3480
      TabIndex        =   15
      Top             =   840
      Width           =   855
   End
   Begin VB.Label Label6 
      Caption         =   "查询库存量为0的商品"
      Height          =   375
      Left            =   3480
      TabIndex        =   13
      Top             =   120
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "现有库存"
      Height          =   495
      Left            =   240
      TabIndex        =   4
      Top             =   3120
      Width           =   1335
   End
   Begin VB.Label Label4 
      Caption         =   "已售出"
      Height          =   495
      Left            =   240
      TabIndex        =   3
      Top             =   2400
      Width           =   1335
   End
   Begin VB.Label Label3 
      Caption         =   "供销商"
      Height          =   495
      Left            =   240
      TabIndex        =   2
      Top             =   1560
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "商品名称"
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   840
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "商品编号"
      DataField       =   " "
      DataSource      =   " "
      Height          =   375
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
End
Attribute VB_Name = "Form14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form4.Show
Me.Hide

End Sub

Private Sub Command2_Click()
 If Len(Text6.Text) > 0 Then
   Adodc1.CommandType = adCmdText
  Adodc1.RecordSource = "select  *  from  销售排行榜  where 已售出  > " & Trim(Text6.Text) & ""
   Adodc1.Refresh
   Else
     MsgBox ("请输入销量!")
End If
End Sub

Private Sub Command3_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select  *  from  销售排行榜  where 现有库存 = '0' "
Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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