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

📄 frmotc.frm

📁 自动售药系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      BorderStyle     =   0  'None
      Height          =   495
      Index           =   25
      Left            =   6680
      MultiLine       =   -1  'True
      TabIndex        =   5
      Text            =   "frmOtc.frx":A26C
      Top             =   6360
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      BorderStyle     =   0  'None
      Height          =   495
      Index           =   26
      Left            =   5020
      MultiLine       =   -1  'True
      TabIndex        =   4
      Text            =   "frmOtc.frx":A272
      Top             =   6360
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Appearance      =   0  'Flat
      BackColor       =   &H00E0E0E0&
      BorderStyle     =   0  'None
      Height          =   495
      Index           =   27
      Left            =   3360
      MultiLine       =   -1  'True
      TabIndex        =   3
      Text            =   "frmOtc.frx":A278
      Top             =   6360
      Width           =   1455
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   34
      Left            =   3720
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   33
      Left            =   5385
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   32
      Left            =   7035
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   31
      Left            =   8700
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   30
      Left            =   10365
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   29
      Left            =   12015
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   28
      Left            =   13680
      Stretch         =   -1  'True
      Top             =   7200
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   6
      Left            =   13680
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   5
      Left            =   12020
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   4
      Left            =   10360
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   3
      Left            =   8700
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   2
      Left            =   7040
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   1
      Left            =   5380
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   0
      Left            =   3720
      Stretch         =   -1  'True
      Top             =   1440
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   7
      Left            =   13680
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   8
      Left            =   12020
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   9
      Left            =   10360
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   10
      Left            =   8700
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   11
      Left            =   7040
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   12
      Left            =   5380
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   13
      Left            =   3720
      Stretch         =   -1  'True
      Top             =   2880
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   14
      Left            =   13680
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   15
      Left            =   12020
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   16
      Left            =   10360
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   17
      Left            =   8700
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   18
      Left            =   7040
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   19
      Left            =   5380
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   20
      Left            =   3720
      Stretch         =   -1  'True
      Top             =   4320
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   21
      Left            =   13680
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   22
      Left            =   12020
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   23
      Left            =   10360
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   24
      Left            =   8700
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   25
      Left            =   7040
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   26
      Left            =   5380
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Image Image1 
      Height          =   495
      Index           =   27
      Left            =   3720
      Stretch         =   -1  'True
      Top             =   5760
      Width           =   735
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Height          =   975
      Left            =   480
      TabIndex        =   2
      Top             =   4320
      Width           =   975
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Height          =   975
      Left            =   480
      TabIndex        =   1
      Top             =   6120
      Width           =   1095
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Height          =   855
      Left            =   480
      TabIndex        =   0
      Top             =   2040
      Width           =   1095
   End
End
Attribute VB_Name = "frmOtc"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private page As Integer
Private Sub Form_Load()
page = 1
closepic
Dim rs As New ADODB.Recordset
Dim m As Integer


Dim j As Integer
j = 1

 rs.Source = "select top 35 * from otcDB"
 rs.ActiveConnection = Constr
 rs.Open
 'If rs.EOF Then rs.Cose: Exit Sub
    While Not rs.EOF
           
       
        Image1(j - 1).Picture = LoadPicture(App.Path & "\3.gif")
         Image1(j - 1).Visible = True
       
       ' If Picture1.Picture = 0 Then Exit Sub
      '  Image1(j - 1).Picture = LoadPicture(load_pic(rs!Name))
           Text1(j - 1).Text = rs!Name '& rs!autoprice & "元/" & rs!unit
           Text1(j - 1).Tag = rs!otcid
           Text1(j - 1).Visible = True
         j = j + 1
        ' Kill MediaTemp
         rs.MoveNext
        
    Wend
   rs.Close
End Sub

Private Sub Image1_Click(Index As Integer)
frmOtcDetail.otcid = Text1(Index).Tag
frmOtcDetail.Show (1)
End Sub

Private Sub Label1_Click()
Unload Me
End Sub
Function closepic()
Dim p As Integer
For p = 0 To 34 Step 1
Image1(p).Visible = False
Text1(p).Visible = False
Next
End Function

Private Sub Label2_Click()
closepic
Dim rs As New ADODB.Recordset

Dim j As Integer
j = 1
 
 rs.Source = "SELECT TOP 35  * From otcDB WHERE (otcID NOT IN (SELECT TOP " & 35 * page & " otcID From otcDB  ORDER BY otcID)) ORDER BY otcID"
 rs.ActiveConnection = Constr
 rs.Open
 'If rs.EOF Then rs.Cose: Exit Sub
    While Not rs.EOF
           
            Image1(j - 1).Picture = LoadPicture(App.Path & "\3.gif")
         Image1(j - 1).Visible = True
           Text1(j - 1).Text = rs!Name 'Name & rs!autoprice & "元/" & rs!unit
           Text1(j - 1).Tag = rs!otcid
           Text1(j - 1).Visible = True
         j = j + 1
'         Kill MediaTemp
         rs.MoveNext
        
    Wend
   rs.Close
   page = page + 1
End Sub

Private Sub Label3_Click()
closepic
Dim rs As New ADODB.Recordset

Dim j As Integer
j = 1
 If page = 1 Then
 rs.Source = "select top 35 * from otcDB "
 Else
  rs.Source = "SELECT TOP 35  * From otcDB WHERE (otcID NOT IN (SELECT TOP " & 35 * (page - 1) & " otcID From otcDB  ORDER BY otcID)) ORDER BY otcID"

 End If
 rs.ActiveConnection = Constr
 rs.Open
 'If rs.EOF Then rs.Cose: Exit Sub
    While Not rs.EOF
           
        Image1(j - 1).Picture = LoadPicture(App.Path & "\3.gif")
         Image1(j - 1).Visible = True
           Text1(j - 1).Text = rs!Name 'Name & rs!autoprice & "元/" & rs!unit
           Text1(j - 1).Tag = rs!otcid
           Text1(j - 1).Visible = True
         j = j + 1
'         Kill MediaTemp
         rs.MoveNext
        
    Wend
   rs.Close
   If page <> 1 Then
   page = page - 1
   End If
End Sub

⌨️ 快捷键说明

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