工資管理系統(tǒng)-無憂無慮畢設網_第1頁
工資管理系統(tǒng)-無憂無慮畢設網_第2頁
工資管理系統(tǒng)-無憂無慮畢設網_第3頁
工資管理系統(tǒng)-無憂無慮畢設網_第4頁
工資管理系統(tǒng)-無憂無慮畢設網_第5頁
已閱讀5頁,還剩92頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 本文配套程序下載地址 : 無憂無慮畢設網 ()-大學生畢業(yè)設計站 ,免費畢業(yè)設計論文 ,無憂無慮畢設網 大學生畢業(yè)設計 ,出售各類畢業(yè)設計源碼 ,論文 ,程序源碼 ,網站源碼 ,免費視頻教程 ,我們將竭誠為您服務! 畢業(yè)設計 院系 _ 專業(yè) _ 班級 _ 姓名 _ 日期 年 月 日 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 中文摘要 工資管理系統(tǒng) 為企業(yè)管理者提供了計算機化管理本單位員工的工資分配的想法成為可能 .其強大的數(shù)據(jù)信息處理能力與查詢報表 ,按工種分類以及系統(tǒng)維護等功能可以很好的服務與企業(yè)管理者 .提高管理效率為企業(yè)創(chuàng)造效益 .其開發(fā)內容主要包括后臺數(shù)據(jù)庫的建立和維護以及前端應用程序的開發(fā)兩個方面。利用 DELPHI 6.0 軟件及其提供的各種面向對象的開發(fā)工具,建立完整性強、安全性好的數(shù)據(jù)庫,開發(fā)出功能完備,易使用的應用程序。經過調試、編譯與實現(xiàn),該程序 界面友好、程序設計風格樸素,使用起來美觀大方、方便易用。尤其是系統(tǒng)的“查詢模塊”的功能極大的減輕工作人員的工作量,并以快速、準確等優(yōu)點取代人工操作, 提高了光盤管理工 作效率。 關鍵詞 : DELPHI 6.0 信息管理系統(tǒng) 數(shù)據(jù)庫 模塊 工資管理系統(tǒng) 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: Wage management system for enterprise managers with computerized management unit staff of the wage distribution ideas possible. Its powerful data processing capabilities and information statements, Classification by type and system maintenance services and functions can be good business managers. creating benefits for enterprises to improve management efficiency. its development mainly to the establishment and maintenance of databases including background and the development of two front-end applications. Delphi 6.0 and the use of object-oriented software development tools, the establishment of strong integrity, good safety database developed functions, easy to use applications. After debugging, Translation and the realization that the process friendly interface, simple programming style, using up aesthetic generous, convenient user-friendly. In particular system enquiries module function greatly reduce the workload of staff, and to the rapid, accurate, and other advantages replace manually operated, and enhanced CDs management efficiency. Keyword : Delphi 6.0 Information Management System database 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: module wage management system 引 言 1 1 Delphi 語言概述 2 1.1 Delphi 簡介 2 1.2 數(shù)據(jù)庫系統(tǒng)簡介 2 1.3 本應用軟件的基 本介紹 3 2 本應用程序的構成和開發(fā)步驟 4 2.1 可行性研究 4 2.1.1 經濟可行性 4 2.1.2 時間可行性 4 2.1.3 技術可行性 4 2.1.4 社會可行性 5 2.2 數(shù)據(jù)庫的建立和連接 5 2.3 系統(tǒng)的總體設計 5 2.4 系統(tǒng)的詳細設計 7 3 本程序的技術實現(xiàn)及具體功能 13 3.1 登錄的界面與程序設計實現(xiàn) 13 3.2 項目查詢報表界面與代碼設計實現(xiàn) 13 3.3 員工查詢界面與代碼設計實現(xiàn) 14, 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 3.4 更改密碼界面與代碼設計 15 3.5 員工信息界面設計與代碼設計 16 3.6 主界面與代碼設計 17 結 論 21 致 謝 22 參 考 文 獻 23 引 言 隨著經濟的發(fā)展,社會的進步,計算機越來越深入到我們日常的工作學習及生活中,成為我們日常生活中不可缺少的輔助工具。 隨著科學技術的不斷提高 ,計算機科學日漸成熟 ,其強大的功能已為人們深刻認識 ,它已進入人類社會的各個領域并發(fā)揮著越來越重要的作用。 它已經深入到日常工作和生活的方方面面,比如文字處理、信息管理、輔助設計、圖形圖像處理、教育培訓以及游戲娛樂等。各行各業(yè)的人們無 須經過特別的訓練就能夠使用電腦完成許許多多復雜的工作。然而,雖然現(xiàn)在世界上已經充滿了多如牛毛的各種軟件,但它們依然不能滿足用戶的各種特殊需要,人們還不得不開發(fā)適合自己特無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 殊需求的軟件。以前開發(fā) Windows 應用軟件是專業(yè)人員的工作,需要掌握許多專業(yè)知識和經過特殊的培訓才能勝任?,F(xiàn)在不同了,即使你沒有接受過嚴格的程序設計訓練,使用 Delphi 編程語言 也一樣能夠開發(fā)出功能強大、適合自己特殊需求的應用程序了。 Delphi 編程語言 繼承了其他語言易學易用的特點,特別適合于初學者學習Windows 系統(tǒng)編程。 工資 管理系統(tǒng)用計算機管理企業(yè)單位員工工資發(fā)放情況的一種計算機應用技術的創(chuàng)新 ,在計算機還未普及之前員工工資管理都是由工作人員人工操作 ,調整的方式來操作的 .現(xiàn)在一般的工資管理都采用計算機智能化管理 ,采用計算機作為工具的實用的計算機智能化管理程序來幫助前臺管理員進行更有效的工資管理工作。工資管理系統(tǒng)是典型的信息管理系統(tǒng) (MIS),其開發(fā)主要包括后臺數(shù)據(jù)庫的建立和維護以及前端應用程序的開發(fā)兩個方面。對于前者要求建立起數(shù)據(jù)一致性和完整性強、數(shù)據(jù)安全性好的庫。而對于后者則要求應用程序功能完備 ,易使用等特點。 經過分 析 ,我們使用 Delphi編程語言 開發(fā)工具 ,利用其提供的各種面向對象的開發(fā)工具 ,尤其是數(shù)據(jù)窗口這一能方便而簡潔操縱數(shù)據(jù)庫的智能化對象 ,首先在短時間內建立系統(tǒng)應用原型 ,然后 ,對初始原型系統(tǒng)進行需求迭代 ,不斷修正和改進 ,直到形成用戶滿意的可行系統(tǒng)。 因為本人能力有限,加上時間緊迫,所以設計出來的本系統(tǒng)可能功能比較簡單,另外本系統(tǒng)是單機版,不能實現(xiàn)網絡互聯(lián)操作 ,這些無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 都有待于我在以后的工作學習中進一步改進。 1.1 Delphi 簡介 1.1 Delphi 簡介 Delphi是 Inprise公司出品的一個優(yōu) 秀 的可視 化程序開發(fā)工具軟件,它短小精悍,但功能卻可以與龐大的 visual c+媲美。它易學易用,如同 VB,因而被稱為“第四代編程語言”。 從 1995 年推出 Delphi1.0 至今已經經歷了 7 個版本,Delphi7.0 運行在 win9x 或 winme , win2000, winxp,windowsNT 等操作系統(tǒng)下,是一個 32 位的應用程序開發(fā)工具。這里把“ VB”比作是傻瓜相機, Delphi 是帶有自動功能的專業(yè)相機。前些年,軟件界流行一句話叫“真正的程序員用 VC,聰明的程序員用 Delphi”。也有的把 Delphi 稱作 VB殺手。 1.2 數(shù)據(jù)庫系統(tǒng)簡介 數(shù)據(jù)庫系統(tǒng)是一個實際可運行的存儲、維護和應用系統(tǒng)提供數(shù)據(jù)的軟件系統(tǒng),是存儲介質、處理對象和管理系統(tǒng)的集合體。它通常由軟件、數(shù)據(jù)庫和數(shù)據(jù)管理員組成。其軟件主要包括操作系統(tǒng)、各種宿主語言,實用程序以及數(shù)據(jù)庫管無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 理系統(tǒng)。數(shù)據(jù)庫是依照某種數(shù)據(jù)模型組織起來并存放二級存儲器中的數(shù)據(jù)集合。這些數(shù)據(jù)為多個應用服務,獨立于具體的應用程序。數(shù)據(jù)庫由數(shù)據(jù)庫管理系統(tǒng)統(tǒng)一管理,數(shù)據(jù)的插入、修改和檢索均要通過數(shù)據(jù)庫管理系統(tǒng)進行。數(shù)據(jù)庫管理系統(tǒng)是一種系統(tǒng)軟件,它的主要功能是維護數(shù)據(jù)庫并有效地訪問數(shù)據(jù)庫中任意部分 數(shù)據(jù)。對數(shù)據(jù)庫的維護包括保持數(shù)據(jù)的完整性、一致性和安全性。數(shù)據(jù)管理員負責創(chuàng)建、監(jiān)控和維護整個數(shù)據(jù)庫,使數(shù)據(jù)能被任何有權使用的人有效使用。數(shù)據(jù)庫管理員一般是由業(yè)務水平較高、資歷較深的人員擔任。 數(shù)據(jù)庫系統(tǒng)的個體含義是指一個具體的數(shù)據(jù)庫管理系統(tǒng)軟件和用它建立起來的數(shù)據(jù)庫;它的學科含義是指研究、開發(fā)、建立、維護和應用數(shù)據(jù)庫系統(tǒng)所涉及的理論、方法、技術所構成的學科。在這一含義下,數(shù)據(jù)庫系統(tǒng)是軟件研究領域的一個重要分支,常稱為數(shù)據(jù)庫領域。 數(shù)據(jù)庫研究跨越于計算機應用、系統(tǒng)軟件和理論三個領域,其中應用促進新系統(tǒng) 的研制開發(fā),新系統(tǒng)帶來新的理論研究,而理論研究又對前兩個領域起著指導作用。數(shù)據(jù)庫系統(tǒng)的出現(xiàn)是計算機應用的一個里程碑,它使得計算機應用從以科學計算為主轉向以數(shù)據(jù)處理為主,并從而使計算機得以在各行各業(yè)乃至家庭普遍使用。在它之前的文件系統(tǒng)雖然也能處理持久數(shù)據(jù),但是文件系統(tǒng)不提供對任意部分數(shù)據(jù)的快無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 速訪問,而這對數(shù)據(jù)量不斷增大的應用來說是至關重要的。為了實現(xiàn)對任意部分數(shù)據(jù)的快速訪問,就要研究許多優(yōu)化技術。這些優(yōu)化技術往往很復雜,是普通用戶難以實現(xiàn)的,所以就由系統(tǒng)軟件(數(shù)據(jù)庫管理系統(tǒng))來完成,而提供給用戶的是簡單易用的 數(shù)據(jù)庫語言。由于對數(shù)據(jù)庫的操作都由數(shù)據(jù)庫管理系統(tǒng)完成,所以數(shù)據(jù)庫就可以獨立于具體的應用程序而存在,從而數(shù)據(jù)庫又可以為多個用戶所共享。因此,數(shù)據(jù)的獨立性和共享性是數(shù)據(jù)庫系統(tǒng)的重要特征。數(shù)據(jù)共享節(jié)省了大量人力物力,為數(shù)據(jù)庫系統(tǒng)的廣泛應用奠定了基礎。數(shù)據(jù)庫系統(tǒng)的出現(xiàn)使得普通用戶能夠方便地將日常數(shù)據(jù)存入計算機并在需要的時候快速訪問它們,從而使的計算機走出科研機構進入各行各業(yè)、進入家庭。 1.3 本應用軟件的基本介紹 本應用軟件先是打開一個啟動窗口,就可以進入應用程序的主窗口了。主界面是一個圖型界面窗口,整個平臺 顯示采用人性化方式,可以非常方便的數(shù)據(jù)庫、報表管理、系統(tǒng)維護 ,數(shù)據(jù)查詢等基本信息,管理日常經營的基本情況,通過各種條件查詢員工工資基本信息,以及打印出查詢出的基本信息,總之一切員工工資基本信息都會顯示在系統(tǒng)平臺上,大大提高了管理人員的工作效率。 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 2 本應用程序的構成和開發(fā)步驟 下面從軟件工程的角度介紹本程序的基本開發(fā)步驟。Delphi 應用程序一般包含以下三個基本部分: 應用程序運行的接口:負責系統(tǒng)整體環(huán)境的設置,運行狀態(tài)的監(jiān)視,應用程序的啟動等。 應用程序的主體:主要完成用戶的業(yè)務邏輯 功能,如數(shù)據(jù)庫信息錄入 ,查詢報表 ,系統(tǒng)維護等信息 . 應用程序的輔助部分:協(xié)助程序主體完成的一些工作。 下面從軟件工程的角度描述本程序的開發(fā)生命周期,開發(fā)過程和組織過程。 2.1 可行性研究 任何一個系統(tǒng)或一項工程,在建立之前,必須首選進行可行性分析,可行性分析包括兩層含義,一是可能性,二是必要性。可能性指開發(fā)信息系統(tǒng)的條件是否具備,必要性是指客觀上是否真正需要,通過可行性研究,可避免盲目投資,減少政治性要的損失。下面從四方面來討論: 2.1.1 經濟可行性 主要是只指算一個新的系統(tǒng)開發(fā)所需要的投資費用和運算費用,并與估計的新系統(tǒng)收益進行比較,看是否有利。本系統(tǒng)所需的軟硬件成本比較低,投資小,具有一定的通過性,因此 ,在經濟上是可行的。 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 2.1.2 時間可行性 主要包括系統(tǒng)在目前環(huán)境下能否正常運行,運行后所引起的各方面,以及這些變化對社會或人的因素所產生的影響。本系統(tǒng)對人事的管理比較全面,可長期使用。 2.1.3 技術可行性 利用現(xiàn)有的設備,軟件及技術人員,新系統(tǒng)的目標能否達到,這也是可行性研究中需要考慮的一個問題。關系型數(shù)據(jù) 庫的高速發(fā)展使管理信息系統(tǒng)具備了良好的開發(fā)環(huán)境。本系統(tǒng)使用的 Delphi 普及 性好,操作簡單,用戶可以很快掌握使用方法,因此,在技術上是完全可行的。 2.1.4 社會可行性 人類社會文明的發(fā)展已進入信息化的高速發(fā)展時期,傳統(tǒng)的手工方式支持下的管理模式,已經不能滿足各方面的需要。開發(fā)本系統(tǒng)的目標不僅是提高工作效率,減輕勞動強度,而且減少出錯率,具有很好的社會意義。 2.2 數(shù)據(jù)庫的建立和連接 這個程序采用的數(shù)據(jù)庫是 Microsoft Access2000, Delphi作為數(shù)據(jù)庫的前臺開發(fā)工具,必須與后臺數(shù)據(jù)庫進行連接,這樣才能控制和進行操作數(shù)據(jù)庫,數(shù)據(jù)庫的連接方式有兩種, ODBC 和 ADO。 ODBC 是數(shù)據(jù)庫的通用接口,其缺點是效率低;專用接口調用直接速度快,但是通用性差,如果用 ODBC 連接數(shù)據(jù)庫一般要兩個步驟: 1.要創(chuàng)建數(shù)據(jù)源; 2.創(chuàng)建描述文件。數(shù)無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 據(jù)庫的建立則時在 access2000 中建立的,在這里你可以設置數(shù)據(jù)庫的密碼,對數(shù)據(jù)庫進行保護。在創(chuàng)建數(shù)據(jù)源時可以通過 BDE administrator 進行創(chuàng)建,也可以通過系統(tǒng)控制面板中的 ODBC 數(shù)據(jù)源進行建立。而描述文件則可以在 Delphi 的主程序中用 Database Profile 中進行建立,之后進行數(shù)據(jù)庫的連接。接下來的工作是建表。同樣 建表的過程也不是唯一的,但是最終實現(xiàn)的結果是唯一的。你可以通過 Access 進行建表,也可以通過在 Visual Basic 主程序中建表,也可以通過powerdesigner 進行可視化的建立,不過用這種方法,在導入的時候要把數(shù)據(jù)庫要先斷開,否則數(shù)據(jù)庫的數(shù)據(jù)容易丟失。建表的過程注意規(guī)范化命名規(guī)則,如表的字段名等等。同時也要注意表的字段長度和可否為空。因為以后要設計到主鍵,外鍵的問題。如果字段名不同,同一字段長度不同則主鍵和外鍵將會連接不上??梢娊ū頃r應做好全局的打算。我在程序開發(fā)的初期,同樣犯了這個錯誤,導致 數(shù)據(jù)庫出錯,有時還要向表中新加入字段。導致數(shù)據(jù)窗口不好用的連鎖反映。 2.3 系統(tǒng)的總體設計 這個管理系統(tǒng)從 4 月 1 日開始著手設計開發(fā) ,經過一段時無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 間的分析,并根據(jù)對企事業(yè)單位工資管理的具體要求及需要本軟件實現(xiàn)的功能,將本軟件分為 3 個大的模塊,分別是:第一部分:數(shù)據(jù)庫信息錄入 ; 第二部分:查詢報表 ; 第三部分:系統(tǒng)維護 程序流程圖如下: 2.4 系統(tǒng)的詳細設計 程序登陸 主界面 數(shù)據(jù)庫信息錄入 查詢報表 系統(tǒng)維護 退出系統(tǒng) 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 進入 Access 后要做的第一件事就是建立一個數(shù)據(jù)庫。Access 提供了 6 種用構造數(shù) 據(jù)庫系統(tǒng)的對象,根據(jù)本課題的需要,在這里選擇一個空的數(shù)據(jù)庫,命名 建立了一個數(shù)據(jù)庫名稱為 “ YZW_GL” , 工資管理系統(tǒng)。 并在此數(shù)據(jù)庫下創(chuàng)建了 六個表,用于存放原始數(shù)據(jù)。它只是存放數(shù)據(jù),對其中數(shù)據(jù)的修改要通過對應的窗體來完成。 創(chuàng)建各表的具體結構如下 : 1.gdinfo 信息表 2.工資信息表 3.hzinfo 信息表 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 4.jcinfo 信息表 5.qx_info 信息表 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 6.userinfo 信息表 3 本程序的技術實現(xiàn)及具體功能 3.1 登錄的界面與程序設計實現(xiàn) 代碼設計 : unit p_password; interface uses 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, Buttons, DBCtrls, jpeg,ActnList; type Tf_password = class(TForm) Bevel1: TBevel; Label1: TLabel; Label2: TLabel; e_password: TEdit; Label3: TLabel; ComboBox1: TComboBox; Image1: TImage; b_ok: TSpeedButton; b_cancel: TSpeedButton; e_user: TDBLookupComboBox; procedure qx; /自定義過程 -登陸時用戶的權限設置 procedure b_okClick(Sender: TObject); procedure SpeedButton1Click(Sender: TObject); procedure b_cancelClick(Sender: TObject); procedure E_USEKeyDown(Sender: TObject; var Key: Word; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: Shift: TShiftState); procedure FormCreate(Sender: TObject); procedure JC_DATETIME; procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure e_userKeyPress(Sender: TObject; var Key: Char); procedure e_passwordKeyPress(Sender: TObject; var Key: Char); /檢測系統(tǒng)日期時間 private Private declarations public rz_id:integer;/保存日志 ID Public declarations end; var f_password: Tf_password; user_name:string; /全局變量 ,保存登陸系統(tǒng)的用戶名 implementation uses p_mc,p_gl,P_DM; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: $R *.dfm procedure tf_password.JC_DATETIME; begin /檢測計算機日期時間是否小于上 次登陸日期時間 with dm do begin t_dl.Open; if t_dldl_datenow then begin t_dl.Edit; t_dldl_date:=strtodate(1900-03-20); t_dl.Post; application.MessageBox(計算機日期或時間有誤 ,請更正!,登陸失敗 ,mb_ok+mb_iconstop); f_password.Close; end else begin t_dl.Edit; t_dldl_date:=datetostr(now); t_dl.Post; / t_dl.Close; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: end; /endif t_dl.Close; end; /with dm do 語句完畢 end; procedure tf_password.qx; /自定義過程 -登陸時用戶的權限設置 var n:integer; xz:boolean; /該權限是否選擇 begin with dm,f_gl do begin t_qx.Open; t_qx.Filter:=user_name=+user_name+; t_qx.Filtered:=true; t_qx.First; while not t_qx.eof do begin n:=t_qxmenu_id; xz:=t_qxmenu_xz; if xz then TAction(f_gl.AL.Actionsn).Enabled:=true else TAction(f_gl.AL.Actionsn).Enabled:=false; t_qx.Next; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: end; /while .END t_qx.Close; end; /with dm do .END end; procedure Tf_password.b_okClick(Sender: TObject); begin f_password.Hide; f_gl.Show; end; procedure Tf_password.SpeedButton1Click(Sender: TObject); begin /確認用戶密碼、權限的合法性 with dm do begin t_user.Filter:=name=+e_user.KeyValue+; t_user.Filtered:=true; user_name:=t_username;/記錄登陸用戶用戶名 if (trim(e_user.KeyValue)=trim(t_username)and(trim(e_password.Text)=trim(t_userpassword) then begin 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: f_password.JC_DATETIME; /檢測計算機日期時間 /寫入登 陸日志 t_jrrz.Open; rz_id:=t_jrrz.RecordCount+1; /記錄登錄系統(tǒng) ID t_jrrz.Edit; t_jrrz.Append; t_jrrzrz_id:=rz_id; t_jrrzuser_name:=user_name; t_jrrzmenu_caption:=系統(tǒng)登陸 ; t_jrrzjrrq:=now; t_jrrzrq:=datetostr(now); t_jrrz.Post; t_jrrz.Close; /日志寫完畢 f_password.Hide; f_gl.Show; f_gl.ZT.Panels2.Text:=當前操作員: +t_username; f_password.qx; /調用用戶的權限過程 t_user.Filtered:=false; t_user.Close; end else 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: begin t_user.Filtered:=false; f_password.e_password.Text:=; application.MessageBox(您輸入的用戶或口令有誤 ,注意大小寫 !,提示 ,mb_ok+mb_iconinformation); end; /endif end; /with . end end; procedure Tf_password.b_cancelClick(Sender: TObject); begin dm.ADO.Connected:=false; close; end; procedure Tf_password.E_USEKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if key=13 then e_password.SetFocus; end; procedure Tf_password.FormCreate(Sender: TObject); begin 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: dm.T_USER.Open; e_user.KeyValue:=SYSTEM; f_password.ShowModal; end; procedure Tf_password.FormClose(Sender: TObject; var Action: TCloseAction); begin / if application.MessageBox( 確 認 退 出 系 統(tǒng) 嗎 ?, 退出,mb_yesno+mb_iconquestion)=idno then abort; application.Terminate; end; procedure Tf_password.e_userKeyPress(Sender: TObject; var Key: Char); begin if key=#13 then begin key:=#0; e_password.SetFocus; end; end; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: procedure Tf_password.e_passwordKeyPress(Sender: TObject; var Key: Char); begin if key=#13 then begin key:=#0; b_ok.Click; end; end; end. 3.2 項目查詢報表 界面與代碼設計實現(xiàn) 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: 代碼設計 : unit p_allcx; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,p_mc, QRCtrls, QuickRpt, ExtCtrls, DBCtrls, StdCtrls, Buttons, DBGrids, Grids, DBGridEh; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: type Tf_allcx = class(Tf_mc) Bevel1: TBevel; Label1: TLabel; Label2: TLabel; Label3: TLabel; DBGridEh1: TDBGridEh; DBGrid1: TDBGrid; cbxm: TCheckBox; exm: TEdit; eyear: TComboBox; fyue: TComboBox; BitBtn1: TBitBtn; bcx: TBitBtn; tyue: TComboBox; egz: TDBLookupComboBox; cbgz: TCheckBox; BitBtn3: TBitBtn; BitBtn4: TBitBtn; Panel1: TPanel; QuickRep1: TQuickRep; QRBand3: TQRBand; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRDBText5: TQRDBText; QRDBText15: TQRDBText; QRDBText16: TQRDBText; QRDBText17: TQRDBText; QRDBText18: TQRDBText; QRDBText19: TQRDBText; QRShape3: TQRShape; QRShape23: TQRShape; QRShape24: TQRShape; QRShape25: TQRShape; QRShape26: TQRShape; QRShape27: TQRShape; QRShape65: TQRShape; QRShape15: TQRShape; QRShape68: TQRShape; QRShape71: TQRShape; QRShape72: TQRShape; QRShape73: TQRShape; QRShape93: TQRShape; QRShape105: TQRShape; QRShape107: TQRShape; QRDBText2: TQRDBText; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRDBText31: TQRDBText; GroupFooterBand1: TQRBand; QRShape11: TQRShape; QRBand1: TQRBand; bt1: TQRLabel; QRLabel37: TQRLabel; QRSysData1: TQRSysData; QRBand4: TQRBand; QRLabel11: TQRLabel; QRLabel2: TQRLabel; QRLabel16: TQRLabel; QRLabel17: TQRLabel; QRLabel18: TQRLabel; QRLabel19: TQRLabel; QRShape4: TQRShape; QRShape58: TQRShape; QRShape60: TQRShape; QRShape61: TQRShape; QRShape62: TQRShape; QRShape63: TQRShape; QRShape64: TQRShape; QRShape9: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRLabel3: TQRLabel; QRLabel8: TQRLabel; QRLabel9: TQRLabel; QRLabel6: TQRLabel; QRLabel13: TQRLabel; QRLabel14: TQRLabel; QRShape16: TQRShape; QRShape66: TQRShape; QRShape67: TQRShape; QRShape70: TQRShape; QRShape94: TQRShape; QRShape95: TQRShape; QRShape96: TQRShape; QRLabel7: TQRLabel; QRShape8: TQRShape; QRLabel34: TQRLabel; QRLabel35: TQRLabel; QRShape103: TQRShape; QRLabel36: TQRLabel; QRShape104: TQRShape; QRShape59: TQRShape; QRShape57: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRSubDetail1: TQRSubDetail; QRDBText9: TQRDBText; QRDBText10: TQRDBText; QRDBText11: TQRDBText; QRDBText12: TQRDBText; QRDBText13: TQRDBText; QRDBText7: TQRDBText; QRDBText8: TQRDBText; QRShape1: TQRShape; QRShape6: TQRShape; QRShape10: TQRShape; QRShape12: TQRShape; QRShape18: TQRShape; QRShape2: TQRShape; QRShape17: TQRShape; QRShape19: TQRShape; QRShape97: TQRShape; QRShape98: TQRShape; QRShape100: TQRShape; QRDBText1: TQRDBText; QRShape106: TQRShape; QRShape108: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRBand2: TQRBand; QRShape29: TQRShape; QRExpr1: TQRExpr; QRExpr2: TQRExpr; QRExpr3: TQRExpr; QRLabel38: TQRLabel; QRExpr7: TQRExpr; QRShape109: TQRShape; QRShape110: TQRShape; QRShape111: TQRShape; QRShape113: TQRShape; QRShape114: TQRShape; QRLabel4: TQRLabel; QRSysData2: TQRSysData; QRLabel5: TQRLabel; QRBand10: TQRBand; QRShape121: TQRShape; QRLabel1: TQRLabel; QRExpr8: TQRExpr; QRExpr9: TQRExpr; QRExpr10: TQRExpr; QRExpr11: TQRExpr; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRShape115: TQRShape; QRShape116: TQRShape; QRShape117: TQRShape; QRShape118: TQRShape; QRShape119: TQRShape; QRShape120: TQRShape; Panel2: TPanel; QuickRep2: TQuickRep; QRBand5: TQRBand; QRDBText3: TQRDBText; QRDBText4: TQRDBText; QRDBText6: TQRDBText; QRDBText14: TQRDBText; QRDBText20: TQRDBText; QRDBText21: TQRDBText; QRShape28: TQRShape; QRShape30: TQRShape; QRShape31: TQRShape; QRShape32: TQRShape; QRShape33: TQRShape; QRShape34: TQRShape; QRShape35: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRShape44: TQRShape; QRDBText22: TQRDBText; QRDBText23: TQRDBText; QRShape13: TQRShape; QRShape36: TQRShape; QRBand6: TQRBand; QRShape45: TQRShape; QRBand7: TQRBand; bt2: TQRLabel; QRLabel12: TQRLabel; QRSysData3: TQRSysData; QRBand8: TQRBand; QRLabel15: TQRLabel; QRLabel20: TQRLabel; QRLabel21: TQRLabel; QRLabel22: TQRLabel; QRLabel23: TQRLabel; QRLabel24: TQRLabel; QRShape46: TQRShape; QRShape47: TQRShape; QRShape48: TQRShape; QRShape49: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRShape52: TQRShape; QRShape54: TQRShape; QRShape55: TQRShape; QRLabel33: TQRLabel; QRShape79: TQRShape; QRLabel41: TQRLabel; QRShape80: TQRShape; QRShape81: TQRShape; QRShape82: TQRShape; QRBand9: TQRBand; QRShape130: TQRShape; QRExpr5: TQRExpr; QRExpr6: TQRExpr; QRExpr13: TQRExpr; QRLabel42: TQRLabel; QRExpr14: TQRExpr; QRShape131: TQRShape; QRShape132: TQRShape; QRShape133: TQRShape; QRShape134: TQRShape; QRShape135: TQRShape; QRLabel43: TQRLabel; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRSysData4: TQRSysData; QRLabel44: TQRLabel; QRBand11: TQRBand; QRLabel47: TQRLabel; QRExpr15: TQRExpr; QRExpr16: TQRExpr; QRExpr17: TQRExpr; QRExpr18: TQRExpr; QRShape139: TQRShape; QRShape140: TQRShape; QRShape141: TQRShape; QRShape142: TQRShape; QRShape143: TQRShape; QRShape37: TQRShape; QRShape38: TQRShape; QRShape39: TQRShape; QRShape5: TQRShape; QRShape40: TQRShape; QRShape41: TQRShape; QRLabel10: TQRLabel; QRDBText24: TQRDBText; QRExpr19: TQRExpr; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRExpr20: TQRExpr; QRExpr21: TQRExpr; QRExpr22: TQRExpr; QRShape42: TQRShape; QRLabel25: TQRLabel; QRLabel26: TQRLabel; QRLabel27: TQRLabel; QRLabel28: TQRLabel; QRLabel29: TQRLabel; QRLabel30: TQRLabel; QRLabel31: TQRLabel; QRLabel32: TQRLabel; QRLabel48: TQRLabel; QRLabel49: TQRLabel; QRShape43: TQRShape; QRShape50: TQRShape; QRLabel50: TQRLabel; QRShape51: TQRShape; QRShape21: TQRShape; QRShape53: TQRShape; QRShape14: TQRShape; QRShape56: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRShape69: TQRShape; QRShape74: TQRShape; QRShape20: TQRShape; QRShape75: TQRShape; QRShape7: TQRShape; Panel3: TPanel; QuickRep3: TQuickRep; QRBand12: TQRBand; QRDBText26: TQRDBText; QRDBText28: TQRDBText; QRDBText29: TQRDBText; QRDBText30: TQRDBText; QRShape77: TQRShape; QRShape78: TQRShape; QRShape83: TQRShape; QRShape84: TQRShape; QRShape85: TQRShape; QRShape86: TQRShape; QRDBText32: TQRDBText; QRDBText33: TQRDBText; QRShape87: TQRShape; QRShape88: TQRShape; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: QRBand13: TQRBand; QRShape89: TQRShape; QRBand15: TQRBand; QRLabel46: TQRLabel; QRLabel52: TQRLabel; QRLabel53: TQRLabel; QRLabel54: TQRLabel; QRShape90: TQRShape; QRShape92: TQRShape; QRShape99: TQRShape; QRShape101: TQRShape; QRShape102: TQRShape; QRShape112: TQRShape; QRLabel55: TQRLabel; QRShape122: TQRShape; QRLabel56: TQRLabel; QRShape123: TQRShape; QRShape124: TQRShape; rg: TRadioGroup; bt3: TQRLabel; QRLabel40: TQRLabel; QRSysData5: TQRSysData; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: ebm: TEdit; cbbm: TCheckBox; procedure FormCreate(Sender: TObject); procedure BitBtn3Click(Sender: TObject); procedure bcxClick(Sender: TObject); procedure BitBtn1Click(Sender: TObject); procedure cbxmClick(Sender: TObject); procedure cbgzClick(Sender: TObject); procedure FormClose(Sender: TObject; var Action: TCloseAction); procedure BitBtn4Click(Sender: TObject); procedure cbbmClick(Sender: TObject); private Private declarations public Public declarations end; var f_allcx: Tf_allcx; implementation 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: uses p_dm; $R *.dfm procedure Tf_allcx.FormCreate(Sender: TObject); begin with dm do begin /query1.Close; /qjcinfo1.Close; if not t_gzinfo.Active then t_gzinfo.Open; t_gzinfo.Filtered:=false; t_gzinfo.Filtered:=false; egz.KeyValue:=t_gzinfogzid; eyear.ItemIndex:=strtoint(formatdatetime(yy,now); fyue.ItemIndex:=0; tyue.ItemIndex:=strtoint(formatdatetime(mm,now)-1; query1.SQL.Clear; query1.sql.Add(select ryinfo.id,,sum(jcinfo.jkje1)+sum(jcinfo.jkje2) as zjkje,gzinfo.gzmc,jcinfo.nian, ); 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: query1.sql.Add(sum(lg) as zlg,sum(bg) as zbg,sum(gzje) as zgz,zgz-zjkje as ye from ryinfo,jcinfo,gzinfo); query1.SQL.Add(where ryinfo.id=jcinfo.id and ryinfo.gzid=gzinfo.gzid and jcinfo.nian=:nian group by ryinfo.id,,gzinfo.gzmc,jcinfo.nian); query1.Parameters.ParamValuesnian:=eyear.Text; query1.Open; /* qjcinfo1.SQL.Clear; qjcinfo1.SQL.Add(select * from jcinfo,gdinfo where jcinfo.gdid=gdinfo.gdid and nian=:nian and yue=:fyue and yue=:tyue and jcinfo.id=:id); qjcinfo1.Parameters.ParamValuesnian:=eyear.Text; qjcinfo1.Parameters.ParamValuesfyue:=fyue.Text; qjcinfo1.Parameters.ParamValuestyue:=tyue.Text; qjcinfo1.Parameters.ParamValuesid:=query1.id; qjcinfo1.SQL.Add(order by gzje); qjcinfo1.DataSource:=DataSource2; qjcinfo1.Open; end; f_allcx.ShowModal; end; 無憂無慮畢設網 ():畢業(yè)設計源碼下載 畢業(yè)設計源碼下載: procedure Tf_allcx.BitBtn3Click(Sender: TObject); begin bcx.Click; if rg.ItemIndex=0 then begin bt1.Caption:=所有工地項目明細表 +(+trim(eyear.Text)+年+trim(fyue.Text)+ +trim(tyue.text)+); quickrep1.Preview; end; if rg.ItemIndex=1 then begin bt2.Caption:=所有工地項目匯總

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論