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

📄 供应商信息.frm

📁 还不错的一个东东 源码+毕业论文。还不错哦 欢迎来下
💻 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 供应商信息 
   Caption         =   "供应商信息"
   ClientHeight    =   8010
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   10530
   LinkTopic       =   "Form1"
   ScaleHeight     =   8010
   ScaleWidth      =   10530
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command4 
      Caption         =   "放弃"
      Enabled         =   0   'False
      Height          =   495
      Left            =   4620
      TabIndex        =   25
      Top             =   3240
      Width           =   1215
   End
   Begin VB.CommandButton Command8 
      Caption         =   "下一条"
      Height          =   495
      Left            =   8940
      TabIndex        =   24
      Top             =   3240
      Width           =   975
   End
   Begin VB.CommandButton Command7 
      Caption         =   "上一条"
      Height          =   495
      Left            =   7620
      TabIndex        =   23
      Top             =   3240
      Width           =   975
   End
   Begin VB.CommandButton Command5 
      Caption         =   "查询"
      Height          =   495
      Left            =   6180
      TabIndex        =   20
      Top             =   3240
      Width           =   1035
   End
   Begin VB.CommandButton Command3 
      Caption         =   "修改"
      Height          =   495
      Left            =   3180
      TabIndex        =   19
      Top             =   3240
      Width           =   1035
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   495
      Left            =   1680
      TabIndex        =   18
      Top             =   3240
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加"
      Height          =   495
      Left            =   240
      TabIndex        =   17
      Top             =   3240
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "查找方式"
      Height          =   2415
      Left            =   5820
      TabIndex        =   10
      Top             =   360
      Visible         =   0   'False
      Width           =   3975
      Begin VB.CommandButton Command6 
         Caption         =   "确定"
         Height          =   435
         Left            =   1740
         TabIndex        =   21
         Top             =   1800
         Width           =   1395
      End
      Begin VB.TextBox Text8 
         Height          =   315
         Left            =   1620
         TabIndex        =   16
         Top             =   1200
         Width           =   1815
      End
      Begin VB.TextBox Text7 
         Height          =   315
         Left            =   1620
         TabIndex        =   15
         Top             =   780
         Width           =   1815
      End
      Begin VB.TextBox Text6 
         Height          =   315
         Left            =   1620
         TabIndex        =   14
         Top             =   360
         Width           =   1815
      End
      Begin VB.OptionButton Option3 
         Caption         =   "所在城市:"
         Height          =   315
         Left            =   480
         TabIndex        =   13
         Top             =   1260
         Width           =   1335
      End
      Begin VB.OptionButton Option2 
         Caption         =   "供应商名:"
         Height          =   435
         Left            =   480
         TabIndex        =   12
         Top             =   780
         Width           =   1455
      End
      Begin VB.OptionButton Option1 
         Caption         =   "供应商号:"
         Height          =   315
         Left            =   480
         TabIndex        =   11
         Top             =   360
         Width           =   1455
      End
   End
   Begin VB.TextBox Text5 
      DataField       =   "City"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2100
      TabIndex        =   9
      Top             =   2340
      Width           =   2595
   End
   Begin VB.TextBox Text4 
      DataField       =   "LinkTell"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2100
      TabIndex        =   8
      Top             =   1860
      Width           =   2595
   End
   Begin VB.TextBox Text3 
      DataField       =   "Link"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2100
      TabIndex        =   7
      Top             =   1380
      Width           =   2595
   End
   Begin VB.TextBox Text2 
      DataField       =   "FirmName"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2100
      TabIndex        =   6
      Top             =   900
      Width           =   2595
   End
   Begin VB.TextBox Text1 
      DataField       =   "FirmCode"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   2100
      TabIndex        =   5
      Top             =   420
      Width           =   2595
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "供应商信息.frx":0000
      Height          =   3735
      Left            =   180
      TabIndex        =   0
      Top             =   3780
      Width           =   9735
      _ExtentX        =   17171
      _ExtentY        =   6588
      _Version        =   393216
      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 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   720
      Top             =   7500
      Visible         =   0   'False
      Width           =   2955
      _ExtentX        =   5212
      _ExtentY        =   661
      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=Medicine"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "Medicine"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "FirmInfor"
      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 Label5 
      Caption         =   "所在城市:"
      Height          =   435
      Left            =   300
      TabIndex        =   22
      Top             =   2400
      Width           =   1755
   End
   Begin VB.Label Label4 
      Caption         =   "联系电话:"
      Height          =   375
      Left            =   360
      TabIndex        =   4
      Top             =   1920
      Width           =   1755
   End
   Begin VB.Label Label3 
      Caption         =   "联系人:"
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Top             =   1440
      Width           =   1755
   End
   Begin VB.Label Label2 
      Caption         =   "供应商名:"
      Height          =   375
      Left            =   360
      TabIndex        =   2
      Top             =   960
      Width           =   1755
   End
   Begin VB.Label Label1 
      Caption         =   "供应商号:"
      Height          =   375
      Left            =   360
      TabIndex        =   1
      Top             =   480
      Width           =   1755
   End
