Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 9397
글쓴 사람
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)
238이순원9/13/20057411디버깅 할때 native 옵션껐는데두 너무 느려요.. [1]
236코디9/12/20057370[질문]런타임 보안 배포 [1]
237코디9/13/20057953    답변글 [재질문]: [질문]런타임 보안 배포 [1]파일 다운로드1
235임은선9/9/20059782스마트 클라이언트 배포시 환경파일인 app.config는 어떻게 배포 해야하나요...? [2]
234임은선9/7/20058656스마트 클라이언트 보안문제관련해서 질문이 있습니다.. [2]
233이한욱8/31/200516655가상 시리얼 포트(Virtual COM Port) 만들기 [1]
232정준명8/30/20058091[질문] HTTP 모듈/핸들러 또는 RewriteURL 관련입니다. [4]
231이진일8/30/20057490참조한 dll 들은 어떻게 배포하나요...? [1]
2303028/29/20058136[질문] 웹에서 Exchange Server 사용자 추가 [2]
229김재명8/26/20057798성태님의 홈페이지 J & J의경우 보안모듈을 어떻게 해결하셨는지 궁금합니다. [1]
227임규진8/24/20057563리소스 파일에 그림 첨가하는 방법 좀 알려 주세요. [1]
226최인호8/19/20057685스마트 클라이언트 exe 버젼 실행시 시간이 너무 오래 걸립니다. [1]
225코디8/17/20057805[질문]닷넷프레임워크 설치여부 [1]
224박준현8/17/20057423[질문]중첩 그리드라고 해야 할까요? [1]
223매커7/28/20056945강좌 잘 읽었습니다. [1]
222김지영7/27/20058494C#에서 oledb 사용하다가 에러 [2]
221박민우7/26/20058914스마트클라이언트에서의 DB접속 [1]
220테드7/22/20057880스마트 클라이언트에서 원치 않는 패킷 송수신 문제... [3]
219김종욱7/21/20058211안녕하세요... 툴밴드 콤보 박스에 대해.. [1]
2187/21/20056769스마트 클라이언트에 대한 질문 입니다. [1]파일 다운로드1
217왕초보7/21/20057411마소강좌의 AxForSmartClient 를 실행시키고 싶은데요... [1]
215궁금증6/23/20056828도대체 이게 무슨 에러 일까요... [1]
213궁금이6/18/20058640Winform 형태의 NTD에서 사용자 로그인 성공 여부 정보 유지하는 방법 [1]
212궁금이6/16/20056664ActiveX 컨트롤이 NTD에 이상이 없는지요? [1]
211류성태6/15/20057138smart client에 관하여.... [1]
206헤커의작...6/14/20056288[질문] 안녕하세요. 성태님의 홈페이지에서 화면전환시 처리되는 것에 관련된 건 [3]
... 76  77  78  79  80  81  82  83  84  85  86  87  [88]  89  90  ...