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

📄 main_tjbb_client.frm

📁 医药进销存管理系统 对医药的购买销售和库存进行系统管理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form main_tjbb_client 
   Caption         =   "客户销售报表"
   ClientHeight    =   4485
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   10680
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   4485
   ScaleWidth      =   10680
   WindowState     =   2  'Maximized
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   8235
      Top             =   1995
      Visible         =   0   'False
      Width           =   2220
      _ExtentX        =   3916
      _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=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=YYJXC"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=YYJXC"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tb_sell_detailed"
      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 MSAdodcLib.Adodc Adodc2 
      Height          =   345
      Left            =   8205
      Top             =   3135
      Visible         =   0   'False
      Width           =   2220
      _ExtentX        =   3916
      _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=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=YYJXC"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=YYJXC"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tb_medicine"
      Caption         =   "Adodc2"
      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.Frame Frame1 
      Height          =   1065
      Left            =   30
      TabIndex        =   1
      Top             =   -30
      Width           =   10590
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   360
         Left            =   8070
         TabIndex        =   10
         Top             =   600
         Width           =   2085
      End
      Begin VB.CommandButton Command1 
         Caption         =   "查询统计"
         Height          =   360
         Left            =   8070
         TabIndex        =   9
         Top             =   180
         Width           =   2085
      End
      Begin MSDataListLib.DataCombo DataCombo1 
         Bindings        =   "main_tjbb_client.frx":0000
         Height          =   330
         Left            =   2175
         TabIndex        =   3
         Top             =   195
         Width           =   5400
         _ExtentX        =   9525
         _ExtentY        =   582
         _Version        =   393216
         ListField       =   "药品名称"
         Text            =   "DataCombo1"
      End
      Begin VB.CheckBox Check1 
         Caption         =   "选择查询"
         ForeColor       =   &H00000000&
         Height          =   195
         Index           =   0
         Left            =   165
         TabIndex        =   8
         Top             =   285
         Width           =   1035
      End
      Begin MSComCtl2.DTPicker DTP1 
         Height          =   330
         Left            =   2175
         TabIndex        =   4
         Top             =   630
         Width           =   2265
         _ExtentX        =   3995
         _ExtentY        =   582
         _Version        =   393216
         Format          =   19791873
         CurrentDate     =   37536
      End
      Begin VB.CheckBox Check1 
         Caption         =   "日期查询"
         ForeColor       =   &H00000000&
         Height          =   195
         Index           =   1
         Left            =   165
         TabIndex        =   6
         Top             =   705
         Width           =   1035
      End
      Begin MSComCtl2.DTPicker DTP2 
         Height          =   330
         Left            =   5370
         TabIndex        =   5
         Top             =   615
         Width           =   2265
         _ExtentX        =   3995
         _ExtentY        =   582
         _Version        =   393216
         Format          =   19791873
         CurrentDate     =   37536
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "药品名称                              "
         Height          =   195
         Left            =   1395
         TabIndex        =   2
         Top             =   300
         Width           =   840
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "日期从                                至"
         Height          =   195
         Left            =   1395
         TabIndex        =   7
         Top             =   690
         Width           =   3990
      End
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Height          =   3270
      Left            =   30
      TabIndex        =   0
      Top             =   1095
      Width           =   10605
      _ExtentX        =   18706
      _ExtentY        =   5768
      _Version        =   393216
      AllowUpdate     =   0   'False
      HeadLines       =   2
      RowHeight       =   22
      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
      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
End
Attribute VB_Name = "main_tjbb_client"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()                   '统计汇总药品销售信息
 If Check1(0).Value = 1 And Check1(1).Value = 0 Then
    Adodc1.RecordSource = "select 客户名称,sum(数量)as 销售数量,sum(金额)as 销售金额 from tb_sell_detailed where 药品名称 like '%'+'" + DataCombo1.BoundText + "'+'%'group by 客户名称"
    Adodc1.Refresh
 End If
 If Check1(0).Value = 0 And Check1(1).Value = 1 Then
    Adodc1.RecordSource = "select 客户名称,count(*)as 销售品种,sum(数量)as 销售数量,sum(金额)as 销售金额 from tb_sell_detailed where 销售日期 between '" + Str(DTP1.Value) + "'and '" + Str(DTP2.Value) + "'group by 客户名称"
    Adodc1.Refresh
 End If
 If Check1(0).Value = 1 And Check1(1).Value = 1 Then
    Adodc1.RecordSource = "select 客户名称,sum(数量)as 销售数量,sum(金额)as 销售金额 from tb_sell_detailed where  药品名称 like'%'+'" + DataCombo1.BoundText + "'+'%'and 销售日期 between '" + Str(DTP1.Value) + "'and '" + Str(DTP2.Value) + "'group by 客户名称"
    Adodc1.Refresh
 End If
 Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub Command2_Click()
 Unload Me
End Sub


⌨️ 快捷键说明

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