📄 delrevertinfoaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.oa.companyculture.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.oa.companyculture.db.InfoDao;
import com.oa.companyculture.db.RevertInfoDao;
import com.oa.companyculture.form.InfoForm;
/**
* MyEclipse Struts Creation date: 09-04-2007
*
* XDoclet definition:
*
* @struts.action path="/delRevertInfo" name="infoForm"
* input="/companyculture/looktie.jsp" scope="request"
* validate="true"
*/
public class DelRevertInfoAction extends Action {
/*
* Generated Methods
*/
private RevertInfoDao revertInfoDao;
private InfoDao infoDao;
/**
* @return the infoDao
*/
public InfoDao getInfoDao() {
return infoDao;
}
/**
* @param infoDao
* the infoDao to set
*/
public void setInfoDao(InfoDao infoDao) {
this.infoDao = infoDao;
}
/**
* @return the revertInfoDao
*/
public RevertInfoDao getRevertInfoDao() {
return revertInfoDao;
}
/**
* @param revertInfoDao
* the revertInfoDao to set
*/
public void setRevertInfoDao(RevertInfoDao revertInfoDao) {
this.revertInfoDao = revertInfoDao;
}
/**
* Method execute
*
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
InfoForm infoForm = (InfoForm) form;// TODO Auto-generated method stub
int id = Integer.parseInt(request.getParameter("rid"));
int revertid = revertInfoDao.findRevertIdById(id);
revertInfoDao.deleteRevertInfo(id);
infoDao.deleteRevertNum(revertid);
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -