Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 13568
글쓴 사람
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)
5623한예지 donator3/15/202211094인터프리터 원리가 궁금합니다. [4]
5622김민아3/8/202211275const와 readonly의 명확한 차이가 이게 맞나요? [2]
5621장성욱3/8/202211345c# 로그 관련 질문 [1]
5620김민아3/7/202210922안녕하세요 비관리 객체를 반환하는 메소드 호출 시 궁금한 점이 있어서 질문드립니다 [2]
5619팡팡이3/3/202212749RSA 문의드립니다. [3]
5618김기헌3/2/202210828안녕하세요 생성자 옆에 this 키워드를 붙여 생성자를 여러 개 호출 시 질문드립니다 [2]
5617Edun2/25/202211493ArgumentOutOrRangeException에러 발생 [2]파일 다운로드1
5616csha...2/24/202210882readonly struct로 선언된 구조체를 특정 클래스에서 멤버변수로 가지는 경우 [1]
5615장성욱2/22/202214329SetThreadAffinityMask를 이용한 쓰레드 지정하는 방법에 대해 궁금합니다. [4]
5614민우2/22/202213540SSL 통신 문의 [6]
5613김인태2/22/202211807서버와 PC 간의 어플리케이션 성능 차이 [1]
5612팬입니다2/20/202210834Kastrel 서버 관련 [1]
5611차가워2/19/202211016stopWatch 늘어짐 문의 [3]
5610차가워2/18/202210857Stopwatch 늘어짐 문제 [1]
5609cs린이2/15/202211058c# 함수의 호출 방식에 대해 궁금합니다! [2]
5608지호2/10/202211900시작하세요 C# 8.0 중 제네릭타입의 IEnumerable [3]파일 다운로드1
5607이로운2/10/202210544안녕하세요. 궁금한게 있어서 질문드립니다. [1]
5605강성봉2/10/202211008TCP PSH flag 패킷 수신 에러 [1]
5604LW2/9/202211802VISUAL STUDIO 2019 ==> 2020 설치시 오류가 생겨서 문의드립니다. [3]
5603김진명2/9/202212914C# 10.0 출간은 언제쯤 계획하고 계신가요? [1]
5602신갑영2/8/202211381윈폼에 대해서 질문 드립니다. [1]
5601김인태2/4/202211484setup project 관련 [7]
5600itkim2/3/202213292윈도우 서버 계정 패스워드 인증 문의 [5]
5599레드골드2/3/202213670c#으로 ms word 제어 가능할까요? [6]
5598jaew...2/2/202211868Dictionary는 참조형식인가요?? [1]
5597재원2/2/202212383c# 9.0에 대한 내용을 받을 수 있나요? [1]
1  2  3  4  5  6  7  8  9  10  11  12  13  [14]  15  ...