• 大小: 13.65MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-06-18
  • 语言: Java
  • 标签: javaweb  

资源简介

前台基于bootstrap+jquery实现,后台有struts、spring、mybatis MVC架构实现的javaweb诊所管理系统。实现了注册、登录、病员挂号、病员就诊、医生开诊单、收费、诊后随访等功能.

资源截图

代码片段和文件信息

package com.clinic.action;

import java.util.Date;

import org.apache.struts2.ServletActionContext;

import com.clinic.domain.Drug;
import com.clinic.domain.DrugList;
import com.clinic.domain.DrugRecord;
import com.clinic.domain.Registration;
import com.clinic.domain.Revenue;
import com.clinic.domain.TreatedVisit;
import com.clinic.domain.Treatment;
import com.clinic.persistence.DataFactory;
import com.opensymphony.xwork2.ActionSupport;

public class AjaxAction extends ActionSupport {

private int personId;
private int registrationId;
private String healthDescription = ““;
private String treatedDescription = ““;
private int treatmentId;
private String result;
private String suggestion;
private String drugList;

public String addRegistration() throws Exception {
DataFactory dataFactory = new DataFactory();

Registration registration = new Registration();
registration.setPersonId(personId);
registration.setRegistrationFee(5);
registration.setDate(new Date());
registration.setHealthDescription(healthDescription);

dataFactory.insertRegistration(registration);
result = “挂号成功“;
ServletActionContext.getResponse().setContentType(“text/html;charset=utf-8“);
ServletActionContext.getResponse().getWriter().print(result);
return null;
}

public String addTreatedVisit() throws Exception {
DataFactory dataFactory = new DataFactory();

TreatedVisit treatedVisit = new TreatedVisit();
treatedVisit.setPersonId(personId);
treatedVisit.setTreatmentId(treatmentId);
treatedVisit.setDate(new Date());
treatedVisit.setTreatedDescription(treatedDescription);

dataFactory.insertTreatedVisit(treatedVisit);
result = “添加诊后随访成功“;
ServletActionContext.getResponse().setContentType(“text/html;charset=utf-8“);
ServletActionContext.getResponse().getWriter().print(result);
return null;
}

public String addTreatment() throws Exception {
DataFactory dataFactory = new DataFactory();
// 插入就诊记录
Treatment treatment = new Treatment();
treatment.setDate(new Date());
treatment.setHealthDescription(healthDescription);
treatment.setPersonId(personId);
treatment.setRegistrationId(registrationId);
treatment.setSuggestion(suggestion);
dataFactory.insertTreatment(treatment);
// 根据RegistrationId、PersonId 取出treatment
treatment = dataFactory.findTreatment(personId registrationId);
// 插入drugList
DrugList drugRecords = new DrugList();
drugRecords.setPersonId(personId);
drugRecords.setDate(new Date());
drugRecords.setTreatmentId(treatment.getId());
drugRecords.setDescription(healthDescription);
double listRevenue = 0.0;
double totalCost = 0.0;
// 根据drugId取出drug,在修改drug数量
String[] drugs = drugList.split(““);
for (String drug : drugs) {
int drugId = Integer.parseInt(drug.split(“:“)[0]);
int number = Integer.parseInt(drug.split(“:“)[1]);
Drug temp = dataFactory.findDrugById(drugId);
int currentNumb

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         529  2016-12-24 14:08  clinicManagement\.classpath
     目录           0  2016-12-24 14:07  clinicManagement\.myeclipse\
     文件         321  2016-12-30 20:50  clinicManagement\.mymetadata
     文件        1759  2016-12-24 14:32  clinicManagement\.project
     目录           0  2016-12-24 17:09  clinicManagement\src\
     目录           0  2016-12-24 14:14  clinicManagement\src\com\
     目录           0  2016-12-31 21:23  clinicManagement\src\com\clinic\
     目录           0  2017-01-01 20:34  clinicManagement\src\com\clinic\action\
     文件        5778  2017-01-01 22:26  clinicManagement\src\com\clinic\action\AjaxAction.java
     文件        4300  2017-01-01 21:14  clinicManagement\src\com\clinic\action\IndexAction.java
     文件        2268  2017-01-01 23:12  clinicManagement\src\com\clinic\action\TreatAction.java
     文件        1477  2017-01-01 21:42  clinicManagement\src\com\clinic\action\TreatedVisitAction.java
     目录           0  2017-01-01 23:08  clinicManagement\src\com\clinic\domain\
     文件        1058  2017-01-01 18:42  clinicManagement\src\com\clinic\domain\Drug.java
     文件        1169  2017-01-01 19:16  clinicManagement\src\com\clinic\domain\DrugList.java
     文件         959  2016-12-24 16:50  clinicManagement\src\com\clinic\domain\DrugRecord.java
     文件        1034  2017-01-01 23:05  clinicManagement\src\com\clinic\domain\DrugRecordVo.java
     文件         954  2016-12-24 15:34  clinicManagement\src\com\clinic\domain\Person.java
     文件        1031  2017-01-01 13:04  clinicManagement\src\com\clinic\domain\Registration.java
     文件        1169  2017-01-01 22:25  clinicManagement\src\com\clinic\domain\Revenue.java
     文件        1011  2017-01-01 20:54  clinicManagement\src\com\clinic\domain\TreatedVisit.java
     文件        1198  2017-01-01 14:45  clinicManagement\src\com\clinic\domain\Treatment.java
     文件        1075  2017-01-01 23:16  clinicManagement\src\com\clinic\domain\TreatmentDetailVo.java
     目录           0  2017-01-01 17:31  clinicManagement\src\com\clinic\persistence\
     文件        8312  2017-01-01 23:11  clinicManagement\src\com\clinic\persistence\DataFactory.java
     文件        1254  2016-12-24 18:26  clinicManagement\src\com\clinic\persistence\DBHelper.java
     文件         318  2017-01-01 19:58  clinicManagement\src\com\clinic\persistence\DrugDao.java
     文件         248  2017-01-01 20:03  clinicManagement\src\com\clinic\persistence\DrugListDao.java
     文件         300  2017-01-01 23:03  clinicManagement\src\com\clinic\persistence\DrugRecordDao.java
     文件         263  2016-12-31 22:24  clinicManagement\src\com\clinic\persistence\PersonDao.java
     文件         328  2017-01-01 15:18  clinicManagement\src\com\clinic\persistence\RegistrationDao.java
............此处省略141个文件信息

评论

共有 条评论