【正文】
The work logistics warehousing system based on JSP ZhangYuan Departm of Computer, Binjiang College, NUIST, Nanjing 210044, China Abstract: Rational use of puter management system is an important indicator of business towards modernization, it will bee a modern merchandise management means necessary. It applies not only can simplify storage management, standardized information management products, and can make it more simple, clear, reduce labor intensity of staff, to avoid the trouble of doing statistical management information to eliminate the errors caused in management . This paper describes the design and implementation of logistics centers Warehouse Information Management System. Reception of the system design and implementation by the JSP, SQL Sever 2021 data server as a background, not only increases system integrity, and improve system responsiveness. The system interface is simple and practical, simple operation, suitable for general logistics center for storage information management. It can be achieved out of storage statistics, inventory control and other intelligent management and improve efficiency. At the same time, by browsing a single storage and warehouse, goods can 。作為新世紀(jì)的大學(xué)生,應(yīng)當(dāng)站在世界的發(fā)展前列,掌握現(xiàn)代科學(xué)技術(shù)知識,調(diào)整自己的知識結(jié)構(gòu)和能力結(jié)構(gòu),以適應(yīng)社會發(fā)展的要求。管理信息系統(tǒng)專業(yè)的畢業(yè)設(shè)計任務(wù)繁重,但正是在這幾個月緊張而充實的設(shè)計中,我感到自己的知識得到了一次升華,我相信:我的畢業(yè)設(shè)計會給我的四年大學(xué)畫上一個圓滿的句號。我會在以后的工作和學(xué)習(xí)中不斷完善自己,為我最熱愛的母校爭光,為自己翻開輝煌的新篇章。 還要感謝在大學(xué)四年生活中給予我關(guān)心和幫助的老師和同學(xué),是他們教會了我專業(yè)的知識和做人的道理。在此特別感謝徐昕老師的大力幫助。所以對于一個已知的結(jié)果要做出最有利的分析對于以后的調(diào)試是有大幫助的。我對于編程的知識問題也有了本質(zhì)上的改進,所以在調(diào)試問題上,最好的手段還是長久的運行下去的,對于工作人員的要求也要考慮到。雖然做出了細致的設(shè)計,但是當(dāng)遇到實際的操作時候還是會發(fā)生很多意向不到的問題,更重要的是做出的系統(tǒng)的目的是解決實際的問題,所以在日后為了更好的運行程序還是要不斷的維護與測試的。 // 跳轉(zhuǎn)物資查詢頁面 (admin/goods/).forward(req, res)。 (chandi, chandi)。 } ()。 } ()。 ((guige))。 ((chandi))。 ((name))。 while(()) { Tgoods goods=new Tgoods()。 try { (sql, params)。 Object[] params={}。%+chandi+%39。amp。%+goodsName+%39。amp。 if (chandi == null)chandi = 。 String chandi = (chandi)。 String where= 。如圖 58 物資查詢模塊代碼 private void goodsQuery(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { List goodsList=new ArrayList()。 (admin/order/).forward(req, res)。 (name, name)。 (riqi, riqi)。 } catch(Exception e) { ()。 (list)。 ((kehu_name))。 ((riqi))。 ((id))。 ResultSet rs=()。 DB mydb=new DB()。(sql)。no39。%+name+%39。amp。%+bianhao+%39。amp。%+riqi+%39。amp。 String name = (name)。 // 獲取頁面查詢字段的值 String riqi = (riqi)。如圖 58 訂單查詢模塊代碼: public void orderQuery(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException { List orderList=new ArrayList()。 (admin/kucun/).forward(req, res)。 } ()。 ()。 ((name))。 rs=()。 Object[] params3={(i)}。 (kucunshuliang)。 Zkucun kucun=new Zkucun()。i()。 } ()。 ResultSet rs=()。 DB mydb=new DB()。 group by goodsId。 // 查詢 del字段 =no值的物資 id,然后根據(jù)物資 id分組 String sql=select goodsId from t_ruku where del=39。如圖 571 圖 圖 571 庫存管理模塊代碼 : // 就是庫存管理的查詢 public void kucun(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException { 管理員 查詢物資庫存 Y 物資 50 數(shù)量小于 50時進行系統(tǒng)報警處理 查詢結(jié)果 List kucunList=new ArrayList()。 // 跳轉(zhuǎn)出庫 管理頁面 (admin/chuku/).forward(req, res)。 } ()。 } ()。//7 ((beizhu))。//5 ((zongjiage))。//3 ((shijian))。//2 ()。 ()。 (sql1, params1)。 and id=?。//1 String sql1=select * from t_goods where del=39。 ((id))。 ResultSet rs=()。 DB mydb=new DB()。no39。如圖 56 出庫管理模塊代碼 : // 出庫管理的方法模塊 public void chukuMana(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException { List chukuList=new ArrayList()。 dispatch(targetURL, req, res)。 (path, ruku?type=rukuMana)。 ()。 DB mydb=new DB()。 // 入庫的 sql語句 String sql=insert into t_ruku values(?,?,?,?,?,?,?,?)。 String jingshouren=(jingshouren)。 int shuliang=((shuliang))。如圖 55 入庫管理模塊代碼 // 入庫增 加的代碼方法 public void rukuAdd(HttpServletRequest req,HttpServletResponse res) { // 獲取頁面提交參數(shù) int goodsId=((goodsId))。 dispatch(targetURL, req, res)。 (path, goods?type=goodsMana)。 // 關(guān)閉數(shù)據(jù)庫鏈接 ()。 // 創(chuàng)建 數(shù)據(jù)庫對象 DB mydb=new DB()。 String sql=insert into t_goods values(?,?,?,?,?,?)。 String guige=(guige)。 String chandi=(chandi)。 } 圖 53 物資管理系統(tǒng)模塊首先是對現(xiàn)有所有物資的查詢,在展示結(jié)果頁面的基礎(chǔ)上可進行對現(xiàn)有物資的添加和刪除操作。 String targetURL = /mon/。 (message, 操作成功 )。 (sql, params)。 Object[] params={bianhao,riqi,jine,kehu_name,del}。 String del=no。 int jine=((jine))。如圖 53 /** * 訂單增加的后臺代碼 */ public void orderAdd(HttpServletRequest req,HttpServletResponse res) { // 獲取頁面提交的訂單信息 String bianhao=(bianhao)。倉儲管理員可對已有的訂單進行搜索查詢,也可以在系統(tǒng)后臺進行添加或者刪除訂單信息。最后還有對于結(jié)賬時的收款和付款問題。 主要在系統(tǒng)中能夠得到有效實現(xiàn)的功能有這些,對于已有訂單的查詢,還有接受訂單的管理,同時也可以進行物流的錄入與管理。 } } return result。 ()。 } ()。 (userType, 0)。 WebContext ctx = ()。 ((userName))。 // 緩存數(shù)據(jù)庫用戶登陸信息 TAdmin admin=new TAdmin()。 if(mark==false) { result=no。 try { // 數(shù)據(jù)庫查詢結(jié)果接收 ResultSet rs=()。 // 創(chuàng)建數(shù)據(jù)庫對象 DB mydb=new DB()。 if(userType==0)//系統(tǒng)管理員登陸 { // 根據(jù)用戶名和用戶密碼查詢數(shù)據(jù)庫用戶信息的 SQL String sql=select * from t_admin where userName=? and userPw=?。 表 6 訂單信息表 字段名稱 數(shù)據(jù)類型 可否為空 說明 bianhao varchar(50) NOT NULL 訂單編號 riqi varchar(50) NOT NULL 訂單日期 jine int NOT NULL 訂單金額 kehu varchar(50) NOT NULL 客戶信息 5 系統(tǒng)設(shè)計 登錄頁面 倉儲管理員后臺系統(tǒng)登陸界面,輸入登陸賬號和密碼,系統(tǒng)訪問本地數(shù)據(jù)庫驗證信息,驗證通過進入管理頁面,驗證失敗系統(tǒng)彈框提示賬號或密碼錯誤 .。 在這里系統(tǒng)的 ER圖如下 42: 圖 系統(tǒng) ER 圖 1. 管理員表 ,該表包含 管理員 ID賬號和密碼 表 1 管理員表