Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 13625
글쓴 사람
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

... 61  62  63  64  [65]  66  67  68  69  70  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
979왕초보7/1/201117937Apache + IIS Redirect [2]
9776/16/201122263웹컨트롤 어느거 쓰는게 좋나요 [1]
976박성준6/13/201117727VS2008 Add-in 구현 관련 질문 [4]
972김길6/6/201120017메모리 해제 예외 처리 관련.. [2]
971강동원5/29/201117548firebird install건 [1]
970임동찬5/18/201118341ASP.net 솔루션 디버깅 관련 [1]
969이성환5/4/201119962WMI 를 사용하지 않고 하드웨어 정보를 가져올 수 없을까요? [3]
968김동미4/28/201119422안녕하세요 다시 한번 문의를 드립니다.. [2]파일 다운로드1
967임동찬4/22/201122139C# using문 관련 [9]
964김동미4/18/201119753wcf IsOneWay 속성관련 문의 입니다..
965정성태4/18/201121128    답변글 [답변]: wcf IsOneWay 속성관련 문의 입니다..
966김동미4/19/201118970        답변글 [답변]: [답변]: wcf IsOneWay 속성관련 문의 입니다.. [1]
963최재훈4/12/201117341wcf inactivityTimeout 설정시 문의 사항이 있습니다. [2]
962임동찬4/8/201116958TFS 사용관련 [1]
961임동찬4/7/201117303XSD & XML & XmlCodeGenerator [2]
960임동찬4/5/201118830XML Schema Editor [4]
959immm3/24/201116610로그인 연동 어려운 건가요? [1]
958꼭지3/3/201118692Supporting compressed request in WCF 3.5 [5]
957임동찬2/21/201119193WCF channel faulted 관련 [2]
956윤용한2/18/201122631WaitHandle.WaitOne 과 Stopwatch에 관한 질문 [3]
955최광욱2/17/201119289TFS 에서 소스 영구 제거 방법 [1]
954한장우2/16/201117001atl activeX 질문이요~ [1]
952박용운2/16/201117830IE8.0에서 BHO [1]
953박용운2/16/201117849    답변글 [답변]: IE8.0에서 BHO
951임동찬2/11/201117897WCF Service Reference [1]
950이성환2/9/201119320Windows application 프로젝트를 참조 했을 때 생성되는 실행파일을 직접 실행 불가능하도록 하고 싶습니다. [6]파일 다운로드1
... 61  62  63  64  [65]  66  67  68  69  70  71  72  73  74  75  ...