www.pudn.com > 通用库存管理系统 vb.rar > frmPrint.frm
VERSION 5.00
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "AS97POPUP.OCX"
Begin VB.Form frmPrint
BorderStyle = 0 'None
Caption = " 登 录"
ClientHeight = 5610
ClientLeft = 2790
ClientTop = 3150
ClientWidth = 7080
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 374
ScaleMode = 3 'Pixel
ScaleWidth = 472
ShowInTaskbar = 0 'False
Begin as97Popup.asPopup asPopup8
Height = 855
Left = 720
Top = 4200
Width = 1335
_ExtentX = 2355
_ExtentY = 1508
CustomPicture = "frmPrint.frx":0000
Caption = "拜访"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 89
ScaleMode = 0
ScaleHeight = 57
BackStyle = 0
End
Begin as97Popup.asPopup asPopup7
Height = 855
Left = 720
Top = 3240
Width = 1335
_ExtentX = 2355
_ExtentY = 1508
CustomPicture = "frmPrint.frx":031A
Caption = "意向"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 89
ScaleMode = 0
ScaleHeight = 57
BackStyle = 0
End
Begin as97Popup.asPopup asPopup6
Height = 855
Left = 720
Top = 2280
Width = 1335
_ExtentX = 2355
_ExtentY = 1508
CustomPicture = "frmPrint.frx":0634
Caption = "出库"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 89
ScaleMode = 0
ScaleHeight = 57
BackStyle = 0
End
Begin as97Popup.asPopup asPopup5
Height = 855
Left = 720
Top = 1320
Width = 1335
_ExtentX = 2355
_ExtentY = 1508
CustomPicture = "frmPrint.frx":094E
Caption = "入库"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 89
ScaleMode = 0
ScaleHeight = 57
BackStyle = 0
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 3495
Left = 2280
TabIndex = 1
Top = 1680
Width = 4215
_ExtentX = 7435
_ExtentY = 6165
_Version = 393216
AllowUpdate = 0 'False
BackColor = 16761024
HeadLines = 1
RowHeight = 15
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
ColumnWidth = 1514.986
EndProperty
BeginProperty Column01
ColumnWidth = 1514.986
EndProperty
EndProperty
End
Begin TabDlg.SSTab SSTab1
Height = 2340
Left = 2280
TabIndex = 2
Top = 1200
Width = 4215
_ExtentX = 7435
_ExtentY = 4128
_Version = 393216
TabOrientation = 1
Tabs = 4
Tab = 1
TabsPerRow = 4
TabHeight = 520
ForeColor = 16711680
TabCaption(0) = "入库"
TabPicture(0) = "frmPrint.frx":0C68
Tab(0).ControlEnabled= 0 'False
Tab(0).Control(0)= "asPopup10"
Tab(0).Control(1)= "asPopup2"
Tab(0).ControlCount= 2
TabCaption(1) = "出库"
TabPicture(1) = "frmPrint.frx":0C84
Tab(1).ControlEnabled= -1 'True
Tab(1).Control(0)= "asPopup11"
Tab(1).Control(0).Enabled= 0 'False
Tab(1).Control(1)= "asPopup1"
Tab(1).Control(1).Enabled= 0 'False
Tab(1).ControlCount= 2
TabCaption(2) = "3"
TabPicture(2) = "frmPrint.frx":0CA0
Tab(2).ControlEnabled= 0 'False
Tab(2).Control(0)= "asPopup3"
Tab(2).ControlCount= 1
TabCaption(3) = "4"
TabPicture(3) = "frmPrint.frx":0CBC
Tab(3).ControlEnabled= 0 'False
Tab(3).Control(0)= "asPopup4"
Tab(3).Control(1)= "asPopup9"
Tab(3).ControlCount= 2
Begin as97Popup.asPopup asPopup4
Height = 255
Left = -72720
Top = 120
Width = 1455
_ExtentX = 2566
_ExtentY = 450
CustomPicture = "frmPrint.frx":0CD8
Caption = "执行检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 97
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup3
Height = 255
Left = -72240
Top = 120
Width = 975
_ExtentX = 1720
_ExtentY = 450
Caption = "执行检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
BackColor = -2147483648
MouseOverColor = 65535
ScaleWidth = 65
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup2
Height = 255
Left = -72360
Top = 120
Width = 1095
_ExtentX = 1931
_ExtentY = 450
CustomPicture = "frmPrint.frx":1072
Caption = "执行检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 73
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup1
Height = 255
Left = 2640
Top = 120
Width = 1095
_ExtentX = 1931
_ExtentY = 450
CustomPicture = "frmPrint.frx":140C
Caption = "执行检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 73
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup9
Height = 255
Left = -74760
Top = 120
Width = 1455
_ExtentX = 2566
_ExtentY = 450
CustomPicture = "frmPrint.frx":17A6
Caption = "打印检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 97
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup10
Height = 255
Left = -74760
Top = 120
Width = 1215
_ExtentX = 2143
_ExtentY = 450
CustomPicture = "frmPrint.frx":1D40
Caption = "打印检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 81
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
Begin as97Popup.asPopup asPopup11
Height = 255
Left = 240
Top = 120
Width = 1215
_ExtentX = 2143
_ExtentY = 450
CustomPicture = "frmPrint.frx":22DA
Caption = "打印检索"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = 16711680
MouseOverColor = 65535
ScaleWidth = 81
ScaleMode = 0
ScaleHeight = 17
BackStyle = 0
End
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 255
Left = 2280
TabIndex = 3
Top = 960
Width = 2055
_ExtentX = 3625
_ExtentY = 450
_Version = 393216
CustomFormat = "MM-dd-yyyy"
Format = 24707075
CurrentDate = 37369
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 255
Left = 4440
TabIndex = 4
Top = 960
Width = 2055
_ExtentX = 3625
_ExtentY = 450
_Version = 393216
CustomFormat = "MM-dd-yyyy"
Format = 24707075
CurrentDate = 37369
End
Begin VB.Image Image1
BorderStyle = 1 'Fixed Single
Height = 3975
Left = 600
Top = 1200
Width = 1575
End
Begin VB.Image imgTitleMinimize
Height = 195
Left = 8520
Picture = "frmPrint.frx":2874
Top = 840
Width = 195
End
Begin VB.Image imgTitleClose
Height = 195
Left = 8520
Picture = "frmPrint.frx":2ABE
Top = 600
Width = 195
End
Begin VB.Image imgTitleHelp
Height = 195
Left = 8520
Picture = "frmPrint.frx":2D08
Top = 240
Width = 195
End
Begin VB.Label lblTitle
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "数据报表"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 7440
TabIndex = 0
Top = 1200
Width = 1020
End
Begin VB.Image imgTitleMain
Height = 450
Left = 7080
Picture = "frmPrint.frx":2F52
Stretch = -1 'True
Top = 600
Width = 285
End
Begin VB.Image imgWindowBottomRight
Height = 450
Left = 8160
Picture = "frmPrint.frx":369C
Top = 120
Width = 285
End
Begin VB.Image imgWindowRight
Height = 450
Left = 8160
Picture = "frmPrint.frx":3DE6
Stretch = -1 'True
Top = 600
Width = 285
End
Begin VB.Image imgWindowLeft
Height = 450
Left = 7800
Picture = "frmPrint.frx":4530
Stretch = -1 'True
Top = 600
Width = 285
End
Begin VB.Image imgWindowBottom
Height = 450
Left = 7440
Picture = "frmPrint.frx":4C7A
Stretch = -1 'True
Top = 600
Width = 285
End
Begin VB.Image imgWindowBottomLeft
Height = 450
Left = 7800
Picture = "frmPrint.frx":53C4
Top = 120
Width = 285
End
Begin VB.Image imgTitleRight
Height = 450
Left = 7440
Picture = "frmPrint.frx":5B0E
Top = 120
Width = 285
End
Begin VB.Image imgTitleLeft
Height = 450
Left = 7080
Picture = "frmPrint.frx":6258
Top = 120
Width = 285
End
End
Attribute VB_Name = "frmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub asPopup1_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand2.State <> adStateClosed Then
DataEnvironment1.rsCommand2.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command2").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command2").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command2"
Set DataGrid1.DataSource = DataEnvironment1
End Sub
Private Sub asPopup10_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
DataEnvironment1.rsCommand1.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command1"
Set DataGrid1.DataSource = DataEnvironment1
DataReport2.Show
DataReport2.Sections(2).Controls("Label13").Caption = "开始时间:" & CStr(DTPicker1.Value)
DataReport2.Sections(2).Controls("Label14").Caption = "结束时间:" & CStr(DTPicker2.Value)
End Sub
Private Sub asPopup11_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand2.State <> adStateClosed Then
DataEnvironment1.rsCommand2.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command2").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command2").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command2"
Set DataGrid1.DataSource = DataEnvironment1
DataReport3.Show
DataReport3.Sections(2).Controls("Label13").Caption = "开始时间:" & CStr(DTPicker1.Value)
DataReport3.Sections(2).Controls("Label14").Caption = "结束时间:" & CStr(DTPicker2.Value)
End Sub
Private Sub asPopup2_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
DataEnvironment1.rsCommand1.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command1"
Set DataGrid1.DataSource = DataEnvironment1
End Sub
Private Sub asPopup5_Click(Cancel As Boolean)
SSTab1.Tab = 0
asPopup5.BackColor = &HFFC0C0
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub
Private Sub asPopup6_Click(Cancel As Boolean)
SSTab1.Tab = 1
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &HFFC0C0
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub
Private Sub asPopup7_Click(Cancel As Boolean)
SSTab1.Tab = 2
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &HFFC0C0
asPopup8.BackColor = &H8000000F
End Sub
Private Sub asPopup8_Click(Cancel As Boolean)
SSTab1.Tab = 3
asPopup5.BackColor = &H8000000F
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &HFFC0C0
End Sub
Private Sub Form_Load()
MakeWindow Me
' AlwaysOnTop Me, True
Me.Top = MDIFrmMain.Height / 2 - Me.Height / 2 - 1000
Me.Left = MDIFrmMain.Width / 2 - Me.Width / 2
DTPicker1.Value = Date
DTPicker2.Value = Date
SSTab1.Tab = 0
asPopup5.BackColor = &HFFC0C0
asPopup6.BackColor = &H8000000F
asPopup7.BackColor = &H8000000F
asPopup8.BackColor = &H8000000F
End Sub
Private Sub imgTitleClose_Click()
Unload Me
End Sub
Private Sub imgTitleLeft_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
DoDrag Me
End Sub
Private Sub imgTitleMain_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
DoDrag Me
End Sub
Private Sub imgTitleMinimize_Click()
Me.WindowState = 1
End Sub
Private Sub imgTitleRight_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
DoDrag Me
End Sub
Private Sub lblTitle_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
DoDrag Me
End Sub