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

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

?? frmborrowing.frm

?? School Library system to manage students borrowing and returning books
?? FRM
?? 第 1 頁 / 共 2 頁
字號:
         Top             =   3600
         Width           =   3855
      End
      Begin VB.Label Label1 
         BackColor       =   &H80000000&
         Caption         =   "Book  ID"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   22
         Top             =   960
         Width           =   855
      End
      Begin VB.Label Label1 
         BackColor       =   &H80000000&
         Caption         =   "Date Borrowed"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   21
         Top             =   1680
         Width           =   1215
      End
      Begin VB.Label Label1 
         BackColor       =   &H80000000&
         Caption         =   "Date to Return"
         Height          =   255
         Index           =   3
         Left            =   120
         TabIndex        =   20
         Top             =   2040
         Width           =   1215
      End
      Begin VB.Label Label2 
         BackColor       =   &H80000000&
         Caption         =   "Book Name"
         Height          =   255
         Left            =   120
         TabIndex        =   19
         Top             =   600
         Width           =   855
      End
      Begin VB.Label Label3 
         BackColor       =   &H80000000&
         Caption         =   "ISBN"
         Height          =   255
         Left            =   120
         TabIndex        =   18
         Top             =   1320
         Width           =   855
      End
      Begin VB.Label lblamount 
         BackColor       =   &H80000000&
         Caption         =   "Amount Charged"
         Height          =   255
         Left            =   1320
         TabIndex        =   17
         Top             =   2400
         Width           =   1215
      End
      Begin VB.Label lblfine 
         BackColor       =   &H80000000&
         Caption         =   "Fine"
         Height          =   255
         Left            =   2880
         TabIndex        =   16
         Top             =   2400
         Width           =   615
      End
   End
End
Attribute VB_Name = "frmborrowing"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim bookname As String, X As Integer, criteria

Private Sub cbobookname_click()
Dim a, b, find
'searches trough the records using the criteria as the bookname
find = cbobookname.Text
If Trim(find) <> "" Then
find = "bookname='" + find + "'"
datbookinfo.Recordset.FindFirst find
Else ' if no input display this information
a = MsgBox("you must give a name", vbInformation, "Book id")
End If
'if no match display this message
If datbookinfo.Recordset.NoMatch Then
b = MsgBox("no such name", vbInformation, "Book ID not found")
End If
End Sub


Private Sub cbofname_Click()
lstBooksWith.Clear
Dim a, b, find
'searches trough the records using the criteria as the bookname
'and also display the selected book details
find = cbofname.Text
If Trim(find) <> "" Then
find = "studentFName='" + find + "'"
datuserinfo.Recordset.FindFirst find
Else ' if no input display this information
'a = MsgBox("you must give a name", vbInformation, "Book id")
End If
'if no match display this message
If datuserinfo.Recordset.NoMatch Then
b = MsgBox("No such name", vbInformation, "User first name not found")
End If
'lstBooksWith.Clear
listbooksinposession
End Sub


Private Sub cmdcancel_Click()
cancelborrow
End Sub

Private Sub cmdexit_Click()
'call the exit sure procedure so that the user is given another chance
exitsure
End Sub

Private Sub cmdsave_Click()
'for saving the borrowing details to the database
Save
End Sub

Private Sub Form_Activate()
'used to populate the combobox with books that can be borrowed
populate
End Sub

Private Sub Form_Load()
'this form is used for borrowing books from the library
'and only books that are available can be borrowed

End Sub


Private Sub mnubookdetails_Click()
Load frmBookinfo
frmBookinfo.Show
End Sub

Private Sub mnuborrow_Click()
Load frmborrowing
frmborrowing.Show
End Sub

Private Sub mnuborrowed_Click()
Load frmbookborrowing_return
frmbookborrowing_return.Show
End Sub

Private Sub mnucancel_Click()
cancelborrow
End Sub

Private Sub mnuexit_Click()
'to check wether user is sure of the exit
exitsure
End Sub

Private Sub mnuhorizontal_Click()
'tiles open forms horizontally
mdilibrary.Arrange vbTileHorizontal
End Sub

Private Sub mnureport_Click()

Load frmReport
frmReport.Show
End Sub

