📄 ggtxl_listaction.java
字号:
package com.wondersgroup.txl.web.Action;
import java.util.List;
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.wondersgroup.framework.core.bo.Page;
import com.wondersgroup.txl.service.CompanyService;
import com.wondersgroup.txl.service.GgTxlService;
import com.wondersgroup.txl.service.PartmentService;
import com.wondersgroup.txl.web.Form.GgTxl_AddForm;
public class GgTxl_ListAction extends Action {
private GgTxlService ggTxlService;
private CompanyService companyService;//单位
public void setGgTxlService(GgTxlService ggTxlService) {
this.ggTxlService = ggTxlService;
}
public void setCompanyService(CompanyService companyService) {
this.companyService = companyService;
}
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
GgTxl_AddForm ggTxlForm = (GgTxl_AddForm)form;
String id = request.getParameter("id");//单位id;
List list = companyService.getCompanyInfo(id);
int pageNo;
String paStr = request.getParameter("pageNo");
if(paStr==null){
paStr="1";
}
pageNo = Integer.parseInt(paStr);//页码
String xm = ggTxlForm.getXm();
if(xm==null)xm="";
String txltype = ggTxlForm.getTxltype();
if(txltype==null)txltype = "";
Page page = ggTxlService.getContractsGRList(id, xm, txltype, pageNo, 2);
request.setAttribute("page", page);
request.setAttribute("list", list);
return mapping.findForward("ggList");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -