KhxxInsert.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
源码类别:

企业管理

开发平台:

Java

  1. package com.webtier.khxxAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.KhxxFacade;
  5. import com.service.KhxxFacadeImpl;
  6. import com.domain.KhxxForm;
  7. import com.tool.Chinese;
  8. //插入操作
  9. public class KhxxInsert
  10.     extends Action {
  11.   private KhxxFacade facade = null;
  12.   public KhxxInsert() {
  13.     this.facade = new KhxxFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) {
  19.     Chinese chinese = new Chinese();
  20.     KhxxForm khxxForm = (KhxxForm) actionForm;
  21.     khxxForm.setKhxx_id(httpServletRequest.getParameter("id"));
  22.     khxxForm.setKhxx_mc(chinese.str(httpServletRequest.getParameter("mc")));
  23.     khxxForm.setKhxx_qyxz(chinese.str(httpServletRequest.getParameter("qyxz")));
  24.     khxxForm.setKhxx_qylx(chinese.str(httpServletRequest.getParameter("qylx")));
  25.     khxxForm.setKhxx_qyzx(chinese.str(httpServletRequest.getParameter("qyzx")));
  26.     khxxForm.setKhxx_qydz(chinese.str(httpServletRequest.getParameter("qydz")));
  27.     khxxForm.setKhxx_szsf(chinese.str(httpServletRequest.getParameter("szsf")));
  28.     khxxForm.setKhxx_szcs(chinese.str(httpServletRequest.getParameter("szcs")));
  29.     khxxForm.setKhxx_gsyb(chinese.str(httpServletRequest.getParameter("gsyb")));
  30.     khxxForm.setKhxx_frdb(chinese.str(httpServletRequest.getParameter("frdb")));
  31.     khxxForm.setKhxx_khyh(chinese.str(httpServletRequest.getParameter("khyh")));
  32.     khxxForm.setKhxx_yhzh(chinese.str(httpServletRequest.getParameter("yhzh")));
  33.     khxxForm.setKhxx_nsh(chinese.str(httpServletRequest.getParameter("nsh")));
  34.     khxxForm.setKhxx_ICcard(chinese.str(httpServletRequest.getParameter("iCcard")));
  35.     khxxForm.setKhxx_gswz(chinese.str(httpServletRequest.getParameter("gswz")));
  36.     khxxForm.setKhxx_gsdh(chinese.str(httpServletRequest.getParameter("gsdh")));
  37.     khxxForm.setKhxx_gscz(chinese.str(httpServletRequest.getParameter("gscz")));
  38.     khxxForm.setKhxx_lxr(chinese.str(httpServletRequest.getParameter("lxr")));
  39.     khxxForm.setKhxx_lxrdh(chinese.str(httpServletRequest.getParameter("lxrdh")));
  40.     khxxForm.setKhxx_khjb(chinese.str(httpServletRequest.getParameter("khjb")));
  41.     khxxForm.setKhxx_bz(chinese.str(httpServletRequest.getParameter("bz")));
  42.     this.facade.khxxInsert(khxxForm);
  43.     return actionMapping.findForward("khxxInsert");
  44.   }
  45. }