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

... 46  47  48  49  50  51  52  53  54  55  [56]  57  58  59  60  ...
NoWriterDateCnt.TitleFile(s)
1288박주만7/8/201431104C# 서비스 기반 데이터베이스(mdf) & InstallShield Limited Edition 설치 및 배포 [2]파일 다운로드1
1287김용환7/8/201428967오라클 db 사용관련 문의입니다. [4]파일 다운로드1
1286C#조으다7/8/201418901WebBrowser 공유기 관리 웹 페이지 인증 [3]
1285C#조으다7/5/201419189IE DocumentComplete 이벤트가 발생되지 않습니다. [2]
1284(non...7/4/201419571(글쓴이의 요청으로 삭제합니다.) [3]
1283김영대7/3/201422405안녕하십니까 정성태님 죄송하지만 SmartClient 에 관한 질문이 있습니다. [9]
1282(non...7/2/201419326(글쓴이의 요청으로 삭제합니다.) [2]
1281(non...7/1/201420517(글쓴이의 요청으로 삭제합니다.) [4]
1280동동이6/25/201420179안녕하세요. ocx의 비동기 또는 쓰레드에서 호출 [1]
1279(non...6/23/201420498(글쓴이의 요청으로 삭제합니다.) [17]
1278이상식6/19/201421902.net DLL 내 자바스크립트를 수정 또는 재정의 할 수 있을까요? [3]
1277김솔지6/18/201418203silverlight에서 datagrid, listbox질문이여 [2]
1276정우석6/16/201417909쿠키 [1]
1274김솔지6/10/201422315배포 페이지 url을 얻고 싶습니다. [8]
1272이훈모6/7/201416884정말 어려운 상황에 직면했습니다. [1]
1270Jong...6/2/201427495C#과 C++을 이용한 Image 처리. [13]
1269김아영5/29/201417956InitializeComponent 함수 호출 지연 현상 [5]
1268솔솔5/27/201417349smart client [1]
1266김솔지5/22/201419810clickonce 수정에 대해 알고싶습니다. [2]
1265이은아5/22/201424329DataGridView 헤더를 두줄이상으로 하고싶습니다. [1]파일 다운로드1
1264김인호5/18/201423146소스코드 및 예제그림 zip 파일 [1]
1263이영종5/15/201419835159페이지 오타인것 같습니다 [5]
1262(non...5/4/201420620(글쓴이의 요청으로 삭제합니다.) [10]
1261이근주5/4/201418125다시 한번 질문드릴께요. [2]
1259이근주5/1/201418079도서 오류인 것 같네요.. [1]
1258최세정4/28/201420674안녕하세요~php module 오류로 고민하다가 여기까지 왔네요..ㅜㅜ [2]
... 46  47  48  49  50  51  52  53  54  55  [56]  57  58  59  60  ...