




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
報告課題:倉庫管理系統姓名:王昊齊指導教師:王強學院:信息工程學院 的和意義藥品,因此倉庫的管理成了一項十分重要的工作。快速,高效,便捷的管理倉庫受到了高度的關注。能進行入庫和出庫操作等。通過倉庫管理系統的設計與實現,使我們鞏固和加的能力。有:●用戶登錄。實現根據不同用戶的權限進行登錄,并轉到相應權限的操作。、修改、刪除用戶;一般用戶修改信息等功能。●貨物管理。實現管理人員對貨物進庫、退庫的添加、修改、刪除等功能。員對貨物進行入庫、出庫操作,并可查詢相理員最高儲備和最低儲備字段,對倉庫中的產品實現監控和報警。計圖EmpInfo)表存系統中用戶的帳號、密碼等信息Goods表放貨物的相關信息(Company)表售商的角色)信息JhGoodsInfo)表放入庫貨物的相關信息llGoods表放出庫貨物的相關信息息表(ThGoodsInfo)表放退貨的相關信息設計dameginNameex2ithdayept門osthonehoneMdress地址emarkDodsNameumptName庫it位ime間RemarkName公司名稱irect公司負責人Phone公司電話Fax公司傳真ddress公司地址markDDmricesNeedPriceTimetName倉庫markDDs模塊panyInfocs改添加刪除銷售商信息ataBackcs份ataReolecs原Infocs改添加刪除員工信息indGoodcs物信息onYingShangcs信息oodIDcs稱hGoodsInfocscGoodFindcs件cGoodscs存信息及設置警報數量incsaincs界面ellGoodInfocs息ellGoodscs修改添加刪除商品銷售信息hGoodsInfocs改添加刪除商品銷售信息Programcs主入口點細設計添加入庫信息的實現添加入庫信息設計:進入主界面后,點擊【進貨管理】----【商品進貨信息】即可打開添加入庫界面。下面給出完成添加功能的關鍵代碼:publicpartialclassfrmJhGoodsInfo:Form{publicfrmJhGoodsInfo(){tializeComponent}publicfrmJhGoodsInfo(intintCdo){tializeComponent}tbJhGoodsInfojhGoodnewtb_JhGoodsInfo();tb_JhGoodsInfoMenthodjhMenthod=newtb_JhGoodsInfoMenthod();publicstaticintintFalg=0;privatevoidControlStatus(){thistoolSaveEnabled=!this.toolSave.Enabled;thistoolAddEnabled=!this.toolAdd.Enabled;thistoolCancelEnabled=!this.toolCancel.Enabled;thistoolAmendEnabled=!this.toolAmend.Enabled;thistollDeleteEnabled=!this.tollDelete.Enabled;}存查詢類的實現庫存查詢界面:界面。的空白區域。完成庫存查詢功能的核心代碼:namespaceCHEXC{publicpartialclassfrmKcGoodFind:Form{publicfrmKcGoodFind(){tializeComponent}tbKcGoodsMenthodtbGoodMenthd=newtb_KcGoodsMenthod();tbKcGoodskcgood=newtb_KcGoods();privatevoidbutton1_Click(objectsender,EventArgse){ifcomboBox.Text==""){eturn}iftxtkeyText==""){MessageBoxShow輸入查詢信息");eturn}omboBoxText{case/"商品編號":kcgoodstrGoodsID=txtkey.Text;tbGoodMenthdtbThGoodsFind(dataGridView1,1,kcgood);break;case/商品名稱"kcgoodstrKcGoodsName=txtkey.Text;tbGoodMenthdtbThGoodsFind(dataGridView1,kcgoodbreak;}}privatevoidfrmKcGoodFind_Load(objectsender,EventArgse){}}}設計主界面:菜單欄、工作區、狀態欄等。功能界面:全部為主界面的子界面,并完成相互獨立的功能。及功能概述2.1登陸界面:程面;如果賬號或密碼錯誤則會彈出錯誤提示,要求用戶重新輸入。2.2用戶主界面:2.3添加用戶界面:2.4商品退貨界面:2.5商品銷售信息界面:2.6商品庫存界面:2.7供應商信息界面:業開始應用計算機來增強管理,提高效益。計算機軟件作為計算機系統的兩大組成部分之一,看起來更接近普通用戶;戶,人們總是更傾向于使用一個操作方便的軟件系統。求,再設計一個相對方便操作的用戶界面。在這兩個方面集成開發環境(IDE)的作用顯得十分突出,MicrosoftVisualStudio2005是一套非常強大的開發套件,利用它可以快速的開發出界面友好,功能強大的軟件系統。戶查詢等操作,且系統運行比較穩定。個過程中我也學到了很多東西,對C#,數據庫都有了更深入的理解,可以較熟練地使用VS2005開發軟件,也增強了分析問題、解決問題的能力,總的來說這次畢業設計使我受益頗多。謝辭在論文完成之際,向我的老師王強老師表示深深的敬意!好多知識,學會了能夠透徹的分析問題解決問題的能力。決問題和處理問題的能力,為我在今后的工作和生活中打下了基礎。附錄usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingCHEXC.ClassInfo;usingCHEXC.GoodMenhod;usingSystem.Data.SqlClient;namespaceCHEXC{publicpartialclassfrmJhGoodsInfo:Form{publicfrmJhGoodsInfo(){tializeComponent}publicfrmJhGoodsInfo(intintCdo){tializeComponent}tbJhGoodsInfojhGoodnewtb_JhGoodsInfo();tb_JhGoodsInfoMenthodjhMenthod=newtb_JhGoodsInfoMenthod();publicstaticintintFalg=0;privatevoidControlStatus(){thistoolSaveEnabled=!this.toolSave.Enabled;thistoolAddEnabled=!this.toolAdd.Enabled;thistoolCancelEnabled=!this.toolCancel.Enabled;thistoolAmendEnabled=!this.toolAmend.Enabled;thistollDeleteEnabled=!this.tollDelete.Enabled;}publicvoidClearContorl(){txtGoodsNumText"";txtGoodsRemark.Text="";txtGoodsSellPrice.Text="";txtJhCompName.Text="";txtGoodsNoPriceText"";txtGoodsNeedPrice.Text="";txtGoodsNameText"";txtGoodsJhPriceText"";txtGoodsID.Text="";txtEmpId.Text="";cmbDepotNameText";}publicintgetIntCount(){intintReslut0;if(intFalg==1){iftxtGoodsIDText""){returnintReslut}iftxtGoodsNameText==""){returnintReslut}iftxtJhCompNameText==""){returnintReslut}iftxtEmpIdText==""){returnintReslut}iftxtGoodsNumText""){returnintReslut}iftxtGoodsNameText==""){returnintReslut}}ifintFalg2){iftxtGoodsIDText""){MessageBox.Show("商品編號不能為空!,選擇要修改記;returnintReslut}}ifintFalg=3){iftxtGoodsIDText""){MessageBox.Show("商品編號不能為空!,選擇要刪除記);returnintReslut}}jhGood.strGoodsID=txtGoodsID.Text;jhGood.strEmpId=txtEmpId.Text;jhGood.strJhCompName=txtGoodsName.Text;jhGood.strDepotName=cmbDepotName.Text;jhGood.strGoodsNum=Convert.ToInt32(txtGoodsNum.Text);jhGood.strGoodsName=txtGoodsName.Text;jhGood.strGoodsUnit=cmbGoodsUnit.Text;jhGood.deGoodsJhPrice=txtGoodsJhPrice.Text;jhGood.deGoodsNeedPrice=txtGoodsNeedPrice.Text;jhGood.deGoodsNoPrice=txtGoodsNoPrice.Text;jhGood.deGoodsSellPrice=txtGoodsSellPrice.Text;jhGood.strGoodsRemark=txtGoodsRemark.Text;jhGood.DaGoodTime=dateTimePicker1.Value;if(intFalg!=3){jhGood.Falg=0;}{jhGood.Falg=1;}intReslut=1;returnintReslut}privatevoidfrmJhGoodsInfo_Load(objectsender,EventArgse){jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);}privatevoidFillControls(){y{SqlDataReadersqldr=jhMenthod.tb_JhGoodsInfoFind(this.dataGridView1[0,thisdataGridViewCurrentCell.RowIndex].Value.ToString(),1);dldrHasRows{txtEmpIdTextsqldr1].ToString();txtGoodsNameTextsqldr4].ToString();cmbDepotNameTextsqldr[3].ToString();txtGoodsNumTextsqldr5].ToString();cmbGoodsUnitTextsqldr6].ToString();txtGoodsJhPriceTextsqldr7].ToString();txtGoodsNeedPriceTextsqldr9].ToString();txtGoodsNoPriceTextsqldr10].ToString();txtGoodsSellPriceTextsqldr8].ToString();txtGoodsRemarkTextsqldr11].ToString();txtJhCompNameTextsqldr[2].ToString();txtGoodsIDTextsqldr[0].ToString();txtGoodsIDEnabledfalse;}}tchExceptionee{MessageBoxShoweeToString));}}privatevoidcomboBox1_SelectedIndexChanged(objectsender,EventArgs{}privatevoidtoolAdd_Click(objectsender,EventArgse){lStatusontorlintFalg添加標記txtGoodsIDTextjhMenthod.JhGoodsID();txtGoodsIDEnabledfalse;}privatevoidtoolAmend_Click(objectsender,EventArgse){lStatusontorlintFalg添加標記}privatevoidtoolrefulsh_Click(objectsender,EventArgse){lStatusontorl}privatevoidtoolExit_Click(objectsender,EventArgse){thisClose);}privatevoidtoolCancel_Click(objectsender,EventArgse){lStatusontorl}privatevoidtoolSave_Click(objectsender,EventArgse){if(getIntCount()==1){if(intFalg==1){ifjhMenthodtbJhGoodsInfoMenthodAddjhGood=2){MessageBoxShow成功","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}{MessageBoxShow失敗","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}}ifintFalg2){ifjhMenthodtbJhGoodsInfoMenthodUpdatejhGood1){MessageBoxShow成功","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}{MessageBoxShow失敗","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}}ifintFalg=3){ifjhMenthodtbJhGoodsInfoMenthodDeletejhGood=1){MessageBoxShow成功","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}{MessageBoxShow失敗","提示");intFalg;jhMenthod.tb_JhGoodsInfoFind("",5,dataGridView1);lStatusontorl}}}}privatevoiddataGridView1_CellClick(objectsender,DataGridViewCellEventArgse){ifintFalg=2||intFalg==3){illControls}}privatevoidtxtGoodsJhPrice_TextChanged(objectsender,EventArgse){iftxtGoodsNumText""){txtGoodsNeedPrice.Text=ConvertToStringConvertToInttxtGoodsJhPriceTextConvert.ToInt32(txtGoodsNum.Text));}}privatevoidtxtGoodsSellPrice_KeyPress(objectsender,KeyPressEventArgse){ifeKeyChar8&&!char.IsDigit(e.KeyChar)&&e.KeyChar!='.'){MessageBoxShow輸入數字");dledtrue}}privatevoidtxtGoodsNum_KeyPress(objectsender,KeyPressEventArgse){ifeKeyChar8&&!char.IsDigit(e.KeyChar)){MessageBoxShow輸入數字");dledtrue}}privatevoidtxtGoodsJhPrice_KeyPress(objectsender,KeyPressEventArgs{ifeKeyChar8&&!char.IsDigit(e.KeyChar)&&e.KeyChar!='.'){MessageBoxShow輸入數字");dledtrue}}privatevoidtxtGoodsNoPrice_KeyPress(objectsender,KeyPressEventArgs{ifeKeyChar8&&!char.IsDigit(e.KeyChar)&&e.KeyChar!='.'){MessageBoxShow輸入數字");dledtrue}}/供應商信息privatevoidbutton1_Click(objectsender,EventArgse){mGonYingShangfrmgo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 湖北國土資源職業學院《水族景觀規劃與設計實驗》2023-2024學年第二學期期末試卷
- 四川省南充市順慶區2024-2025學年初三下學期教學情況調研(一)化學試題試卷含解析
- 浙江省安慶市2024-2025學年四年級數學第二學期期末統考試題含解析
- 河南職業技術學院《影視文化》2023-2024學年第二學期期末試卷
- 天府新區信息職業學院《辦公空間設計》2023-2024學年第二學期期末試卷
- 四川省廣安市鄰水縣重點名校2024-2025學年中考語文試題命題比賽模擬試卷(14)含解析
- 汽車配件零售店市場營銷策劃考核試卷
- 畜牧養殖廢棄物處理與資源化利用技術的研究與開發考核試卷
- 電子清洗設備考核試卷
- 律師體育賽事轉播權法律事務考核試卷
- 石家莊市存量房買賣合同
- 高一離子方程式書寫專題訓練及答案
- 張元鵬《微觀經濟學》(中級教程)筆記和課后習題詳解
- 如何有效管理90-00后新員工技巧方法-123課件
- 第十三講 全面貫徹落實總體國家安全觀PPT習概論2023優化版教學課件
- 人教版語文能力層級-·-教材-·-中考
- 浙江省公安民警心理測驗考試題目
- ds-c10h多屏控制器軟件用戶手冊
- GB/T 41771.1-2022現場設備集成第1部分:概述
- GB/T 4822-2015鋸材檢驗
- 道路旅客運輸經營申請表
評論
0/150
提交評論