Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 15127
글쓴 사람
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)
5112손성배1/19/201925521안녕하세요 cp949 인스톨시 오류입니다... 너무 힘들어요 [5]
5111게스트1/10/201916734암호화 라이센스 관련 문의 드립니다. [1]
5110WPF꿈...1/9/201916171Thread Abort 함수 사용시 [2]
5109닷넷개발1/9/201915672thread 관련 질문 예제.. [2]파일 다운로드1
5108닷넷개발1/9/201916881thread 관련 질문 드립니다.. [4]
5107우코아1/4/201920137WPF에서 로딩중 이미지를 구현 - Project [5]파일 다운로드1
5106우코아1/3/201917262WPF에서 로딩중 이미지를 구현 - Source [1]
5104우코아1/1/201919364WPF에서 로딩중 이미지를 구현 [4]
5103이혜성12/31/20181958432bit .net 으로 만들어진 dll파일 [5]
5102돌고래12/18/201818094자료구조와 알고리즘 도서 관련 질문입니다. [4]
5101세퉁12/17/201816311안녕하세요 wpf 공부중인데 질문있습니다. [4]파일 다운로드1
5100돌고래12/16/201815576도서 추천 부탁드립니다. [1]
5099WPF12/12/201818429안녕하세요. WPF에서 UWP Control을 참조하려고 합니다. [3]파일 다운로드1
5097sdh12/10/201819581[c#] 라이선스 파일 만들기 질문 드립니다. [3]
5096거북이12/3/201814581프로젝트 구성을 참고할 만한 자료가 있을까요? [1]
5095한대현11/21/201814751안녕하세요 c# 설치 파일 빌드중 오류가 생겨서 문의 드려요 [1]파일 다운로드2
5094하주형11/20/201814811안녕하세요 C# using 예약어관련 질문드립니다. [1]
5093Medi...11/19/201818577안녕하세요. wpf Mediaelement 질문 있습니다. [3]
5092하주형11/17/201814926안녕하세요 c# 7.1책 스택관련 질문드립니다. [2]
5091아짱11/15/201817171UWP 개발중 질문이 있습니다. [3]
5090황윤하11/15/201821370c# Socket Server에 접근할 수 있는 client 개수 제한 [5]
5089문성운11/14/201818885uwp에서 TcpListener를 사용할 수 없나요? [5]
5088안중언11/10/201815756TCP 소켓 [1]파일 다운로드1
5084김광흠11/9/201818063사운드 파일 "filename.wav" 와 같은 특정 파일이 실행되는것을 감시하고 싶습니다. [3]
5083거북이11/4/201818739타입의 범위를 넘어서는 연산의 개념을 모르겠습니다. [4]
5082꾸엉11/1/201815294BCL 타입을 모아둔 곳이 있나요? [2]
... 31  [32]  33  34  35  36  37  38  39  40  41  42  43  44  45  ...