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

📄 frmphcustom.frm

📁 这是用Visual Basic6开发的大型喷绘业务管理系统,数据库采用Access数据库
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmPHcustom 
   BorderStyle     =   0  'None
   Caption         =   "客户管理"
   ClientHeight    =   6285
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   8370
   LinkTopic       =   "Form1"
   Picture         =   "frmPHcustom.frx":0000
   ScaleHeight     =   6285
   ScaleWidth      =   8370
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture7 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   6120
      Picture         =   "frmPHcustom.frx":AC482
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   7
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture6 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   5265
      Picture         =   "frmPHcustom.frx":ADB9C
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   6
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture5 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   4395
      Picture         =   "frmPHcustom.frx":AF2B6
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   5
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture4 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   3540
      Picture         =   "frmPHcustom.frx":B09D0
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   4
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture3 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   2580
      Picture         =   "frmPHcustom.frx":B20EA
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   3
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture2 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   1650
      Picture         =   "frmPHcustom.frx":B3804
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   2
      Top             =   780
      Width           =   660
   End
   Begin VB.PictureBox Picture1 
      BorderStyle     =   0  'None
      Height          =   615
      Left            =   750
      Picture         =   "frmPHcustom.frx":B4F1E
      ScaleHeight     =   41
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   44
      TabIndex        =   1
      Top             =   780
      Width           =   660
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   4185
      Left            =   570
      TabIndex        =   8
      Top             =   1590
      Width           =   7455
      _ExtentX        =   13150
      _ExtentY        =   7382
      MultiSelect     =   -1  'True
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      FlatScrollBar   =   -1  'True
      GridLines       =   -1  'True
      _Version        =   393217
      ForeColor       =   -2147483640
      BackColor       =   -2147483643
      BorderStyle     =   1
      Appearance      =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      NumItems        =   0
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "客户资料管理"
      ForeColor       =   &H0000FFFF&
      Height          =   225
      Left            =   900
      TabIndex        =   0
      Top             =   300
      Width           =   1245
   End
   Begin VB.Image Image1 
      Height          =   330
      Left            =   7800
      Picture         =   "frmPHcustom.frx":B6638
      Top             =   210
      Width           =   330
   End
   Begin VB.Image Image2 
      Height          =   375
      Left            =   7380
      Picture         =   "frmPHcustom.frx":B6C52
      Top             =   210
      Width           =   390
   End
End
Attribute VB_Name = "frmPHcustom"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim n As Integer
Dim jframe As New dframe
Dim env As rdoEnvironment
Dim cn As rdoConnection
Dim result As rdoResultset
Dim sql As String
Dim d_conn As String
Dim i As Integer
Private Sub Form_Load()
   rgn1 = 0
   n = 0
   Dim Ma As Dat
   Show
   Open App.Path & "\custom.dat" For Random As #1 Len = Len(Ma)
   Do While Not EOF(1)
      n = n + 1
      Get #1, n, Ma
      If rgn1 = 0 Then rgn1 = CreateRectRgn(Ma.sx, Ma.sy, Ma.ex, Ma.ey)
      If rgn1 <> 0 Then
            rgn2 = CreateRectRgn(Ma.sx, Ma.sy, Ma.ex, Ma.ey)
            CombineRgn rgn1, rgn1, rgn2, 2
                  '释放系统资源
            DeleteObject rgn2
      End If
  Loop
'关闭文件
    Close #1
    SetWindowRgn hwnd, rgn1, True
    DeleteObject rgn1
'    ''''''''''连接远程数据库SQL SERVER''''
'    Set env = rdoEnvironments(0)
'    env.CursorDriver = rdUseOdbc
'    d_conn = "uid=sa;pwd=;driver={SQL SERVER};SERVER=ntserver;database=phdatabase;"
'    Set cn = env.OpenConnection(dsname:="odbc_api_demo", Prompt:="rdodriverprompt", ReadOnly:=False, Connect:=d_conn)
'    ''''''''''
     'ListView1.ColumnHeaders.Clear
     ListView1.ListItems.Clear
     ListView1.FullRowSelect = True
     ListView1.HotTracking = True
     ListView1.View = lvwReport
     'ListView1.ColumnHeaders.Add , , "   "
     Set clm = ListView1.ColumnHeaders.Add(, , "客商类别", ListView1.width / 6)
     Set clm = ListView1.ColumnHeaders.Add(, , "客户名称", ListView1.width / 6)
     Set clm = ListView1.ColumnHeaders.Add(, , "联 系 人", ListView1.width / 6)
     Set clm = ListView1.ColumnHeaders.Add(, , "联系电话", ListView1.width / 6)
     Set clm = ListView1.ColumnHeaders.Add(, , "传    真", ListView1.width / 6)
     Set clm = ListView1.ColumnHeaders.Add(, , "电子邮件", ListView1.width / 6)
     ''''''
      On Error GoTo errmsg
      sql = "select  *  from  customtable" '  where  客户类别='" & Trim(Combo1.Text) & "'"
      Set result = cn.OpenResultset(sql, rdOpenDynamic, rdConcurRowVer)
      frmPHcustom.ListView1.ListItems.Clear
      If result.RowCount <> 0 Then
         Do While Not result.EOF()
            Set itm = frmPHcustom.ListView1.ListItems.Add(, , result("客户类别"))
            itm.SubItems(1) = Trim(result("客户名称"))
            itm.SubItems(2) = Trim(result("联系人"))
            itm.SubItems(3) = Trim(result("联系电话"))
            itm.SubItems(4) = Trim(result("传真"))
            itm.SubItems(5) = Trim(result("电子邮件"))
            result.MoveNext
         Loop
     End If
errmsg:
     If Err.Number <> 0 Then
        Set itm = frmPHcustom.ListView1.ListItems.Add(, , "电脑培训学校")
        itm.SubItems(1) = "北京鸿宇计算机培训" ' Trim(result("客户名称"))
        itm.SubItems(2) = "王小姐" 'Trim(result("联系人"))
        itm.SubItems(3) = "01022630451" 'Trim(result("联系电话"))
        itm.SubItems(4) = "01022630451" 'Trim(result("传真"))
        itm.SubItems(5) = "zlwwlh&21.com.cn" 'Trim(result("电子邮件"))
        '''
        Set itm = frmPHcustom.ListView1.ListItems.Add(, , "汽车修配厂")
        itm.SubItems(1) = "抚顺鸿宇汽修厂" ' Trim(result("客户名称"))
        itm.SubItems(2) = "李小姐" 'Trim(result("联系人"))
        itm.SubItems(3) = "04132630451" 'Trim(result("联系电话"))
        itm.SubItems(4) = "04133564111" 'Trim(result("传真"))
        itm.SubItems(5) = "BeiJwlh&21.com.cn" 'Trim(result("电子邮件"))
     End If
End Sub

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 1 Then
       mX = X
       mY = Y
       
    End If
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = 1 Then
       frmPHcustom.Move frmPHcustom.Left - mX + X, frmPHcustom.Top - mY + Y
    End If
    Picture2.Cls
    Picture3.Cls
    Picture4.Cls
    Picture5.Cls
    Picture1.Cls
    Picture7.Cls
    Picture6.Cls
End Sub

Private Sub Form_Paint()
     '''''商品编号'''
    jframe.danum = 3
    jframe.rtop = 50
    jframe.rleft = 35
    jframe.rright = 539

⌨️ 快捷键说明

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