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

📄 frm_khfw_fkmydfx.frm

📁 本系统为客户管理系统 (1)本系统的数据库为SQL Server 2000
💻 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"
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form Frm_Khfw_Fkmydfx 
   Caption         =   "客户反馈满意程度分析"
   ClientHeight    =   4140
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6810
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   ScaleHeight     =   4140
   ScaleWidth      =   6810
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   300
      Top             =   2820
      Visible         =   0   'False
      Width           =   1215
      _ExtentX        =   2143
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_Client"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_Client"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "tb_Client_mydtj"
      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 MSDataGridLib.DataGrid Dgr_Mydfx 
      Bindings        =   "Frm_Khfw_Fkmydfx.frx":0000
      Height          =   1905
      Left            =   315
      TabIndex        =   7
      Top             =   360
      Visible         =   0   'False
      Width           =   4620
      _ExtentX        =   8149
      _ExtentY        =   3360
      _Version        =   393216
      AllowUpdate     =   0   'False
      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
      Caption         =   "客户满意程度分析表"
      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 VB.Frame Frame1 
      Height          =   660
      Left            =   210
      TabIndex        =   1
      Top             =   3300
      Width           =   6300
      Begin VB.CommandButton Cmd_Exit 
         Caption         =   "退出"
         Height          =   350
         Left            =   4890
         TabIndex        =   6
         Top             =   225
         Width           =   950
      End
      Begin VB.CommandButton Cmd_Lb 
         Caption         =   "列表显示"
         Height          =   350
         Left            =   3810
         TabIndex        =   5
         Top             =   225
         Width           =   950
      End
      Begin VB.CommandButton Cmd_Sw 
         Caption         =   "三维显示"
         Height          =   350
         Left            =   2715
         TabIndex        =   4
         Top             =   225
         Width           =   950
      End
      Begin VB.CommandButton Cmd_Xx 
         Caption         =   "线形显示"
         Height          =   350
         Left            =   1605
         TabIndex        =   3
         Top             =   225
         Width           =   950
      End
      Begin VB.CommandButton Cmd_Tx 
         Caption         =   "条形显示"
         Height          =   350
         Left            =   495
         TabIndex        =   2
         Top             =   225
         Width           =   950
      End
   End
   Begin MSChart20Lib.MSChart MSChart1 
      Height          =   3330
      Left            =   0
      OleObjectBlob   =   "Frm_Khfw_Fkmydfx.frx":0015
      TabIndex        =   0
      Top             =   -15
      Width           =   6765
   End
End
Attribute VB_Name = "Frm_Khfw_Fkmydfx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim S1, S2 As String
Dim Mystr As String
Dim i As Integer
Dim rs4 As New ADODB.Recordset

Private Sub Cmd_Exit_Click()
Unload Me
End Sub

Private Sub Cmd_Lb_Click()   '列表显示
Dgr_Mydfx.Visible = True
MSChart1.Visible = False
End Sub

Private Sub Cmd_Sw_Click()  '三维柱状
Dgr_Mydfx.Visible = False
MSChart1.Visible = True
MSChart1.chartType = VtChChartType3dBar
End Sub

Private Sub Cmd_Tx_Click()  '条形显示
Dgr_Mydfx.Visible = False
MSChart1.Visible = True
MSChart1.chartType = VtChChartType2dBar
End Sub

Private Sub Cmd_Xx_Click()  '线形显示
Dgr_Mydfx.Visible = False
MSChart1.Visible = True
MSChart1.chartType = VtChChartType2dLine
End Sub

Sub Dgr_Title()
Dgr_Mydfx.Columns(0).Caption = "满意度名称"
Dgr_Mydfx.Columns(1).Caption = "该满意度数量"
End Sub


Private Sub Form_Load()
Adodc1.ConnectionString = PublicStr
cnn.Execute "delete tb_Client_mydtj select * from tb_Client_mydtj"
Dim rs1 As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim rs3 As New ADODB.Recordset
rs1.Open "select * from tb_Client_khmyd", cnn, adOpenKeyset
If rs1.RecordCount > 0 Then
  S1 = rs1.RecordCount
  For i = 0 To rs1.RecordCount - 1
     Mystr = rs1.Fields("khmyd_myd")
     rs2.Open "select * from tb_Client_khfk where khfk_khmyd='" + Mystr + "'", cnn, adOpenKeyset
     If rs2.RecordCount >= 0 Then
       rs3.Open "select * from tb_Client_mydtj", cnn, adOpenKeyset, adLockOptimistic
       rs3.AddNew
       rs3.Fields("mydtj_myd") = Mystr
       rs3.Fields("mydtj_sl") = rs2.RecordCount
       rs3.Update
       rs3.Close
     End If
     rs2.Close
     rs1.MoveNext
  Next i
End If
rs1.Close

rs4.Open "select * from tb_Client_mydtj order by mydtj_sl desc", cnn, adOpenKeyset
If rs4.RecordCount > 0 Then
  ReDim arrValues(1 To S1, 1 To 2)                           '定义动态数组
      For i = 1 To S1                                            '给数组赋值
        arrValues(i, 1) = "  " & rs4!mydtj_myd
        arrValues(i, 2) = rs4!mydtj_sl
        rs4.MoveNext
      Next i
 MSChart1.ChartData = arrValues                               '图表显示数据
 MSChart1.Title = "       客户满意度分析图        " '图表名称
 MSChart1.Title.VtFont.Size = 15
 rs4.Close
 End If
Adodc1.Refresh
Set Dgr_Mydfx.DataSource = Adodc1
Call Dgr_Title
Dgr_Mydfx.Visible = False
Cmd_Tx_Click
End Sub


Private Sub Form_Unload(Cancel As Integer)
Frm_Main.Enabled = True
End Sub

⌨️ 快捷键说明

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