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

📄 main_xsfx_yxsfx.frm

📁 EMS是一个企业营销管理系统,功能强大,供大家享用,希望大家多多支持!!
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form main_xsfx_yxsfx 
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   4605
   ClientLeft      =   45
   ClientTop       =   1680
   ClientWidth     =   9690
   Icon            =   "main_xsfx_yxsfx.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4605
   ScaleWidth      =   9690
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin MSMask.MaskEdBox MEBtxtmonth 
      Height          =   360
      Left            =   1065
      TabIndex        =   9
      Top             =   90
      Width           =   3075
      _ExtentX        =   5424
      _ExtentY        =   635
      _Version        =   393216
      MaxLength       =   7
      Mask            =   "####-##"
      PromptChar      =   "_"
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   -375
      Top             =   2880
      Visible         =   0   'False
      Width           =   2985
      _ExtentX        =   5265
      _ExtentY        =   609
      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=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_CSell"
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_CSell"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   $"main_xsfx_yxsfx.frx":000C
      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 MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1 
      Height          =   3345
      Left            =   0
      TabIndex        =   4
      Top             =   1230
      Width           =   9675
      _ExtentX        =   17066
      _ExtentY        =   5900
      _Version        =   393216
      BackColorFixed  =   -2147483626
      SelectionMode   =   1
      _NumberOfBands  =   1
      _Band(0).Cols   =   2
   End
   Begin VB.Frame Frame3 
      Height          =   705
      Left            =   6360
      TabIndex        =   1
      Top             =   495
      Width           =   3315
      Begin VB.CommandButton cmdExit 
         Caption         =   "退出"
         Height          =   360
         Left            =   1665
         TabIndex        =   2
         Top             =   210
         Width           =   1500
      End
      Begin VB.CommandButton cmdFind 
         Caption         =   "分析"
         Height          =   360
         Left            =   180
         TabIndex        =   3
         Top             =   210
         Width           =   1500
      End
   End
   Begin VB.Frame Frame1 
      Height          =   705
      Left            =   0
      TabIndex        =   0
      Top             =   495
      Width           =   6390
      Begin VB.OptionButton Option1 
         Caption         =   "按销售数量及金额"
         Height          =   270
         Index           =   2
         Left            =   3840
         TabIndex        =   8
         Top             =   285
         Width           =   1800
      End
      Begin VB.OptionButton Option1 
         Caption         =   "按销售金额"
         Height          =   270
         Index           =   1
         Left            =   1950
         TabIndex        =   7
         Top             =   285
         Width           =   2700
      End
      Begin VB.OptionButton Option1 
         Caption         =   "按销售数量"
         Height          =   270
         Index           =   0
         Left            =   135
         TabIndex        =   6
         Top             =   285
         Value           =   -1  'True
         Width           =   2835
      End
   End
   Begin VB.Label Label1 
      Caption         =   "分析月份"
      Height          =   225
      Left            =   165
      TabIndex        =   5
      Top             =   195
      Width           =   735
   End
End
Attribute VB_Name = "main_xsfx_yxsfx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public myIndex As Integer
Sub flexSetting()
   With MSHFlexGrid1
      Set .DataSource = Adodc1
     .ColWidth(0) = 200
     .ColWidth(1) = 2000
     .ColWidth(2) = 3000
     .ColWidth(3) = 1200
     .ColWidth(4) = 1400
   End With
End Sub
Private Sub Form_Load()
  Me.Caption = text
  cmdFind_Click
End Sub
Private Sub Option1_Click(index As Integer)
  myIndex = index
End Sub
Private Sub cmdFind_Click()     '查询统计
  Dim r1 As Integer
  Select Case myIndex
    Case 0
      Adodc1.RecordSource = "select 产品编号,品名规格,单位,sum(月销量) as 销售总数 from 销售表 where 所在月份='" + MEBtxtmonth + "'group by 产品编号,品名规格,单位 order by 销售总数"
      Adodc1.Refresh
      flexSetting
    Case 1
      Adodc1.RecordSource = "select 产品编号,品名规格,单位,sum(月销售额) as 销售总额 from 销售表 where 所在月份='" + MEBtxtmonth + "'group by 产品编号,品名规格,单位 order by 销售总额"
      Adodc1.Refresh
      r1 = Adodc1.Recordset.RecordCount
      flexSetting
      With MSHFlexGrid1
          For i = 1 To r1
              .TextMatrix(i, 4) = Format(.TextMatrix(i, 4), "##,##0.00")
          Next i
      End With
    Case 2
      Adodc1.RecordSource = "select 产品编号,品名规格,单位,sum(月销量) as 销售总数,sum(月销售额) as 销售总额 from 销售表 where 所在月份='" + MEBtxtmonth + "'group by 产品编号,品名规格,单位 order by 销售总数,销售总额"
      Adodc1.Refresh
      r1 = Adodc1.Recordset.RecordCount
      flexSetting
      With MSHFlexGrid1
          For i = 1 To r1
              .TextMatrix(i, 5) = Format(.TextMatrix(i, 5), "##,##0.00")
          Next i
        .ColWidth(5) = 1600
      End With
  End Select
End Sub
Private Sub cmdExit_Click()
 Unload Me
End Sub


⌨️ 快捷键说明

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