?? 打印月盤點.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.Form 打印月盤點
BackColor = &H00E0E0E0&
BorderStyle = 3 'Fixed Dialog
Caption = "打印月盤點"
ClientHeight = 6225
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 10215
Icon = "打印月盤點.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6225
ScaleWidth = 10215
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton 打印
BackColor = &H00E0E0E0&
Caption = "打印"
Height = 435
Left = 8640
Style = 1 'Graphical
TabIndex = 3
Top = 2220
Width = 1335
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 5895
Left = 60
TabIndex = 0
Top = 240
Width = 8295
_ExtentX = 14631
_ExtentY = 10398
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
HeadLines = 2
RowHeight = 14
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
MarqueeStyle = 3
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 0
Width = 1755
_ExtentX = 3096
_ExtentY = 582
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 = $"打印月盤點.frx":000C
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 MSDataListLib.DataCombo DataCombo1
Height = 330
Left = 8520
TabIndex = 1
Top = 1260
Width = 1635
_ExtentX = 2884
_ExtentY = 529
_Version = 393216
Style = 2
BackColor = 14737632
ForeColor = -2147483630
Text = ""
End
Begin MSAdodcLib.Adodc Adodc2
Height = 330
Left = 1980
Top = 0
Width = 2175
_ExtentX = 3836
_ExtentY = 582
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 = "select 編號,倉庫名稱 from 倉庫"
Caption = "Adodc2"
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 VB.Label Label1
BackStyle = 0 'Transparent
Caption = "倉庫名稱:"
Height = 195
Left = 8820
TabIndex = 2
Top = 960
Width = 855
End
End
Attribute VB_Name = "打印月盤點"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人為我,我為人人
'枕善居收藏整理
'發布日期:2008/05/11
'描 述:天宏鋼構倉庫管理系統 Ver 2.96
'網 站:http://www.Mndsoft.com/ (VB6源碼博客)
'網 站:http://www.VbDnet.com/ (VB.NET源碼博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
Private SQL As String
Private 倉庫編號 As String
Private 經辦人編號 As String
Option Explicit
Private Sub initdatagrid1()
On Error Resume Next
DataGrid1.Columns(1).Visible = False
DataGrid1.Columns(4).Visible = False
DataGrid1.Columns(0).width = 500
DataGrid1.Columns(2).width = 1300
DataGrid1.Columns(3).width = 1000
DataGrid1.Columns(5).width = 1100
End Sub
Private Sub DataCombo1_Change()
On Error Resume Next
Adodc1.RecordSource = SQL + " and 倉庫.倉庫名稱='" + DataCombo1.Text + "'"
Adodc1.Refresh
initdatagrid1
End Sub
Private Sub Form_Load()
On Error Resume Next
Adodc1.ConnectionString = DataConnectString
SQL = Adodc1.RecordSource
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
Adodc1.Visible = False
Adodc2.ConnectionString = DataConnectString
Set DataCombo1.RowSource = Adodc2
DataCombo1.ListField = "倉庫名稱"
Adodc2.Refresh
Adodc2.Visible = False
initdatagrid1
End Sub
Private Sub 打印_Click()
On Error Resume Next
Dim f As New 月盤點
f.編號 = DataGrid1.Columns("編號").Value
f.Show vbModal
Unload f
'寫入系統日志
fMainForm.WriteLog ("打印盤點單")
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -