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

📄 positionprint.dsr

📁 即时通讯
💻 DSR
📖 第 1 页 / 共 3 页
字号:
      EndProperty
      ItemType10      =   4
      BeginProperty Item10 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text5"
         Object.Left            =   4050
         Object.Top             =   50
         Object.Width           =   950
         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
      ItemType11      =   4
      BeginProperty Item11 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text6"
         Object.Left            =   5050
         Object.Top             =   50
         Object.Width           =   950
         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
      ItemType12      =   4
      BeginProperty Item12 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text7"
         Object.Left            =   6050
         Object.Top             =   50
         Object.Width           =   950
         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
      ItemType13      =   4
      BeginProperty Item13 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text8"
         Object.Left            =   7050
         Object.Top             =   50
         Object.Width           =   950
         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
      ItemType14      =   4
      BeginProperty Item14 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text9"
         Object.Left            =   8050
         Object.Top             =   50
         Object.Width           =   950
         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
      ItemType15      =   4
      BeginProperty Item15 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text10"
         Object.Left            =   9050
         Object.Top             =   50
         Object.Width           =   950
         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 = "positionidprint"
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 PrintDataId(warehouseid As String, name As String)
    Dim ret As Boolean
    Dim txt As New Collection
    Dim ctl As Object

    ret = m_print.position_tj(m_recordset, warehouseid)
       
    Set Me.DataSource = m_recordset

    Me.Sections(2).Controls("Label1").caption = name + "库位列表"
    Me.Sections(2).Controls("Label2").caption = "仓库名称"
    Me.Sections(2).Controls("Label3").caption = "库位名称"
    Me.Sections(2).Controls("Label4").caption = "零件名称"
    Me.Sections(2).Controls("Label5").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(2).Controls("Label11").caption = "库存数量"
    
    Me.Sections(3).Controls("Text1").DataField = m_recordset.Fields(0).name
    Me.Sections(3).Controls("Text2").DataField = m_recordset.Fields(6).name
    Me.Sections(3).Controls("Text3").DataField = m_recordset.Fields(1).name
    Me.Sections(3).Controls("Text4").DataField = m_recordset.Fields(2).name
    Me.Sections(3).Controls("Text5").DataField = m_recordset.Fields(3).name
    Me.Sections(3).Controls("Text6").DataField = m_recordset.Fields(4).name
    Me.Sections(3).Controls("Text7").DataField = m_recordset.Fields(5).name
    Me.Sections(3).Controls("Text8").DataField = "¥" & m_recordset.Fields(7).name
    Me.Sections(3).Controls("Text9").DataField = m_recordset.Fields(8).name
    Me.Sections(3).Controls("Text10").DataField = m_recordset.Fields(9).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 + -