📄 frmsearch.frm
字号:
VERSION 5.00
Object = "{8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0"; "MSCAL.OCX"
Begin VB.Form frmsearch
Caption = "神兵国际广告(北京)有限公司广告系统"
ClientHeight = 7200
ClientLeft = 60
ClientTop = 345
ClientWidth = 9585
LinkTopic = "Form1"
ScaleHeight = 7200
ScaleWidth = 9585
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command6
Caption = "退 出"
Height = 495
Left = 7800
TabIndex = 17
Top = 6480
Width = 1455
End
Begin VB.CommandButton Command5
Caption = "签约日期查询"
Height = 375
Left = 7440
TabIndex = 16
Top = 4200
Width = 1215
End
Begin VB.ComboBox Combo4
Height = 300
Left = 5280
TabIndex = 13
Top = 3600
Width = 1815
End
Begin VB.CommandButton Command4
Caption = "结束日期查询"
Height = 375
Left = 6060
TabIndex = 12
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "开始日期查询"
Height = 375
Left = 4680
TabIndex = 10
Top = 4200
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "厂商查询"
Height = 375
Left = 4200
TabIndex = 9
Top = 6120
Width = 2175
End
Begin VB.CommandButton Command1
Caption = "按合同草稿号查询"
Height = 375
Left = 4200
TabIndex = 8
Top = 5520
Width = 2175
End
Begin VB.ComboBox Combo2
Height = 300
Left = 1680
TabIndex = 7
Top = 6120
Width = 2295
End
Begin VB.ComboBox Combo1
Height = 300
Left = 1680
TabIndex = 6
Top = 5520
Width = 2295
End
Begin MSACAL.Calendar Calendar2
Height = 2655
Left = 4800
TabIndex = 2
Top = 720
Width = 3975
_Version = 524288
_ExtentX = 7011
_ExtentY = 4683
_StockProps = 1
BackColor = -2147483633
Year = 2002
Month = 5
Day = 3
DayLength = 0
MonthLength = 0
DayFontColor = 0
FirstDay = 1
GridCellEffect = 1
GridFontColor = 10485760
GridLinesColor = -2147483632
ShowDateSelectors= -1 'True
ShowDays = -1 'True
ShowHorizontalGrid= -1 'True
ShowTitle = -1 'True
ShowVerticalGrid= -1 'True
TitleFontColor = 10485760
ValueIsNull = 0 'False
BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin MSACAL.Calendar Calendar1
Height = 2655
Left = 600
TabIndex = 1
Top = 720
Width = 3975
_Version = 524288
_ExtentX = 7011
_ExtentY = 4683
_StockProps = 1
BackColor = -2147483633
Year = 2002
Month = 5
Day = 3
DayLength = 0
MonthLength = 0
DayFontColor = 0
FirstDay = 2
GridCellEffect = 1
GridFontColor = 10485760
GridLinesColor = -2147483632
ShowDateSelectors= -1 'True
ShowDays = -1 'True
ShowHorizontalGrid= -1 'True
ShowTitle = -1 'True
ShowVerticalGrid= -1 'True
TitleFontColor = 10485760
ValueIsNull = 0 'False
BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label5
Alignment = 2 'Center
BackColor = &H00FF8080&
BorderStyle = 1 'Fixed Single
Caption = "投 放 信 息 查 询"
BeginProperty Font
Name = "隶书"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 495
Left = 0
TabIndex = 18
Top = 0
Width = 9615
End
Begin VB.Label Label9
BackColor = &H00000000&
Caption = "(如查询所有厂商请留空)"
ForeColor = &H8000000E&
Height = 255
Left = 7200
TabIndex = 15
Top = 3600
Width = 2295
End
Begin VB.Label Label8
Caption = "厂商:"
Height = 255
Left = 4560
TabIndex = 14
Top = 3600
Width = 735
End
Begin VB.Label Label7
BackColor = &H00FF8080&
Caption = "单一投放广告查询,报表生成:"
ForeColor = &H8000000E&
Height = 255
Left = 0
TabIndex = 11
Top = 4680
Width = 9615
End
Begin VB.Label Label4
Caption = "厂商查询:"
Height = 255
Left = 240
TabIndex = 5
Top = 6120
Width = 1095
End
Begin VB.Label Label3
Caption = "合同草稿号:"
Height = 375
Left = 240
TabIndex = 4
Top = 5520
Width = 1215
End
Begin VB.Label Label2
Caption = "结束时间:"
Height = 255
Left = 4680
TabIndex = 3
Top = 600
Width = 1335
End
Begin VB.Label Label1
Caption = "开始时间:"
Height = 375
Left = 240
TabIndex = 0
Top = 600
Width = 1215
End
End
Attribute VB_Name = "frmsearch"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Combo2_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Combo3_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Combo4_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub Command1_Click()
Dim sql As String
Dim str As String
Dim con As ADODB.Connection
Set con = New Connection
str = "provider=microsoft.jet.oledb.4.0;Data Source=" & App.Path & "\database.mdb"
con.Open str
Dim rs As ADODB.Recordset
Set rs = New Recordset
sql = "select * from hetong where hetong_no='" & Combo1.Text & "'"
rs.Open sql, con, 1, 1
If rs.EOF Then
msg = MsgBox("没有找到相关信息", 16)
Exit Sub
End If
Dim ff As New rpthetong
Set ff.DataSource = rs
ff.Caption = "神兵国际广告(北京)有限公司广告系统-合同号:" & rs!hetong_no & "报表"
ff.Sections("section4").Controls.Item("label29").Caption = rs!hetong_no
ff.Sections("section4").Controls.Item("label30").Caption = rs!xgxy_no
ff.Sections("section1").Controls.Item("label31").Caption = rs!pingdao
ff.Sections("section1").Controls.Item("label32").Caption = rs!leibie
ff.Sections("section1").Controls.Item("label33").Caption = rs!playnumber
ff.Sections("section1").Controls.Item("label34").Caption = rs!playtime
ff.Sections("section1").Controls.Item("label35").Caption = rs!Money
ff.Sections("section1").Controls.Item("label36").Caption = rs!othermoney
ff.Sections("section1").Controls.Item("label37").Caption = rs!playmoney
ff.Sections("section1").Controls.Item("label38").Caption = rs!sulemoney
ff.Sections("section1").Controls.Item("label39").Caption = rs!bochumoney
ff.Sections("section1").Controls.Item("label40").Caption = rs!weiyuemoney
ff.Sections("section1").Controls.Item("label41").Caption = rs!allmoney
ff.Sections("section1").Controls.Item("label42").Caption = rs!moneymoeny
ff.Sections("section1").Controls.Item("label43").Caption = rs!qianyue_date
ff.Sections("section1").Controls.Item("label44").Caption = rs!start_date
ff.Sections("section1").Controls.Item("label45").Caption = rs!end_date
ff.Sections("section1").Controls.Item("label46").Caption = rs!whoown
Dim rs2 As ADODB.Recordset
Set rs2 = New Recordset
sql = "select * from toufang where hetong_no='" & Combo1.Text & "'"
rs2.Open sql, con, 1, 1
If rs2.EOF Then
ff.Sections("section1").Controls.Item("label47").Caption = "未在投放记录中找到相关记录"
ff.Sections("section1").Controls.Item("label48").Caption = "未在投放记录中找到相关记录"
ff.Sections("section1").Controls.Item("label49").Caption = "未在投放记录中找到相关记录"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -