In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Java how to achieve hospital reservation registration system, the article introduces in great detail, has a certain reference value, interested friends must read it!
I. brief introduction of the project
Functions: users can be divided into patients, doctors, administrators, patients can register and choose doctors to register, select dates, select number sources, doctors can receive doctors, administrators can maintain users and doctor information, and so on.
II. Project operation
Environment configuration: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (both supported by IntelliJ IDEA,Eclispe,MyEclispe,Sts)
Project technology: Jdbc+ Servlert + Jsp + css + JavaScript + JQuery + Ajax + Fileupload and so on.
Login interceptor code: / * login interceptor * @ author Administrator * / @ Componentpublic class LoginInterceptor implements HandlerInterceptor {private Logger log = LoggerFactory.getLogger (LoginInterceptor.class); @ Autowired private SiteConfig siteConfig; @ Override public boolean preHandle (HttpServletRequest request, HttpServletResponse response, Object handler) {String requestURI = request.getRequestURI (); HttpSession session = request.getSession () Session.setAttribute (SessionConstant.SESSION_USER_AUTH_KEY, AppConfig.ORDER_AUTH); Object attribute = session.getAttribute (SessionConstant.SESSION_USER_LOGIN_KEY); if (attribute = = null) {log.info ("user is not logged in or session is invalid, redirect to login page, current URL=" + requestURI) / / first determine whether the ajax request if (StringUtil.isAjax (request)) {/ / indicates that the ajax request try {response.setCharacterEncoding ("UTF-8") Response.getWriter () .write (JSON.toJSONString (CodeMsg.USER_SESSION_EXPIRED));} catch (IOException e) {/ / TODO Auto-generated catch block e.printStackTrace () } return false } / / description is an ordinary request, which can be directly redirected to the login page / / the user is not logged in or the session is invalid. Redirect to the login page try {response.sendRedirect ("/ system/login") } catch (IOException e) {/ / TODO Auto-generated catch block e.printStackTrace ();} return false;} log.info ("this request meets login requirements, release" + requestURI) If (! StringUtil.isAjax (request)) {/ / if it is not an ajax request, put the menu information into the page template variable User user = (User) attribute; List authorities = user.getRole () .getAuthorities (); request.setAttribute ("userTopMenus", MenuUtil.getTopMenus (authorities)) List secondMenus = MenuUtil.getSecondMenus (user.getRole (). GetAuthorities ()); request.setAttribute ("userSecondMenus", secondMenus); request.setAttribute ("userThirdMenus", MenuUtil.getChildren (MenuUtil.getMenuIdByUrl (requestURI,secondMenus), authorities)); request.setAttribute ("siteName", siteConfig.getSiteName ()) Request.setAttribute ("siteUrl", siteConfig.getSiteUrl ());} return true;}} Hospital appointment registration system background management page code: ${siteName! "} background management system home page
Backup file
${databaseBackupTotal! "0"}
Total number of users
${userTotal! "0"}
Current online users
${onlineUserTotal! "0"}
Operation log
${operatorLogTotal! "0"}
Doctor number, doctor name, patient name, department payment status. Home visit status ${orderReceiving.doctor.doctorDno} ${orderReceiving.doctor.user.name} ${orderReceiving.orderRegistration.patient.user.name} ${orderReceiving.doctor.department.name} unpaid Paid Not finished. Completed. $(document) .ready (function () {}) The above is all the contents of the article "how to realize the Hospital appointment Registration system in Java". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.