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

📄 tu.frm

📁 客户管理系统 基于vb开发环境
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form huitu1 
   Caption         =   "绘图"
   ClientHeight    =   5685
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9420
   LinkTopic       =   "Form1"
   ScaleHeight     =   5685
   ScaleWidth      =   9420
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "退出"
      Height          =   375
      Left            =   7680
      TabIndex        =   12
      Top             =   2880
      Width           =   855
   End
   Begin VB.CommandButton Command3 
      Caption         =   "饼图"
      Height          =   375
      Left            =   7680
      TabIndex        =   11
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton Command2 
      Caption         =   "条形图"
      Height          =   375
      Left            =   6720
      TabIndex        =   10
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "绘图"
      Height          =   375
      Left            =   6720
      TabIndex        =   9
      Top             =   2880
      Width           =   855
   End
   Begin VB.Frame Frame1 
      Height          =   2295
      Left            =   6120
      TabIndex        =   0
      Top             =   0
      Width           =   3015
      Begin VB.TextBox Text1 
         DataField       =   "客户全称"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   960
         TabIndex        =   4
         Top             =   120
         Width           =   1455
      End
      Begin VB.TextBox Text2 
         DataField       =   "预付金额"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   960
         TabIndex        =   3
         Top             =   600
         Width           =   1455
      End
      Begin VB.TextBox Text3 
         DataField       =   "实际金额"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   960
         TabIndex        =   2
         Top             =   1080
         Width           =   1455
      End
      Begin VB.TextBox Text4 
         DataField       =   "尚余欠款"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   960
         TabIndex        =   1
         Top             =   1560
         Width           =   1455
      End
      Begin VB.Label Label1 
         Caption         =   "客户全称"
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "预付金额"
         Height          =   255
         Left            =   120
         TabIndex        =   7
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label3 
         Caption         =   "实际金额"
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   1200
         Width           =   855
      End
      Begin VB.Label Label4 
         Caption         =   "尚欠余额"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   1680
         Width           =   855
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   6240
      Top             =   2400
      Width           =   2655
      _ExtentX        =   4683
      _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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=khgl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=khgl.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from kh"
      Caption         =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
End
Attribute VB_Name = "huitu1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim a(), b(), n, max
Public Sub zbx()
Cls
n = 0: max = 0
a = Array("预付金额", "实际金额", " 尚欠余额")
b = Array(Val(Text2), Val(Text3), Val(Text4))
For i = 0 To 2
n = n + 1
If b(i) > max Then max = b(i)
Scale (-3, max * 1.2)-(max * 1.2, -max * 0.1)
Line (0, 0)-(max * 1.2, 0): Line (0, max * 1.2)-(0, 0)
Next i
Exit Sub
CurrentX = -3: CurrentY = -1
Print "金额:";
For i = 0 To UBound(a)
 Print a(i); b(i);
 Next i
End Sub

Private Sub Command1_Click()
Command2.Enabled = True
Command3.Enabled = True
End Sub

Private Sub Command2_Click()
zbx
If n = 0 Then Exit Sub
w = max / 4 / n
X1 = w
For i = 0 To n - 1
   X2 = X1 + w
   Y2 = b(i)
   Line (X1, 0)-(X2, Y2), QBColor(9), BF
   CurrentX = X1
   CurrentY = Y2 + max * 0.1
   Print a(i)
   X1 = X2 + w
Next i

End Sub



Private Sub Command3_Click()
zbx
y = Abs(ScaleHeight / 2) - 10
x = Abs(ScaleWidth / 4) - 10
r = max / 4
Sum = 0
For i = 0 To n - 1
Sum = Sum + b(i)
Next i
FillStyle = 0
a1 = 0
For i = 0 To n - 1
  a2 = a1 + 2 * 3.1415906 * b(i) / Sum
  Randomize
  FillColor = QBColor(Rnd * 15)
  Circle (x, y), r, , -a1, -a2
  CurrentX = x + r * Cos((a2 + a1) / 2)
  CurrentY = y + r * Sin((a2 + a1) / 2)
  Print Format(b(i) / Sum * 100, "0.00"); "%"
  a1 = a2
  Next i
End Sub


Private Sub Command5_Click()
Unload Me
End Sub

Private Sub Form_Load()
Command2.Enabled = False
Command3.Enabled = False
End Sub

⌨️ 快捷键说明

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