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

📄 cg_gysbj_cxfx.frm

📁 基于SQL2000的企业管理MRPII,包含进销存,财务,报关等组件,VB6开发,带文档说明.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "供应商编号:"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   11.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   330
         Index           =   0
         Left            =   30
         TabIndex        =   4
         Top             =   255
         Width           =   1455
      End
   End
   Begin TrueOleDBGrid60.TDBGrid TDBGrid2 
      Bindings        =   "CG_GysBJ_CxFx.frx":1135
      Height          =   4785
      Left            =   2460
      OleObjectBlob   =   "CG_GysBJ_CxFx.frx":114D
      TabIndex        =   19
      Top             =   600
      Width           =   7815
   End
   Begin MSAdodcLib.Adodc Ado_KhbH 
      Height          =   495
      Left            =   3360
      Top             =   3210
      Width           =   2655
      _ExtentX        =   4683
      _ExtentY        =   873
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Ado_KhbH"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "PMingLiU"
         Size            =   9
         Charset         =   136
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSAdodcLib.Adodc Ado_dd_Lb 
      Height          =   615
      Left            =   4680
      Top             =   2130
      Width           =   2295
      _ExtentX        =   4048
      _ExtentY        =   1085
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Ado_dd_Lb"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "PMingLiU"
         Size            =   9
         Charset         =   136
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin TrueOleDBGrid60.TDBGrid TDBGrid1 
      Bindings        =   "CG_GysBJ_CxFx.frx":7C74
      Height          =   6615
      Left            =   0
      OleObjectBlob   =   "CG_GysBJ_CxFx.frx":7C8B
      TabIndex        =   20
      Top             =   0
      Width           =   2415
   End
End
Attribute VB_Name = "CG_GysBJ_CxFx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim dd_tj_sl As Recordset
Dim Bqmc_s, Sjys_s, CGrq, Wcf, Gys_Mc As String
Sub combo_load()
Dim combo2_data As Recordset
Dim combo3_data As Recordset
Dim Combo4_Data As Recordset
Set combo2_data = New Recordset
 combo2_data.Open "select DISTINCT gysmc from cg_gysbj_cxfx ", DB, adOpenStatic, adLockOptimistic
 If combo2_data.RecordCount > 0 Then
   For i = 1 To combo2_data.RecordCount
     Combo1.AddItem (combo2_data.Fields("gysmc"))
   If combo2_data.EOF = False Then
     combo2_data.MoveNext
   End If
   Next i
 combo2_data.MoveFirst
 End If
 Set Combo4_Data = New Recordset
 Combo4_Data.Open "select DISTINCT ylmc from cg_gysbj_cxfx", DB, adOpenStatic, adLockOptimistic
 If Combo4_Data.RecordCount > 0 Then
   For i = 1 To Combo4_Data.RecordCount
     Combo3.AddItem (Combo4_Data.Fields("ylmc"))
    If Combo4_Data.EOF = False Then
     Combo4_Data.MoveNext
   End If
   Next i
 Combo4_Data.MoveFirst
 End If
End Sub
Private Sub CmdFIND_Click()
 Cmdprint.Enabled = True
   If DTPicker1.Value <= DTPicker2.Value Then
      If Trim(Combo1.Text) = "" Then
          Gys_Mc = ""
          Else
          Gys_Mc = "AND gysmc='" & Trim(Combo1.Text) & "'"
       End If
       If Trim(Combo3.Text) = "" Then
          Sjys_s = ""
          Else
          Sjys_s = "AND ylmc='" & Trim(Combo3.Text) & "'"
       End If
       CGrq = "and djrq>='" & DTPicker1.Value & "' and djrq<='" & DTPicker2.Value & "'"
      Ado_dd_Lb.ConnectionString = Conn_Str
      Ado_dd_Lb.RecordSource = "select * from cg_gysbj_cxfx where gysbh<>''" & Gys_Mc & Sjys_s & CGrq & "order by ylmc,dj,gysmc"
      Ado_dd_Lb.Refresh
      TDBGrid2.Columns(0).FooterText = "总计"
      TDBGrid2.Columns(1).FooterText = Str(Ado_dd_Lb.Recordset.RecordCount) + "项"
     Else
   MsgBox "起始时间不能晚于截止时间,请重新设置。", vbOKOnly + 16, "系统提示"
   Exit Sub
   End If
End Sub

Private Sub CmdPrint_Click()
If Trim(Combo1.Text) <> "" Then
Cg_GysBj_TJB.QSRQ.Caption = DTPicker1.Value
Cg_GysBj_TJB.JZRQ.Caption = DTPicker2.Value
Cg_GysBj_TJB.DataControl1.ConnectionString = Conn_Str
Cg_GysBj_TJB.DataControl1.Recordset = Ado_dd_Lb.Recordset
Cg_GysBj_TJB.Show VBRUN.FormShowConstants.vbModal
Else
Cg_GYBJ_CxFx.QSRQ.Caption = DTPicker1.Value
Cg_GYBJ_CxFx.JZRQ.Caption = DTPicker2.Value
Cg_GYBJ_CxFx.DataControl1.ConnectionString = Conn_Str
Cg_GYBJ_CxFx.DataControl1.Recordset = Ado_dd_Lb.Recordset
Cg_GYBJ_CxFx.Show VBRUN.FormShowConstants.vbModal
Cmdprint.Enabled = False
End If
End Sub

Private Sub Command1_Click()
Unload Me
End Sub

Private Sub Form_Load()
Me.Width = main_FRM.Picture1.Width - 30
 Me.Top = main_FRM.ActiveBar21.Bands("Band7").Height * 2.5 - 65
 Me.Height = main_FRM.Picture1.Height - 300
 Me.Left = main_FRM.Picture1.Left + 15
Cmdprint.Enabled = False
DTPicker1.Value = VBA.Date - 30
DTPicker2.Value = VBA.Date
Call combo_load
Ado_KhbH.ConnectionString = Conn_Str
Ado_KhbH.RecordSource = "select distinct gysbh,gysmc from cg_gysbj_cxfx order by gysbh,gysmc"
Ado_KhbH.Refresh
End Sub
Private Sub TDBGrid1_DblClick()
On Error Resume Next
Text1.Text = TDBGrid1.Columns(0).Value
Text2.Text = TDBGrid1.Columns(1).Value
Ado_dd_Lb.ConnectionString = Conn_Str
Ado_dd_Lb.RecordSource = "select * from cg_gysbj_cxfx where gysbh='" & Text1.Text & "'order by ylmc,dj"
Ado_dd_Lb.Refresh
Text3.Text = Str(Ado_dd_Lb.Recordset.RecordCount)
TDBGrid2.Columns(1).FooterText = Str(Ado_dd_Lb.Recordset.RecordCount) + "项"
End Sub




⌨️ 快捷键说明

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