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

正文內容

文檔管理系統(tǒng)的設計與實現(xiàn)畢業(yè)論文(已改無錯字)

2022-10-08 13:36:04 本頁面
  

【正文】 根據(jù)需要隨意更改 表 44 版本信息表 Store_file 保存各產(chǎn)品最新版本的文件名及其路徑,以及文件的描述與查詢關鍵字,系統(tǒng)中最主要的表 欄位名稱 數(shù)據(jù)類型 主鍵 長度 字段描述 備注 product_id int Yes 產(chǎn)品 ID folder_id int Yes 產(chǎn)品文件目錄目錄 ID file_id int Yes 文件 ID號,每個文件有唯一的 ID 號 file_name nvarchar 200 文件名稱,也就是上傳的文件名 last_date datetime 最后更新的時間,即上傳的時間 description nvarchar 200 產(chǎn)品的文件的描述,記錄用戶的備忘 keyword nvarchar 200 文件關鍵字,主要用于查詢文件 15 系統(tǒng)實現(xiàn) 本系統(tǒng)是一個文檔信 息管理系統(tǒng)。 使用 該系統(tǒng) 完成文檔的梳理和維護 。系統(tǒng)實現(xiàn)就是在系統(tǒng)詳細設計的基礎上 ,用一種程序設計語言來將設計轉換為程序 ,得到的結果就是源程序代碼。用戶可通過 Intenret 使用客戶端程序訪問數(shù)據(jù)庫。數(shù)據(jù)存儲層是負責系統(tǒng)數(shù)據(jù)和信息的存儲、檢索、優(yōu)化、自我故障診斷及恢復等。本論文計劃將軟件功能模塊按照需求來進行劃分,針對各功能模塊提出切實可行的設計方案。針對各功能模塊提出切實可行的設計方案,分為產(chǎn)品維護 模塊 、產(chǎn)品的明細目錄 模塊 、文件管理與上傳下載 模塊 、文件歷史版本瀏覽 模塊 、文件查詢 模塊的設計實現(xiàn)。 用 戶登錄 企業(yè)所使用的企業(yè)文檔管理系統(tǒng)必須提供用戶一個登陸界面,這樣有利于操作人員進行身份辨認。操作系統(tǒng)的用戶登錄窗口是唯一的入口,進入系統(tǒng)分為兩種權限:普通用戶的管理員權限和特權,通過在”登錄”按鈕觸發(fā)數(shù)據(jù)庫中的觸發(fā)器,驗證密碼和類型后使用 SQL語句判定后進入系統(tǒng) .用戶登錄界面如圖 42 所示: 圖 42 用戶登錄界面 程序部分代碼如下: if (() == ) { = Please input User Name.。 = true。 return。 } if (() == ) { ?? = Invalid User Name or Password.。 = true。 ()。 } } catch (Exception ex) 16 { throw ex。 } 產(chǎn)品維護設計 產(chǎn)品界面如圖 43 所示: 圖 43 產(chǎn)品維護界面 打開頁面時加載產(chǎn)品資料到頁面,程序部分代碼如下: public void ProductDataBind(string ProductName) { SqlParameter[] parms。 DataTable dt_product。 Boolean WithoutRow = false。 string sort = (string)ViewState[SortName] + + (string)ViewState[SortDire]。 ?? = view。 ()。 if (WithoutRow) { [0].Visible = false。 } } 添加新產(chǎn)品,這一步會做以下幾個操作,將新產(chǎn)品的資料插入數(shù)據(jù)庫,在服務器磁盤生成產(chǎn)品主要文件目錄如:我在 文件中設置了路徑 add name=FolderPath connectionString=D:\web\Storage Attachment/,現(xiàn)在我添加一個產(chǎn)品, ID 是 1,產(chǎn)品名稱是“多康 ”,那么就會在 D:\web\Storage Attachment 目錄下生成一個目錄 1,就會存在D:\web\Storage Attachment\1 這樣一個目錄 將產(chǎn)品默認的目錄數(shù)據(jù)添加到新建產(chǎn)品中,即從表 Store_folders 復制數(shù)據(jù)到表 Store_product_detail 17 在服務器磁盤生成產(chǎn)品默認文件夾目錄 如:默認目錄有 “產(chǎn)品設計文檔”,“產(chǎn)品 BOM 文檔” ,就會生成兩個目錄 D:\web\Storage Attachment\1\1 與 D:\web\Storage Attachment\1\2 注:所有的目錄都是以 Id 生成的。 public Boolean InsertProduct(string ProductName) { string insertSql, FolderPath。 int ProductId。 SqlTransaction ts。 SqlCommand = new SqlCommand()。 SqlConnection conn = (true)。 SqlParameter[] parms。 ts = ()。 = ts。 ?? { ()。 ()。 ()。 throw ex。 } return true。 } ,查詢功能支持模糊查詢 public void ProductSearch() { ViewState[New] = N。 ViewState[ProductName] = % + () + %。 ProductDataBind(% + () + %)。 } 18 產(chǎn)品目錄明細 產(chǎn)品目錄明細如圖 44 所示: 圖 44 產(chǎn)品目錄明細查詢界面 程序部分代碼如下: public void FolderDataBind(int productId) { string sql,ProductName。 SqlParameter[] parms 。 DataTable dt。 Boolean WithoutRow = false。 sql = select product_name from where id = @id。 ?? return true。 } catch (Exception ex) { throw ex。 } } 查找當前產(chǎn)品的某個文件,查找加入了自動完成功能 public void SearcheContentFolder() { string ProductId, url, SearchText。 ProductId = [ProductId].ToString()。 SearchText = 。 if (CheckSearchCount(SearchText) 1) 19 { (, (), reg2, alert(39。Can not find matching data!39。), true)。 return。 } if () { url = (~/?pid={0}amp。searchtext={1}, ProductId, SearchText)。 (url, true)。 } else { url = (~/?pid={0}amp。searchtext={1}, ProductId, SearchText)。 (url, true)。 } } 對當前產(chǎn)品所有目錄下的文件進行打包下載,這是本系統(tǒng)的一個重要功能,望重點突出。 設計的目的與思路:用戶有時候需要下載某個產(chǎn)品的所有文檔到他工作本地機器,考慮到一個產(chǎn)品含有多個目錄,每個目錄有多個文件,文件總量的大小是不可控的,在用戶下載之前,將產(chǎn)品目錄的所有文件夾及其文件壓縮到一個 .zip 文件中,節(jié)省用戶下載時間,提高用戶體驗。 在程序設計是,先將產(chǎn)品每個目錄進行壓縮,如果一個產(chǎn)品有三個文件夾,那么會 生成三個壓縮包。然后對這三個文件夾壓縮包進行第二次壓縮,生成一個產(chǎn)品壓縮文件。 進行壓縮的源碼,擴展名為 .db 的文件時系統(tǒng)文件,不進行壓縮,這里引用了 public bool ZipFile(string dirPath, string zipFilePath, out string err) { err = 。 if (dirPath == ) { err = The zip directory can not empty ! 。 return false。 } if (!(dirPath)) { ?? = ((Button)[i].FindControl(Button_Folder)).Text。 FolderPath = ProductPath + \\ + FolderId。 ZipName = ZipPath + \\ + FolderName + .zip。 ZipFile(FolderPath, ZipName, out ErrorMsg)。 } 20 //zip all folder zip file FolderPath = ZipPath。 AllZipName = ZipPath + \\ + + .zip。 ZipFile(FolderPath, AllZipName,
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1