📄 positonallprint.dsr
字号:
BeginProperty Section2 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Section1"
Object.Height = 300
NumControls = 8
ItemType0 = 6
BeginProperty Item0 {1C13A8E4-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Shape4"
Object.Left = 1134
Object.Width = 7370
Object.Height = 300
EndProperty
ItemType1 = 6
BeginProperty Item1 {1C13A8E4-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Shape5"
Object.Left = 2835
Object.Width = 1700
Object.Height = 300
EndProperty
ItemType2 = 6
BeginProperty Item2 {1C13A8E4-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Shape6"
Object.Left = 6236
Object.Width = 1125
Object.Height = 300
EndProperty
ItemType3 = 4
BeginProperty Item3 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Text1"
Object.Left = 1184
Object.Top = 50
Object.Width = 1650
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
ItemType4 = 4
BeginProperty Item4 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Text2"
Object.Left = 2885
Object.Top = 50
Object.Width = 1650
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
ItemType5 = 4
BeginProperty Item5 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Text3"
Object.Left = 4585
Object.Top = 50
Object.Width = 1650
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
ItemType6 = 4
BeginProperty Item6 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Text4"
Object.Left = 6286
Object.Top = 50
Object.Width = 1050
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
ItemType7 = 4
BeginProperty Item7 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Text5"
Object.Left = 7420
Object.Top = 50
Object.Width = 1050
Object.Height = 240
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
EndProperty
SectionCode3 = 7
BeginProperty Section3 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Section3"
NumControls = 0
EndProperty
SectionCode4 = 8
BeginProperty Section4 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9}
_Version = 393216
Name = "Section5"
NumControls = 0
EndProperty
End
Attribute VB_Name = "positonallprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "RVB_ModelStereotype" ,"DataReport"
'**************************************
'* 模 块 名 称 :应用程序启动窗体
'* 功 能 描 述 :应用程序启动窗体
'* 程序员姓名 : 石春晓
'* 最后修改人 : 陈齐国
'* 最后修改时间:2005/09/16
'**************************************
Option Explicit
Private m_print As positionDAO ' 库位数据库操作类
Private m_recordset As ADODB.Recordset ' 数据操作数据集对象
'**************************************
'* 功 能 描 述 :查找打印数据并与打印控件帮定
'* 输 入 参 数 :operaterType - 1 打印所有
'* 输 出 能 数 :无
'**************************************
Public Function PrintDataAll()
Dim ret As Boolean
Dim txt As New Collection
Dim ctl As Object
ret = m_print.position_tj1(m_recordset)
Set Me.DataSource = m_recordset
Me.Sections(2).Controls("Label1").caption = "全部仓库库存列表"
Me.Sections(2).Controls("Label6").caption = "零件名称"
Me.Sections(2).Controls("Label7").caption = "商品名称"
Me.Sections(2).Controls("Label8").caption = "产品名称"
Me.Sections(2).Controls("Label9").caption = "存物类别"
Me.Sections(2).Controls("Label10").caption = "库存数量"
Me.Sections(3).Controls("Text1").DataField = m_recordset.Fields(2).name
Me.Sections(3).Controls("Text2").DataField = m_recordset.Fields(3).name
Me.Sections(3).Controls("Text3").DataField = m_recordset.Fields(4).name
Me.Sections(3).Controls("Text4").DataField = m_recordset.Fields(5).name
Me.Sections(3).Controls("Text5").DataField = m_recordset.Fields(1).name
' For Each ctl In Me.Sections.Item("Section1").Controls
' If TypeName(ctl) = "RptTextBox" Then
' Select Case ctl.name
' Case "Text1"
' ctl.DataField = m_recordset.Fields(0).name
' Case "Text21"
' ctl.DateField = m_recordset.Fields(1).name
' Case "Text3"
' ctl.DateField = m_recordset.Fields(1).name
' Case "Text4"
' ctl.DateField = m_recordset.Fields(2).name
' Case "Text5"
' ctl.DateField = m_recordset.Fields(3).name
' Case "Text6"
' ctl.DateField = m_recordset.Fields(4).name
' Case "Text7"
' ctl.DateField = m_recordset.Fields(5).name
' Case "Text8"
' ctl.DateField = m_recordset.Fields(7).name
' Case "Text9"
' ctl.DateField = m_recordset.Fields(8).name
' Case "Text10"
' ctl.DateField = m_recordset.Fields(9).name
' End Select
' End If
' Next
End Function
Private Sub DataReport_Initialize()
Set m_print = New positionDAO
Set m_recordset = New ADODB.Recordset
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -