Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 13583
글쓴 사람
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)
5678차가워6/7/202211357원자적 실행 문의 [3]
5677장성욱6/7/202211139블루투스 포트와 시리얼포트 연결시 에러 [2]
5675차가워5/29/202212152윈도우설정 프로세스사용계획 옵션과 c# 스레드 [1]
5674민우5/29/202212446C++ 의 RTTI, Reflection 으로 객체 멤버변수, 멤버함수 목록 추출 문의 [2]
5673조은현5/25/202213082안녕하세요 선생님! c#에서 TCP/IP의 keep alive 기능의 사용법에 대해서 질문드리고 싶어요! [2]파일 다운로드2
5672game...5/23/202213161안녕하세요 GC를 일시적으로 중단시키는 방법이 있을까요? [5]
5671한예지 donator5/20/202213284델리게이트와 함수포인터 선언 시, 차이점 질문 있습니다. [3]
5670유필재5/20/202213610c#에서 현재프로그램에서 사용한 인터넷사용량 측정이 가능한가요? [3]
5669한예지 donator5/19/202211915이벤트 접근 제한자 질문 있습니다. [2]
5667ocm5/14/202211394c# 콜백 메서드 [2]
5666김호영5/13/202211748c# winform에서 svg 이미지 사용 [1]
5665장성욱5/11/202211512C# 타이머 관련 질문 [5]
5664차가워5/11/202211483아스키로 구성된 바이트를 long으로 변환 문의 [1]
5663김석규5/11/202211199VSTO를 이용해 엑셀데이터를 저장할때, 최종 입력값을 인식하지 못합니다. [2]
5662한예지 donator5/10/202210539혹시 사이트 회원가입은 어떻게 하는 것인가요? [1]
5661한예지 donator5/10/202210570for문 안에 await가 있는 경우 질문드립니다. [3]
5660tky5/10/202210742특정 작업을 멀티스레딩으로 처리 할 경우 어떤 방법이 가장 효율적일까요? [2]
5659한예지 donator5/9/202211079Task, TaskAwaiter 질문 있습니다. [3]
5658한예지 donator5/9/202212098교재 689, 690쪽(async/await) 질문입니다. [5]
5657C#초보5/8/202210924초보 단순 질문 입니다.,ㅠ [1]
5656부탁드립...5/6/20221329432bit dll 을 64bit dll 화 [2]
5655감사합니...5/5/202212728UI 스레드 관련 질문드립니다. [4]파일 다운로드1
5653고석주5/3/202211272첨부된 이미지처럼 dll 을 어떻게 추가해야 하는지 문의드립니다. [1]파일 다운로드1
5652감사합니...5/2/202210460프로그램 종료되면 리소스(관리, 비관리)는 알아서 해제 되나요? [2]
5651윤식4/26/202210904상속 구조 관련 질문드립니다. [8]
5650김기헌4/19/202210594WPF 리소스 관련 질문드립니다 [3]
1  2  3  4  5  6  7  8  9  10  11  [12]  13  14  15  ...