Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 13562
글쓴 사람
guest
홈페이지
첨부 파일
 
부모글 보이기/감추기

Imports Microsoft.VisualBasic
Imports System.Runtime.InteropServices
Imports System.EnterpriseServices
Imports System.Text

<System.Runtime.InteropServices.ProgId("PUB_Baa01.CBaa020N"), _
    JustInTimeActivation(True), EventTrackingEnabled(True), _
    System.EnterpriseServices.TransactionAttribute(System.EnterpriseServices.TransactionOption.NotSupported), _
    ClassInterface(ClassInterfaceType.AutoDual), ObjectPooling(True, MinPoolSize:=0, MaxPoolSize:=1)> _
Public Class CBaa020N
    Inherits ServicedComponent
    
    Private Const csComboID As String = "PUB_Zaaex.CZaaxt"
    Private Const csDBSID As String = "FSBCommNet.CDBScript"

    Public Function GetBaa020(ByRef aCert As Object, _
                                ByVal sCustCd As String, _
                                ByVal sCustNm As String, _
                                ByVal sCustType As String, _
                                ByVal sBizNo As String, _
                                ByRef rsBaa020 As Object, _
                                Optional ByRef aCombo As Object = Nothing) As String
        Dim oDAL As Object = Nothing
        Dim oCombo As Object = Nothing
        Dim sSql As New System.Text.StringBuilder("")

        Try

            GetBaa020 = ""

            oDAL = CreateObject(aCert(9))
            GetBaa020 = oDAL.Connect(aCert)
            If GetBaa020 <> "" Then Throw New Exception(GetBaa020)

            sSql.Remove(0, sSql.Length)

            sSql.AppendLine(" ")

            GetBaa020 = oDAL.GetRecordSet(sSql.ToString, rsBaa020)
            If GetBaa020 <> "" Then Throw New Exception(GetBaa020)

            If Not IsNothing(aCombo) Then
                oCombo = CreateObject(csComboID)
                GetBaa020 = oCombo.getComboRs(aCert, aCombo, oDAL)
                If GetBaa020 <> "" Then Throw New Exception(GetBaa020)
            End If

        Catch oErr As Exception
            GetBaa020 = My.Application.Info.AssemblyName & "." & TypeName(Me) & "[GetBaa020]" & vbCrLf & oErr.Source & vbCrLf & oErr.Message
        Finally

            sSql = Nothing

            If Not oCombo Is Nothing Then
                oCombo.Dispose()
            End If
            oCombo = Nothing

            If Not oDAL Is Nothing Then
                oDAL.Disconnect()
                ServicedComponent.DisposeObject(oDAL)
            End If
            oDAL = Nothing

            Me.Dispose()
        End Try

    End Function

End Class








[최초 등록일: ]
[최종 수정일: 7/10/2006]


비밀번호

댓글 작성자
 



2006-07-10 11시49분
거듭 죄송합니다. 가능한 ... 바로 컴파일 할 수 있는 프로젝트로 통째로 좀 올려주십시오.
kevin25

1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
5887HAN4/12/202311122안녕하세요 파이썬도 공유 가능 할까요? [1]
5886guest4/11/202312268필요한 어셈블리만 다운로드 및 재로딩하는 방법에 관하여 [2]
5885guest4/11/202311437c#으로 드림위버같은 거 만들어볼려는데요 [6]
5884궁금이4/11/202311397부모 클래스에서 예외 발생시 힙 영역에 할당 ? [2]
5883코딩초짜4/9/20231127510c언어 usleep 에 대해서 요 [2]
5882조은현4/7/202310566선생님 안녕하세요! wpf의 성능 개선에 대해서 질문드려요! [1]파일 다운로드1
5881guest4/6/202311505static method - <에러메시지 Extension method must be defined in a non-generic static class> [4]
5880유비4/4/202310827WPF DataGrid CollectionView, IEditableCollectionView 관련 문의 [1]
5879guest4/4/202311924Async method의 에러 표시 [3]
5878guest4/3/202312244C#으로 CMOS 설정 변경가능한지요? [4]
5875guest4/2/202312716성태님 책을 완독 하고 Static [7]
5874민성4/1/202311758안녕하세요 질문 하나만 드릴깨요~ [1]
5873guest3/31/202312187제어판에서 삭제불가 MS Edge ---> 레지스트리 편집기에서도 안보임 [6]파일 다운로드1
58723/31/202311569web config 파일 확인부탁드려요 [6]
58713/31/202311471web config 파일 수정이요 [2]파일 다운로드1
5870guest3/30/202311519.NET Core SDK 삭제 시 주의 사항 [4]파일 다운로드1
5869guest3/30/202311976Dictionary의 Update 그리고 Foreach [7]
5868guest3/29/202311312Speech Recognition과 Form1 그리고 정확도 [4]파일 다운로드1
5866월급쟁이3/28/202311030cmake 크로스 컴파일 관련하여 질문이 있습니다 [1]
5865guest3/28/202310698Github Copilot과 코딩실력 향상? [1]
5864guest3/27/202311770System.NullReferenceException - 개체참조가 개체의 인스턴스... [6]파일 다운로드1
5863guest3/24/202311289이벤트 핸들러 사라짐 현상 - Button [4]
5862guest3/21/202311655세계최초 hts와 싱글스레드 [8]
5861다크파이썬3/21/202312480WPF를 사용하려고 하려고 도서 문의합니다. [2]
5860guest3/21/202310912인텔코어 i5 CPU와 스레드 [4]
5859guest3/21/202310404개발 일지 어떻게 관리하시나요? 이런 프로그램 없나요? [3]
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...