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

📄 main_khcxjg.frm

📁 客户管理系统 基于vb开发环境
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Height          =   1200
            Left            =   105
            TabIndex        =   7
            Top             =   375
            Width           =   1200
         End
      End
      Begin VB.Frame Frame1 
         Height          =   3405
         Left            =   75
         TabIndex        =   1
         Top             =   495
         Width           =   8325
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   9
            Left            =   6645
            TabIndex        =   17
            Top             =   2940
            Width           =   1545
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   7
            Left            =   6645
            TabIndex        =   16
            Top             =   2520
            Width           =   1545
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   8
            Left            =   1260
            TabIndex        =   15
            Top             =   2865
            Width           =   4320
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   5
            Left            =   6660
            TabIndex        =   14
            Top             =   2055
            Width           =   1545
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   6
            Left            =   1260
            TabIndex        =   13
            Top             =   2475
            Width           =   4320
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   4
            Left            =   1260
            TabIndex        =   12
            Top             =   2040
            Width           =   4320
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   3
            Left            =   1260
            TabIndex        =   11
            Top             =   1650
            Width           =   6960
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   2
            Left            =   1260
            TabIndex        =   10
            Top             =   1215
            Width           =   6960
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   1
            Left            =   1260
            TabIndex        =   9
            Top             =   780
            Width           =   6960
         End
         Begin VB.TextBox kh 
            Appearance      =   0  'Flat
            Enabled         =   0   'False
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   315
            Index           =   0
            Left            =   1260
            TabIndex        =   8
            Top             =   375
            Width           =   6960
         End
         Begin VB.Label Label2 
            Caption         =   "业务联系人:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   300
            Left            =   60
            TabIndex        =   30
            Top             =   2910
            Width           =   1185
         End
         Begin VB.Label Label4 
            BackStyle       =   0  'Transparent
            Caption         =   " 传真  :           电话  :"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   855
            Left            =   5700
            TabIndex        =   4
            Top             =   2550
            Width           =   840
         End
         Begin VB.Label Label3 
            Caption         =   "邮政编码:"
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   270
            Left            =   5625
            TabIndex        =   3
            Top             =   2085
            Width           =   1020
         End
         Begin VB.Label Label1 
            Caption         =   "客户编号:              客户名称:             客户简称:              客户地址:             所属地区:             客户电话: "
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   10.5
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   2400
            Left            =   90
            TabIndex        =   2
            Top             =   405
            Width           =   1200
         End
      End
      Begin VB.Label czjl 
         BackStyle       =   0  'Transparent
         Height          =   285
         Left            =   4050
         TabIndex        =   29
         Top             =   -585
         Width           =   4905
      End
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "查询结果"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3780
      TabIndex        =   33
      Top             =   15
      Width           =   1815
   End
End
Attribute VB_Name = "main_khcxjg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Integer
Private Sub Form_Load()
  For i = 0 To 16
      kh(i).Enabled = False
  Next i
End Sub
Private Sub Command1_Click()
Adodc1.RecordSource = "select * from kh"
Adodc1.Refresh
  If Not Adodc1.Recordset.BOF Then
     Adodc1.Recordset.MoveFirst
     For i = 0 To 16
       If Adodc1.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc1.Recordset.Fields(i)
     Next i
  End If
End Sub
Private Sub Command2_Click()
Number = kh(0).Text
Adodc2.RecordSource = "select * from kh where 客户编号 <= '" + Number + "' "
Adodc2.Refresh
  If Adodc2.Recordset.RecordCount <> 0 Then
     Adodc2.Recordset.MoveLast
     If Adodc2.Recordset.BOF = False Then Adodc2.Recordset.MovePrevious
     If Adodc2.Recordset.BOF = True Then Adodc2.Recordset.MoveFirst
     For i = 0 To 16
       If Adodc2.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc2.Recordset.Fields(i)
     Next i
  End If
End Sub
Private Sub Command3_Click()
Number = kh(0).Text
Adodc2.RecordSource = "select * from kh where 客户编号 >= '" + Number + "' "
Adodc2.Refresh
If Adodc2.Recordset.RecordCount <> 0 Then
If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveNext
If Adodc2.Recordset.EOF = True Then Adodc2.Recordset.MoveLast
For i = 0 To 16
If Adodc2.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc2.Recordset.Fields(i)
Next i
End If
End Sub
Private Sub Command4_Click()
Adodc1.RecordSource = "select * from kh "
Adodc1.Refresh
If Not Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
For i = 0 To 16
If Adodc1.Recordset.Fields(i) <> "" Then kh(i).Text = Adodc1.Recordset.Fields(i)
Next i
End If
End Sub
Private Sub ComEnd_Click()
  Frm_main.Enabled = True
  Unload Me
End Sub

⌨️ 快捷键说明

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