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

📄 mmclientcommon.cls

📁 制造业产供销与往来系统源码,包括进销存及全部控件!
💻 CLS
字号:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "MmClientCommon"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Option Explicit

Public Sub gPublic(vPublicCommon As PublicCommon, vPublicShowCommon As SmsPublicShowCommon)

   Set gDbCommon = vPublicCommon.DbCommon
   Set gPublicFunction = vPublicCommon.PublicFunction
   Set gPublicCommon = vPublicCommon
   Set gPublicShowCommon = vPublicShowCommon
   
   If gMmCommon Is Nothing Then
      Set gMmCommon = New MmCommon
   End If
   
   gMmCommon.gPublic gPublicCommon

End Sub

Private Sub Class_Terminate()

Set gDbCommon = Nothing
Set gPublicFunction = Nothing
Set gPublicCommon = Nothing
Set gPublicShowCommon = Nothing

End Sub

Public Function ShowForm(mFormName As String, vCode As String, Optional vModalFlg As Integer = 1) As Object
   Dim mForm As Form
On Error GoTo ErrorHandle

   For Each mForm In Forms
      If UCase(mForm.Name) = UCase(mFormName) Then
         Exit For
      End If
   Next
   
   If mForm Is Nothing Then
      Select Case UCase(mFormName)
         Case "FRMBOM"
               Set mForm = New FrmBom
         Case "FRMSCD"
               Set mForm = New FrmScd
         Case "FRMSCDMFLD"
               Set mForm = New frmScdmFld
         Case "FRMSCDMTLD"
               Set mForm = New frmScdmTld
         Case "FRMSCBCD"
               Set mForm = New frmScBCd
      End Select
   End If
   
   If Not mForm Is Nothing Then
      If vCode <> "" Then
         mForm.LetDocno vCode
      End If
      mForm.Show vModalFlg
   End If

Exit Function
ErrorHandle:
   Set mForm = Nothing
   MsgBox Err.Description
End Function



⌨️ 快捷键说明

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