【正文】
set conn=nothing /關(guān)閉數(shù)據(jù)庫(kù)連接,釋放內(nèi)存 % 企業(yè)論壇功能的實(shí)現(xiàn) 企業(yè)論壇主要包括公司公告欄,員工留言和即時(shí)顯示留言信息板塊。usernameamp。id /顯示 id號(hào) dele=delete from BBS where id=39。 圖 添加員工頁(yè)面 這段代碼如下: % Function GetFileName(strFile) /定義函數(shù) GetFileName If strFile Then /如果路徑不為空 GetFileName =mid(strFile,InStrRev(strFile, \)+1) /取得文件名 Else GetFileName = /其他的返回文件名為空 End If End function strFileName = (photourl) /取得文件路徑 Set objStream = () /建立 Stream對(duì)象連接 = 1 39。 生日提醒功能的實(shí)現(xiàn) 本系統(tǒng)添加了生日提醒功能,是通過在 xinxi 表里查詢員工的生日日期與系統(tǒng)當(dāng)日的日期進(jìn)行一個(gè)比對(duì),然后將今天生日的員工名提出出來顯示在主頁(yè)面的左下角,提出生日的祝福。 添加員工功能測(cè)試 本測(cè)試點(diǎn)主要測(cè)試管理員在添加員工時(shí),賬號(hào)和密碼不能為空才能成功添加員工。 查詢功能測(cè)試 員工進(jìn)入系統(tǒng)只能對(duì)本部門人員的基本信息進(jìn)行查詢,查詢功能可以通過輸入姓名和職位來進(jìn)行查詢。留言是按照降序排列的,刪除后的留言依然會(huì)按照 id號(hào)從大到小的順序排列; 第四次:再次回到論壇 BBS 主頁(yè),即可查看留言情況,已刪掉剛點(diǎn)擊刪除的留言。 經(jīng)過這次實(shí)訓(xùn),我學(xué)到很多,也成熟許多,考慮事情也沒以前那么簡(jiǎn)單了。 [6] 頊宇峰 .ASP網(wǎng)絡(luò)編程從入門到精通 [M].北京:清華大學(xué)出版社, 2021。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識(shí)產(chǎn)權(quán)的說明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位 論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。t had a very good reason for keeping Loc khart in a good mood, he would have refused to do it.“ Nice loud howl, Harry exactly and then, if you39。s face. “I usually save it for booksignings.”He scrawled an enormous loopy signature on the note and handed it bac k to Hermione.“ So, Harry,” said Lockhart, while Hermione folded the note with fumbling fingers and slipped it into her bag. “Tomorrow39。ve got what we needed”“ He is not a brainless git,” said Hermione shrilly as they half ran toward the library.“ Just because he said you were the best student of the year—”They dropped their voices as they entered the muffled stillness of the library. Madam Pince, the librarian, was a thin, irritable woman who looked like an underfed vulture. nd Gee dived for the ground, still trying to avoid the mad Bludger.“ What39。t be thick,” said Fred. “It39。s whistle, Harry kic ked hard into the air and heard the telltale whoosh of the Bludger behind him. Higher and higher Harry climbed。s left ear and Malfoy, busy laughing at Harry, hadn39。s bed while Ron helped him into his pajamas. It took a while to stuff the rubbery, boneless arm into a sleeve.“ How can you stick up for Lockhart now, Hermione, eh?” Ron called through the curtain as he pulled Harry39。ve taken the Polyjuice Potion,” said Harry, sinking back onto his pillows. “I hope it tastes better than this stuff…” “ If it39。s goggling tennis ball eyes were peering at Harry through the darkness. A single tear was running down his long, pointed nose.“ Harry Potter came back to school,” he whispered miserably. “Dobby warned and warned Harry Potter. Ah sir, why didn39。t Harry Potter go back home when he missed the train?”Harry heaved himself up on his pillows and pushed Dobby39。ve got to be joking,” said door of the hospital wing burst open at that moment. Filthy and soaking wet, the rest of the Gryffindor team had arrived to see Harry. “Unbelievable flying, Harry,” said Gee. “I39。t hurt anymore, does it, Harry?”“ No,” said Harry, getting into bed. “But it doesn39。t me nded Harry39。 he knew he must look very stupid, but the rogue Bludger was heavy and couldn39。t let Harry deal with that thing on his own. Let39。re being flattened. Fred, Gee, where were you when that Bludger stopped Angelina scoring?”“ We were twenty feet above her, stopping the other Bludger from murdering Harry, Oliver,” said Gee angrily. “Someone39。re a useful player. I was a Seeker, too. I was asked to try for the National Squad, but preferred to dedicate my life to the eradication of the Dark Forces. Still, if ever you feel the need for a little private training, don39。s gone,” said Hermione nervously. “All right…”She approached Lockhart39。 ( 3)學(xué)校可以學(xué)術(shù)交流為目的復(fù)制、贈(zèng)送和交換學(xué)位論文。 [8] 李存斌,樊建平 .ASP高級(jí)編程及其項(xiàng)目應(yīng)用開發(fā) [M].北京:中國(guó)水利水電出版社, 2021。在這次設(shè)計(jì)過程中指導(dǎo)老師和同學(xué)都幫助我很多,特別是指導(dǎo)老師,對(duì)我盡心盡責(zé),為我操了不少心,真的很感激她。 結(jié) 論 本 課題 是利用計(jì)算機(jī)技術(shù)來管理復(fù)雜的員工信息量,避免了傳統(tǒng)手寫方式易發(fā)生數(shù)據(jù)丟失,統(tǒng)計(jì)錯(cuò)誤,勞動(dòng)強(qiáng)度高且速度慢的問題。 第一次:一位員工登錄系統(tǒng),在系統(tǒng)首頁(yè)查詢?cè)摬块T人員,輸入要查詢?nèi)藛T的姓名,職位為空,系統(tǒng)顯示出要查詢?nèi)藛T的基本信息,實(shí)現(xiàn)查詢功能; 第二次:在相同條件下,輸入要查詢?nèi)藛T 的職位,姓名為空,系統(tǒng)同樣顯示出要查詢?nèi)藛T的基本信息,實(shí)現(xiàn)查詢功能。 第一次:在添加員工時(shí),密碼和賬號(hào)不為空,成功添加員工 ,能用添加的賬號(hào)和密碼登錄系統(tǒng); 第二次:在添加員工時(shí),密碼為空,賬號(hào)不為空,則不能成功添加員工; 第三次:在添加員工時(shí),賬號(hào)為空,密碼不為空,則不能成功添加員工; 第四次:在添加員工時(shí),密碼和賬號(hào)都為空,也不能添加員工。在數(shù)據(jù)庫(kù)表里找 到相應(yīng)的用戶名,然后寫入新密碼,實(shí)現(xiàn)修改密碼功能。GetFileName(strFileName)),2 /保存文件到指定路徑并且關(guān)閉對(duì)象 % 搜索功能的實(shí)現(xiàn) 主要是通過每個(gè)登錄用戶的賬號(hào)輸入,判斷他所在的部門,然后提交到操作界面。idamp。,39。發(fā)表留言主要是通過建立記錄集對(duì)象,記錄發(fā)表留言者的用戶名和留言內(nèi)容,并與數(shù)據(jù)庫(kù)建立連接,將內(nèi)容寫入表 BBS。nameamp。并根據(jù) check0 值不同確 認(rèn)不同的權(quán)限,進(jìn)入系統(tǒng)能使用不同的功能。其中,留言編號(hào)為主關(guān)鍵字。該表結(jié)構(gòu)如下表所示。 表 xinxi表設(shè)計(jì) 字段名 數(shù)據(jù)類型及長(zhǎng)度 說明 備注 id Int( 4) 用戶編號(hào) 主關(guān)鍵字 username Char( 10) 用戶賬號(hào)名 not null password Varchar( 30) 用戶密碼 not null name Char( 10) 用戶真實(shí)姓名 null bumen Char( 10) 部門 null zhiwei Char( 10) 職位 null sex Char( 10) 性別 null gongzi int( 4) 工資 null photourl Varchar( 500) 照片 URL not null [year] Char( 16) 生日日期 null [month] Char( 10) 生日日期 null [day] Char( 10) 生日日期 null check0 Char( 10) 用戶類型 null zhengjian Varchar( 20) 證件類型 null zhangjiannumber Varchar( 50) 證件號(hào) null tel Varchar( 50) 聯(lián)系電話 null adress Char( 1000) 聯(lián)系地址 null xueli Varchar( 20) 學(xué)歷 null 3. 部門信息表 class 該表存放了部門內(nèi)部各個(gè)部門信息。包括用戶編號(hào)( id)、用戶賬號(hào)名( name)、用戶密碼( password)、用戶類型( check0)、用戶所屬部門( bumen)、用戶的職位( zhiwei)等信息。 企業(yè)人事管理系統(tǒng)后臺(tái) 人員管理 論壇管理 部門管理 添加員工 修改員工 刪除員工 添加部門 修改部門 刪除留言 圖 前臺(tái)管理模塊 數(shù)據(jù)庫(kù)的分析與設(shè)計(jì) 數(shù)據(jù)庫(kù)需求分析 本課題開發(fā)的數(shù)據(jù)庫(kù)包括三個(gè)方面: 1. 用戶數(shù)據(jù)表:存儲(chǔ)注冊(cè)用戶有關(guān)數(shù)據(jù)。 8. 管理員可以對(duì)人員信息及部 門信息進(jìn)行添加、修改、刪除,對(duì)企業(yè)論壇的管理及系統(tǒng)的維護(hù)。 以目前的技術(shù)看,局域網(wǎng)建立 B/S 結(jié)構(gòu)的網(wǎng)絡(luò)應(yīng)用,并通過Inter/Intra 模式下數(shù)據(jù)庫(kù)應(yīng)用,相對(duì)易于把握、成本也是較低的。 SQL Server 2021 是 Microsoft 公司推出的 SQL Server 數(shù)據(jù)庫(kù)管理系統(tǒng)的最新版本該版本繼承了 SQL Server 版本的優(yōu)點(diǎn)同時(shí)又比它增加了許多更先進(jìn)的功能具有使用方便 、 可伸縮性好 、 與相關(guān)軟件集成程度高等優(yōu)點(diǎn)可跨越從運(yùn)行 Microsoft Windows 98 的膝上型電腦到運(yùn)行 Microsoft Windows 2021 的大型多處理器的服務(wù)器等多種平臺(tái)使用 。 3. Server:提供訪問 服務(wù)器的方法 (methods)和屬性 (properties)的功能。在整個(gè)設(shè)計(jì)過程中以需求分析為基