Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 15448
글쓴 사람
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)
513양덕진11/26/200617719SSL인증문제?
514양덕진11/27/200619588    답변글 [답변]: SSL인증문제? [1]
512윤창일11/24/200616914[ActiveX vs 가장기법] [1]
511방문자11/24/200615808스마트 클라이언트 질문입니다. [3]
509주낙현11/22/200617377스마트 클라이언트에서 WebBrowser 컨트롤사용? [4]
508임장현11/20/200616780서로다른 프로젝트간의 세션공유에 대해 질문드립니다.
510정성태11/22/200615192    답변글 [답변]: 서로다른 프로젝트 간의 세션 공유에 대해 질문드립니다.
504탑.11/10/200615759COM+ 구성 좀 봐주세요...
505정성태11/14/200615506    답변글 [답변]: COM+ 구성 좀 봐주세요...
506탑.11/15/200614895        답변글 [답변]: [답변]: COM+ 구성 좀 봐주세요... [2]
503sagi...11/10/200614734bho 폼 관련 질문입니다/ [1]
501안연준11/7/200615446(SmartClient) 프레임워크 1.1 과 2.0 은 호환이 안된다? [3]
507안연준11/17/200615170    답변글 [답변]: (SmartClient) 프레임워크 1.1 과 2.0 은 호환이 안된다? [1]
498쿠리마10/30/200615509Smart Client를 VC60 MFC Dialog 에서 사용하기
500정성태10/30/200617613    답변글 [답변]: Smart Client를 VC60 MFC Dialog 에서 사용하기 [3]
497이방은10/30/200617665질문 있습니다..ㅡ.ㅠ;
499정성태10/30/200617507    답변글 [답변]: 질문 있습니다..ㅡ.ㅠ; [2]
495엔틱스10/25/200615057안녕하세요. 세션에 관련해서 질문을 올립니다. [2]
493안연준10/25/200615751스마트클라이언트 배포에서 Config 내용이 이해가 안되요
494안연준10/25/200613910    답변글 [답변]: 스마트클라이언트 배포에서 Config 내용이 이해가 안되요 [2]
489안연준10/23/200615272스마트 클라이언트 배포시 문제점
491안연준10/24/200615854    답변글 [답변]: 스마트 클라이언트 배포시 문제점 [2]
492안연준10/24/200614861        답변글 [답변]: [답변]: 스마트 클라이언트 배포시 문제점
488안연준10/23/200614634닷넷 프레임워크 때문에 일어난 어의없는 상황 [2]
484서민균10/20/200614663스마트 클라이언트 인쇄질문 올린 사람입니다.
486정성태10/22/200615998    답변글 [답변]: 스마트 클라이언트 인쇄질문 올린 사람입니다.
... 76  77  78  [79]  80  81  82  83  84  85  86  87  88  89  90  ...