




已閱讀5頁,還剩17頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
Web 開發(fā)與應(yīng)用技術(shù) 設(shè)計文檔 項目名稱 辦公自動化系統(tǒng)項目名稱 辦公自動化系統(tǒng) 完成日期 完成日期 2012 01 052012 01 05 目目 錄錄 第一章第一章 系統(tǒng)設(shè)計背 景 3 第二章第二章 系統(tǒng)需求分 析 3 第三章第三章 系統(tǒng)功能介 紹 3 第四章第四章 系統(tǒng)流程 圖 8 第第五五章章 系統(tǒng)模塊劃分 8 第第六六章章 數(shù)據(jù)庫的設(shè) 計 9 第第七七章章 詳細設(shè)計及實 現(xiàn) 9 第第八八章章 主界面預(yù)覽效果 圖 20 一 系統(tǒng)設(shè)計背景一 系統(tǒng)設(shè)計背景 辦公自動化 Office Automation System OAS 系統(tǒng) 是利用先進的計算機信息技術(shù) 和現(xiàn)代辦公設(shè)備構(gòu)成的人機信息處理系統(tǒng) 輔助管理人員進行各種辦公活動 辦公自動化 系統(tǒng)由辦公機構(gòu) 辦公人員 辦公設(shè)備 網(wǎng)絡(luò)環(huán)境 辦公信息等幾個基本要素構(gòu)成 本系統(tǒng)開發(fā)的目的是緊密結(jié)合目前政府機關(guān)和企事業(yè)單位的辦公業(yè)務(wù)流程和管理特點 開發(fā)一套先進的 綜合的 完整的 并且能有效的在局域網(wǎng)和廣域網(wǎng)運行的辦公自動化系 統(tǒng) 通過該系統(tǒng)的使用 可有效地提高政府機關(guān)和企事業(yè)單位的工作效率 提升應(yīng)用單位 信息化管理的水平 減少工作人員的工作量 降低政府機關(guān)和企事業(yè)單位的成本 二 系統(tǒng)需求分析二 系統(tǒng)需求分析 1 數(shù)據(jù)層上 實現(xiàn)對員工部門信息的修改 刪除 更新等操作 同時記錄考勤狀況 2 業(yè)務(wù)層上 實現(xiàn)各種與數(shù)據(jù)層的交互工作 3 視覺上 盡可能的做到人機交互 簡明 易懂 4 主界面上顯示當前日期 展示經(jīng)理風采 三 系統(tǒng)功能介紹三 系統(tǒng)功能介紹 登錄功能登錄功能 系統(tǒng)管理員 查看公告 考勤管理 設(shè)置上下班時間 管理員工的簽到 簽退等 系統(tǒng)設(shè)置 設(shè)置個人密碼 為系統(tǒng)設(shè)置新的管理員等 部門管理 編輯新增加的部門以及部門信息的維護工作 普通用戶 個人操作 包括查看系統(tǒng)公告 修改個人登錄密碼 考勤簽到 完成個人考勤 即簽到和簽退功能的實現(xiàn) 查看系統(tǒng)公告查看系統(tǒng)公告 上下班簽到時間設(shè)置上下班簽到時間設(shè)置 上下班簽到功能上下班簽到功能 密碼重置功能密碼重置功能 添加新管理員設(shè)置添加新管理員設(shè)置 新建部門功能新建部門功能 更新部門信息更新部門信息 四 系統(tǒng)流程圖四 系統(tǒng)流程圖 登錄 系統(tǒng)管理員 普通職員 修 改 個 人 信 息 修 改 密 碼 信 息 修 改 部 門 信 息 修 改 考 勤 信 息 修改 個人 密碼 查看 公告 考勤簽 到 簽退 五 系統(tǒng)模塊劃分五 系統(tǒng)模塊劃分 模塊劃分 登錄模塊 員工管理模塊 管理員和普通員工模塊 數(shù)據(jù)維護模塊 上班簽到的查詢 部門增刪信息更新模塊 六 數(shù)據(jù)庫設(shè)計六 數(shù)據(jù)庫設(shè)計 數(shù)據(jù)庫中存在 8 個表單分別如下 七 詳細設(shè)計及實現(xiàn)七 詳細設(shè)計及實現(xiàn) 1 連接數(shù)據(jù)庫 Web configue BaseClass 這個實現(xiàn)連接的類 using System using System Data using System Configuration using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient using System Collections BaseClass 的摘要說明 public class BaseClass System Web UI Page public BaseClass TODO 在此處添加構(gòu)造函數(shù)邏輯 region 顯 示 客 戶 端 對 話 框 WebMessageBox 用 來 在 客 戶 端 彈獺 出 對 話 框 對 話 框 顯 示 內(nèi) 容 public string MessageBox string TxtMessage string str str alert TxtMessage return str endregion region 執(zhí) 行 DSQL 語 句 用 來 執(zhí) 行 DSQL 語 句 sQueryString SQL 字 符 串 操 作痢 是 否 成 功 True False public Boolean ExecSQL string sQueryString SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr con Open SqlCommand dbCommand new SqlCommand sQueryString con if dbCommand ExecuteNonQuery 0 con Close return true else con Close return false 公 告 信 息 添 加 標括 題琣 公 告 內(nèi) 容 發(fā) 布 公 告 人 public Boolean ExecProcNotice string title string content string person 執(zhí) 行 D 公 告 程 序 SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr con Open SqlCommand cmd new SqlCommand insert tb notice con cmd CommandType CommandType StoredProcedure 公 告 標括 題琣 SqlParameter pTitle new SqlParameter noticeTitle SqlDbType VarChar 80 設(shè) 置 數(shù)簓據(jù) Y 庫 a 參 數(shù)簓 pTitle Value title cmd Parameters Add pTitle 公 告 詳 細 內(nèi) 容 SqlParameter pContent new SqlParameter noticeContent SqlDbType Text 0 0 為 aText 默 認 存 儲洹 的 最 大洙 值 pContent Value content cmd Parameters Add pContent 公 告 發(fā) 布 人 SqlParameter pPerson new SqlParameter noticePerson SqlDbType VarChar 20 pPerson Value person cmd Parameters Add pPerson 判 D 斷 運 行 D 結(jié) 果 if cmd ExecuteNonQuery 0 con Close return true else con Close return false endregion region 查 詢 SQL 語 句 執(zhí) 行 D 查 詢 戧 戧 語 句 sQueryString SQL 字 符 串 TableName 數(shù)簓據(jù) Y 表括 名 稱 public System Data DataSet GetDataSet string sQueryString string TableName SqlConnection con new SqlConnection ConfigurationManager AppSettings conStr string s1 ConfigurationManager ConnectionStrings conStr ConnectionString SqlConnection con new SqlConnection s1 SqlDataAdapter dbAdapter new SqlDataAdapter sQueryString con DataSet dataset new DataSet dbAdapter Fill dataset TableName return dataset endregion 以部門信息修改為例寫出各項數(shù)據(jù)綁定操作以部門信息修改為例寫出各項數(shù)據(jù)綁定操作 using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls public partial class BaseInfo BaseDepartmentAdd System Web UI Page protected void Page Load object sender EventArgs e if Session loginName null Response Write this parent location href Default aspx protected void imgBtnSave Click object sender ImageClickEventArgs e BaseClass bc new BaseClass Boolean bl bl bc ExecSQL insert into department values txtName Text txtContent Text txtid Text if bl Response Write bc MessageBox 新建部門成功 else Response Write bc MessageBox 新建部門失敗 protected void imgBtnClear Click object sender ImageClickEventArgs e txtName Text txtContent Text using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls public partial class BaseInfo BaseDepartmentManager System Web UI Page BaseClass bc new BaseClass protected void Page Load object sender EventArgs e if Session loginName null Response Write this parent location href Default aspx return GridView1 DataSource bc GetDataSet select from department department GridView1 DataKeyNames new String deptid GridView1 DataBind protected void GridView1 PageIndexChanging object sender GridViewPageEventArgs e GridView1 PageIndex e NewPageIndex GridView1 DataBind protected void GridView1 RowDeleting object sender GridViewDeleteEventArgs e try bc ExecSQL delete from department where deptid this GridView1 DataKeys e RowIndex Value ToString GridView1 DataSource bc GetDataSet select from department department GridView1 DataBind catch Exception ex Response Write bc MessageBox ex Message using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls public partial class BaseInfo BaseDepartmentUpdate System Web UI Page BaseClass bc new BaseClass protected void Page Load object sender EventArgs e if Session loginName null Response Write this parent location href Default aspx return if IsPostBack DataSet ds bc GetDataSet select from department where deptid Request QueryString id ToString department txtName Text ds Tables 0 Rows 0 1 ToString txtContent Text ds Tables 0 Rows 0 2 ToString protected void imgBtnSave Click object sender ImageClickEv
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 抖音直播電商直播產(chǎn)品選品與供應(yīng)鏈管理服務(wù)協(xié)議
- 游戲開發(fā)臨時測試工程師項目合同
- 子女醫(yī)療費用分擔及疾病防治服務(wù)合同
- 企業(yè)管理核心要素與實踐策略
- 架子工高空作業(yè)安全責任及勞務(wù)派遣合同
- 《成交策略解析與應(yīng)用》課件
- 影視劇化妝間租賃與化妝服務(wù)一體化合同
- 《心情與養(yǎng)生》課件2
- 《肺部聽診解析》課件
- 公交公司安全管理體系構(gòu)建與實施
- 庫侖定律(公開課)完整版
- 電氣一次主接線圖課件
- 海洋塑料垃圾治理國際協(xié)作
- 紀檢監(jiān)委開展保密知識講座
- 食材配送投標方案(技術(shù)標)
- 哈薩克族服飾.課件
- 自動線安全操作規(guī)程
- (10)-3.12 管理載體寓教于管法
- 聚酯生產(chǎn)技術(shù) 聚酯的性能與用途
- 洼田飲水試驗
- 西師大版三年級數(shù)學(xué)下冊《全冊》單元復(fù)習卡課件
評論
0/150
提交評論