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

企业管理

开发平台:

Java

  1. package com.webtier.clientQyxzAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.CqyxzFacade;
  5. import com.service.CqyxzFacadeImpl;
  6. import com.domain.CqyxzForm;
  7. import com.tool.Chinese;
  8. //修改操作
  9. public class CqyxzUpdate
  10.     extends Action {
  11.   private CqyxzFacade qyxzFacade = null;
  12.   public CqyxzUpdate() {
  13.     this.qyxzFacade = new CqyxzFacadeImpl();
  14.   }
  15.   public ActionForward perform(ActionMapping actionMapping,
  16.                                ActionForm actionForm,
  17.                                HttpServletRequest httpServletRequest,
  18.                                HttpServletResponse httpServletResponse) {
  19.     CqyxzForm cqyxzForm = (CqyxzForm) actionForm;
  20.     Chinese chinese = new Chinese();
  21.     cqyxzForm.setQyxz_xzmc(chinese.str(httpServletRequest.getParameter("xzmc")));
  22.     cqyxzForm.setQyxz_bz(chinese.str(httpServletRequest.getParameter("bz")));
  23.     cqyxzForm.setQyxz_id(chinese.str(httpServletRequest.getParameter("id")));
  24.     this.qyxzFacade.qyxzUpdate(cqyxzForm);
  25.     return actionMapping.findForward("cqyxzUpdate");
  26.   }
  27. }