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

企业管理

开发平台:

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.service.KhcpxzFacade;
  10. import com.service.KhcpxzFacadeImpl;
  11. import com.tool.Chinese;
  12. //修改操作
  13. public class KhcpxzUpdate
  14.     extends Action {
  15.   private KhcpxzFacade facade = null;
  16. public KhcpxzUpdate() {
  17.   this.facade = new KhcpxzFacadeImpl();
  18. }
  19.   public ActionForward perform(ActionMapping actionMapping,
  20.                                ActionForm actionForm,
  21.                                HttpServletRequest servletRequest,
  22.                                HttpServletResponse servletResponse) {
  23.     KhcpxzForm khcpxzForm = (KhcpxzForm) actionForm;
  24.     khcpxzForm.setCpxx_bz(Chinese.str(servletRequest.getParameter("cpxx_bz")));
  25.     khcpxzForm.setCpxx_cpdj(Chinese.str(servletRequest.getParameter("cpxx_cpdj")));
  26.     khcpxzForm.setCpxx_id(Chinese.str(servletRequest.getParameter("cpxx_id")));
  27.     khcpxzForm.setCpxx_khId(Chinese.str(servletRequest.getParameter("cpxx_khId")));
  28.     khcpxzForm.setCpxx_mc(Chinese.str(servletRequest.getParameter("cpxx_mc")));
  29.     khcpxzForm.setCpxx_xsrp(Chinese.str(servletRequest.getParameter("cpxx_xsrp")));
  30.     khcpxzForm.setId(Integer.valueOf(servletRequest.getParameter("id")));
  31.     this.facade.cpxzUpdate(khcpxzForm);
  32.     return actionMapping.findForward("khcpxzUpdate");
  33.   }
  34. }