Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 14515
글쓴 사람
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)
241김재옥10/5/200511099smart client에서의 Socket 함수 사용 [1]
240이형배9/15/200510666스마트클라이언트배우고 싶어여... [1]
239장강현9/14/200515498SmartClient에서의 배포 문제에 대해 [2]
238이순원9/13/200510836디버깅 할때 native 옵션껐는데두 너무 느려요.. [1]
236코디9/12/200510816[질문]런타임 보안 배포 [1]
237코디9/13/200511389    답변글 [재질문]: [질문]런타임 보안 배포 [1]파일 다운로드1
235임은선9/9/200513387스마트 클라이언트 배포시 환경파일인 app.config는 어떻게 배포 해야하나요...? [2]
234임은선9/7/200512167스마트 클라이언트 보안문제관련해서 질문이 있습니다.. [2]
233이한욱8/31/200520270가상 시리얼 포트(Virtual COM Port) 만들기 [1]
232정준명8/30/200511906[질문] HTTP 모듈/핸들러 또는 RewriteURL 관련입니다. [4]
231이진일8/30/200510920참조한 dll 들은 어떻게 배포하나요...? [1]
2303028/29/200511868[질문] 웹에서 Exchange Server 사용자 추가 [2]
229김재명8/26/200511406성태님의 홈페이지 J & J의경우 보안모듈을 어떻게 해결하셨는지 궁금합니다. [1]
227임규진8/24/200511293리소스 파일에 그림 첨가하는 방법 좀 알려 주세요. [1]
226최인호8/19/200511256스마트 클라이언트 exe 버젼 실행시 시간이 너무 오래 걸립니다. [1]
225코디8/17/200511508[질문]닷넷프레임워크 설치여부 [1]
224박준현8/17/200511041[질문]중첩 그리드라고 해야 할까요? [1]
223매커7/28/200510485강좌 잘 읽었습니다. [1]
222김지영7/27/200511949C#에서 oledb 사용하다가 에러 [2]
221박민우7/26/200512489스마트클라이언트에서의 DB접속 [1]
220테드7/22/200511505스마트 클라이언트에서 원치 않는 패킷 송수신 문제... [3]
219김종욱7/21/200511932안녕하세요... 툴밴드 콤보 박스에 대해.. [1]
2187/21/200510573스마트 클라이언트에 대한 질문 입니다. [1]파일 다운로드1
217왕초보7/21/200511207마소강좌의 AxForSmartClient 를 실행시키고 싶은데요... [1]
215궁금증6/23/200510725도대체 이게 무슨 에러 일까요... [1]
213궁금이6/18/200512424Winform 형태의 NTD에서 사용자 로그인 성공 여부 정보 유지하는 방법 [1]
... 76  77  78  79  80  81  82  83  84  85  86  87  88  [89]  90  ...