package com.yiyang.aciton;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import com.opensymphony.xwork2.ActionSupport;
import com.yiyang.permission.IOperationList;
import com.yiyang.permission.PermissionMgr;
import com.yiyang.pojo.TDictype;
import com.yiyang.pojo.TEquiproom;
import com.yiyang.pojo.TUser;
import com.yiyang.service.EquiproomService;
public class EquiproomAction extends ActionSupport implements
ServletRequestAware,ServletResponseAware {
private EquiproomService equiproomservice;
private int queryflag;
public int getQueryflag() {
return queryflag;
}
public void setQueryflag(int queryflag) {
this.queryflag = queryflag;
}
private int page;
private String equipname;
private int equipdeptid;
private String equipmgrid;
private String equipaddress;
private String memo;
private int[] equips;
private int equiproomid;
private int euqipid;
public PermissionMgr thePermissionMgr;
private HttpServletRequest request;
private HttpServletResponse response;
private PermissionMgr permissionmgr;
public void setPermissionmgr(PermissionMgr permissionmgr) {
this.permissionmgr = permissionmgr;
}
public void setServletRequest(HttpServletRequest request) {
// TODO Auto-generated method stub
this.request = request;
}
/**
* Access method for the equiproomservice property.
*
* @return the current value of the equiproomservice property
*/
public EquiproomService getEquiproomservice() {
return equiproomservice;
}
/**
* Sets the value of the equiproomservice property.
*
* @param aEquiproomservice
* the new value of the equiproomservice property
*/
public void setEquiproomservice(EquiproomService aEquiproomservice) {
equiproomservice = aEquiproomservice;
}
/**
* Access method for the page property.
*
* @return the current value of the page property
*/
public int getPage() {
return page;
}
/**
* Sets the value of the page property.
*
* @param aPage
* the new value of the page property
*/
public void setPage(int aPage) {
page = aPage;
}
/**
* Access method for the equipname property.
*
* @return the current value of the equipname property
*/
public String getEquipname() {
return equipname;
}
/**
* Sets the value of the equipname property.
*
* @param aEquipname
* the new value of the equipname property
*/
public void setEquipname(String aEquipname) {
equipname = aEquipname;
}
/**
* Access method for the equipdeptid property.
*
* @return the current value of the equipdeptid property
*/
public int getEquipdeptid() {
return equipdeptid;
}
/**
* Sets the value of the equipdeptid property.
*
* @param aEquipdeptid
* the new value of the equipdeptid property
*/
public void setEquipdeptid(int aEquipdeptid) {
equipdeptid = aEquipdeptid;
}
/**
* Access method for the equipmgrid property.
*
* @return the current value of the equipmgrid property
*/
public String getEquipmgrid() {
return equipmgrid;
}
/**
* Sets the value of the equipmgrid property.
*
* @param aEquipmgrid
* the new value of the equipmgrid property
*/
public void setEquipmgrid(String aEquipmgrid) {
equipmgrid = aEquipmgrid;
}
/**
* Access method for the equipaddress property.
*
* @return the current value of the equipaddress property
*/
public String getEquipaddress() {
return equipaddress;
}
/**
* Sets the value of the equipaddress property.
*
* @param aEquipaddress
* the new value of the equipaddress property
*/
public void setEquipaddress(String aEquipaddress) {
equipaddress = aEquipaddress;
}
/**
* Access method for the memo property.
*
* @return the current value of the memo property
*/
public String getMemo() {
return memo;
}
/**
* Sets the value of the memo property.
*
* @param aMemo
* the new value of the memo property
*/
public void setMemo(String aMemo) {
memo = aMemo;
}
/**
* Access method for the equips property.
*
* @return the current value of the equips property
*/
public int[] getEquips() {
return equips;
}
/**
* Sets the value of the equips property.
*
* @param aEquips
* the new value of the equips property
*/
public void setEquips(int[] aEquips) {
equips = aEquips;
}
/**
* Access method for the equiproomid property.
*
* @return the current value of the equiproomid property
*/
public int getEquiproomid() {
return equiproomid;
}
/**
* Sets the value of the equiproomid property.
*
* @param aEquiproomid
* the new value of the equiproomid property
*/
public void setEquiproomid(int aEquiproomid) {
equiproomid = aEquiproomid;
}
/**
* Access method for the name2 property.
*
* @return the current value of the name2 property
*/
public int getEuqipid() {
return euqipid;
}
/**
* Sets the value of the name2 property.
*
* @param aName2
* the new value of the name2 property
*/
public void setEuqipid(int aName2) {
this.euqipid = aName2;
}
/**
* @return String
* @roseuid 4A56A3C500BB
*/
public String equipList() {
boolean flag1=this.permissionmgr.checkRole(IOperationList.ADD_EQUIP);
boolean flag2=this.permissionmgr.checkRole(IOperationList.DELETE_EQUIP);
boolean flag3=this.permissionmgr.checkRole(IOperationList.UPDATE_EQUIP);
if(flag1==false && flag2==false && flag3==false){
return "unright";
}
List list=equiproomservice.processEquipListByPage(page,request);
request.setAttribute("equiplist", list);
return "equiplist";
}
/**
* @return String
* @roseuid 4A56AD9100BB
*/
public String addEquip() {
boolean flag=this.permissionmgr.checkRole(IOperationList.ADD_EQUIP);
if(flag==false){
return "unright";
}
// System.out.println(this.equipaddress+"="+this.equipname+"="+this.memo+"="+equipdeptid);
boolean result=equiproomservice.processAddEquip(equipname, equipdeptid, equipaddress, memo);
return "equiplist_detele";
}
/**
* @roseuid 4A56AF00029F
*/
public String initAddEquip() {
boolean flag=this.permissionmgr.checkRole(IOperationList.ADD_EQUIP);
if(flag==false){
return "unright";
}
List list=equiproomservice.processDeptList();
request.setAttribute("deptlist", list);
return "addequip";
}
/**
* @return String
* @roseuid 4A56B24601E4
*/
public String deleteEquip() {
boolean flag=this.permissionmgr.checkRole(IOperationList.DELETE_EQUIP);
if(flag==false){
return "unright";
}
boolean result=this.equiproomservice.processDeleteEquip(equips);
List list=equiproomservice.processEquipListByPage(1,request);
request.setAttribute("equiplist", list);
return "equiplist_detele";
}
/**
* 获得人员列表、部门列表和equiproomid对应的对象
*
* @return String
* @roseuid 4A56B672002E
*/
public String initUpdateEquip() {
boolean flag=this.permissionmgr.checkRole(IOperationList.UPDATE_EQUIP);
if(flag==false){
return "unright";
}
TEquiproom room=this.equiproomservice.processEquipById(euqipid);
List deptlist=equiproomservice.processDeptList();
List userlist=equiproomservice.processMgrList();
request.setAttribute("deptlist", deptlist);
request.setAttribute("userlist", userlist);
request.setAttribute("room",
没有合适的资源?快使用搜索试试~ 我知道了~
yiyang.rar_java项目_东方通
共155个文件
java:55个
jsp:38个
gif:25个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 31 浏览量
2022-09-14
18:16:45
上传
评论
收藏 360KB RAR 举报
温馨提示
本项目实现了经典SSH框架,亿阳信通,为东方标准Java经典课程最后一个项目,为Java课程的一个总结
资源推荐
资源详情
资源评论
收起资源包目录
yiyang.rar_java项目_东方通 (155个子文件)
.classpath 8KB
org.eclipse.wst.jsdt.ui.superType.container 49B
style.css 11KB
login.css 767B
login_bg.gif 56KB
banner_bg.gif 24KB
bottom.gif 15KB
table1.gif 13KB
biti_bg.gif 13KB
nane.gif 12KB
title.gif 3KB
tableheader-bg.gif 3KB
footer.gif 2KB
title_show.gif 2KB
title_hide.gif 2KB
title_quit.gif 2KB
loading.gif 2KB
bg.gif 2KB
tableheader-bg-grey.gif 1KB
sg.gif 1015B
no.gif 1012B
ok.gif 1010B
footer_bg.gif 439B
top_left.gif 258B
bullet_green.gif 182B
content_bg.gif 143B
bullet_grey.gif 128B
button.gif 104B
angle.gif 93B
EquiproomAction.java 13KB
PermissionAction.java 12KB
UserAction.java 12KB
DictAction.java 10KB
DeptAction.java 9KB
DictTypeAction.java 7KB
UserService.java 7KB
PermissionService.java 6KB
LogAction.java 6KB
EquiproomService.java 6KB
PermissionDao.java 5KB
DictService.java 5KB
DeptService.java 4KB
Logger.java 4KB
DictDao.java 4KB
TUser.java 4KB
EquiproomDao.java 4KB
UserDao.java 3KB
DeptDao.java 3KB
DictTypeService.java 3KB
LogDao.java 3KB
LoginAction.java 3KB
DictTypeDao.java 3KB
IPermissionDao.java 2KB
TDept.java 2KB
LogService.java 2KB
TLog.java 2KB
RRpId.java 2KB
TEquiproom.java 2KB
PermissionMgr.java 1KB
RUrId.java 1KB
IDictDao.java 1KB
TModel.java 1KB
TDictype.java 1KB
IUserDao.java 1KB
TRole.java 1KB
TDict.java 1KB
IOperationList.java 1KB
LoginService.java 1KB
TPermission.java 1KB
LogoffAction.java 904B
IEquiproomDao.java 799B
IDictType.java 781B
DaoFactory.java 671B
ILogDao.java 664B
PermissionMgrDao.java 633B
LoggerDao.java 584B
SessionTrack.java 571B
IDeptDao.java 539B
LoginDao.java 489B
RUr.java 460B
RRp.java 460B
ILoggerDao.java 222B
IPermissionMgrDao.java 192B
ILoginDao.java 157B
prototype.js 56KB
prototype1.4.js 46KB
effects.js 33KB
validation_cn_UTF-8.js 23KB
validation_cn.js 23KB
check1.js 1KB
check.js 1KB
.jsdtscope 406B
updateuser.jsp 16KB
updateequip.jsp 15KB
adduser.jsp 14KB
dictmgr.jsp 13KB
selectlog.jsp 13KB
updatedept.jsp 13KB
updaterole.jsp 13KB
userlist.jsp 13KB
共 155 条
- 1
- 2
资源评论
JonSco
- 粉丝: 75
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功