亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? expensedetail.cls

?? 《VB6數據庫開發指南》所有的例程的源碼
?? CLS
字號:
VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
END
Attribute VB_Name = "ExpenseDetail"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Option Explicit

'local variable(s) to hold property value(s)
Private mvarlngExpenseId As Long 'local copy
Private mvarstrEmployeeId As String 'local copy
Private mvarstrExpenseType As String 'local copy
Private mvarcurAmountSpent As Currency 'local copy
Private mvarstrDescription As String 'local copy
Private mvardtmDatePurchased As Date 'local copy
Private mvardtmDateSubmitted As Date 'local copy
Private mvarstrDbName As String 'local copy
' Database variables needed to keep track of current
' database condition
Private mdbExpense As Database
Private mrecExpense As Recordset
Private mblnRecSetOpen As Boolean
Private Sub ClearObject()
' Clears all object variables
    
    mvarlngExpenseId = 0
    mvarstrEmployeeId = ""
    mvarstrExpenseType = ""
    mvarcurAmountSpent = 0
    mvarstrDescription = ""
    mvardtmDatePurchased = CDate("1/1/1980")
    mvardtmDateSubmitted = CDate("1/1/1980")
    
End Sub

Public Function Delete() As String
' Deletes the expense detail record whose value is current from the
' database
    
    On Error GoTo DeleteError
    
    With mrecExpense
        .Delete
        If 0 = .RecordCount Then
            Call ClearObject
        Else
            .MoveNext
            If .EOF Then
                Call ClearObject
            Else
                Call GetRecordset(mrecExpense)
            End If
        End If
    End With
    
    Delete = "OK"
    
    Exit Function

DeleteError:
    ' Return the error description
    Delete = Err.Description
    Err.Clear
    Exit Function
    
End Function

Public Function Insert() As String
' Inserts a brand new record into the database and leaves the newly
' inserted values as the current object values.

    On Error GoTo InsertError
    With mrecExpense
    
        .AddNew
        mvardtmDateSubmitted = Now
        Call SetRecordset(mrecExpense)
        .Update
        'Move to the most recently modified record
        .Bookmark = .LastModified
        Call GetRecordset(mrecExpense)
    End With
    
    Insert = "OK"
    
    Exit Function

InsertError:
    ' Return the error description
    Insert = Err.Description
    Err.Clear
    Exit Function

End Function
Public Function Update() As String
' Updates Expenses table from current object values
Dim strSql As String

    On Error GoTo UpdateError
    With mrecExpense
        .Edit
        Call SetRecordset(mrecExpense)
        .Update
        .Bookmark = .LastModified
        Call GetRecordset(mrecExpense)
    End With
    Update = "OK"
    
    Exit Function

UpdateError:
    ' Return the error description
    Update = Err.Description
    Err.Clear
    Exit Function
End Function

