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

正文內(nèi)容

圖書(shū)管理系統(tǒng)畢業(yè)設(shè)計(jì)論文終稿(編輯修改稿)

2025-07-22 15:25 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 rchar13operatorIDInt11readerISBNInt11borrowDatedatetime/backDatedatetime/表5所示為圖書(shū)信息表(bookInfo),記錄了圖書(shū)書(shū)名,書(shū)號(hào),圖書(shū)類(lèi)型,總量。其作用就是保存錄入到庫(kù)的圖書(shū)資料,以便借閱和查詢(xún)。表5 bookInfo數(shù)據(jù)表列名數(shù)據(jù)類(lèi)型長(zhǎng)度ISBN(PK)Int11typeIdIntr11booknameVarchar40writerVarchar20translatorVarchar20PublisherVarchar50datesmalldatetime/pricemoney/表6所示為用戶(hù)信息表(reader),記錄了讀者最基本的信息,姓名,年齡,身份證,電話(huà),押金,等一系列信息表6 reader數(shù)據(jù)表列名數(shù)據(jù)類(lèi)型長(zhǎng)度ISBN(PK)Int11nameVarchar10sexVarchar2ageint3identifyCardVarchar30telVarchar18keepmoneymoney/zjint10zyVarchar8bztimedatetime/第4章 圖書(shū)館管理系統(tǒng)詳細(xì)設(shè)計(jì)及處理技術(shù)第一節(jié) 后臺(tái)登陸功能模塊。數(shù)據(jù)庫(kù)代碼部分:鏈接到數(shù)據(jù)庫(kù),從而可以讀取調(diào)用到數(shù)據(jù),對(duì)書(shū)籍進(jìn)行操作 public class Dao { protected static String dbClassName = 。 protected static String dbUrl = jdbc:sqlserver://localhost:1433。 + DatabaseName=db_library。 protected static String dbUser = sa。 protected static String dbPwd = 123456。 protected static String second = null。 private static Connection conn = null。 //創(chuàng)建數(shù)據(jù)庫(kù)連接 public Dao() { try { if (conn == null) { (dbClassName).newInstance()。 conn = (dbUrl, dbUser, dbPwd)。 } else return。 } catch (Exception ee) { ()。 } } private static ResultSet executeQuery(String sql) { try { if(conn==null) new Dao()。 return (,).executeQuery(sql)。 } catch (SQLException e) { ()。 return null。 } finally { } } private static int executeUpdate(String sql) { try { if(conn==null) new Dao()。 return ().executeUpdate(sql)。 } catch (SQLException e) { (())。 return 1。 } finally { } } public static void close() { try { ()。 } catch (SQLException e) { ()。 }finally{ conn = null。 } } 管理員登陸代碼部分:圖1:讀者信息功能界面public static Operater check(String name, String password) { int i = 0。 Operater operater=new Operater()。 String sql = select * from tb_operator where name=39。 + name + 39。 and password=39。 + password + 39。and admin=1。 ResultSet rs = (sql)。 try { while (()) { String names = (1)。 ((id))。 ((name))。 ((admin))。 ((password))。 if (names != null) { i = 1。 } } } catch (Exception e) { ()。 } ()。 return operater。 } 第二節(jié) 讀者信息功能模塊圖2:讀者信息功能界面在后臺(tái)管理中能自由的管理讀者,對(duì)讀者信息進(jìn)行添加,存儲(chǔ)讀者的信息該功能的實(shí)現(xiàn)由以下實(shí)現(xiàn):代碼部分:// 添加讀者信息public static int InsertReader(String name,String sex,String age,String identityCard,Date date,String maxNum,String tel,Double keepMoney,String zj,String zy,Date bztime,String ISBN){ int i=0。 try{ String sql=insert into tb_reader(name,sex,age,identityCard,date,maxNum,tel,keepMoney,zj,zy,bztime)values(39。+name+39。,39。+sex+39。,39。+age+39。,39。+identityCard+39。,39。+date+39。,39。+maxNum+39。,39。+tel+39。,+keepMoney+,39。+zj+39。,39。+zy+39。,39。+bztime+39。)。 (sql)。 i=(sql)。 }catch(Exception e){ ()。 } ()。 return i。 }//更新讀者信息public static int UpdateReader(String id,String name,String sex,String age,String identityCard,Date date,String maxNum,String tel,Double keepMoney,String zj,String zy,Date bztime,String ISBN){ int i=0。 try{ String sql=update tb_reader set name=39。+name+39。,sex=39。+sex+39。,age=39。+age+39。,identityCard=39。+identityCard+39。,date=39。+date+39。,maxNum=39。+maxNum+39。,tel=39。+tel+39。,keepMoney=+keepMoney+,zj=39。+zj+39。,zy=39。+zy+39。,bztime=39。+bztime+39。where ISBN=39。+ISBN+39。 i=(sql)。 }catch(Exception e){ ()。 } ()。 return i。 }//刪除讀者信息 public static int DelReader(String ISBN){ int i=0。 try{ String sql=delete from tb_reader where ISBN=39。+ISBN+39。 //(sql)。 i=(sql)。 }catch(Exception e){ ()。 } ()。 return i
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1