freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

《數(shù)據(jù)庫原理》課程設(shè)計-圖書管理系統(tǒng)-文庫吧

2024-12-31 19:31 本頁面


【正文】 KMANAGEMENT。 (可同時在創(chuàng)建時定義相關(guān)的約束) TSQL 語句: 12 User表: create table User ( UserID char(10) primary key, UesrPassword char(10), UserSort varchar(10) )。 Reader表: create table Reader ( Reader UserID char(6) primary key, ReaderName varchar(20), ReaderPassword varchar(10), ReaderPhoneNo varchar(15), ReaderEmail varchar(50), ReaderBorrowedbooks int )。 BorrowBook 表: create table ManagerUser ( ReaderID char(6), BookID nvarchar(50), BorrowDate datatime, ReturnDate datatime, FactReturnDate datatime, primary key(ReaderID,BookID), foreign key(ReaderID) references from Reader(ReaderID), foreign key(BookID ID) references from BookID (BookID ID) )。 Book表: create table Book ( BookID nvarchar(50) primary key, BookName nvarchar(50), BookWriter nvarchar(20), BookPublish nvarchar(50), BookPublishDate datetime, BookPrice float, BookSort nvarchar(50), BookAmount int, BookRemain int )。 Borrow視圖 : CREATE VIEW AS SELECT , , , , , 13 , , FROM INNER JOIN ON = INNER JOIN ON = 1) ReaderBorrowedNumber 存儲過程 CREATE PROCEDURE ( @ReaderID char(10), @BorrowedNumber int OUTPUT ) AS select @BorrowedNumber=count(*) from BorrowBook where ReaderID=@ReaderID RETURN GO 2) BookNumber 存儲過程 CREATE PROCEDURE ( @BookID char(10), @BookNumber int OUTPUT ) AS select @BookNumber=BookRemain from Book where BookID=@BookID RETURN GO 3) BorrowReader 存儲過程 CREATE PROCEDURE ( @ReaderID char(6) ) AS update Reader set ReaderBorrowedBooks=ReaderBorrowedbooks+1 where ReaderID=@ReaderID。 RETURN GO 4) BorrowBook 存儲過程 CREATE PROCEDURE ( @BookID char(10) ) AS update Book set BookRemain=BookRemain1 where BookID=@BookID。 RETURN GO 5) ReturnReader 存儲過程 CREATE PROCEDURE 14 ( @ReaderID char(6) ) AS update Reader set ReaderBorrowedBooks=ReaderBorrowedbooks1 where ReaderID=@ReaderID。 RETURN GO 6) ReturnBook 存儲過程 CREATE PROCEDURE ( @BookID char(10) ) AS update Book set BookRemain=BookRemain+1 where BookID=@BookID。 RETURN GO 六、界面與數(shù)據(jù)庫的連接 代碼區(qū)中加入如下代碼: = new ()。 = server=.。database=BookManagement。Integrated Security=true。 = false。 七、界面的實現(xiàn)(模塊中的功能實現(xiàn)) 【開發(fā)工具: Visual Studio 2022】 (代碼及可執(zhí)行文件見附錄) 運(yùn)行程序后,進(jìn)入登陸界面,輸入用戶名及密碼,截圖如下: 代碼: { 15 // Login 的摘要說明。 public class LoginForm : { private btnCancel。 private textUserID。 private textUserPassword。 private btnOk。 private sqlConnection1。 private lblUser。 private lblPassword。 /// 必需的設(shè)計器變量。 private ponents = null。 public LoginForm() { // Windows 窗體設(shè)計器支持所必需的 InitializeComponent()。 // TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼 } // 清理所有正在使用的資源。 protected override void Dispose( bool disposing ) { if( disposing ) { if(ponents != null) { ()。 } } ( disposing )。 } region Windows 窗體設(shè)計器生成的代碼 /// summary /// 設(shè)計器支持所需的方法 不要使用代碼編輯器修改 /// 此方法的內(nèi)容。 /// /summary private void InitializeComponent() { resources = new (typeof(LoginForm))。 = new ()。 = new ()。 = new ()。 = new ()。 = new ()。 = new ()。 = new ()。 ()。 // // lblUser // = 。 = new (宋體 , 12F, , , ((byte)(134)))。 = new (40, 56)。 = lblUser。 16 = new (72, 23)。 = 1。 = 用戶名: 。 // // lblPassword // = 。 = new (宋體 , 12F, , , ((byte)(134)))。 = new (40, 104)。 = lblPassword。 = new (72, 23)。 = 2。 = 密 碼: 。 // // btnCancel // = 。 = new (144, 152)。 = btnCancel。 = new (64, 24)。 = 3。 = 重置 。 = false。 += new ()。 // // textUserID // = new (112, 56)。 = textUserID。 = new (96, 21)。 = 0。 // // textUserPassword // = new (112, 104)。 = textUserPassword。 = 39。*39。 = new (96, 21)。 = 1。 // // btnOk // = 。 = new (40, 152)。 = btnOk。 = new (64, 24)。 = 6。 = 登錄 。 = false。 += new ()。 // // sqlConnection1 // = server=.。database=BookManagement。Integrated Security=true。 = false。 // // LoginForm 17 // = new (6, 14)。 = 。 = (()(($)))。 = new (250, 194)。 ()。 ()。 ()。 ()。 ()。 ()。 = (()(($)))。 = false。 = false。 = LoginForm。 = 。 = 圖書出租管理系統(tǒng) 。 += new ()。 (false)。 ()。 } endregion static void Main() { (new LoginForm())。 } //撤銷之前的輸入 private void btnCancel_Click(object sender, e) { =。 =。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1