资源简介
前台基于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\.myme
文件 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个文件信息
相关资源
- 锐聘学院QST青软JavaWeb十二个打包
- javaweb网上购物系统源码(附数据库脚
- javaweb校园宿舍系统(附数据库脚本)
- JavaWeb书城项目(附数据库脚本)
- 基于SSH框架的JavaWeb项目—人员信息管
- javaweb实现的邮件收发系统(附数据库
- java web知识点总结思维导图
- java web项目案例——知识管理软
- 博客系统笔记以及源码
- 李兴华JavaWeb培训经典笔记
- javaweb程序源码
- 基于JavaWeb的美食图片分享网站.zip
- JavaWeb-学生在线选课系统
- JavaWeb经典项目-图书管理系统
- 二手房屋交易系统
- 网络购物商城项目-12个项目
- 毕设:基于javaweb的宿舍管理系统
- javaweb政府oa代码
- 基于SSM框架的网上书店商城项目系统
- 旅游平台JAVA WEB
- JavaWeb网上图书商城完整项目资料
- JavaWeb开发的BBS系统
- SSM+Mysql实现防慕课网项目.zip
- Java Web开发实战经典
- 深入分析JavaWeb技术内幕修订版_13596
- JavaWEB商城项目(包括数据库)
- 基于JavaWeb的网上书店的设计与实现毕
- 基于JavaWeb学生管理系统
- JavaWeb中文件上传最强工具类
- 基于javaweb的投票系统
评论
共有 条评论