• 大小: 3.55MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-19
  • 语言: Java
  • 标签: SSM  Java  

资源简介

该项目使用的SSM框架,项目系统是医院病人管理系统。系统菜单是通过数据库数据动态加载到前端(通过自定义taglib动态显示)。在eclipse里部署好,tomcat和maven属性都配置好后,启动该项目就可以了。html页面会自己弹出来的:http://localhost:8080/Hospital/。页面样式在应用项目的:/Hospital/src/main/webapp/assets路径里。

资源截图

代码片段和文件信息

package com.dy.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONobject;
import com.dy.model.Advice;
import com.dy.model.Case;
import com.dy.model.Doctor;
import com.dy.model.Fee;
import com.dy.model.Medicinal;
import com.dy.model.Order;
import com.dy.model.Patient;
import com.dy.service.AdviceService;
import com.dy.service.CaseService;
import com.dy.service.DoctorService;
import com.dy.service.FeeService;
import com.dy.service.ManagerService;
import com.dy.service.MedicinalService;
import com.dy.service.OrderService;
import com.dy.service.PatientService;
import com.dy.service.SubjectService;
import com.dy.service.UserService;
import com.dy.util.DataUtils;


@Controller  
@RequestMapping(“/doctor“)  
public class DoctorController {

  @Resource  
    private UserService userService;  
    @Resource  
    private ManagerService managerService; 
    @Resource  
    private PatientService patientService; 
    @Resource  
    private DoctorService doctorService; 
    @Resource  
    private OrderService orderService; 
    @Resource  
    private SubjectService subjectService; 
    @Resource  
    private CaseService caseService; 
    @Resource  
    private AdviceService adviceService; 
    @Resource  
    private FeeService feeService; 
    @Resource  
    private MedicinalService medicinalService; 
    
    @RequestMapping(“/doctorMain“)  
    public String doctorMain(HttpServletRequest requestModel model){
     return “main-doc“;  
    }  
    
    @RequestMapping(“/doctorOrderManager“)  
    public String doctorOrderManager(HttpServletRequest requestModel model){
     Integer currUserid =  (Integer) request.getSession().getAttribute(“currUserid“);
     Doctor doctor = doctorService.selectByuserid(currUserid);
     Order ord = new Order();
     ord.setDoctorid(doctor.getDoctorid());
     List orderlist = orderService.searchOrder(ord);
     List ordermap = new ArrayList();
     if(null!=orderlist){
     for(Order od:orderlist){
     Map map = new HashMap();
     map.put(“orderid“ od.getOrderid());
     map.put(“patientid“ od.getPatientid());
     map.put(“patientname“ patientService.selectByPrimaryKey(od.getPatientid()).getName());
     map.put(“orderdate“ od.getOrderdate());
     map.put(“orderstate“ od.getOrderstate());
     ordermap.add(map);
     }
     }
     model.addAttribute(“orderlist“ ordermap);
     return “doc-order-manager“;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1394  2017-07-29 09:48  Hospital\.classpath

     文件       1425  2017-07-23 00:03  Hospital\.project

     文件        575  2017-07-11 21:37  Hospital\.settings\.jsdtscope

     文件       1506  2017-07-11 21:37  Hospital\.settings\.svn\all-wcprops

     文件       1709  2017-07-23 00:01  Hospital\.settings\.svn\entries

     文件        575  2017-07-11 21:37  Hospital\.settings\.svn\text-base\.jsdtscope.svn-base

     文件         57  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.core.resources.prefs.svn-base

     文件        430  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.jdt.core.prefs.svn-base

     文件         90  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.m2e.core.prefs.svn-base

     文件        557  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.wst.common.component.svn-base

     文件        252  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.wst.common.project.facet.core.xml.svn-base

     文件         49  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.container.svn-base

     文件          6  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.name.svn-base

     文件         50  2017-07-11 21:37  Hospital\.settings\.svn\text-base\org.eclipse.wst.validation.prefs.svn-base

     文件         57  2017-07-23 00:01  Hospital\.settings\org.eclipse.core.resources.prefs

     文件        430  2017-07-11 21:37  Hospital\.settings\org.eclipse.jdt.core.prefs

     文件         90  2017-07-11 21:37  Hospital\.settings\org.eclipse.m2e.core.prefs

     文件        557  2017-07-11 21:37  Hospital\.settings\org.eclipse.wst.common.component

     文件        252  2017-07-11 21:37  Hospital\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2017-07-11 21:37  Hospital\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2017-07-11 21:37  Hospital\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件         50  2017-07-11 21:37  Hospital\.settings\org.eclipse.wst.validation.prefs

     文件        347  2017-07-23 00:03  Hospital\.springWebflow

     文件        384  2017-07-11 21:37  Hospital\.svn\all-wcprops

     文件        739  2017-09-20 21:33  Hospital\.svn\entries

     文件       1240  2017-07-11 21:37  Hospital\.svn\text-base\.classpath.svn-base

     文件       1217  2017-07-11 21:37  Hospital\.svn\text-base\.project.svn-base

     文件       6893  2017-07-11 21:37  Hospital\.svn\text-base\pom.xml.svn-base

     文件       6986  2017-07-29 09:48  Hospital\pom.xml

     文件         86  2017-07-11 21:37  Hospital\src\.svn\all-wcprops

............此处省略1566个文件信息

评论

共有 条评论