modifyjyxxaction.java
来自「基于JAVA的学生就业信息网 实现对信息浏览 检索 审核 修改和删除」· Java 代码 · 共 100 行
JAVA
100 行
/*
* Created on 2006-7-21
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.ug.sztz.webview.structs.actions.oa;
import java.util.List;
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.ug.sztz.domain.ListFactory.ListFactory;
import org.ug.sztz.domain.assistant.PYFSFactory;
import org.ug.sztz.domain.assistant.XueLiFactory;
import org.ug.sztz.domain.assistant.XueZhiFactory;
import org.ug.sztz.domain.assistant.ZhuanYeFactory;
import org.ug.sztz.domain.oa.StudentJYInfo;
/**
* @author Skywalker
*
* TODO To change the template for this generated type comment go to Window -
* Preferences - Java - Code Style - Code Templates
*/
public class ModifyJyxxAction extends BaseAction {
/*
* (non-Javadoc)
*
* @see org.apache.struts.action.Action#execute(org.apache.struts.action.ActionMapping,
* org.apache.struts.action.ActionForm,
* javax.servlet.http.HttpServletRequest,
* javax.servlet.http.HttpServletResponse)
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
// TODO Auto-generated method stub
String xh = request.getParameter("xh");
StudentJYInfo info = this.stuJYDao.getStudentJYInfoByXh(xh);
if (info.getDwszd() != null)
info.setDwszd(info.getDwszd().trim());
if (info.getLsgzqd() != null)
info.setLsgzqd(info.getLsgzqd().trim());
if (info.getDwxz() != null)
info.setDwxz(info.getDwxz().trim());
if (info.getDwjjlx() != null)
info.setDwjjlx(info.getDwjjlx().trim());
if (info.getJyxs() != null)
info.setJyxs(info.getJyxs().trim());
if (info.getLcnr() != null)
info.setLcnr(info.getLcnr().trim());
if (info.getByqx() != null)
info.setByqx(info.getByqx().trim());
request.setAttribute("info", info);
ZhuanYeFactory zhuanyeFactory = new ZhuanYeFactory(this.getServlet()
.getServletConfig());
List zhuanyeList = zhuanyeFactory.getZhuanYeList();
PYFSFactory pyfsFactory = new PYFSFactory(this.getServlet()
.getServletConfig());
List pyfsList = pyfsFactory.getProvinceList();
XueLiFactory xueliFactory = new XueLiFactory(this.getServlet()
.getServletConfig());
List xueliList = xueliFactory.getProvinceList();
XueZhiFactory xuezhiFactory = new XueZhiFactory(this.getServlet()
.getServletConfig());
List xuezhiList = xuezhiFactory.getProvinceList();
request.setAttribute("zhuanyelist", zhuanyeList);
request.setAttribute("pyfslist", pyfsList);
request.setAttribute("xuelilist", xueliList);
request.setAttribute("xuezhilist", xuezhiList);
List dwszdlist = new ListFactory(this.getServlet().getServletConfig(),
"dwszd").getList();
List lsgzqdlist = new ListFactory(this.getServlet().getServletConfig(),
"lsgzqd").getList();
List dwjjlxlist = new ListFactory(this.getServlet().getServletConfig(),
"dwjjlx").getList();
List dwxzlist = new ListFactory(this.getServlet().getServletConfig(),
"dwxz").getList();
List lcnrlist = new ListFactory(this.getServlet().getServletConfig(),
"lcnr").getList();
List jyxslist = new ListFactory(this.getServlet().getServletConfig(),
"jyxs").getList();
List byqxlist = new ListFactory(this.getServlet().getServletConfig(),
"byqx").getList();
request.setAttribute("lcnrlist", lcnrlist);
request.setAttribute("dwszdlist", dwszdlist);
request.setAttribute("lsgzqdlist", lsgzqdlist);
request.setAttribute("dwjjlxlist", dwjjlxlist);
request.setAttribute("dwxzlist", dwxzlist);
request.setAttribute("jyxslist", jyxslist);
request.setAttribute("byqxlist", byqxlist);
return mapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?