Private Sub mnuReturn_Click()
Load frmreturning
frmreturning.Show
End Sub

Private Sub mnusave_Click()
'same as command save
Save
End Sub

Private Sub mnuuserdetails_Click()
Load frmuserparticulars
frmuserparticulars.Show
End Sub
Private Sub Save()
'.procedure for saving the details on the database
'and before saving check if everything is in order in other word validate
If cbobookname = "" Or cbofname = "" Then
X = MsgBox("Must Spelect abook Name and auser Name", vbInformation, "Borrowing")

ElseIf txtdateb = "" Then
X = MsgBox("Date Borrowed Must Be Provided", vbInformation, "Borrowing")

ElseIf txtdatetor = "" Then
X = MsgBox("Expected date of Return Must Be Specified", vbInformation, "Borrowing")


ElseIf txtamount = "" Then
X = MsgBox("Amount Charged Must be provided", vbInformation, "Borrowing")

ElseIf txtfine = "" Then
X = MsgBox("Fine Must be stated else assign Zero", vbInformation, "Borrowing")
'if everything is okey then call the saving procedure
Else
CallSave
End If

End Sub
Private Sub mnuvertical_Click()
'tiles open forms vertically
mdilibrary.Arrange vbTileVertical
End Sub
Private Sub CallSave()
'for actually implementing the save operation on the database
'before check wether the amount and the fines are numeric values
If IsNumeric(txtamount) And IsNumeric(txtfine) Then
'do the required in saving the information to the circulation table
'and marking the book as borrowed in the book details table
               datborrowed.Recordset.addnew
          datborrowed.Recordset.Fields("studentID") = txtbid.Text
     datborrowed.Recordset.Fields("bookID") = txtbookid.Text
datborrowed.Recordset.Fields("dateborrowed") = txtdateb.Text
     datborrowed.Recordset.Fields("datetoreturn") = txtdatetor.Text
          datborrowed.Recordset.Fields("chargelevied") = txtamount.Text
               datborrowed.Recordset.Fields("fine") = txtfine.Text
datborrowed.Recordset.Fields("borrowed") = True
               datborrowed.Recordset.Update
'explains itself
LookForTheCurrentRecord
'update the bookinfo status eg the book is borrowed and cannot be borrowed
'unless returned to the library by the borrower
datbookinfo.Recordset.Edit
datbookinfo.Recordset.Fields("borrowed") = 1
datbookinfo.Recordset.Update
askuser = MsgBox("Successifull, Want to Borrow Another?", vbYesNoCancel + vbCritical, "Borrowing Book")

     If askuser = vbYes Then
     cbobookname.Clear
     cbofname.Clear
     lstBooksWith.Clear
     cleartxt
     'populate
     'Load frmsuccessiful1
     'frmsuccessiful1.Show
     frmreturning.datborrowedtable.Recordset.Requery
     frmsuccessiful.TIMEME.Enabled = True
     Unload frmborrowing
     ElseIf askuser = vbNo Then
     Unload Me
     'mdilibrary.Show
     End If

Else
MsgBox "Either Amount or Fine is not Currency"
End If
     
End Sub
Private Sub LookForTheCurrentRecord()
'getting the current record
criteria = cbobookname.Text
'find = cbobookname.Text
If Trim(search) <> "" Then
find = "bookname='" + find + "'"
datbookinfo.Recordset.FindFirst find
End If
End Sub
Private Sub populate()
'populate cbobookname with books that can be borrowed
Dim countbook As Long, c
countbook = 0
datbookinfo.Recordset.MoveFirst
Do While Not datbookinfo.Recordset.EOF
bookname = datbookinfo.Recordset.Fields("bookname")
If datbookinfo.Recordset.Fields("borrowed") = 0 Then
cbobookname.AddItem bookname
countbook = countbook + 1
End If
datbookinfo.Recordset.movenext
Loop
If countbook = 0 Then
c = MsgBox("Books are Out of Stock", vbOKCancel + vbCritical, "Book Borrowing")
Unload Me
ElseIf countbook > 0 Then
datuserinfo.Recordset.MoveFirst
Do While Not datuserinfo.Recordset.EOF
userfname = datuserinfo.Recordset.Fields("studentFName")
If datuserinfo.Recordset.Fields("Active") = True Then
cbofname.AddItem userfname
End If
datuserinfo.Recordset.movenext
Loop
End If
End Sub
Private Sub cancelborrow()
'for now leave it like that
End Sub
Private Sub exitsure()
'asks the user whether he ctually wants to close the form
Dim exits As Integer
exits = MsgBox("Do you really want to Exit", vbYesNoCancel + vbInformation, "Exit")
If exits = vbYes Then
'for yes close form
Unload frmborrowing
ElseIf exits = vbNo Then

Else
'do nothing
End If
End Sub
Private Sub listbooksinposession()
'sub for getting the other books that the borrower has
On Error GoTo Errormoha
datborrowed2.Recordset.MoveFirst
Do While Not datborrowed2.Recordset.EOF
If datborrowed2.Recordset.Fields("studentID") = datuserinfo.Recordset.Fields("studentID") Then
Dim mnu As String
mnu = datborrowed2.Recordset.Fields("bookname")
     
     lstBooksWith.AddItem mnu
     
Else
End If
datborrowed2.Recordset.movenext
Loop
Errormoha:
End Sub

Private Sub txtdateb_gotfocus()
txtdateb.Text = Date
End Sub

Private Sub txtdatetor_GotFocus()
txtdatetor = Date + 5
End Sub
Private Sub cleartxt()
'for clearing of the textboxes
txtbookid.Text = ""
txtisbn.Text = ""
txtamount.Text = 0
txtfine.Text = 0
txtsn.Text = ""
txttn.Text = ""
txtbid.Text = ""
txtbaddress.Text = ""
txtcity.Text = ""
txtcountry.Text = ""
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产麻豆精品在线观看| 欧美一区二区大片| 欧美日韩精品免费| 欧美激情在线免费观看| 老司机精品视频在线| 一本一道久久a久久精品| 91精品国产综合久久久蜜臀粉嫩| 中文字幕免费在线观看视频一区| 美洲天堂一区二卡三卡四卡视频| 色综合天天综合网天天狠天天| 26uuu精品一区二区| 午夜视频在线观看一区二区| 91网上在线视频| 国产精品私人影院| 国产在线看一区| 欧美成人一区二区| 亚洲成人免费视频| 欧美一区三区二区| 亚洲欧洲综合另类在线| 国产91高潮流白浆在线麻豆| 欧美欧美欧美欧美首页| 一区二区三区不卡在线观看| www.视频一区| 中文字幕中文字幕一区二区| 国产精品一区二区在线看| 日韩精品一区二区三区视频| 日韩中文字幕一区二区三区| 欧美日韩一区二区不卡| 亚洲一卡二卡三卡四卡 | 色综合久久久久久久| 欧美精品一区二区精品网| 免费在线看一区| 日韩视频在线你懂得| 六月丁香综合在线视频| 欧美sm极限捆绑bd| 国产原创一区二区三区| 欧美极品少妇xxxxⅹ高跟鞋| 成人一级视频在线观看| 国产精品麻豆网站| 91网站最新地址| 亚洲午夜激情网页| 日韩一区二区三区视频在线观看 | 亚洲特黄一级片| 91免费看`日韩一区二区| 亚洲欧美成aⅴ人在线观看| 91福利小视频| 轻轻草成人在线| 久久日一线二线三线suv| 国产一区二区美女| 最新不卡av在线| 欧美日韩成人一区| 韩国欧美国产一区| 国产精品成人一区二区艾草 | 国产三级三级三级精品8ⅰ区| 国产精品一区一区| 亚洲欧美日韩国产另类专区| 欧美在线播放高清精品| 免费看欧美美女黄的网站| 欧美精品一区二区三区蜜桃| 国产成人在线视频网址| 亚洲黄色小视频| 精品国精品自拍自在线| 91视频一区二区三区| 日韩中文字幕av电影| 久久综合久色欧美综合狠狠| 91在线播放网址| 午夜影院久久久| 国产欧美日韩麻豆91| 在线视频亚洲一区| 国产一区二区91| 亚洲伊人伊色伊影伊综合网| 精品国产乱码久久久久久免费| 波多野洁衣一区| 天涯成人国产亚洲精品一区av| 久久久三级国产网站| 欧美三级日韩三级| 国产福利精品一区二区| 日韩精品一卡二卡三卡四卡无卡 | 欧美tk丨vk视频| 91久久精品一区二区三区| 99re这里只有精品首页| 欧美a级一区二区| 亚洲天天做日日做天天谢日日欢| 欧美一区二区三区精品| 色狠狠av一区二区三区| 国产成人久久精品77777最新版本| 亚洲va欧美va人人爽午夜| 国产精品国产三级国产普通话99 | 洋洋成人永久网站入口| 国产三区在线成人av| 日韩三级免费观看| 欧美日韩一区 二区 三区 久久精品| 国产一区二区视频在线| 蜜臀99久久精品久久久久久软件| 亚洲精品视频免费看| 国产精品久久久久9999吃药| 亚洲精品在线观看网站| 在线电影院国产精品| 91美女片黄在线观看| 粉嫩一区二区三区在线看| 精品一区二区三区欧美| 日本成人在线网站| 无码av中文一区二区三区桃花岛| 一区二区久久久久| 一区二区三区蜜桃| 亚洲图片一区二区| 亚洲影视在线播放| 午夜伊人狠狠久久| 天天爽夜夜爽夜夜爽精品视频| 一级日本不卡的影视| 一区二区三区欧美| 亚洲国产一二三| 亚洲超碰97人人做人人爱| 亚洲一区二区三区四区在线| 一区二区三区不卡视频在线观看| 日韩毛片视频在线看| 亚洲精品五月天| 亚洲国产欧美一区二区三区丁香婷 | 中文字幕一区在线观看视频| 国产精品每日更新在线播放网址| 久久精品视频免费观看| 国产精品色噜噜| 日韩毛片一二三区| 亚洲成av人片观看| 丝袜美腿亚洲一区二区图片| 日韩福利视频网| 久久激五月天综合精品| 国产一区欧美一区| 99视频国产精品| 欧美伊人精品成人久久综合97| 欧美日韩mp4| 久久综合色之久久综合| 亚洲欧洲在线观看av| 亚洲一区二区三区精品在线| 美女视频一区在线观看| 国产成人精品三级| 色www精品视频在线观看| 欧美精品久久一区二区三区| 欧美精品一区二| 亚洲色图在线播放| 日韩高清不卡在线| 国产精品一区二区果冻传媒| 99国产精品一区| 337p亚洲精品色噜噜噜| 欧美高清在线精品一区| 亚洲午夜电影在线| 国产精品一二二区| 欧美午夜精品久久久久久孕妇| 日韩亚洲欧美一区| 中文字幕中文在线不卡住| 日韩av一区二区三区四区| 国产成人综合视频| 欧美在线三级电影| 久久九九影视网| 午夜伊人狠狠久久| 成人app在线| 日韩欧美久久一区| 亚洲精品国产一区二区精华液| 久久精品久久综合| 91浏览器在线视频| 久久九九国产精品| 日韩中文字幕1| 91啪九色porn原创视频在线观看| 日韩一级大片在线| 亚洲综合清纯丝袜自拍| 丁香婷婷综合五月| 日韩一区二区免费电影| 一区二区三区精品| 成人av免费网站| 久久精品在线观看| 青青青爽久久午夜综合久久午夜 | 大尺度一区二区| 欧美一区二区三区啪啪| 一区二区三区鲁丝不卡| 国产91丝袜在线18| 2023国产一二三区日本精品2022| 亚洲成人av电影| 日本久久电影网| 亚洲欧洲色图综合| 粉嫩av亚洲一区二区图片| 久久婷婷一区二区三区| 麻豆精品一区二区综合av| 欧美日韩精品综合在线| 亚洲一区视频在线| 色综合久久久久综合体桃花网| 久久精品亚洲国产奇米99| 久久99精品久久只有精品| 正在播放亚洲一区| 午夜一区二区三区视频| 在线这里只有精品| 亚洲精品一二三| 色综合久久天天| 夜夜嗨av一区二区三区四季av| 色哟哟一区二区在线观看| 日韩毛片视频在线看| 色婷婷综合激情| 亚洲国产美女搞黄色| 欧美精品九九99久久| 日韩专区中文字幕一区二区| 日韩小视频在线观看专区|