package com.ideabobo.action;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import javax.annotation.Resource;
import javax.swing.*;
import org.springframework.stereotype.Controller;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
//import com.ideabobo.model.Address;
import com.ideabobo.model.Bill;
import com.ideabobo.model.Dingzuo;
import com.ideabobo.model.Good;
import com.ideabobo.model.Bingli;
import com.ideabobo.model.Line;
import com.ideabobo.model.Message;
import com.ideabobo.model.Posts;
import com.ideabobo.model.Replay;
import com.ideabobo.model.Shop;
import com.ideabobo.model.User;
import com.ideabobo.model.Yzmessage;
import com.ideabobo.service.BaseService;
import com.ideabobo.service.BillService;
import com.ideabobo.service.DingzuoService;
import com.ideabobo.service.GoodService;
import com.ideabobo.service.NoticeService;
import com.ideabobo.service.ReplayService;
import com.ideabobo.service.RoomService;
import com.ideabobo.service.ShopService;
import com.ideabobo.service.TypeService;
import com.ideabobo.service.UserService;
import com.ideabobo.util.GetNowTime;
import com.ideabobo.util.HttpClientTools;
import com.ideabobo.util.IdeaAction;
import com.ideabobo.util.MailUtil;
@Controller
public class WehallAction extends IdeaAction {
@Resource
private BaseService baseService;
@Resource
private BillService billService;
@Resource
private ShopService shopService;
@Resource
private GoodService goodService;
@Resource
private DingzuoService dingzuoService;
@Resource
private TypeService typeService;
@Resource
private UserService userService;
@Resource
private ReplayService replayService;
@Resource
private NoticeService noticeService;
@Resource
private RoomService roomService;
public Gson gson = new Gson();
private static final long serialVersionUID = -3218238026025256103L;
public String wehall(){
// String openid = request.getParameter("openid");
// session.put("openid", openid);
return SUCCESS;
}
public void login(){
String username = request.getParameter("username");
String passwd = request.getParameter("passwd");
User user = new User();
user.setPasswd(passwd);
user.setUsername(encodeGet(username));
User r = userService.find(user);
if(r!=null){
session.put("user", r);
renderJsonpObj(r);
}else{
renderJsonpString("fail");
}
}
public void checkSession(){
Object obj = session.get("user");
if(obj!=null){
renderJsonpObj(obj);
}else{
renderJsonpString("fail");
}
}
public void clearSession(){
session.clear();
}
public void checkUser(){
User u = new User();
String username = request.getParameter("username");
u.setUsername(username);
User r = userService.find(u);
if(r!=null){
renderJsonpString("fail");
}else{
renderJsonpString("success");
}
}
public void updateUser(){
String tel = request.getParameter("tel");
String qq = request.getParameter("qq");
String wechat = request.getParameter("wechat");
String email = request.getParameter("email");
String birth = request.getParameter("birth");
String sex = request.getParameter("sex");
String id = request.getParameter("id");
User user = userService.find(id);
user.setId(Integer.parseInt(id));
user.setTel(tel);
user.setWechat(wechat);
user.setQq(qq);
user.setEmail(email);
user.setBirth(birth);
user.setSex(encodeGet(sex));
user.setAddress(encodeGet(request.getParameter("address")));
userService.update(user);
renderJsonpObj(user);
}
public void changePasswd(){
String passwd = request.getParameter("passwd");
String id = request.getParameter("id");
User user = userService.find(id);
user.setPasswd(passwd);
userService.update(user);
renderJsonpString("success");
}
public void register(){
String tel = request.getParameter("tel");
//String qq = request.getParameter("qq");
//String wechat = request.getParameter("wechat");
//String email = request.getParameter("email");
//String birth = request.getParameter("birth");
//String sex = request.getParameter("sex");
String username = request.getParameter("username");
String address = request.getParameter("address");
String passwd = request.getParameter("passwd");
//String sid = request.getParameter("sid");
String roletype = "2";
User user = new User();
user.setTel(tel);
//user.setWechat(wechat);
//user.setQq(qq);
//user.setEmail(email);
//user.setBirth(birth);
//user.setSex(encodeGet(sex));
user.setPasswd(passwd);
user.setRoletype(roletype);
user.setUsername(encodeGet(username));
user.setAddress(encodeGet(address));
//user.setSid(sid);
userService.save(user);
renderJsonpString("success");
}
public void listShop(){
renderJsonpObj(shopService.list());
}
public void listGood(){
String type = request.getParameter("stype");
String sid = request.getParameter("sid");
String title = request.getParameter("stitle");
String sort = request.getParameter("order");
title = encodeGet(title);
String hql = "from Good t where 1=1";
if (type != null&& !"".equals(type)) {
hql+=" and t.typeid="+type;
}
if(sid != null&& !"".equals(sid)){
hql+=" and t.sid="+sid;
}
if(title != null&& !"".equals(title)){
hql+=" and t.gname='"+title+"'";
}
if(sort != null&& !"".equals(sort)){
hql+=" order by "+sort+" desc";
}else{
hql+=" order by xiaoliang desc";
}
/*ArrayList<Good> list = (ArrayList<Good>) goodService.queryObj(g);
Collections.sort(list);*/
renderJsonpObj(baseService.list(hql));
}
public void listJkdata(){
String uid = request.getParameter("uid");
String hql = "from Bingli t where 1=1";
if (uid != null&& !"".equals(uid)) {
hql+=" and t.uid="+uid;
}
renderJsonpObj(baseService.list(hql));
}
public void listType(){
renderJsonpObj(typeService.list());
}
public void saveDingzuo(){
Dingzuo dz = new Dingzuo();
dz.setRenshu(request.getParameter("renshu"));
dz.setXingming(encodeGet(request.getParameter("xingming")));
dz.setShouji(request.getParameter("shouji"));
dz.setShijian(request.getParameter("shijian"));
dz.setTodate(request.getParameter("todate"));
dz.setBeizhu(encodeGet(request.getParameter("beizhu")));
dz.setShopid(request.getParameter("shopid"));
dz.setShopname(encodeGet(request.getParameter("shopname")));
dz.setOpenid(request.getParameter("openid"));
dz.setNdate(GetNowTime.getNowTimeNian());
dingzuoService.save(dz);
renderJsonpString("提交成功!");
}
public void saveBill(){
Bill bill = (Bill) getByRequest(new Bill(), true);
bill.setNdate(GetNowTime.getNowTimeEn());
bill.setStat
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
1.能看到医院简介 2.可以选择科室 3.可以选择科室里面的医生 4.能选择医生的不同挂号时间 5.能提交挂号费用 6.患者预约时间不能超过一个月 7.一个医生同一时间不能进行两个患者挂号 8.患者进入小程序需要进行绑定身份证,姓名,以身份证为唯一主键 9.小程序界面框最下方有三栏,挂号,医院简介,我的 10.挂号界面需要看到不同科室 11.我的里面需要看到绑定的姓名和身份证,还有预约过的时间 12.要求界面色调缓和 13. 注释,多写一下注释 14.参考一下医院正在使用的小程序 15.挂号界面,新冠检测预约挂号
资源推荐
资源详情
资源评论
收起资源包目录
基于微信小程序的预约挂号小程序设计与实现(毕业论文) (1475个子文件)
WehallAction.class 23KB
IdeaAction.class 18KB
BaseServiceImp.class 11KB
HttpClientTools.class 11KB
StringUtil.class 9KB
GoodAction.class 8KB
ShopAction.class 7KB
GoodServiceImp.class 6KB
NoticeAction.class 6KB
RoomAction.class 6KB
SettingsServiceImp.class 5KB
BillServiceImp.class 5KB
UserAction.class 5KB
NoticeServiceImp.class 5KB
ReplayServiceImp.class 5KB
RoomServiceImp.class 5KB
ShopServiceImp.class 5KB
UserServiceImp.class 5KB
PostsServiceImp.class 5KB
User.class 5KB
DingzuoServiceImp.class 5KB
TypeServiceImp.class 5KB
VipServiceImp.class 5KB
Bill.class 5KB
Good.class 5KB
BillAction.class 4KB
GetNowTime.class 4KB
SettingsAction.class 4KB
DingzuoAction.class 3KB
ReplayAction.class 3KB
PostsAction.class 3KB
CopyFile.class 3KB
VipAction.class 3KB
Dingzuo.class 3KB
SimpleMailSender.class 3KB
MailSenderInfo.class 3KB
Message.class 3KB
Shop.class 2KB
IndexAction.class 2KB
Posts.class 2KB
Vip.class 2KB
Beiwang.class 2KB
MailUtil.class 2KB
Yzmessage.class 2KB
DownloadAction.class 2KB
Bingli.class 2KB
Replay.class 2KB
Notice.class 2KB
Page.class 1KB
Room.class 1KB
Settings.class 1KB
Type.class 988B
BaseService.class 919B
Line.class 908B
GoodService.class 831B
MyAuthenticator.class 778B
SettingsService.class 723B
ReplayService.class 703B
NoticeService.class 703B
ShopService.class 683B
BillService.class 683B
RoomService.class 683B
Page2.class 574B
DingzuoService.class 569B
PostsService.class 555B
TypeService.class 548B
UserService.class 548B
VipService.class 541B
UploadAction.class 521B
.classpath 1KB
org.eclipse.wst.common.component 489B
org.eclipse.wst.jsdt.ui.superType.container 49B
jquery.mobile-1.4.5.css 234KB
jquery.mobile.inline-svg-1.4.5.css 222KB
jquery.mobile.min.css 216KB
jquery.mobile-1.4.5.min.css 203KB
jquery.mobile-1.4.5.min.css 203KB
jquery.mobile-1.4.3.min.css 202KB
jquery.mobile.inline-svg-1.4.5.min.css 191KB
jquery.mobile.flatui.css 163KB
jquery.mobile.flatui.css 163KB
jquery.mobile.inline-png-1.4.5.css 146KB
jquery.mobile.icons-1.4.5.css 126KB
jquery.mobile.icons-1.4.5.min.css 124KB
jquery.mobile.icons.min.css 124KB
jquery.mobile.skyd-1.4.5.css 120KB
jquery.mobile.external-png-1.4.5.css 119KB
jquery.mobile.inline-png-1.4.5.min.css 115KB
jquery.mobile.structure-1.4.5.css 89KB
jquery.mobile.external-png-1.4.5.min.css 89KB
jquery.mobile.skyd-1.4.5.min.css 80KB
jquery.mobile.structure-1.4.5.min.css 67KB
theme-classic.css 67KB
easyui.css 34KB
easyui.css 34KB
easyui.css 34KB
easyui.css 32KB
easyui.css 32KB
easyui.css 29KB
jquery.mobile.theme-1.4.5.css 19KB
共 1475 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
code.song
- 粉丝: 981
- 资源: 1108
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 学习记录111111111111111111111111
- JavaScript函数
- java-leetcode题解之Range Sum Query 2D - Mutable.java
- java-leetcode题解之Random Pick Index.java
- java-leetcode题解之Race Car.java
- java-leetcode题解之Profitable Schemes.java
- java-leetcode题解之Product of Array Exclude Itself.java
- java-leetcode题解之Prime Arrangements.java
- MCU51-51单片机
- java-leetcode题解之Power of Two.java
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页