【正文】
屬性的值。 9) MouseUp 事件:當(dāng)在命令按鈕上釋放鼠標(biāo)按鈕時(shí)發(fā)生。 ( 2) 事件處理過程 命令按鈕 GotFoucs 事件處理過程為: Private Sub ObjectGotFocus( Index As Integer) 3) LostFocus 事件:當(dāng)一個(gè)對(duì)象失去焦點(diǎn)時(shí)發(fā)生 4) KeyDown 事件:當(dāng)命令按鈕具有焦點(diǎn)時(shí)按下一個(gè)鍵時(shí)發(fā)生 5) KeyUp 事件:當(dāng)命令按鈕具有焦點(diǎn)時(shí)釋放一個(gè)鍵時(shí)發(fā) 生。命令按鈕的 Click 事件僅對(duì)當(dāng)單擊鼠標(biāo)時(shí)發(fā)生。 6) Default 屬性 :決定哪一個(gè)命令按鈕控件是窗體的缺省命令按鈕 . 7) Font 屬性 :控制各種文字字體類型 . 8) Left,top,height,width 屬性 :設(shè)定控件的位置與大小 . 9) Style,picture 屬性 :決定按鈕的顯示方式是否為圖像形式出現(xiàn) . 10) Visible 屬性 :確定控件運(yùn)行時(shí)是否為可見 . 11) Index 屬性 :當(dāng)控件為一控件數(shù)組時(shí) ,此屬性值為該控件在數(shù)組的下標(biāo)值 . 12) DownPicture 屬性:設(shè)置 /返回一個(gè)對(duì)圖片的引用,該圖片在按鈕被單擊處于壓下狀態(tài)時(shí)顯示。 2) Enable 屬性:控制控件的激活狀態(tài)灰色或可用。 1. 2 系統(tǒng)簡(jiǎn)介 本系統(tǒng)采用 visual basic 與 Access 作為數(shù)據(jù)庫(kù)的方式編寫 ,主要服務(wù)于 超市庫(kù)存 管理人員的日常工作 . 主要由以下幾大功能模塊構(gòu)成 : 一 . 商品類型管理 :添加商品類型 ,修改商品類型 ,刪除商品類型 二 . 商品管理 :添加商品信息 ,修改商品信息 ,刪除商品信息 三 . 進(jìn)貨管理 :添加進(jìn)貨管理 ,修改進(jìn)貨管理 ,刪除進(jìn)貨管理 四 . 銷售管理 : 添加銷售管理 ,修改銷售管理 ,刪除銷售管理 五 . 報(bào)損管理 : 添加報(bào)損管理 ,修改報(bào)損管理 ,刪除報(bào)損管理 1. 3 開發(fā)軟件介紹 Visual Basic Micrsoft 公司出品的開發(fā)工具, Visual Basic 是一種可視化的,面向?qū)ο蟮?Windows 開發(fā)語(yǔ)言,它具有易用,通用和開發(fā)效率高的特點(diǎn)。 關(guān)鍵字 :超市進(jìn)銷存 管理 ,MIS,visual basic ,數(shù)據(jù)庫(kù) Abstract With economic development, social progress, the puter and went to work learning and our daily lives, we bee an indispensable tool in everyday life. As science and technology continue to improve, puter science increasingly mature, and its powerful functions for the people to deeply understand that it has entered human society in various fields and is playing an increasingly important role. It has to go down to the daily work and life, such as word processing, information management, aided design, graphics and video processing, as well as education and training game entertainment. All people without special training will be able to use puters to plete numerous plex. However, although now the world has been filled with an overabundance of software, but they still can not meet the special needs of the various users, it also had to develop software suited to their particular needs. Professional Windows application software development before the work is needed in many professional knowledge and petence through special training. Different now, even if you have not received strict procedures designed training, the use of Visual Basic also like to develop a powerful, and suited to their special needs applications. Visual Basic inherited Basic language learn userfriendly features, and are particularly suited to new learner learning Windows system programming. Supermarket Jinxiaocun management system using puter management Supermarket stocks a puter application and management of technology innovation in the puter before the inventory management are not yet universal manual written by the staff to operate. Supermarkets are now generally used puter intelligent management, using the puter as a tool for puter supermarket inventory management procedures to help managers more effectively supermarket inventory management. Supermarket Jinxiaocun management system is a typical management information system (MIS), including its main development background to the establishment and maintenance of the database and frontend application development 2. The request for the establishment of strong data consistency and integrity, good for the security of the data. For the latter request applications functions, such as easy to use features. After analysis, we use Microsoft visual basic development tool panies, the use of its various objectoriented development tools, especially data that can be easily accessible and concise window manipulation database intelligent objects, the first prototype application system in a short time and then, putation of the initial prototype system needs to constantly revise and improve until the formation of a viable system of user satisfaction. Because I limited capacity, coupled with time constraints, it designed the system may function relatively simple, and the system is single edition, not Inter operations work, which I have yet to learn that in future work to further improve. keyword : Supermarket Jinxiaocun management MIS,visual basic database 第一章 引言 1. 1 課題背景 超市進(jìn)銷存 管理系統(tǒng)用計(jì)算機(jī)管理 超市庫(kù)存進(jìn)出 管理的一種計(jì)算機(jī)應(yīng)用技術(shù)的創(chuàng)新 ,在計(jì)算機(jī)還未普及之前 庫(kù)存 管理都是由工作人員手工書寫的方式來操作的 .現(xiàn)在一般的 超市 都采用計(jì)算機(jī)智能化管理 ,采用計(jì)算機(jī)作為工具的實(shí)用的計(jì)算機(jī) 超市 庫(kù)存管理程序來幫助管理員進(jìn)行更有效的 超市庫(kù)存 管理工作。對(duì)于前者要求建立起數(shù)據(jù)一致性和完整性強(qiáng)、數(shù)據(jù)安全性好的庫(kù)?,F(xiàn)在不同了,即使你沒有接受過嚴(yán)格的程序設(shè)計(jì)訓(xùn)練,使用 Visual Basic 也一樣能夠開發(fā)出功能強(qiáng)大、適合自己特殊需求的應(yīng)用程序了。 它已經(jīng)深入到日常工作和生活的方方面面,比如文字處理、信息管理、輔助設(shè)計(jì)、圖形圖像處理、教育培訓(xùn)以及游戲娛樂等。 隨著科學(xué)技術(shù)的不斷提高 ,計(jì)算機(jī)科學(xué)日漸成熟 ,其強(qiáng)大的功能已為人們深刻認(rèn)識(shí) ,它已進(jìn)入人類社會(huì)的各個(gè)領(lǐng)域并發(fā)揮著越來越重要的作用。以前開發(fā) Windows 應(yīng)用軟件是專業(yè)人員的工作,需要掌握許多專業(yè)知識(shí)和經(jīng)過特 殊的培訓(xùn)才能勝任。 超市進(jìn)銷存 管理系統(tǒng) 是典型的信息管理系統(tǒng) (MIS),其開發(fā)主要包括后臺(tái)數(shù)據(jù)庫(kù)的建立和維護(hù)以及前端應(yīng)用程序的開發(fā)兩個(gè)方面。 因?yàn)楸救四芰τ邢?,加上時(shí)間緊迫,所以設(shè)計(jì)出來的本系統(tǒng)可能功能比較簡(jiǎn)單,另外本系統(tǒng)是單機(jī)版,不能實(shí)現(xiàn)網(wǎng)絡(luò)互聯(lián)操作 ,這些都有待于我在以后的工作學(xué)習(xí)中進(jìn)一步改進(jìn)。而對(duì)于后者則要求應(yīng)用程序功能完備 ,易使用等特點(diǎn)。在眾多的開發(fā)工具中,我們?yōu)槭裁匆x擇Visual 呢?因?yàn)?VB 具有眾多其它開發(fā)工具所沒有的優(yōu)點(diǎn)!具體介紹如下: ? 開發(fā)的高效 ? 語(yǔ)言的高效 ? 編譯的高 效 ? 執(zhí)行的高效 ? 維護(hù)的高效 基于以上理由,我們毫不憂郁的選擇了 做為我們的開發(fā)工具??! 主要的控件及其基本屬性,事件簡(jiǎn)介 ? 命令按鈕類的控件: 1) Caption 屬性:用來顯示在控件上的標(biāo)題。 5) Cancel 屬性:該屬性決定按鈕是否為一個(gè) ” 取消 ” 按鈕。 ? 命令按鈕類的事件: 1) 單擊事件―― Click 事件 ( 1) 觸發(fā)與適用 此事件是在一個(gè)命令按鈕對(duì)象上按下然后釋放一個(gè)鼠標(biāo)按鈕時(shí)發(fā)生。 2) 獲得焦點(diǎn)―― GotFocus 事件 ( 1) 觸發(fā)與適用 當(dāng)命令按鈕獲得焦點(diǎn)產(chǎn)生該事件,獲得焦點(diǎn)可以通過諸如Tab 切換或單擊對(duì)象之類的用戶動(dòng)作,或在代碼中用SetFocus 方法改變焦點(diǎn)來實(shí)現(xiàn)。 8) MouseMove 事件:當(dāng)命令按鈕上移動(dòng)鼠標(biāo)時(shí)發(fā)生。 3) Backstyle 屬性:用以指示標(biāo)簽是否透明 . 4) Bordstyle 屬性 :用以設(shè)定控件是否有邊框。 4) Scrollbars 屬性:該屬性決定是否為文本框加滾動(dòng)條。 8) Alignment 屬性:設(shè)定控件中的文本對(duì)其方式 9) Appearance 屬性:設(shè)定一個(gè)對(duì)象在運(yùn)行時(shí)是否可以 3D 效果顯示。 4) Index 屬性:屬性值表示為單選按鈕組成的控件中某個(gè)按鈕的索引值。 8) BackColor 屬 性:設(shè)置 /返回背景色。 12) DisabledPicture 屬性:設(shè)置 /返回一個(gè)對(duì)圖像的引用,該圖片在控件無(wú)效時(shí)顯示在控件中。 16) FontBold 屬性:設(shè)置 /返回字體粗體樣式。 20) FontName 屬性:設(shè)置 /返回控件中顯示文本所用的字體大小。 ? 單選按鈕類的常用事件: 1) Click 事件:鼠標(biāo)單擊控件時(shí)發(fā)生。 5) GotFocus 事件: 當(dāng)獲的對(duì)象焦點(diǎn)時(shí)發(fā)生。 9) KeyPress 事件:當(dāng)用戶按下或釋放 ANSI 一個(gè)鍵時(shí)發(fā)生。 ? 復(fù)選按鈕類的控件: 1) Caption 屬性:缺省為 check1? 。 7) DataFormat 屬性:設(shè)置或返回 DataFormat 對(duì)象,用于數(shù)據(jù)綁定。 11) DragIcon 屬性:設(shè)置或返回圖標(biāo),它將在拖放操作中做為指針顯示。 15) Value 屬性:設(shè)置或返回控件的狀態(tài)。 4) GotFocus 事件:在對(duì)象獲的焦點(diǎn)時(shí)發(fā)生。 2) Mutselect 屬性 :可以設(shè)置列表框?yàn)閱芜x或允許多選屬性 . 3) Selectd 屬性 :標(biāo)示一個(gè)數(shù)組 ,數(shù)組各 元素為 : 4) Selected(0),selected(1)?