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

📄 main_cxtj_rkthcx.frm

📁 商品进销存管理系统 采用VB和SQL2000开发 具有很强的实用性
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column03 
         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 Column04 
         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 Column05 
         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 Column06 
         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 Column07 
         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 Column08 
         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 Column09 
         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 Column10 
         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 Column11 
         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 Column12 
         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 Column13 
         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 Column14 
         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 Column15 
         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 Column16 
         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 
            ColumnWidth     =   824.882
         EndProperty
         BeginProperty Column01 
            ColumnWidth     =   1260.284
         EndProperty
         BeginProperty Column02 
            ColumnWidth     =   659.906
         EndProperty
         BeginProperty Column03 
            ColumnWidth     =   464.882
         EndProperty
         BeginProperty Column04 
            ColumnWidth     =   569.764
         EndProperty
         BeginProperty Column05 
            ColumnWidth     =   480.189
         EndProperty
         BeginProperty Column06 
            ColumnWidth     =   569.764
         EndProperty
         BeginProperty Column07 
            ColumnWidth     =   569.764
         EndProperty
         BeginProperty Column08 
            ColumnWidth     =   675.213
         EndProperty
         BeginProperty Column09 
            ColumnWidth     =   750.047
         EndProperty
         BeginProperty Column10 
            ColumnWidth     =   959.811
         EndProperty
         BeginProperty Column11 
            ColumnWidth     =   854.929
         EndProperty
         BeginProperty Column12 
            ColumnWidth     =   810.142
         EndProperty
         BeginProperty Column13 
            ColumnWidth     =   989.858
         EndProperty
         BeginProperty Column14 
            ColumnWidth     =   975.118
         EndProperty
         BeginProperty Column15 
            ColumnWidth     =   884.976
         EndProperty
         BeginProperty Column16 
            ColumnWidth     =   1049.953
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "main_cxtj_rkthcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_cxtj_rkthcx
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'**          业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'**          下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'**          不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网    址:www.mingrisoft.com  价值无限,服务无限
'**电    话:(0431)84978981,84978982
'**创 建 人:明日科技
'**日    期:2007-10-31
'**修 改 人:MRLBB
'**日    期:2007-10-31
'**描    述:
'*************************************************************************


Private Sub Form_Load()
    Adodc1.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
    Adodc2.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
    Set DataGrid1.DataSource = Adodc1
    '向combo1添加查询项目列表
    Combo1.AddItem ("商品编号")
    Combo1.AddItem ("商品名称")
    Combo1.AddItem ("供应商全称")
    Combo1.AddItem ("退货票号")
    Combo1.AddItem ("退货经手人")
    Combo1.ListIndex = 1
    '向combo2中添加查询条件列表
    Combo2.AddItem ("like")
    Combo2.AddItem (">")
    Combo2.AddItem (">=")
    Combo2.AddItem ("=")
    Combo2.AddItem ("<")
    Combo2.AddItem ("<=")
    Combo2.AddItem ("<>")
    Combo2.ListIndex = 0
    '汇总记录、数量、金额
    Adodc2.RecordSource = "select count(*)as 品种,sum(数量)as 数量1,sum(退货价*数量)as 金额 from tb_rktd"
    Adodc2.Refresh
    If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
    If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
    If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
    DTP1.Value = Date - 30
    DTP2.Value = Date
    RegInfo Me
End Sub

Private Sub cmdFind_Click()     '查询统计商品销售信息
    If Check1(0).Value = 0 And Check1(1).Value = 1 Then
        If Combo2.text = "like" Then
            Adodc1.RecordSource = "select * from tb_rktd where tb_rktd." & Combo1.text & " like + '" + Text1.text + "'+'%'"
            Adodc1.Refresh
            Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 合计数量,sum(退货价*数量)as 金额 from tb_rktd where tb_rktd." & Combo1.text & " like + '" + Text1.text + "'+'%'"
            Adodc2.Refresh
        Else
            Adodc1.RecordSource = "select * from tb_rktd where tb_rktd." & Combo1.text & Combo2.text & "'" + Text1.text + "'"
            Adodc1.Refresh
            Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 合计数量,sum(退货价*数量)as 金额 from tb_rktd where tb_rktd." & Combo1.text & Combo2.text & "'" + Text1.text + "'"
            Adodc2.Refresh
        End If
    End If
    If Check1(0).Value = 1 And Check1(1).Value = 0 Then
        Adodc1.RecordSource = "select * from tb_rktd where 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
        Adodc1.Refresh
        Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 合计数量,sum(退货价*数量)as 金额 from tb_rktd where 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
        Adodc2.Refresh
    End If
    If Check1(0).Value = 1 And Check1(1).Value = 1 Then
        If Combo2.text = "like" Then
            Adodc1.RecordSource = "select * from tb_rktd where tb_rktd." & Combo1.text & " like + '" + Text1.text + "'+'%'and 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
            Adodc1.Refresh
            Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 合计数量,sum(退货价*数量)as 金额 from tb_rktd where tb_rktd." & Combo1.text & " like + '" + Text1.text + "'+'%'and 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
            Adodc2.Refresh
        Else
            Adodc1.RecordSource = "select * from tb_rktd where tb_rktd." & Combo1.text & Combo2.text & "'" + Text1.text + "'and 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
            Adodc1.Refresh
            Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 合计数量,sum(退货价*数量)as 金额 from tb_rktd where tb_rktd." & Combo1.text & Combo2.text & "'" + Text1.text + "'and 退货日期 between" + Chr(35) + Str(DTP1.Value) + Chr(35) + "AND" + Chr(35) + Str(DTP2.Value) + Chr(35) + ""
            Adodc2.Refresh
        End If
    End If
    If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
    If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
    If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
End Sub
Private Sub cmdExit_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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