KhxxInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- package com.webtier.khxxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- import com.domain.KhxxForm;
- import com.tool.Chinese;
- //插入操作
- public class KhxxInsert
- extends Action {
- private KhxxFacade facade = null;
- public KhxxInsert() {
- this.facade = new KhxxFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- Chinese chinese = new Chinese();
- KhxxForm khxxForm = (KhxxForm) actionForm;
- khxxForm.setKhxx_id(httpServletRequest.getParameter("id"));
- khxxForm.setKhxx_mc(chinese.str(httpServletRequest.getParameter("mc")));
- khxxForm.setKhxx_qyxz(chinese.str(httpServletRequest.getParameter("qyxz")));
- khxxForm.setKhxx_qylx(chinese.str(httpServletRequest.getParameter("qylx")));
- khxxForm.setKhxx_qyzx(chinese.str(httpServletRequest.getParameter("qyzx")));
- khxxForm.setKhxx_qydz(chinese.str(httpServletRequest.getParameter("qydz")));
- khxxForm.setKhxx_szsf(chinese.str(httpServletRequest.getParameter("szsf")));
- khxxForm.setKhxx_szcs(chinese.str(httpServletRequest.getParameter("szcs")));
- khxxForm.setKhxx_gsyb(chinese.str(httpServletRequest.getParameter("gsyb")));
- khxxForm.setKhxx_frdb(chinese.str(httpServletRequest.getParameter("frdb")));
- khxxForm.setKhxx_khyh(chinese.str(httpServletRequest.getParameter("khyh")));
- khxxForm.setKhxx_yhzh(chinese.str(httpServletRequest.getParameter("yhzh")));
- khxxForm.setKhxx_nsh(chinese.str(httpServletRequest.getParameter("nsh")));
- khxxForm.setKhxx_ICcard(chinese.str(httpServletRequest.getParameter("iCcard")));
- khxxForm.setKhxx_gswz(chinese.str(httpServletRequest.getParameter("gswz")));
- khxxForm.setKhxx_gsdh(chinese.str(httpServletRequest.getParameter("gsdh")));
- khxxForm.setKhxx_gscz(chinese.str(httpServletRequest.getParameter("gscz")));
- khxxForm.setKhxx_lxr(chinese.str(httpServletRequest.getParameter("lxr")));
- khxxForm.setKhxx_lxrdh(chinese.str(httpServletRequest.getParameter("lxrdh")));
- khxxForm.setKhxx_khjb(chinese.str(httpServletRequest.getParameter("khjb")));
- khxxForm.setKhxx_bz(chinese.str(httpServletRequest.getParameter("bz")));
- this.facade.khxxInsert(khxxForm);
- return actionMapping.findForward("khxxInsert");
- }
- }