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

企业管理

开发平台:

Java

  1. package com.webtier.KhcpxzAction;
  2. import org.apache.struts.action.ActionMapping;
  3. import org.apache.struts.action.ActionForm;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import org.apache.struts.action.ActionForward;
  7. import com.domain.KhcpxzForm;
  8. import org.apache.struts.action.Action;
  9. import com.tool.Chinese;
  10. import com.service.KhcpxzFacade;
  11. import com.service.KhcpxzFacadeImpl;
  12. public class KhcpxzInsert
  13.     extends Action {
  14.   private KhcpxzFacade facade = null;
  15.   public KhcpxzInsert() {
  16.     this.facade = new KhcpxzFacadeImpl();
  17.   }
  18.   public ActionForward perform(ActionMapping actionMapping,
  19.                                ActionForm actionForm,
  20.                                HttpServletRequest servletRequest,
  21.                                HttpServletResponse servletResponse) {
  22.     KhcpxzForm khcpxzForm = (KhcpxzForm) actionForm;
  23.     khcpxzForm.setCpxx_bz(Chinese.str(servletRequest.getParameter("cpxx_bz")));
  24.     khcpxzForm.setCpxx_cpdj(Chinese.str(servletRequest.getParameter("cpxx_cpdj")));
  25.     khcpxzForm.setCpxx_id(Chinese.str(servletRequest.getParameter("cpxx_id")));
  26.     khcpxzForm.setCpxx_khId(Chinese.str(servletRequest.getParameter("cpxx_khId")));
  27.     khcpxzForm.setCpxx_mc(Chinese.str(servletRequest.getParameter("cpxx_mc")));
  28.     khcpxzForm.setCpxx_xsrp(Chinese.str(servletRequest.getParameter("cpxx_xsrp")));
  29.     this.facade.cpxzInsert(khcpxzForm);
  30.     return actionMapping.findForward("khcpxzInsert");
  31.   }
  32. }