End
Attribute VB_Name = "供应商信息"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
On Error Resume Next
Command2.Enabled = False
Command3.Enabled = False
Command4.Enabled = True
Command5.Enabled = False
If Command1.Caption = "添加" Then
   Command1.Caption = "确认"
   Adodc1.Recordset.AddNew
   Text1.SetFocus
Else
Command1.Caption = "添加"
Adodc1.Recordset.Update
Adodc1.Recordset.MoveLast
Command2.Enabled = True
Command3.Enabled = True
Command5.Enabled = True
End If
End Sub


Private Sub Command2_Click()
On Error Resume Next
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast
End Sub

Private Sub Command3_Click()
On Error Resume Next
Command1.Enabled = False
Command2.Enabled = False
Command4.Enabled = True
Command5.Enabled = False
If Command3.Caption = "修改" Then
   Command3.Caption = "确认"
   Adodc1.Recordset.Update
   Text1.SetFocus
Else
Command3.Caption = "修改"
Adodc1.Recordset.Update
Command1.Enabled = True
Command2.Enabled = True
Command5.Enabled = True
End If
End Sub

Private Sub Command4_Click()
Command3.Caption = "修改"
Command1.Caption = "添加"
Command1.Enabled = True
Command2.Enabled = True
Command3.Enabled = True
Command5.Enabled = True
On Error GoTo RefreshErr
  Adodc1.Refresh
  Exit Sub
RefreshErr:
  MsgBox Err.Description
End Sub

Private Sub Command5_Click()
Frame1.Visible = True
End Sub

Private Sub Command6_Click()
If Option1 Then
Adodc1.RecordSource = "select * from firminfor where firmcode= '" & Text6 & "'"
Adodc1.Refresh
End If
If Option2 Then
Adodc1.RecordSource = "select * from firminfor where firmname= '" & Text7 & "'"
Adodc1.Refresh
End If
If Option3 Then
 On Error Resume Next
Adodc1.RecordSource = " Select *  From FirmInfor Where city= '" & Trim(Text8.Text) & "'"
Adodc1.Refresh
End If
If Adodc1.Recordset.EOF Then
MsgBox "无此信息", , "提示"
Adodc1.RecordSource = "firminfor"
Adodc1.Refresh
End If
End Sub

Private Sub Command7_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "当前记录为第一条", , "提示"
End If
End Sub

Private Sub Command8_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "当前记录为最后一条", , "提示"
End If
End Sub
Private Sub Option1_Click()
Text7.Text = ""
Text8.Text = ""
End Sub

Private Sub Option2_Click()
Text6.Text = ""
Text8.Text = ""
End Sub

Private Sub Option3_Click()
Text6.Text = ""
Text7.Text = ""
End Sub

⌨️ 快捷键说明

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