【JavaWeb】医院药品入库管理系统
生活随笔
收集整理的這篇文章主要介紹了
【JavaWeb】医院药品入库管理系统
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
本項(xiàng)目源碼
功能需求:
1)、設(shè)計登錄界面,記錄用戶登錄及退出日志;
2)、設(shè)計藥品入庫相應(yīng)界面及功能;
3)、設(shè)計通知發(fā)布相應(yīng)界面及功能,能夠發(fā)布諸如“醫(yī)院***新藥到貨”等通知;
4)、設(shè)計菜單、角色、用戶管理,動態(tài)管理這三類元素;
5)、錄入用戶信息時,包括姓名、出生日期、身份號碼、籍貫等數(shù)據(jù)項(xiàng),輸入籍貫的行政區(qū)劃時支持逐漸提示功能;輸入姓名時做數(shù)據(jù)校驗(yàn)。
6)創(chuàng)建數(shù)據(jù)表,編寫代碼插入3條記錄,每條記錄包括姓名、出生日期、照片(二進(jìn)制存儲)、照片(Base 64字符存儲)四項(xiàng),按姓名查找某條記錄,分別顯示上述四項(xiàng)數(shù)據(jù)。
實(shí)現(xiàn)思路(部分):
登錄的實(shí)現(xiàn)思路
查詢的實(shí)現(xiàn)思路
功能頁面:
1.登錄注冊
?2.日志
3.藥品入庫:
?4.通知發(fā)布
5.用戶信息以及圖片添加
登錄后臺的部分源碼:
if (ac.equals("login")) {// 獲取前臺填寫得賬號String username = request.getParameter("username");// 獲取前臺填寫得密碼String password = request.getParameter("pwd");// 判斷頁面上選擇的權(quán)限String utype = request.getParameter("cx");// 獲取填寫得驗(yàn)證碼String pagerandom = request.getParameter("pagerandom") == null ? "" : request.getParameter("pagerandom");// 獲取生成驗(yàn)證碼時保存在session 中得驗(yàn)證碼String random = (String) request.getSession().getAttribute("random");// 對比驗(yàn)證碼是否正確、不正確則輸出驗(yàn)證碼錯誤if (!pagerandom.equals(random) && request.getParameter("a") != null) {request.setAttribute("error", "驗(yàn)證碼錯誤");go("index.jsp", request, response);} else {String sql1 = "";if (utype.equals("員工")) {sql1 = "select * from yuangong where gonghao='" + username + "' and mima='" + password + "' ";}// 查詢數(shù)據(jù)庫中得信息判斷賬號密碼得正確性Map map = dao.find(sql1);// map 不為空則是登錄成功if (!map.isEmpty()) {// 獲取數(shù)據(jù)循環(huán)Iterator iter = map.keySet().iterator();// 設(shè)置sessionrequest.getSession().setAttribute("username", username);request.getSession().setAttribute("login", utype);request.getSession().setAttribute("cx", utype);while (iter.hasNext()) {// 這個循環(huán)設(shè)置用戶得信息進(jìn)session 中String key = (String) iter.next();String val = (String) map.get(key);request.getSession().setAttribute(key, val);}// 跳轉(zhuǎn)到index.jspgor("index.jsp", request, response);} else {// 否則提示賬號或密碼錯誤request.setAttribute("error", "賬號或密碼錯誤");go("index.jsp", request, response);}}}前端使用
bootstrap css 框架開發(fā)
javascript 腳本
jquery 插件
jquery.validate 表單驗(yàn)證插件
layer? 彈出窗插件,主要應(yīng)用于上傳文件
開發(fā)工具:eclipse 或 idea
服務(wù)器:tomcat8.0 以上
數(shù)據(jù)庫:mysql5.5
數(shù)據(jù)庫工具:navicat 10
環(huán)境:JDK8
有興趣的私信聯(lián)系
總結(jié)
以上是生活随笔為你收集整理的【JavaWeb】医院药品入库管理系统的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: yyuc视图未更新,控制器修改可以看到,
- 下一篇: 计算机领域车牌识别,城市智慧停车的智能眼