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

... 76  77  78  79  80  [81]  82  83  84  85  86  87  88  89  90  ...
NoWriterDateCnt.TitleFile(s)
433혁이7/20/20069095        답변글 [답변]: [답변]: UpdatePanel(Atlas)위의 SmartClient가 이벤트후 사라집니다. ㅜㅜ
434정성태7/20/20069557            답변글 [답변]: [답변]: [답변]: UpdatePanel(Atlas) 위의 SmartClient가 이벤트 후 사라집니다. ㅜㅜ [1]
429kwt7/12/20068845ActiveX 개발을 배우고 싶은데요 [3]
427이홍자7/11/20069191스마트 클라이언트 실행 시 그리드의 체크박스가 안보여요.. [1]
426정보문7/11/20069482액티브X 설치2 [1]
423이방은7/9/20068428리소스 임베디드 질문요.. [1]파일 다운로드1
422guest7/6/20068198COM+에서 풀링을 사용할 경우... [1]파일 다운로드1
424guest7/10/20069252    답변글 소스 코드 입니다. [1]
425guest7/11/20068789        답변글 다시 올립니다.파일 다운로드1
428정성태7/11/20068623            답변글 [답변]: 다시 올립니다.
421정보문7/6/20069085액티브X 설치 [1]
1354허재호11/12/20149396    답변글 [답변]: 액티브X 설치
418임대진7/4/20068513이럴적 있으세요?
419정성태7/4/20068543    답변글 [답변]: 이럴적 있으세요?
417이방은6/29/20068310[질문]2.0에서 웹리소스에 대해서 [2]
416박영일6/29/20068598CAS 설정여부 [1]
415김인학6/28/20069239스마트 클라이언트에서 웹서비스를 호출하고 있습니다. [1]
413김성호6/28/20069010IE프로그램문제... [2]
411이진형6/27/20068852어셈블리 네임 알아내기 [2]
414정성태6/28/20068457    답변글 [답변]: 어셈블리 네임 알아내기
410이재원6/26/20068648자바스크립트 스마트클라이언트 이벤트 호출 [3]
412이재원6/27/20068699    답변글 [답변]: 자바스크립트 스마트클라이언트 이벤트 호출
409정준명6/22/20069516윈폼 기반 스마트클라이언트 속도 문제에 대해서 의견을 구합니다. [2]
406이진형6/21/20069687처음에 스마트클라이언트 로딩하는 속도 [1]
4036/20/20068579Invoke 관련 문의 드립니다. [2]
4086/22/20067379    답변글 invoke 관련하여...
... 76  77  78  79  80  [81]  82  83  84  85  86  87  88  89  90  ...