• 大小: 3.8MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-10
  • 语言: 其他
  • 标签:

资源简介

医院挂号管理系统,挂号管理系统,https://blog.csdn.net/qq_40374604

资源截图

代码片段和文件信息

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“;  
    }
    @RequestMapping(“/doctorAcceptOrder“)  
    @ResponseBody
    public JS

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-26 15:16  Hospital-master\
     文件           0  2018-12-25 16:45  Hospital-master\123.txt
     目录           0  2019-04-26 15:16  Hospital-master\Hospital\
     文件        1766  2019-04-26 15:25  Hospital-master\Hospital\.classpath
     文件        1377  2019-04-26 15:16  Hospital-master\Hospital\.project
     目录           0  2019-04-26 15:16  Hospital-master\Hospital\.settings\
     文件         562  2018-12-25 16:45  Hospital-master\Hospital\.settings\.jsdtscope
     目录           0  2019-04-26 15:16  Hospital-master\Hospital\.settings\.svn\
     文件        1506  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\all-wcprops
     文件        1709  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\entries
     目录           0  2019-04-26 15:16  Hospital-master\Hospital\.settings\.svn\text-base\
     文件         562  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\.jsdtscope.svn-base
     文件          55  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.core.resources.prefs.svn-base
     文件         422  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.jdt.core.prefs.svn-base
     文件          86  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.m2e.core.prefs.svn-base
     文件         548  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.wst.common.component.svn-base
     文件         245  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.wst.common.project.facet.core.xml.svn-base
     文件          49  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.container.svn-base
     文件           6  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.wst.jsdt.ui.superType.name.svn-base
     文件          48  2018-12-25 16:45  Hospital-master\Hospital\.settings\.svn\text-base\org.eclipse.wst.validation.prefs.svn-base
     文件         422  2018-12-25 16:45  Hospital-master\Hospital\.settings\org.eclipse.jdt.core.prefs
     文件          86  2018-12-25 16:45  Hospital-master\Hospital\.settings\org.eclipse.m2e.core.prefs
     文件         641  2019-04-26 15:18  Hospital-master\Hospital\.settings\org.eclipse.wst.common.component
     文件         167  2019-04-26 15:16  Hospital-master\Hospital\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         298  2019-04-26 15:16  Hospital-master\Hospital\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-12-25 16:45  Hospital-master\Hospital\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-12-25 16:45  Hospital-master\Hospital\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件          48  2018-12-25 16:45  Hospital-master\Hospital\.settings\org.eclipse.wst.validation.prefs
     文件         336  2018-12-25 16:45  Hospital-master\Hospital\.springWebflow
     目录           0  2019-04-26 15:16  Hospital-master\Hospital\.svn\
     文件         384  2018-12-25 16:45  Hospital-master\Hospital\.svn\all-wcprops
............此处省略1273个文件信息

评论

共有 条评论