Public Property Let strDbName(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.strDbName = 5

    On Error GoTo OpenError
    
    If mblnRecSetOpen Then
        mrecExpense.Close
        mdbExpense.Close
    End If
    mvarstrDbName = vData
    Set mdbExpense = DBEngine.Workspaces(0).OpenDatabase(mvarstrDbName)
    Set mrecExpense = mdbExpense.OpenRecordset("Expenses")
    mblnRecSetOpen = True
    
    Exit Property

OpenError:
    ' Since we are designing this class for potential unattended operation,
    ' we'll have to raise an error on our own
    Err.Raise Number:=Err.Number
    Err.Clear
    Exit Property
    
End Property

Public Property Get strDbName() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.strDbName
    strDbName = mvarstrDbName
End Property
Public Function MoveNext() As String
' Moves to next Expenses table record and sets current object values

    On Error GoTo MoveError
    
    With mrecExpense
        If True = .BOF _
        And True = .EOF Then
            ' Empty recordset
            MoveNext = "EOF"
        Else
            ' Move to the next record
            .MoveNext
            If mrecExpense.EOF Then
                MoveNext = "EOF"
            Else
                Call GetRecordset(mrecExpense)
                MoveNext = "OK"
            End If
        End If
    End With
    
    Exit Function
    
MoveError:
    ' Return the error description
    MoveNext = Err.Description
    Err.Clear
    Exit Function
End Function

Public Function MovePrev() As String
' Retrieve the record prior to the current one

    On Error GoTo MoveError
    
    With mrecExpense
    
        If True = .BOF _
        And True = .EOF Then
            ' Empty recordset
            MovePrev = "BOF"
        Else
            ' Move to the previous record
            .MovePrevious
            If .BOF Then
                MovePrev = "BOF"
            Else
                Call GetRecordset(mrecExpense)
                MovePrev = "OK"
            End If
        End If
        
    
    End With
    
    Exit Function
    
MoveError:
    ' Return the error description
    MovePrev = Err.Description
    Err.Clear
    Exit Function
End Function

Public Function MoveLast() As String
' Retrieve the last record

    On Error GoTo MoveError
    
    With mrecExpense
        If True = .BOF _
        And True = .EOF Then
            ' Empty recordset
            MoveLast = "EOF"
        Else
            ' Move to the last record
            .MoveLast
            Call GetRecordset(mrecExpense)
            MoveLast = "OK"
        End If
    End With
    
    Exit Function

MoveError:
    ' Return the error description
    MoveLast = Err.Description
    Err.Clear
    Exit Function
End Function

Public Function MoveFirst() As String
' Retrieve the first record

    On Error GoTo MoveError
    With mrecExpense
        If True = .BOF _
        And True = .EOF Then
            ' Empty recordset
            MoveFirst = "BOF"
        Else
            ' Move to the first record
            .MoveFirst
            Call GetRecordset(mrecExpense)
            MoveFirst = "OK"
        End If
    End With
    
    Exit Function

MoveError:
    ' Return the error description
    MoveFirst = Err.Description
    Err.Clear
    Exit Function
End Function

Public Property Get dtmDateSubmitted() As Date
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.dtmDateSubmitted
    dtmDateSubmitted = mvardtmDateSubmitted
End Property

Public Property Let dtmDatePurchased(ByVal vData As Date)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.dtmDatePurchased = 5
    mvardtmDatePurchased = vData
End Property

Public Property Get dtmDatePurchased() As Date
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.dtmDatePurchased
    dtmDatePurchased = mvardtmDatePurchased
End Property

Public Property Let strDescription(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.strDescription = 5
    mvarstrDescription = vData
End Property

Public Property Get strDescription() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.strDescription
    strDescription = mvarstrDescription
End Property

Public Property Let curAmountSpent(ByVal vData As Currency)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.curAmountSpent = 5
    mvarcurAmountSpent = vData
End Property

Public Property Get curAmountSpent() As Currency
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.curAmountSpent
    curAmountSpent = mvarcurAmountSpent
End Property

Public Function strSetExpenseType(ByVal vData As String) As String
' Sets the expense type to an allowed value
    Dim strTemp As String
    strTemp = UCase$(vData)
    
    If strTemp = "TRAVEL" _
    Or strTemp = "MEALS" _
    Or strTemp = "OFFICE" _
    Or strTemp = "AUTO" _
    Or strTemp = "TOLL/PARK" Then
        mvarstrExpenseType = strTemp
        strSetExpenseType = "OK"
    Else
        strSetExpenseType = "Expense type must be TRAVEL, MEALS, " _
                            & "OFFICE, AUTO, or TOLL/PARK"
    End If
    
End Function
Public Property Get strExpenseType() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.strExpenseType
    strExpenseType = mvarstrExpenseType
End Property

Public Property Let strEmployeeId(ByVal vData As String)
'used when assigning a value to the property, on the left side of an assignment.
'Syntax: X.strEmployeeId = 5
    mvarstrEmployeeId = vData
End Property

Public Property Get strEmployeeId() As String
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.strEmployeeId
    strEmployeeId = mvarstrEmployeeId
End Property

Public Property Get lngExpenseId() As Long
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.lngExpenseId
    lngExpenseId = mvarlngExpenseId
End Property

Private Sub Class_Initialize()
    
    ' Indicate the the database is not yet open
    mblnRecSetOpen = False
    ' Clear all object variables
    Call ClearObject
    
End Sub

Private Sub Class_Terminate()

    ' We don't really care about errors when cleaning up.
    On Error Resume Next
    ' Close the recordset
    mrecExpense.Close
    ' Close the expense database
    mdbExpense.Close
    ' Reset the error handler
    On Error GoTo 0
    Exit Sub
    
End Sub
Private Sub SetRecordset(recExp As Recordset)
' Copies current values to Recordset

    With recExp
        !EmployeeId = mvarstrEmployeeId
        !ExpenseType = mvarstrExpenseType
        !AmountSpent = mvarcurAmountSpent
        !Description = mvarstrDescription
        !DatePurchased = mvardtmDatePurchased
        !DateSubmitted = mvardtmDateSubmitted
    End With
    
End Sub
Private Sub GetRecordset(recExp As Recordset)
' Copies current values to Recordset

    With recExp
        mvarlngExpenseId = 0 + !ExpenseID
        mvarstrEmployeeId = "" & !EmployeeId
        mvarstrExpenseType = "" & !ExpenseType
        mvarcurAmountSpent = 0 + !AmountSpent
        mvarstrDescription = "" & !Description
        mvardtmDatePurchased = !DatePurchased
        mvardtmDateSubmitted = !DateSubmitted
    End With
    
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91成人免费在线| 午夜视频久久久久久| 成人av动漫网站| 午夜精品福利久久久| 久久亚洲综合色一区二区三区| 国产精品区一区二区三区| 日韩一区二区在线免费观看| 欧美人伦禁忌dvd放荡欲情| 欧美视频三区在线播放| 欧美日韩一区在线| 欧美日韩亚洲高清一区二区| 欧美午夜精品理论片a级按摩| 欧美视频一二三区| 在线播放欧美女士性生活| 欧美日本视频在线| 日韩一区二区麻豆国产| 精品免费国产一区二区三区四区| 精品三级av在线| 久久伊人蜜桃av一区二区| 国产色一区二区| 国产精品免费久久久久| 中文字幕中文乱码欧美一区二区| 中文字幕欧美一| 亚洲电影欧美电影有声小说| 日韩福利电影在线观看| 免费在线视频一区| 国产精品99久久久久久似苏梦涵 | 不卡大黄网站免费看| 99久久精品国产麻豆演员表| 色婷婷激情综合| 欧美三级蜜桃2在线观看| 欧美一级黄色片| 国产欧美综合在线| 亚洲少妇最新在线视频| 丝袜亚洲另类欧美| 精品一区二区成人精品| 成人丝袜高跟foot| 中文字幕在线不卡一区二区三区 | 卡一卡二国产精品| 国产精品资源站在线| 99国产一区二区三精品乱码| 欧美日韩国产免费一区二区| 久久久午夜精品理论片中文字幕| 国产精品久久夜| 日本伊人色综合网| 成人精品免费网站| 欧美日韩国产色站一区二区三区| 欧美精品一区二区久久婷婷| 最新高清无码专区| 日韩激情中文字幕| 不卡的电影网站| 欧美卡1卡2卡| 国产精品情趣视频| 日本欧美一区二区| 一本一道综合狠狠老| 欧美一区二区观看视频| 中文字幕的久久| 日本少妇一区二区| av不卡在线播放| 精品日韩在线一区| 亚洲午夜成aⅴ人片| 国产精品一卡二| 欧美日韩国产天堂| 中文字幕一区二区三区色视频| 奇米在线7777在线精品| 色综合色综合色综合| 久久品道一品道久久精品| 亚洲精品菠萝久久久久久久| 国产一区二区视频在线| 欧美三级韩国三级日本三斤 | 国产在线视频一区二区三区| 在线观看视频一区| 国产片一区二区| 免费av网站大全久久| 在线视频欧美精品| 国产女人18水真多18精品一级做| 日本亚洲电影天堂| 中文字幕亚洲欧美在线不卡| 美女高潮久久久| 欧美视频在线观看一区二区| 国产精品美女一区二区三区 | 国产成人欧美日韩在线电影| 欧美精选午夜久久久乱码6080| 国产精品久久久久久久久久久免费看| 美腿丝袜亚洲综合| 欧美人狂配大交3d怪物一区| 亚洲精品免费在线| av亚洲精华国产精华精| 亚洲国产激情av| 国产乱码精品一品二品| 精品日韩一区二区三区| 日韩精品欧美成人高清一区二区| 在线免费一区三区| 亚洲精品高清在线| 91亚洲男人天堂| 18欧美乱大交hd1984| 成人免费观看男女羞羞视频| 久久久91精品国产一区二区三区| 老司机精品视频线观看86| 欧美精品色综合| 亚洲高清视频在线| 欧美日韩国产成人在线91| 亚洲国产精品久久不卡毛片| 欧美综合天天夜夜久久| 亚洲国产一区在线观看| 欧美三级中文字幕| 午夜精品久久久久久久久久| 欧美日韩国产123区| 视频一区二区三区在线| 制服丝袜一区二区三区| 免费久久99精品国产| 欧美久久婷婷综合色| 免费视频一区二区| 精品国产成人在线影院| 国产乱子伦视频一区二区三区| 精品国产a毛片| 丁香婷婷综合五月| 国产精品久久久久久久久免费樱桃| 大白屁股一区二区视频| 一色屋精品亚洲香蕉网站| 91在线国产观看| 亚洲一二三专区| 欧美一区二区黄色| 国产精品一区二区不卡| 国产精品三级av在线播放| 93久久精品日日躁夜夜躁欧美| 亚洲欧美色一区| 欧美伊人精品成人久久综合97 | 99国产精品国产精品毛片| 亚洲精品成人悠悠色影视| 欧美挠脚心视频网站| 麻豆成人综合网| 国产精品乱码妇女bbbb| 91国产精品成人| 男女性色大片免费观看一区二区| 精品成人免费观看| 91在线观看美女| 秋霞午夜鲁丝一区二区老狼| 久久新电视剧免费观看| 91欧美一区二区| 欧美96一区二区免费视频| 国产日韩精品一区二区浪潮av| 91视视频在线观看入口直接观看www | 国产精品入口麻豆原神| 欧美亚洲图片小说| 激情综合亚洲精品| 亚洲少妇30p| 欧美大片在线观看一区二区| jizzjizzjizz欧美| 天天av天天翘天天综合网色鬼国产 | 欧美另类videos死尸| 国产精品99久久久久久久vr | 蜜桃精品视频在线| 国产精品伦一区| 日韩一卡二卡三卡四卡| 97se狠狠狠综合亚洲狠狠| 日本一道高清亚洲日美韩| 国产精品乱子久久久久| 欧美一区二区三区公司| av网站一区二区三区| 久久99精品久久久久久国产越南 | 欧美精品一区二区三区很污很色的| a级精品国产片在线观看| 蜜臀av性久久久久蜜臀aⅴ | 国产尤物一区二区在线| 亚洲综合自拍偷拍| 国产清纯美女被跳蛋高潮一区二区久久w| 在线欧美小视频| 丁香婷婷综合网| 乱一区二区av| 亚洲一区在线播放| 国产精品久久毛片a| 欧美va亚洲va| 欧美日韩精品高清| 91视频免费观看| 东方aⅴ免费观看久久av| 男人操女人的视频在线观看欧美 | 精品一区二区三区免费毛片爱| 亚洲精品视频在线看| 日本一区二区三区四区| 日韩欧美国产麻豆| 欧美日韩国产三级| 91国产精品成人| 99久久免费视频.com| 国产一区二区女| 精品在线观看免费| 日韩激情视频在线观看| 一区二区在线观看免费视频播放| 中文字幕国产一区二区| 26uuu国产一区二区三区| 7777精品久久久大香线蕉| 欧洲一区二区三区免费视频| 成人av网站在线观看| 国产99久久久国产精品潘金 | 视频一区二区不卡| 亚洲愉拍自拍另类高清精品| 国产精品的网站| 国产精品乱码人人做人人爱| 久久精品一区二区三区四区| 欧美tk—视频vk|