📄 mangeraction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.struts.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import com.business.BusinessService;
import com.struts.form.ApproveForm;
import com.struts.form.BaoxiaoForm;
import com.struts.form.TaskForm;
/**
* MyEclipse Struts
* Creation date: 03-17-2008
*
* XDoclet definition:
* @struts.action input="/mainpage.jsp" validate="true"
*/
public class MangerAction extends DispatchAction {
/*
* Generated Methods
*/
private BusinessService busService;
public BusinessService getBusService() {
return busService;
}
public void setBusService(BusinessService busService) {
this.busService = busService;
}
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward findBaoxiao(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
String tid=request.getParameter("tid");
BaoxiaoForm bform=(BaoxiaoForm) busService.getBaoxiaoBus().findBaoxiaoById(tid);
request.setAttribute("baoxiao", bform);
TaskForm tf=new TaskForm();
tf.setTaskid(tid);
request.setAttribute("task", tf);
return mapping.findForward("findok");
}
public ActionForward audit(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
// TODO Auto-generated method stub
ApproveForm appForm=(ApproveForm) form;
System.out.println("baoxiaoId"+appForm.getBaoxiaoId());
String tid=request.getParameter("tid");
boolean flag=busService.getBaoxiaoBus().audit(appForm, tid);
if(flag)
{
return mapping.findForward("auditok");
}
return mapping.findForward("error");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -