图书馆管理系统,我有!!
哈哈。。。往我Q币里充20Q币就给你。。。另附设计报告~!!!
Private Sub MDIForm_Load()
Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
End Sub
Private Sub MDIForm_Unload(Cancel As Integer)
If Me.WindowState <> vbMinimized Then
SaveSetting App.Title, "Settings", "MainLeft", Me.Left
SaveSetting App.Title, "Settings", "MainTop", Me.Top
SaveSetting App.Title, "Settings", "MainWidth", Me.Width
SaveSetting App.Title, "Settings", "MainHeight", Me.Height
End If
End Sub
Private Sub menuAddbook_Click()
gintBmode = 1
frmBook1.Show
frmBook1.ZOrder 0
End Sub
Private Sub menuAddbooktype_Click()
gintBTmode = 1
frmBooktype1.Show
frmBooktype1.ZOrder 0
End Sub
Private Sub menuAddborrow_Click()
gintBOmode = 1
frmBorrow1.Show
frmBorrow1.ZOrder 0
End Sub
Private Sub menuAddreader_Click()
gintRmode = 1
frmReader1.Show
frmReader1.ZOrder 0
End Sub
Private Sub menuAddreadertype_Click()
gintRTmode = 1
frmReadertype1.Show
frmReadertype1.ZOrder 0
End Sub
Private Sub menuAddreturn_Click()
gintBBmode = 1
frmReturn1.Show
End Sub
Private Sub menuDeletebook_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset
Dim MsgText As String
If flagBedit Then
If frmBook.msgList.Rows > 1 Then
If MsgBox("真的要删除这条文件记录么?", vbOKCancel + vbExclamation, "警告") = vbOK Then
intCount = frmBook.msgList.Row
txtSQL = "delete from books where bookid='" & Trim(frmBook.msgList.TextMatrix(intCount, 1)) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
Unload frmBook
frmBook.txtSQL = "select * from books"
frmBook.Show
End If
End If
End If
End Sub
Private Sub menuDeletebooktype_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset
Dim MsgText As String
If flagBTedit Then
If frmBooktype.msgList.Rows > 1 Then
If MsgBox("真的要删除这条文件记录么?", vbOKCancel + vbExclamation, "警告") = vbOK Then
intCount = frmBooktype.msgList.Row
txtSQL = "delete from booktype where booktypeno='" & Trim(frmBooktype.msgList.TextMatrix(intCount, 1)) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
Unload frmBooktype
frmBooktype.txtSQL = "select * from booktype"
frmBooktype.Show
End If
End If
End If
End Sub
Private Sub menuDeleteborrow_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset
哈哈。。。往我Q币里充20Q币就给你。。。另附设计报告~!!!
Private Sub MDIForm_Load()
Me.Left = GetSetting(App.Title, "Settings", "MainLeft", 1000)
Me.Top = GetSetting(App.Title, "Settings", "MainTop", 1000)
Me.Width = GetSetting(App.Title, "Settings", "MainWidth", 6500)
Me.Height = GetSetting(App.Title, "Settings", "MainHeight", 6500)
End Sub
Private Sub MDIForm_Unload(Cancel As Integer)
If Me.WindowState <> vbMinimized Then
SaveSetting App.Title, "Settings", "MainLeft", Me.Left
SaveSetting App.Title, "Settings", "MainTop", Me.Top
SaveSetting App.Title, "Settings", "MainWidth", Me.Width
SaveSetting App.Title, "Settings", "MainHeight", Me.Height
End If
End Sub
Private Sub menuAddbook_Click()
gintBmode = 1
frmBook1.Show
frmBook1.ZOrder 0
End Sub
Private Sub menuAddbooktype_Click()
gintBTmode = 1
frmBooktype1.Show
frmBooktype1.ZOrder 0
End Sub
Private Sub menuAddborrow_Click()
gintBOmode = 1
frmBorrow1.Show
frmBorrow1.ZOrder 0
End Sub
Private Sub menuAddreader_Click()
gintRmode = 1
frmReader1.Show
frmReader1.ZOrder 0
End Sub
Private Sub menuAddreadertype_Click()
gintRTmode = 1
frmReadertype1.Show
frmReadertype1.ZOrder 0
End Sub
Private Sub menuAddreturn_Click()
gintBBmode = 1
frmReturn1.Show
End Sub
Private Sub menuDeletebook_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset
Dim MsgText As String
If flagBedit Then
If frmBook.msgList.Rows > 1 Then
If MsgBox("真的要删除这条文件记录么?", vbOKCancel + vbExclamation, "警告") = vbOK Then
intCount = frmBook.msgList.Row
txtSQL = "delete from books where bookid='" & Trim(frmBook.msgList.TextMatrix(intCount, 1)) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
Unload frmBook
frmBook.txtSQL = "select * from books"
frmBook.Show
End If
End If
End If
End Sub
Private Sub menuDeletebooktype_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset
Dim MsgText As String
If flagBTedit Then
If frmBooktype.msgList.Rows > 1 Then
If MsgBox("真的要删除这条文件记录么?", vbOKCancel + vbExclamation, "警告") = vbOK Then
intCount = frmBooktype.msgList.Row
txtSQL = "delete from booktype where booktypeno='" & Trim(frmBooktype.msgList.TextMatrix(intCount, 1)) & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
Unload frmBooktype
frmBooktype.txtSQL = "select * from booktype"
frmBooktype.Show
End If
End If
End If
End Sub
Private Sub menuDeleteborrow_Click()
Dim txtSQL As String
Dim intCount As Integer
Dim mrc As ADODB.Recordset