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

📄 produceprint.dsr

📁 即时通讯
💻 DSR
📖 第 1 页 / 共 3 页
字号:
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Object.Caption         =   "产品序列号:从"
      EndProperty
      ItemType32      =   3
      BeginProperty Item32 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Label4"
         Object.Left            =   6550
         Object.Top             =   850
         Object.Width           =   1134
         Object.Height          =   270
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Object.Caption         =   "Label4"
      EndProperty
      ItemType33      =   3
      BeginProperty Item33 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Label5"
         Object.Left            =   7700
         Object.Top             =   850
         Object.Width           =   300
         Object.Height          =   270
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Object.Caption         =   "到"
      EndProperty
      ItemType34      =   3
      BeginProperty Item34 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Label10"
         Object.Left            =   8000
         Object.Top             =   850
         Object.Width           =   1134
         Object.Height          =   270
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Object.Caption         =   "Label10"
      EndProperty
   EndProperty
   SectionCode2    =   4
   BeginProperty Section2 {1C13A8E0-A0B6-11D0-848E-00A0C90DC8A9} 
      _Version        =   393216
      Name            =   "Section1"
      Object.Height          =   300
      NumControls     =   4
      ItemType0       =   6
      BeginProperty Item0 {1C13A8E4-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Shape10"
         Object.Left            =   1134
         Object.Width           =   7935
         Object.Height          =   300
      EndProperty
      ItemType1       =   6
      BeginProperty Item1 {1C13A8E4-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Shape11"
         Object.Left            =   2268
         Object.Width           =   3405
         Object.Height          =   300
      EndProperty
      ItemType2       =   4
      BeginProperty Item2 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text1"
         Object.Left            =   3402
         Object.Top             =   50
         Object.Width           =   1125
         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
      ItemType3       =   4
      BeginProperty Item3 {1C13A8E2-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Text2"
         Object.Left            =   6803
         Object.Top             =   50
         Object.Width           =   1140
         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"
      Object.Height          =   360
      NumControls     =   2
      ItemType0       =   3
      BeginProperty Item0 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Label37"
         Object.Left            =   6236
         Object.Top             =   100
         Object.Width           =   800
         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
         Object.Caption         =   "跟单员:"
      EndProperty
      ItemType1       =   3
      BeginProperty Item1 {1C13A8E1-A0B6-11D0-848E-00A0C90DC8A9} 
         _Version        =   393216
         Name            =   "Label38"
         Object.Left            =   7370
         Object.Top             =   100
         Object.Width           =   1710
         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
         Object.Caption         =   "Label38"
      EndProperty
   EndProperty
End
Attribute VB_Name = "produceprint"
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/17
'**************************************
Option Explicit

Private m_print As ProduceDAO          ' 库位数据库操作类
Private m_recordset As ADODB.Recordset ' 数据操作数据集对象
Private g_recordset As ADODB.Recordset ' 数据操作数据集对象

'**************************************
'*    功 能 描 述 :查找打印数据并与打印控件帮定
'*    输 入 参 数 :operaterType - 1 打印所有
'*    输 出 能 数 :无
'**************************************
Public Function PrintDataId(produceId As String)
    Dim ret As Boolean
    Dim txt As New Collection
    Dim ctl As Object

    ret = m_print.produce_print(m_recordset, produceId)
    ret = m_print.FindProduceDetailById(g_recordset, produceId)
    Set Me.DataSource = m_recordset

    Me.Sections("section2").Controls("Label23").caption = m_recordset.Fields("psName")
    Me.Sections("section2").Controls("Label24").caption = m_recordset.Fields("bomName")
    Me.Sections("section2").Controls("Label25").caption = m_recordset.Fields("pocessNo")
    Me.Sections("section2").Controls("Label4").caption = ChangeToSerialStr(CInt(Trim(m_recordset.Fields("最小序列号"))))
    Me.Sections("section2").Controls("Label10").caption = ChangeToSerialStr(CInt(Trim(m_recordset.Fields("最大序列号"))))
    Me.Sections("section2").Controls("Label26").caption = m_recordset.Fields("exeEmployeeName")
    Me.Sections("section2").Controls("Label30").caption = m_recordset.Fields("quantity")
    Me.Sections("section2").Controls("Label32").caption = m_recordset.Fields("planBeginDate")
    Me.Sections("section2").Controls("Label33").caption = m_recordset.Fields("planFinishDate")
    Me.Sections("section2").Controls("Label34").caption = m_recordset.Fields("finishDate") & " "
    Me.Sections("section2").Controls("Label36").caption = m_recordset.Fields("memo")
    Me.Sections("section5").Controls("Label38").caption = m_recordset.Fields("employeeName")
    
    Set Me.DataSource = g_recordset
    Me.Sections("section1").Controls("Text1").DataField = g_recordset.Fields("name").name
    Me.Sections("section1").Controls("Text2").DataField = g_recordset.Fields("totalNum").name

    
End Function

Private Sub DataReport_Initialize()
    Set m_print = New ProduceDAO
    Set m_recordset = New ADODB.Recordset
    Set g_recordset = New ADODB.Recordset
End Sub

'**************************************
'*    功 能 描 述 :把整数值转换成产品的序列号 8位的字符串
'*    输 入 参 数 :serial  - 序列号整数
'*    输 出 能 数 :8位的字符串的产品序列号
'**************************************
Public Function ChangeToSerialStr(serial As Integer) As String
    Dim tempSerialStr As String      ' 4位的产品序列号
    Dim tempSerialNum As String      ' 转换成字符串的整数序列号
    Dim serialLen As Integer         ' 字符串序列号的长度
    
    If serial >= 10000 Then
        serial = serial - 10000
    End If
    
    tempSerialStr = "0000"
    tempSerialNum = CStr(serial)
    serialLen = Len(tempSerialNum)
    
    tempSerialStr = Left(tempSerialStr, Len(tempSerialStr) - serialLen) + tempSerialNum
    
    ChangeToSerialStr = tempSerialStr
    
End Function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -