Microsoft MVP성태의 닷넷 이야기
소스 코드 입니다. [링크 복사], [링크+제목 복사],
조회: 14641
글쓴 사람
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)
1311김솔8/18/201420033nsis파일 수정중에요! [2]
1310조정용8/17/201421434WCF 프로그램에서 Task를 이용한 백그라운드 작업 시 클라이언트에 대한 병목현상. [4]파일 다운로드1
1309서동원8/12/201419254안녕하세요. embeded dll과 관련하여 질문드립니다. [4]
1308김솔8/11/201423411리스트뷰에서 중복파일체크를 하고싶습니다. [3]
1306이상현8/7/201416900Entity 프레임웍에서 테이블만 추가로 등록하는 방법
1307이상현8/7/201417628    답변글 [답변]: 자답이네요. [1]
1305popo8/7/201418623wpf UserControl List 바인딩 질문 입니다. [1]
1304민경수8/7/201421733네이버 카페에 구글 스프레드 시트 삽입 [1]
1303김동진8/7/201418750vmware환경에서 Guest IP를 192대역으로 받을 수 있는 방법은 없을까요~? [3]
1302김문경7/31/201417753스마트클라이언트 오라클 연결 [1]
1314이재균8/20/201417362    답변글 [답변]: 스마트클라이언트 오라클 연결
1300아로스7/28/201431582c# 인터넷 임시 파일 삭제 문의 [12]파일 다운로드1
1299서동원7/28/201419999안녕하세요. 혹시 Internet_Zone과 관련된문제인가 해서 질문드립니다. [1]
1298(non...7/25/201426036(글쓴이의 요청으로 삭제합니다.) [15]
1295서동원7/22/201420821안녕하세요. 스마트클라이언트에 대해 질문드립니다. [2]파일 다운로드1
1294(non...7/20/201419087(글쓴이의 요청으로 삭제합니다.) [2]
1293VS20...7/20/201421423VS2013 Ultimate에 Windows Phone 프로젝트 템플릿 추가 방법 문의 [1]파일 다운로드2
1292(non...7/20/201417698(글쓴이의 요청으로 삭제합니다.) [2]
1291zino7/16/201419916chromium 배포본 만들기~ [1]
1290(non...7/13/201420649(글쓴이의 요청으로 삭제합니다.) [3]
1288박주만7/8/201429937C# 서비스 기반 데이터베이스(mdf) & InstallShield Limited Edition 설치 및 배포 [2]파일 다운로드1
1287김용환7/8/201427886오라클 db 사용관련 문의입니다. [4]파일 다운로드1
1286C#조으다7/8/201418010WebBrowser 공유기 관리 웹 페이지 인증 [3]
1285C#조으다7/5/201418313IE DocumentComplete 이벤트가 발생되지 않습니다. [2]
1284(non...7/4/201418657(글쓴이의 요청으로 삭제합니다.) [3]
1283김영대7/3/201421502안녕하십니까 정성태님 죄송하지만 SmartClient 에 관한 질문이 있습니다. [9]
... 46  47  48  49  50  51  52  53  54  [55]  56  57  58  59  60  ...