Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 14573
글쓴 사람
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)
5134이정호3/12/201913942SampleProfiler 예제를 이용한 Class 객체의 접근 문의 [1]파일 다운로드1
5133ㅇㅇ3/12/201915120멀티코어사용 방법에 궁금한것이 있습니다. [3]
5132존기미3/3/201915362Physical Disk Access문의 [1]
5131강용규2/25/201914832c# 개발자입니다. 타이머 질문드립니다. [1]
5130노인코래방2/25/201919076C#에서 가장 좋은 성능을 보이는 파일 읽고 쓰는 방법이 무엇인가요? [2]
5129진우2/23/201918625닷넷 32비트 기반에서 메모리 부족으로 프로그램이 죽는경우 문의 [2]
5128게스트2/23/201915895안녕하세요. 초보개발자입니다. [3]파일 다운로드1
5127c#2/20/201914767책에 예제 문의드립니다. [2]
5125게스트2/19/201914660delegate를 활용한 event 를 적절히 불러오고 싶습니다. [2]
5124정근화2/12/201914559윈도우 서버2003 환경 오류 [2]
5123김주현2/8/201914595MS LUIS 에 대한 소개 하실 계획이 있으신가요? [1]
5122jaka...2/1/201916997Clickonce 배포 후 Command 실행 [2]파일 다운로드1
5121엔벌이1/31/201916480C# DataGridView의 MDB파일 함수? ArrayList? [1]파일 다운로드1
5120임우진1/30/201917439웹에서 응용프로그램 바로 실행하기 관련 브라우저에서 파라미터가 넘어오지 않습니다.ㅜㅜ [2]
5119guest1/29/201919107교재에 오탈자 있어 알려드리려 합니다 [1]
5118WPF꿈...1/26/201917348GetHashCode 메서드에 대해서 [1]
5117하주형1/25/201917163List<int>에 대한 이해가 잘안됩니다. [5]
5116게스트1/24/201915338asp.net 관련 gridview webform 질문 드립니다. [1]파일 다운로드1
5115Soul...1/24/201915807투명 패널 질문드립니다. [2]
5114박현일1/20/201916356WPF DataContext 관련 초보 질문을 드려봅니다.^^ [5]
5113하주형1/20/201915589안녕하세요 시작하세요 C# 인코딩관련 질문드립니다. [1]
5112손성배1/19/201924864안녕하세요 cp949 인스톨시 오류입니다... 너무 힘들어요 [5]
5111게스트1/10/201916118암호화 라이센스 관련 문의 드립니다. [1]
5110WPF꿈...1/9/201915573Thread Abort 함수 사용시 [2]
5109닷넷개발1/9/201915183thread 관련 질문 예제.. [2]파일 다운로드1
5108닷넷개발1/9/201916382thread 관련 질문 드립니다.. [4]
... [31]  32  33  34  35  36  37  38  39  40  41  42  43  44  45  ...