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

企业管理

开发平台:

Java

  1. package com.webtier.clientQyxxAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.domain.CqyxxForm;
  5. import com.service.CqyxxFacade;
  6. import com.service.CqyxxFacadeImpl;
  7. import java.io.UnsupportedEncodingException;
  8. import com.tool.Chinese;
  9. //修改的操作
  10. public class CqyxxUpdate
  11.     extends Action {
  12.   private CqyxxFacade qyxxFacade = null;
  13.   public CqyxxUpdate() {
  14.     this.qyxxFacade = new CqyxxFacadeImpl();
  15.   }
  16.   public ActionForward perform(ActionMapping actionMapping,
  17.                                ActionForm actionForm,
  18.                                HttpServletRequest httpServletRequest,
  19.                                HttpServletResponse httpServletResponse) throws
  20.       UnsupportedEncodingException {
  21.     httpServletRequest.setCharacterEncoding("gb2312");
  22.     Chinese chinese = new Chinese();
  23.     CqyxxForm cqyxxForm = (CqyxxForm) actionForm;
  24.     cqyxxForm.setId(chinese.str(httpServletRequest.getParameter("id")));
  25.     cqyxxForm.setQymc(chinese.str(httpServletRequest.getParameter("qymc")));
  26.     cqyxxForm.setQyjb(chinese.str(httpServletRequest.getParameter("qyjb")));
  27.     cqyxxForm.setZscd(chinese.str(httpServletRequest.getParameter("zscd")));
  28.     cqyxxForm.setQygml(chinese.str(httpServletRequest.getParameter("qygml")));
  29.     cqyxxForm.setBz(chinese.str(httpServletRequest.getParameter("bz")));
  30.     this.qyxxFacade.qyxxUpdate(cqyxxForm);
  31.     return actionMapping.findForward("cqyxxUpdate");
  32.   }
  33. }