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

📄 frm_bdwxxsz.frm

📁 客户管理系统 对客户的信息进行管理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_bdwxxsz 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "本单位信息设置"
   ClientHeight    =   3975
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5295
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3975
   ScaleWidth      =   5295
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   120
      Top             =   4080
      Visible         =   0   'False
      Width           =   2175
      _ExtentX        =   3836
      _ExtentY        =   661
      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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=khgl.mdb"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=khgl.mdb"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from bdwxx"
      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          =   375
      Left            =   4440
      TabIndex        =   4
      Top             =   3600
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "确定"
      Enabled         =   0   'False
      Height          =   375
      Left            =   3600
      TabIndex        =   3
      Top             =   3600
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "编辑"
      Height          =   375
      Left            =   2760
      TabIndex        =   2
      Top             =   3600
      Width           =   855
   End
   Begin VB.Frame Frame1 
      Height          =   3615
      Left            =   0
      TabIndex        =   1
      Top             =   0
      Width           =   5295
      Begin VB.TextBox Text9 
         Height          =   350
         Left            =   1200
         TabIndex        =   21
         Top             =   960
         Width           =   3975
      End
      Begin VB.TextBox Text8 
         Height          =   350
         Left            =   1200
         TabIndex        =   18
         Top             =   3120
         Width           =   3975
      End
      Begin VB.TextBox Text7 
         Height          =   350
         Left            =   1200
         TabIndex        =   17
         Top             =   2760
         Width           =   3975
      End
      Begin VB.TextBox Text6 
         Height          =   350
         Left            =   1200
         TabIndex        =   16
         Top             =   2400
         Width           =   3975
      End
      Begin VB.TextBox Text5 
         Height          =   350
         Left            =   1200
         TabIndex        =   13
         Top             =   2040
         Width           =   3975
      End
      Begin VB.TextBox Text4 
         Height          =   350
         Left            =   1200
         TabIndex        =   11
         Top             =   1680
         Width           =   3975
      End
      Begin VB.TextBox Text3 
         Height          =   350
         Left            =   1200
         TabIndex        =   9
         Top             =   1320
         Width           =   3975
      End
      Begin VB.TextBox Text2 
         Height          =   350
         Left            =   1200
         TabIndex        =   7
         Top             =   600
         Width           =   3975
      End
      Begin VB.TextBox Text1 
         Height          =   350
         Left            =   1200
         TabIndex        =   0
         Top             =   240
         Width           =   3975
      End
      Begin VB.Label Label9 
         Caption         =   "邮政编码:"
         Height          =   255
         Left            =   120
         TabIndex        =   20
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label8 
         Caption         =   "网址:"
         Height          =   255
         Left            =   120
         TabIndex        =   19
         Top             =   3240
         Width           =   855
      End
      Begin VB.Label Label7 
         Caption         =   "银行账号:"
         Height          =   255
         Left            =   120
         TabIndex        =   15
         Top             =   2880
         Width           =   975
      End
      Begin VB.Label Label6 
         Caption         =   "开户银行:"
         Height          =   255
         Left            =   120
         TabIndex        =   14
         Top             =   2520
         Width           =   975
      End
      Begin VB.Label Label5 
         Caption         =   "联系电话:"
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   2160
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "法人代表:"
         Height          =   255
         Left            =   120
         TabIndex        =   10
         Top             =   1800
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "单位电话:"
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "地址:"
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   720
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "单位名称:"
         Height          =   375
         Left            =   120
         TabIndex        =   5
         Top             =   360
         Width           =   1695
      End
   End
End
Attribute VB_Name = "frm_bdwxxsz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.SetFocus
Command2.Enabled = True
End Sub

Private Sub Command2_Click()
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Or Text6.Text = "" Or Text7.Text = "" Or Text8.Text = "" Or Text9.Text = "" Then
  MsgBox "输入不完全", , "信息提示"
Else
Call Main
     Set adoRs = adoCon.Execute("update bdwxx set 单位名称='" + Text1.Text + "',地址='" + Text2.Text + "',电话='" + Text3.Text + "',法人代表='" + Text4.Text + "',联系电话='" + Text5.Text + "',开户银行='" + Text6.Text + "',银行账号='" + Text7.Text + "',网址='" + Text8.Text + "',邮政编码='" + Text9.Text + "'")
     Set adoRs = adoCon.Execute("update kh set 单位名称='" + Text1.Text + "',单位邮政编码='" + Text9.Text + "'")
     MsgBox "信息修改成功!", 48, "客户管理管理系统"
adoCon.Close
End If
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub

Private Sub Form_Load()
  Adodc1.RecordSource = "select * from bdwxx"
  Adodc1.Refresh
    If Adodc1.Recordset.RecordCount > 0 Then
    Text1.Text = Adodc1.Recordset.Fields("单位名称")
    Text2.Text = Adodc1.Recordset.Fields("地址")
    Text3.Text = Adodc1.Recordset.Fields("电话")
    Text4.Text = Adodc1.Recordset.Fields("法人代表")
    Text5.Text = Adodc1.Recordset.Fields("联系电话")
    Text6.Text = Adodc1.Recordset.Fields("开户银行")
    Text7.Text = Adodc1.Recordset.Fields("银行账号")
    Text8.Text = Adodc1.Recordset.Fields("网址")
    Text9.Text = Adodc1.Recordset.Fields("邮政编码")
    Else
    End If
   frm_main.StatusBar1.Panels(1) = Me.Caption
   Me.Left = (Screen.Width - Me.Width) / 2
   Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.StatusBar1.Panels(1) = "长春市明日科技有限责任公司"
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text2.SetFocus
  Else
  End If
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text9.SetFocus
  Else
  End If
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text4.SetFocus
  Else
  End If
End Sub
Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text5.SetFocus
  Else
  End If
End Sub
Private Sub Text5_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text6.SetFocus
  Else
  End If
End Sub
Private Sub Text6_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text7.SetFocus
  Else
  End If
End Sub
Private Sub Text7_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text8.SetFocus
  Else
  End If
End Sub
Private Sub Text8_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text9.SetFocus
  Else
  End If
End Sub

Private Sub Text9_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then
    Text3.SetFocus
  Else
  End If
End Sub

⌨️ 快捷键说明

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