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

... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
4858heyh...7/10/201717971Clickonce update에 관한질문입니다. [1]
4857heyh...7/7/201718637제가 여태까지 작성한 보고서입니다. [2]파일 다운로드1
4856heyh...7/6/201716728성태님 다른질문입니다. [4]
4855JP7/6/201716938Dispose 패턴 구현시 Finalize 재정의에 대한 질문드립니다. [2]
4854heyh...7/6/201716884
4853heyh...7/5/201716471성태님이 작성한대로 해봤습니다. [1]파일 다운로드1
4852김레오7/4/201719468서드파티 dll 디버깅에 대해 질문드립니다. [2]
4851김현준7/3/201719956Datagridview VirtualMode 시 GC가 계속 호출되는 현상이 이해가 안갑니다. [2]
4850heyh...7/3/201718386성태님 밑에 질문드렸던 오류입니다. [1]파일 다운로드1
4849포플러7/2/201740213C#으로 만든 프로그램이 어느 순간 속도가 느려지거나 멈춤현상이 있습니다. [4]
4848윤진영7/2/201720530Microsoft Visual C++ 6.0 무설치 관련 [1]
4847heyh...6/30/201718158아무리 고민해도 답이 안나와서.. 질문 드립니다 [1]
4846heyh...6/28/201717744Clickonce에서 Clickonce로 변수 전달 [1]
4845heyh...6/26/201717217vb.net 에서 manifest 제거 방법 [1]파일 다운로드1
4844san6/21/201716870part3 pdf파일로 보는데 눈아퍼요.... 활자로 보고싶어요 [2]
4843윤현수6/20/201716072socket통신에 관한 질문입니다. [1]
4842오세운6/7/201717015로그인폼 다시 질문드려요. [1]
4841popo6/7/201717501궁금한사항이 있어 질문 드립니다. [1]
4840윤현수6/5/201717327datagridview에 바인딩시킨 dataset.table에 관련된 질문입니다. [2]파일 다운로드1
4839오세운6/2/201718325로그인폼 만들기 [1]
4838후배5/29/201719117PDF Reader 라이브러리.. [3]
4837KDP5/29/201718742c++ to C# 컨버팅 문의 [2]
4836popo5/26/201721339리플렉션 성능 관련 질문 드립니다. [2]
4835guest5/25/201717394wpf Canvas 질문드립니다. [1]
4834부탁드립...5/19/201718472익스체인지 서버 구동중 인증서를 받는 과정에서오류가 납니다 [1]
4833안종윤5/18/201718647winform을 Web Browser에 붙일 수 있는지요? [1]
... 31  32  33  34  35  36  37  38  39  40  [41]  42  43  44  45  ...