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

📄 main_tjbb_zyxsbb.frm

📁 钢材综合管理系统 钢材综合管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=Gcgl"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from xsd"
         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            =   120
         Top             =   585
         Width           =   1200
         _ExtentX        =   2117
         _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=Gcgl"
         OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=Gcgl"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from spinf"
         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 Adodc3 
         Height          =   345
         Left            =   120
         Top             =   870
         Width           =   1200
         _ExtentX        =   2117
         _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=Gcgl"
         OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=Gcgl"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from kh"
         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 Adodc4 
         Height          =   345
         Left            =   120
         Top             =   1200
         Width           =   1200
         _ExtentX        =   2117
         _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=Gcgl"
         OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=Gcgl"
         OLEDBFile       =   ""
         DataSourceName  =   ""
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from ckinf"
         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
   End
   Begin VB.Frame Frame2 
      Height          =   630
      Left            =   45
      TabIndex        =   11
      Top             =   3255
      Width           =   8790
      Begin VB.CommandButton Command1 
         Caption         =   "查询统计"
         Height          =   360
         Left            =   1905
         TabIndex        =   13
         Top             =   180
         Width           =   3300
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退出"
         Height          =   360
         Left            =   5400
         TabIndex        =   12
         Top             =   180
         Width           =   3300
      End
   End
End
Attribute VB_Name = "main_tjbb_zyxsbb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
 DTP1.Value = Date - 30: DTP2.Value = Date    '初始化日期
 Me.Caption = Me.Caption & "     操作员: " & frm_main.St1.Panels(3).Text
End Sub
Private Sub Form_Unload(Cancel As Integer)
 frm_main.Enabled = True     '设置主窗体有效
End Sub
Private Sub DataCombo1_Change()
 DataCombo1.Text = Trim(DataCombo1.BoundText)     '去除空格
End Sub
Private Sub DataCombo2_Change()
 DataCombo2.Text = Trim(DataCombo2.BoundText)     '去除空格
End Sub
Private Sub DataCombo3_Change()
 DataCombo3.Text = Trim(DataCombo3.BoundText)
End Sub
Private Sub Command1_Click()     '统计汇总职员销售商品信息
 If Check1(0).Value = 1 And Check1(1).Value = 0 Then
  Adodc1.RecordSource = "select 经手人,count(*)as 销售品种,sum(数量)as 销售数量,sum(金额)as 销售金额 from xsd where 商品名称='" + Trim(DataCombo1.BoundText) + "'and 仓库='" + Trim(DataCombo2.BoundText) + "'and 客户全称='" + Trim(DataCombo3.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 xsd 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 经手人,count(*)as 销售品种,sum(数量)as 销售数量,sum(金额)as 销售金额 from xsd where 商品名称='" + Trim(DataCombo1.BoundText) + "'and 仓库='" + Trim(DataCombo2.BoundText) + "'and 客户全称='" + Trim(DataCombo3.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()
 frm_main.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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